Dagger
Search

secretsmanager

A utility module to get and put secrets using AWS SecretsManager

Installation

dagger install github.com/kpenfound/dagger-modules/secretsmanager@v0.1.0

Entrypoint

Return Type
Secretsmanager
Example
dagger -m github.com/kpenfound/dagger-modules/secretsmanager@42ffef9e24ea7b0c8f7f36d649bd962433289e88 call \
func (m *myModule) example() *Secretsmanager  {
	return dag.
			Secretsmanager()
}
@function
def example() -> dag.Secretsmanager:
	return (
		dag.secretsmanager()
	)
@func()
example(): Secretsmanager {
	return dag
		.secretsmanager()
}

Types

Secretsmanager 🔗

key() 🔗

Return Type
String !
Example
dagger -m github.com/kpenfound/dagger-modules/secretsmanager@42ffef9e24ea7b0c8f7f36d649bd962433289e88 call \
 key
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Secretsmanager().
			Key(ctx)
}
@function
async def example() -> str:
	return await (
		dag.secretsmanager()
		.key()
	)
@func()
async example(): Promise<string> {
	return dag
		.secretsmanager()
		.key()
}

secret() 🔗

Return Type
String !
Example
dagger -m github.com/kpenfound/dagger-modules/secretsmanager@42ffef9e24ea7b0c8f7f36d649bd962433289e88 call \
 secret
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Secretsmanager().
			Secret(ctx)
}
@function
async def example() -> str:
	return await (
		dag.secretsmanager()
		.secret()
	)
@func()
async example(): Promise<string> {
	return dag
		.secretsmanager()
		.secret()
}

auth() 🔗

Authenticate to AWS using key and secret

Return Type
Secretsmanager !
Arguments
NameTypeDefault ValueDescription
keyString !-No description provided
secretString !-No description provided
Example
dagger -m github.com/kpenfound/dagger-modules/secretsmanager@42ffef9e24ea7b0c8f7f36d649bd962433289e88 call \
 auth --key string --secret string
func (m *myModule) example(key string, secret string) *Secretsmanager  {
	return dag.
			Secretsmanager().
			Auth(key, secret)
}
@function
def example(key: str, secret: str) -> dag.Secretsmanager:
	return (
		dag.secretsmanager()
		.auth(key, secret)
	)
@func()
example(key: string, secret: string): Secretsmanager {
	return dag
		.secretsmanager()
		.auth(key, secret)
}

getSecret() 🔗

Retrieve a secret from SecretsManager

Return Type
Secret !
Arguments
NameTypeDefault ValueDescription
nameString !-No description provided
Example
dagger -m github.com/kpenfound/dagger-modules/secretsmanager@42ffef9e24ea7b0c8f7f36d649bd962433289e88 call \
 get-secret --name string
func (m *myModule) example(name string) *Secret  {
	return dag.
			Secretsmanager().
			GetSecret(name)
}
@function
def example(name: str) -> dagger.Secret:
	return (
		dag.secretsmanager()
		.get_secret(name)
	)
@func()
example(name: string): Secret {
	return dag
		.secretsmanager()
		.getSecret(name)
}

putSecret() 🔗

Put a secret in SecretsManager

Return Type
Secretsmanager !
Arguments
NameTypeDefault ValueDescription
nameString !-No description provided
valueString !-No description provided
Example
dagger -m github.com/kpenfound/dagger-modules/secretsmanager@42ffef9e24ea7b0c8f7f36d649bd962433289e88 call \
 put-secret --name string --value string
func (m *myModule) example(name string, value string) *Secretsmanager  {
	return dag.
			Secretsmanager().
			PutSecret(name, value)
}
@function
def example(name: str, value: str) -> dag.Secretsmanager:
	return (
		dag.secretsmanager()
		.put_secret(name, value)
	)
@func()
example(name: string, value: string): Secretsmanager {
	return dag
		.secretsmanager()
		.putSecret(name, value)
}