Documentation ¶
Index ¶
- Variables
- type BinaryStore
- func (store BinaryStore) EmitEncryptedFile(in sops.Tree) ([]byte, error)
- func (store BinaryStore) EmitExample() []byte
- func (store BinaryStore) EmitPlainFile(in sops.TreeBranches) ([]byte, error)
- func (store BinaryStore) EmitValue(v interface{}) ([]byte, error)
- func (store *BinaryStore) HasSopsTopLevelKey(branch sops.TreeBranch) bool
- func (store BinaryStore) LoadEncryptedFile(in []byte) (sops.Tree, error)
- func (store BinaryStore) LoadPlainFile(in []byte) (sops.TreeBranches, error)
- 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 *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 ¶
This section is empty.
Variables ¶
var BinaryStoreEmitPlainError = errors.New("error emitting binary store")
Functions ¶
This section is empty.
Types ¶
type BinaryStore ¶
type BinaryStore struct {
// contains filtered or unexported fields
}
BinaryStore handles storage of binary data in a JSON envelope.
func NewBinaryStore ¶
func NewBinaryStore(c *config.JSONBinaryStoreConfig) *BinaryStore
func (BinaryStore) EmitEncryptedFile ¶
func (store BinaryStore) EmitEncryptedFile(in sops.Tree) ([]byte, error)
EmitEncryptedFile produces an encrypted json file's bytes from its corresponding sops.Tree object
func (BinaryStore) EmitExample ¶
func (store BinaryStore) EmitExample() []byte
EmitExample returns the example's plaintext json file bytes
func (BinaryStore) EmitPlainFile ¶
func (store BinaryStore) EmitPlainFile(in sops.TreeBranches) ([]byte, error)
EmitPlainFile produces plaintext json file's bytes from its corresponding sops.TreeBranches object
func (BinaryStore) EmitValue ¶
func (store BinaryStore) EmitValue(v interface{}) ([]byte, error)
EmitValue extracts a value from a generic interface{} object representing a structured set of binary files
func (*BinaryStore) HasSopsTopLevelKey ¶
func (store *BinaryStore) HasSopsTopLevelKey(branch sops.TreeBranch) bool
HasSopsTopLevelKey checks whether a top-level "sops" key exists.
func (BinaryStore) LoadEncryptedFile ¶
func (store BinaryStore) LoadEncryptedFile(in []byte) (sops.Tree, error)
LoadEncryptedFile loads an encrypted json file onto a sops.Tree object
func (BinaryStore) LoadPlainFile ¶
func (store BinaryStore) LoadPlainFile(in []byte) (sops.TreeBranches, error)
LoadPlainFile loads a plaintext json file onto a sops.Tree encapsulated within a sops.TreeBranches object
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store handles storage of JSON data.
func NewStore ¶
func NewStore(c *config.JSONStoreConfig) *Store
func (*Store) EmitEncryptedFile ¶
EmitEncryptedFile returns the encrypted bytes of the json file corresponding to a sops.Tree runtime object
func (*Store) EmitExample ¶
EmitExample returns the bytes corresponding to an example complex tree
func (*Store) EmitPlainFile ¶
EmitPlainFile returns the plaintext bytes of the json file corresponding to a sops.TreeBranches runtime object
func (*Store) EmitValue ¶
EmitValue returns bytes corresponding to a single encoded value in a generic interface{} object
func (*Store) HasSopsTopLevelKey ¶
HasSopsTopLevelKey checks whether a top-level "sops" key exists.
func (*Store) LoadEncryptedFile ¶
LoadEncryptedFile loads an encrypted secrets file onto a sops.Tree object
func (*Store) LoadPlainFile ¶
LoadPlainFile loads plaintext json file bytes onto a sops.TreeBranches object