Documentation ¶
Index ¶
- Constants
- type Store
- func (store *Store) EmitEncryptedFile(in sops.Tree) ([]byte, error)
- func (store *Store) EmitExample() []byte
- func (store *Store) EmitPlainFile(in sops.TreeBranches) ([]byte, error)
- func (Store) EmitValue(v interface{}) ([]byte, error)
- func (store *Store) HasSopsTopLevelKey(branch sops.TreeBranch) bool
- func (store *Store) LoadEncryptedFile(in []byte) (sops.Tree, error)
- func (store *Store) LoadPlainFile(in []byte) (sops.TreeBranches, error)
Constants ¶
View Source
const SopsPrefix = stores.SopsMetadataKey + "_"
SopsPrefix is the prefix for all metadatada entry keys
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store handles storage of dotenv data
func NewStore ¶
func NewStore(c *config.DotenvStoreConfig) *Store
func (*Store) EmitEncryptedFile ¶
EmitEncryptedFile returns the encrypted file's bytes corresponding to a sops runtime object
func (*Store) EmitExample ¶
EmitExample returns the bytes corresponding to an example Flat Tree runtime object
func (*Store) EmitPlainFile ¶
EmitPlainFile returns the plaintext file's bytes corresponding to a sops runtime object
func (*Store) HasSopsTopLevelKey ¶
HasSopsTopLevelKey checks whether a top-level "sops" key exists.
func (*Store) LoadEncryptedFile ¶
LoadEncryptedFile loads an encrypted file's bytes onto a sops.Tree runtime object
func (*Store) LoadPlainFile ¶
LoadPlainFile returns the contents of a plaintext file loaded onto a sops runtime object
Click to show internal directories.
Click to hide internal directories.