secret

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ErrNotExist = constErr("Secret does not exist")

Variables

This section is empty.

Functions

This section is empty.

Types

type Property

type Property struct {
	Encryption string
	Encoding   string
	Value      string
}

type Secret

type Secret struct {
	// contains filtered or unexported fields
}

func New

func New(logger logging.Logger, file map[string]interface{}, property string, masterKey string) *Secret

func (*Secret) Read

func (s *Secret) Read(to io.Writer) (err error)

func (*Secret) Write

func (s *Secret) Write(secret []byte) (err error)

Write returns the whole file passed in secret.New() updated at the property passed in secret.New()

Jump to

Keyboard shortcuts

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