Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecretManager ¶
type SecretManager struct {
// contains filtered or unexported fields
}
func NewSecretManager ¶
func NewSecretManager() (*SecretManager, error)
NewSecretManager creates a new SecretManager instance to acess secrets.
func (*SecretManager) AccessSecret ¶
func (sm *SecretManager) AccessSecret(name string) (string, error)
AccessSecret get a secret value from a name.
func (*SecretManager) AccessSecrets ¶
func (sm *SecretManager) AccessSecrets() error
AccessSecrets gets the secrets from environment values. It obtains the secret of each environment value if it has his value equal to `@secret`.
Click to show internal directories.
Click to hide internal directories.