Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileFormat ¶
type FileFormat int
The file format of an encrypted file.
const ( // JSON - JSON FileFormat = iota // YAML - YAML )
type Store ¶
type Store interface { // EncryptSubtree - EncryptSubtree(string, ...string) error // DecryptSubtree - DecryptSubtree(string, ...string) error // Subtree - Subtree(...string) (map[string]interface{}, error) // ToFile - ToFile(string) error }
Store defines an encrypted data file. Files are assumed to be tree-structured (or at least eflat arrays). This interface allows users to do basic operations on these secret files.
func GetStoreFromBytes ¶ added in v0.3.6
func GetStoreFromBytes(bites []byte, frmt FileFormat) (Store, error)
GetStoreFromBytes -
func GetStoreWithFormat ¶
func GetStoreWithFormat(path string, frmt FileFormat) (Store, error)
GetStoreWithFormat -
Click to show internal directories.
Click to hide internal directories.