Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Secrets ¶
func Secrets(secretIds ...string) cli.ValueSourceChain
Secrets is a helper function to encapsulate a number of ValueSource together as a ValueSourceChain.
Types ¶
type ValueSource ¶
type ValueSource struct {
SecretId string
Options []func(*config.LoadOptions) error
}
ValueSource retrieves values from AWS Secrets Manager. It implements the cli.ValueSource interface.
func Secret ¶
func Secret(secretId string, opts ...func(*config.LoadOptions) error) *ValueSource
Secret creates a new ValueSource for the given secret ID. Optional AWS SDK configuration options can be provided.
func (*ValueSource) GoString ¶
func (f *ValueSource) GoString() string
GoString returns a Go-syntax representation of the ValueSource.
func (*ValueSource) Lookup ¶
func (f *ValueSource) Lookup() (string, bool)
Lookup retrieves the secret value from AWS Secrets Manager. It returns the secret value and a boolean indicating whether the retrieval was successful.
func (*ValueSource) String ¶
func (f *ValueSource) String() string
String returns a string representation of the ValueSource.
Click to show internal directories.
Click to hide internal directories.