v3: go.mozilla.org/sops/v3/stores/json Index | Files

package json

import "go.mozilla.org/sops/v3/stores/json"

Index

Package Files

store.go

type BinaryStore Uses

type BinaryStore struct {
    // contains filtered or unexported fields
}

BinaryStore handles storage of binary data in a JSON envelope.

func (BinaryStore) EmitEncryptedFile Uses

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 Uses

func (store BinaryStore) EmitExample() []byte

EmitExample returns the example's plaintext json file bytes

func (BinaryStore) EmitPlainFile Uses

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 Uses

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) LoadEncryptedFile Uses

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

LoadEncryptedFile loads an encrypted json file onto a sops.Tree object

func (BinaryStore) LoadPlainFile Uses

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 Uses

type Store struct {
}

Store handles storage of JSON data.

func (*Store) EmitEncryptedFile Uses

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

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

func (*Store) EmitExample Uses

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

EmitExample returns the bytes corresponding to an example complex tree

func (*Store) EmitPlainFile Uses

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

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

func (*Store) EmitValue Uses

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 Uses

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

LoadEncryptedFile loads an encrypted secrets file onto a sops.Tree object

func (*Store) LoadPlainFile Uses

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

LoadPlainFile loads plaintext json file bytes onto a sops.TreeBranches object

Package json imports 6 packages (graph). Updated 2020-08-05. Refresh now. Tools for package owners.