secret_manager

package module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 9 Imported by: 0

README

secret-manager

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`.

func (*SecretManager) Close

func (sm *SecretManager) Close() error

Close

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL