Documentation
¶
Index ¶
- func GetDockerAuthFromASM(secretID string, client SecretsManagerAPI) (registry.AuthConfig, error)
- func GetSecretFromASM(secretID string, client SecretsManagerAPI) (string, error)
- func GetSecretFromASMWithInput(input *secretsmanager.GetSecretValueInput, client SecretsManagerAPI, ...) (string, error)
- type AuthDataValue
- type SecretsManagerAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDockerAuthFromASM ¶
func GetDockerAuthFromASM(secretID string, client SecretsManagerAPI) (registry.AuthConfig, error)
GetDockerAuthFromASM makes the api call to the AWS Secrets Manager service to retrieve the docker auth data
func GetSecretFromASM ¶
func GetSecretFromASM(secretID string, client SecretsManagerAPI) (string, error)
GetSecretFromASM makes the api call to the AWS Secrets Manager service to retrieve the secret value
func GetSecretFromASMWithInput ¶
func GetSecretFromASMWithInput(input *secretsmanager.GetSecretValueInput, client SecretsManagerAPI, jsonKey string) (string, error)
Types ¶
type AuthDataValue ¶
AuthDataValue is the schema for the SecretStringValue returned by ASM
type SecretsManagerAPI ¶
type SecretsManagerAPI interface {
GetSecretValue(ctx context.Context, params *secretsmanager.GetSecretValueInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.GetSecretValueOutput, error)
}
For mocking purpose
Click to show internal directories.
Click to hide internal directories.