Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 Value ¶
type Value struct { // KeyID of the key that this value is encrypted under. This identifies which key the // Provider should use. KeyID string `yaml:"key_id,omitempty"` // KeyManager indicates which key manager provided this key. KeyManager string `yaml:"key_manager,omitempty"` // 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"` // Algorithm used to populate Ciphertext. Algorithm string `yaml:"algorithm"` // Ciphertext is the plaintext encrypted with the ephemeral key. Ciphertext string `yaml:"ciphertext"` }
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.