Documentation ¶
Index ¶
Constants ¶
View Source
const ( KeyAWSProfile = "AWS_PROFILE" PrefixSecretsManager = "secretsmanager://" PrefixParameterStore = "parameterstore://" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AWSConfigOptFns ¶ added in v0.7.0
type AWSConfigOptFns []func(*config.LoadOptions) error
type Options ¶
type Options struct { Config string `required:"" default:"~/.sev.toml" env:"SEV_CONFIG" help:"Config file path."` Profile string `arg:"" required:"" help:"Profile name."` Command []string `arg:"" required:"" help:"Command and arguments."` DefaultProfile string `env:"SEV_DEFAULT_PROFILE" help:"Fallback profile name."` OverrideAwsProfile bool `negatable:"" default:"true" help:"Use AWS_PROFILE in sev config (enabled by default)."` AWSConfigOptFns AWSConfigOptFns `kong:"-"` }
func (*Options) AfterApply ¶
type Providers ¶ added in v0.7.0
type Providers struct {
// contains filtered or unexported fields
}
func NewProviders ¶ added in v0.7.0
func NewProviders(fns AWSConfigOptFns) *Providers
func (*Providers) NewSSMClient ¶ added in v0.7.0
func (*Providers) NewSecretsManagerClient ¶ added in v0.7.0
func (p *Providers) NewSecretsManagerClient() (*secretsmanager.Client, error)
type ProviderssIface ¶ added in v0.7.0
type SSMGetParameterAPI ¶ added in v0.7.0
type SSMGetParameterAPI interface {
GetParameter(ctx context.Context, params *ssm.GetParameterInput, optFns ...func(*ssm.Options)) (*ssm.GetParameterOutput, error)
}
type SecretsManagerGetSecretValueAPI ¶ added in v0.2.0
type SecretsManagerGetSecretValueAPI interface {
GetSecretValue(ctx context.Context, params *secretsmanager.GetSecretValueInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.GetSecretValueOutput, error)
}
Click to show internal directories.
Click to hide internal directories.