Help us shape the future of Go! Take the 2026 Go Developer Survey

ini

package
v3.13.3 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MPL-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

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 ini data.

func NewStore added in v3.9.0

func NewStore(c *config.INIStoreConfig) *Store

func (*Store) EmitEncryptedFile

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

EmitEncryptedFile returns encrypted INI file bytes corresponding to a sops.Tree runtime object

func (*Store) EmitExample

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

EmitExample returns the plaintext INI file bytes corresponding to the SimpleTree example

func (*Store) EmitPlainFile

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

EmitPlainFile returns the plaintext INI file bytes corresponding to a sops.TreeBranches object

func (*Store) EmitValue

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

EmitValue returns a single value encoded in a generic interface{} as bytes

func (*Store) HasSopsTopLevelKey added in v3.9.0

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 encrypted INI file's bytes onto a sops.Tree runtime object

func (*Store) LoadPlainFile

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

LoadPlainFile loads a plaintext INI file's bytes onto a sops.TreeBranches runtime object

func (*Store) Name added in v3.11.0

func (store *Store) Name() string

Jump to

Keyboard shortcuts

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