secret

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinPath

func JoinPath(base string, append ...string) string

func Parse

func Parse(gitClient *git.Client, files ...string) (trees []*tree.Tree, err error)

func Read

func Read(monitor mntr.Monitor, gitClient *git.Client, secretFunc GetFunc, path string) (string, error)

func Write

func Write(monitor mntr.Monitor, gitClient *git.Client, secretFunc GetFunc, path, value string) error

Types

type Existing

type Existing struct {
	Name         string `json:"name" yaml:"name"`
	Key          string `json:"key" yaml:"key"`
	InternalName string `json:"internalName" yaml:"internalName"`
}

type ExistingIDSecret

type ExistingIDSecret struct {
	Name         string `json:"name" yaml:"name"`
	IDKey        string `json:"idKey" yaml:"idKey"`
	SecretKey    string `json:"secretKey" yaml:"secretKey"`
	InternalName string `json:"internalName" yaml:"internalName"`
}

type Func

type Func func(monitor mntr.Monitor, desiredTree *tree.Tree) (secrets map[string]*Secret, err error)

type GetFunc

type GetFunc func(operator string) Func

type Secret

type Secret struct {
	Encryption string
	Encoding   string
	Value      string
	Masterkey  string `yaml:"-"`
}

func ClearEmpty

func ClearEmpty(secret *Secret) *Secret

func (*Secret) MarshalYAML

func (s *Secret) MarshalYAML() (interface{}, error)

func (*Secret) UnmarshalYAML

func (s *Secret) UnmarshalYAML(node *yaml.Node) error

Jump to

Keyboard shortcuts

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