Versions in this module Expand all Collapse all v1 v1.0.1 Jun 9, 2026 v1.0.0 May 29, 2026 Changes in this version + var ErrNotLoaded = errors.New("configuration has not been loaded") + type Loader struct + func New(schema []byte, opts ...Option) (*Loader, error) + func NewFS(schemaFS fs.FS, dir string, opts ...Option) (*Loader, error) + func (l *Loader) ConfigPath() string + func (l *Loader) Decode(dst any) error + func (l *Loader) DefaultsJSON() ([]byte, error) + func (l *Loader) DeleteKeyringValue(key string) error + func (l *Loader) ExportPublicJSON(path string) error + func (l *Loader) Format(state fmt.State, _ rune) + func (l *Loader) GetKeyringValue(key string) (string, error) + func (l *Loader) GoString() string + func (l *Loader) Load(path string) error + func (l *Loader) LoadJSON(name string, data []byte) error + func (l *Loader) LoadWithParser(path string, parser koanf.Parser) error + func (l *Loader) LogValue() slog.Value + func (l *Loader) Map() (map[string]any, error) + func (l *Loader) Patch(patch any) error + func (l *Loader) PublicJSON() ([]byte, error) + func (l *Loader) RawMap() (map[string]any, error) + func (l *Loader) SetKeyringValue(key, value string) error + func (l *Loader) String() string + func (l *Loader) WriteDefaults(path string) error + func (l *Loader) WriteDefaultsWithParser(path string, parser koanf.Parser) error + type Option func(*options) error + func WithDefinition(path string) Option + func WithReferences(refs ReferenceOptions) Option + func WithSecretFactory(factory SecretFactory) Option + type PresentedSecret struct + func NewPresentedSecret(value SecretValue, presenter SecretPresenter) PresentedSecret + func (s PresentedSecret) Format(state fmt.State, _ rune) + func (s PresentedSecret) GoString() string + func (s PresentedSecret) LogValue() slog.Value + func (s PresentedSecret) MarshalJSON() ([]byte, error) + func (s PresentedSecret) MarshalText() ([]byte, error) + func (s PresentedSecret) String() string + type ReferenceOptions struct + ConfigDir string + DataDir string + KeyringService string + type Secret interface + IsSet func() bool + Reveal func() string + type SecretFactory func(SecretValue) Secret + type SecretPresenter func(SecretValue) string + type SecretValue struct + func (s SecretValue) Format(state fmt.State, _ rune) + func (s SecretValue) GoString() string + func (s SecretValue) IsSet() bool + func (s SecretValue) LogValue() slog.Value + func (s SecretValue) MarshalJSON() ([]byte, error) + func (s SecretValue) MarshalText() ([]byte, error) + func (s SecretValue) Path() string + func (s SecretValue) Reveal() string + func (s SecretValue) String() string