entry

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrVaultInvalidPath = errors.New("invalid vault path")
View Source
var ErrVaultUnauthorized = errors.New("vault unauthorized")

Functions

This section is empty.

Types

type Entry

type Entry interface {
	Get(context.Context, string) (any, bool)
}

type EnvEntry

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

func NewEnv

func NewEnv(ctx context.Context, entry Entry) (*EnvEntry, error)

func (*EnvEntry) Get

func (e *EnvEntry) Get(ctx context.Context, path string) (any, bool)

type JsonEntry

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

func NewJson

func NewJson(ctx context.Context, r io.Reader) (*JsonEntry, error)

func (*JsonEntry) Get

func (e *JsonEntry) Get(_ context.Context, path string) (any, bool)

type TomlEntry

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

func NewToml

func NewToml(ctx context.Context, r io.Reader) (*TomlEntry, error)

func (*TomlEntry) Get

func (e *TomlEntry) Get(_ context.Context, path string) (any, bool)

type VaultEntry added in v1.0.0

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

func NewVault added in v1.0.0

func NewVault(ctx context.Context, entry Entry, client *vault.Client, auth vault.AuthMethod) (*VaultEntry, error)

func (*VaultEntry) Client added in v1.0.0

func (e *VaultEntry) Client() *vault.Client

func (*VaultEntry) Get added in v1.0.0

func (e *VaultEntry) Get(ctx context.Context, path string) (any, bool)

type YamlEntry

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

func NewYaml

func NewYaml(ctx context.Context, r io.Reader) (*YamlEntry, error)

func (*YamlEntry) Get

func (e *YamlEntry) Get(ctx context.Context, path string) (any, bool)

Jump to

Keyboard shortcuts

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