yaml

package
v0.0.0-...-14a22d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2019 License: MPL-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
}

Store handles storage of YAML data

func (*Store) EmitEncryptedFile

func (store *Store) EmitEncryptedFile(in sops.Tree) ([]byte, error)

EmitEncryptedFile returns the encrypted bytes of the yaml file corresponding to a sops.Tree runtime object

func (*Store) EmitExample

func (store *Store) EmitExample() []byte

EmitExample returns the bytes corresponding to an example complex tree

func (*Store) EmitPlainFile

func (store *Store) EmitPlainFile(branches sops.TreeBranches) ([]byte, error)

EmitPlainFile returns the plaintext bytes of the yaml file corresponding to a sops.TreeBranches runtime object

func (*Store) EmitValue

func (store *Store) EmitValue(v interface{}) ([]byte, error)

EmitValue returns bytes corresponding to a single encoded value in a generic interface{} object

func (*Store) LoadEncryptedFile

func (store *Store) LoadEncryptedFile(in []byte) (sops.Tree, error)

LoadEncryptedFile loads the contents of an encrypted yaml file onto a sops.Tree runtime object

func (*Store) LoadPlainFile

func (store *Store) LoadPlainFile(in []byte) (sops.TreeBranches, error)

LoadPlainFile loads the contents of a plaintext yaml file onto a sops.Tree runtime obejct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL