internal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeRef

func DecodeRef(ref string) (vaultUrl, secretName string, error error)

func GetAuth

func GetAuth() (err error)

func GetFullRenderedEnv

func GetFullRenderedEnv(secrets []Secret, otherEnv []string) (env []string)

func GetOriginalEnv

func GetOriginalEnv(secrets []Secret) (env []string)

func GetRef

func GetRef(secret Secret) string

func GetRenderedEnv

func GetRenderedEnv(secrets []Secret) (env []string)

func GetSecret

func GetSecret(vaultUrl, secretName string) (azsecrets.GetSecretResponse, error)

func GetSecretByRef

func GetSecretByRef(ref string) (azsecrets.GetSecretResponse, error)

func SetSecretsToEnv

func SetSecretsToEnv(secrets []Secret)

func SetVerbosity

func SetVerbosity(verboseEnabled bool)

Types

type Secret

type Secret struct {
	Env      string `json:"env"`
	EnvRef   string `json:"env_ref"`
	Key      string `json:"key"`
	Value    string `json:"value"`
	ValueRef string `json:"value_ref"`
}

func GetEnvAsSecret

func GetEnvAsSecret() (secrets []Secret, otherEnv []string, error error)

func NewSecret

func NewSecret(envRef string) *Secret

func (Secret) SetRefs

func (secret Secret) SetRefs()

Jump to

Keyboard shortcuts

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