Documentation
¶
Index ¶
Constants ¶
View Source
const KeyTemplateName = "_keys"
KeyTemplateName is the name of the value that configures the default set of key settings.
Variables ¶
View Source
var ( // ErrNameNotFound is returned by Get if the named secret does not exist. ErrNameNotFound = errors.New("name not found") )
Functions ¶
func IsProbablyNewStore ¶
IsProbablyNewStore returns true if an error returned by any of the methods in this package is likely to mean that the store simply does not exist yet.
Types ¶
type FileStore ¶
type FileStore string
FileStore stores an EntryMap in a YAML file on local disk.
func NewFileStore ¶
NewFileStore constructs a FileStore for a specific filename.
type Key ¶
type Key struct { // KeyID is the key that a value is encrypted under. This identifies which key the // KeyManager should use. KeyID string `yaml:"key_id,omitempty"` // KeyManager indicates which key manager provided this key. KeyManager string `yaml:"key_manager,omitempty"` // Algorithm used for cryptographic operations. Algorithm string `yaml:"algorithm"` }
Key defines key and crypto settings for a particular value.
type Value ¶
type Value struct { // Key references the key and cryptographic settings for this Value. Key `yaml:",inline"` // KeyCiphertext is the encryption key that Ciphertext is encrypted with, but encrypted with a // key that only the Provider has. KeyCiphertext string `yaml:"key_ciphertext,omitempty"` // Ciphertext is the plaintext encrypted with the ephemeral key. Ciphertext string `yaml:"ciphertext,omitempty"` }
Value is one entry in the file.
func (*Value) GetCiphertext ¶
GetCiphertext returns the base64-decoded ciphertext.
func (*Value) GetKeyCiphertext ¶
GetKeyCiphertext returns the base64-decoded encrypted key.
Click to show internal directories.
Click to hide internal directories.