dotenv

package
v3.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

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

EmitEncryptedFile returns the encrypted file's bytes corresponding to a sops runtime object

func (*Store) EmitExample

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

EmitExample returns the bytes corresponding to an example Flat Tree runtime object

func (*Store) EmitPlainFile

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

EmitPlainFile returns the plaintext file's bytes corresponding to a sops runtime object

func (Store) EmitValue

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

EmitValue returns a single value as bytes

func (*Store) HasSopsTopLevelKey

func (store *Store) HasSopsTopLevelKey(branch sops.TreeBranch) bool

HasSopsTopLevelKey checks whether a top-level "sops" key exists.

func (*Store) LoadEncryptedFile

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

LoadEncryptedFile loads an encrypted file's bytes onto a sops.Tree runtime object

func (*Store) LoadPlainFile

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

LoadPlainFile returns the contents of a plaintext file loaded onto a sops runtime object

Jump to

Keyboard shortcuts

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