Documentation ¶
Index ¶
- Constants
- type Store
- func (store *Store) EmitEncryptedFile(in sops.Tree) ([]byte, error)
- func (store *Store) EmitExample() []byte
- func (store *Store) EmitPlainFile(branches 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 ¶
const IndentDefault = 4
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 YAML data
func NewStore ¶
func NewStore(c *config.YAMLStoreConfig) *Store
func (*Store) EmitEncryptedFile ¶
EmitEncryptedFile returns the encrypted bytes of the yaml 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 yaml 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 the contents of an encrypted yaml file onto a sops.Tree runtime object
func (*Store) LoadPlainFile ¶
LoadPlainFile loads the contents of a plaintext yaml file onto a sops.Tree runtime object