Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReplaceInFile ¶
ReplaceInFile another way to get secrets from a config file
Types ¶
type DockerSecrets ¶
type DockerSecrets struct {
// contains filtered or unexported fields
}
DockerSecrets contains secrets
func NewDockerSecrets ¶
func NewDockerSecrets(secretsDir string) (*DockerSecrets, error)
NewDockerSecrets creates an instance of DockerSecrets The secretsDir argument has a default value of: /run/secrets return os.ErrNotExist if secrets dir not exists
func (*DockerSecrets) Get ¶
func (ds *DockerSecrets) Get(secretName string) (string, error)
Get returns one secret by secretName
func (*DockerSecrets) GetAll ¶
func (ds *DockerSecrets) GetAll() map[string]string
GetAll returns all secrets from memory
func (*DockerSecrets) GetDir ¶
func (ds *DockerSecrets) GetDir() string
GetDir returns the secretsDir
func (*DockerSecrets) Unmarshal ¶
func (ds *DockerSecrets) Unmarshal(output interface{}) error
Unmarshal unmarshals the secrets into a Struct
Click to show internal directories.
Click to hide internal directories.
