secrets

package
v0.0.0-...-c374302 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSecret

func AddSecret(baseDir, env, secretName string) error

func GetPrivateKey

func GetPrivateKey(homeDir string) (*crypto.Key, string, error)

func InitSecrets

func InitSecrets(homeDir, baseDir, env string) (bool, error)

func RandIntBytes

func RandIntBytes(n int) string

func RandStringBytes

func RandStringBytes() string

func RandStringBytesOfLength

func RandStringBytesOfLength(n int) string

func Refresh

func Refresh(homeDir, baseDir, env string) error

func WriteSecret

func WriteSecret(baseDir, env, secretName, secretValue string) error

Types

type Secret

type Secret struct {
	Name  string
	Value string
}

func GetAllSecrets

func GetAllSecrets(homeDir, baseDir, env string) ([]*Secret, error)

Jump to

Keyboard shortcuts

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