Versions in this module Expand all Collapse all v1 v1.18.0 Aug 2, 2026 Changes in this version + func Default() map[string]secretref.Backend + func NewDefaultResolver() *secretref.Resolver + type ConfigTokenBackend struct + func NewConfigTokenBackend(opts ...ConfigTokenOption) *ConfigTokenBackend + func (b *ConfigTokenBackend) DefaultRef(name, account string) string + func (b *ConfigTokenBackend) DeleteBlob(ctx context.Context, ref secretref.Ref) error + func (b *ConfigTokenBackend) DisplayName() string + func (b *ConfigTokenBackend) Exists(ctx context.Context, ref secretref.Ref) (bool, error) + func (b *ConfigTokenBackend) LoadBlob(_ context.Context, ref secretref.Ref) ([]byte, error) + func (b *ConfigTokenBackend) Resolve(ctx context.Context, ref secretref.Ref) (string, error) + func (b *ConfigTokenBackend) SaveBlob(ctx context.Context, ref secretref.Ref, data []byte) error + func (b *ConfigTokenBackend) Scheme() string + func (b *ConfigTokenBackend) Store(ctx context.Context, ref secretref.Ref, value string) error + func (b *ConfigTokenBackend) WriteSupported() bool + type ConfigTokenOption func(*ConfigTokenBackend) + func WithConfigDir(dir string) ConfigTokenOption + func WithConfigTokenLogger(w io.Writer) ConfigTokenOption + type EnvBackend struct + func NewEnvBackend(lookup EnvLookup) *EnvBackend + func (b *EnvBackend) Resolve(_ context.Context, ref secretref.Ref) (string, error) + type EnvLookup func(string) (string, bool) + type FileBackend struct + func NewFileBackend() *FileBackend + func (b *FileBackend) DefaultRef(name, account string) string + func (b *FileBackend) DeleteBlob(_ context.Context, ref secretref.Ref) error + func (b *FileBackend) DisplayName() string + func (b *FileBackend) Exists(_ context.Context, ref secretref.Ref) (bool, error) + func (b *FileBackend) LoadBlob(_ context.Context, ref secretref.Ref) ([]byte, error) + func (b *FileBackend) Resolve(ctx context.Context, ref secretref.Ref) (string, error) + func (b *FileBackend) SaveBlob(_ context.Context, ref secretref.Ref, data []byte) error + func (b *FileBackend) Scheme() string + func (b *FileBackend) Store(ctx context.Context, ref secretref.Ref, value string) error + func (b *FileBackend) WriteSupported() bool + type KeychainBackend struct + func NewKeychainBackend() *KeychainBackend + func (b *KeychainBackend) DefaultRef(storeName, account string) string + func (b *KeychainBackend) DeleteBlob(ctx context.Context, ref secretref.Ref) error + func (b *KeychainBackend) DisplayName() string + func (b *KeychainBackend) Exists(ctx context.Context, ref secretref.Ref) (bool, error) + func (b *KeychainBackend) LoadBlob(ctx context.Context, ref secretref.Ref) ([]byte, error) + func (b *KeychainBackend) Resolve(ctx context.Context, ref secretref.Ref) (string, error) + func (b *KeychainBackend) SaveBlob(ctx context.Context, ref secretref.Ref, data []byte) error + func (b *KeychainBackend) Scheme() string + func (b *KeychainBackend) Store(ctx context.Context, ref secretref.Ref, value string) error + func (b *KeychainBackend) WriteSupported() bool + type SecretServiceBackend struct + func NewSecretServiceBackend() *SecretServiceBackend + func (b *SecretServiceBackend) DefaultRef(storeName, account string) string + func (b *SecretServiceBackend) DisplayName() string + func (b *SecretServiceBackend) Exists(ctx context.Context, ref secretref.Ref) (bool, error) + func (b *SecretServiceBackend) Resolve(ctx context.Context, ref secretref.Ref) (string, error) + func (b *SecretServiceBackend) Scheme() string + func (b *SecretServiceBackend) Store(ctx context.Context, ref secretref.Ref, value string) error + func (b *SecretServiceBackend) WriteSupported() bool + type WincredBackend struct + func NewWincredBackend() *WincredBackend + func (b *WincredBackend) DefaultRef(storeName, account string) string + func (b *WincredBackend) DisplayName() string + func (b *WincredBackend) Exists(ctx context.Context, ref secretref.Ref) (bool, error) + func (b *WincredBackend) Resolve(ctx context.Context, ref secretref.Ref) (string, error) + func (b *WincredBackend) Scheme() string + func (b *WincredBackend) Store(ctx context.Context, ref secretref.Ref, value string) error + func (b *WincredBackend) WriteSupported() bool