Documentation
¶
Overview ¶
*
- Azure KeyVault implementation
*
Index ¶
Constants ¶
const ( // AWS SecretsManager prefix SecretMgrPrefix = "AWSSECRETS" // AWS Parameter Store prefix ParamStorePrefix = "AWSPARAMSTR" // Azure Key Vault Secrets prefix AzKeyVaultSecretsPrefix = "AZKVSECRET" )
Variables ¶
var ( // default varPrefix VarPrefix = map[string]bool{SecretMgrPrefix: true, ParamStorePrefix: true, AzKeyVaultSecretsPrefix: true} )
Functions ¶
This section is empty.
Types ¶
type DefaultStrategy ¶
type DefaultStrategy struct {
}
func NewDefatultStrategy ¶
func NewDefatultStrategy() *DefaultStrategy
type GenVars ¶
type GenVars struct {
Generatoriface
// contains filtered or unexported fields
}
func (*GenVars) Config ¶ added in v1.3.0
func (c *GenVars) Config() *GenVarsConfig
Config gets Config on the GenVars
func (*GenVars) ConvertToExportVar ¶
ConvertToExportVar assigns the k/v out as unix style export key=val pairs separated by `\n`
func (*GenVars) FlushToFile ¶
FlushToFile saves contents to file provided in the config input into the generator
func (*GenVars) Generate ¶
Generate generates a k/v map of the tokens with their corresponding secret/paramstore values the standard pattern of a token should follow a path like
func (*GenVars) WithConfig ¶
func (c *GenVars) WithConfig(cfg *GenVarsConfig) *GenVars
WithConfig uses custom config
type GenVarsConfig ¶
type GenVarsConfig struct {
// contains filtered or unexported fields
}
GenVarsConfig defines the input config object to be passed
func (*GenVarsConfig) WithKeySeparator ¶
func (c *GenVarsConfig) WithKeySeparator(keySeparator string) *GenVarsConfig
WithKeySeparator adds a custom key separotor
func (*GenVarsConfig) WithOutputPath ¶
func (c *GenVarsConfig) WithOutputPath(out string) *GenVarsConfig
WithOutputPath
func (*GenVarsConfig) WithTokenSeparator ¶
func (c *GenVarsConfig) WithTokenSeparator(tokenSeparator string) *GenVarsConfig
WithTokenSeparator adds a custom token separator token is the actual value of the parameter/secret in the provider store
type Generatoriface ¶
type KvScrtStore ¶ added in v1.2.0
type KvScrtStore struct {
// contains filtered or unexported fields
}
func NewKvScrtStore ¶ added in v1.2.0
func NewKvScrtStore(ctx context.Context) (*KvScrtStore, error)
NewKvScrtStore returns a KvScrtStore requires `AZURE_SUBSCRIPTION_ID` environment variable to be present to successfully work
func NewKvScrtStoreWithToken ¶ added in v1.2.0
func NewKvScrtStoreWithToken(ctx context.Context, token, tokenSeparator, keySeparator string) (*KvScrtStore, error)
NewKvScrtStoreWithToken returns a KvScrtStore requires `AZURE_SUBSCRIPTION_ID` environment variable to be present to successfully work
type ParamStore ¶
type ParamStore struct {
// contains filtered or unexported fields
}
func NewParamStore ¶
func NewParamStore(ctx context.Context) (*ParamStore, error)
type ParsedMap ¶
ParsedMap is the internal working object definition and the return type if results are not flushed to file
type SecretsMgr ¶
type SecretsMgr struct {
// contains filtered or unexported fields
}
func NewSecretsMgr ¶
func NewSecretsMgr(ctx context.Context) (*SecretsMgr, error)