Versions in this module Expand all Collapse all v0 v0.2.0 Jul 20, 2026 Changes in this version + type ServiceItem struct + Service string + func DumpItems(_ context.Context, opts ...Option) ([]ServiceItem, error) + func DumpItems(ctx context.Context, opts ...Option) ([]ServiceItem, error) type Store + func (s *Store) Delete(account string) error v0.1.0 Jul 20, 2026 Changes in this version + const DisableEnv + var ErrExists = errors.New("item already exists") + var ErrNotFound = errors.New("not found") + var ErrUnreadable = errors.New("keychain item could not be read") + var ErrUnsupported = errors.New("keychain not supported on this platform") + var ErrVerifyFailed = errors.New("read-back verification failed") + func Supported() bool + type Account struct + Account string + Description string + Env string + ObtainURL string + Required bool + type DuplicateGroup struct + Account string + Items []Item + Service string + func DumpDuplicates(_ context.Context, service string, opts ...Option) ([]DuplicateGroup, error) + func DumpDuplicates(ctx context.Context, service string, opts ...Option) ([]DuplicateGroup, error) + type Item struct + Account string + Keychain string + type Manifest struct + Accounts []Account + Service string + Version int + func LoadManifest(path string) (*Manifest, error) + type Option func(*Store) + func WithKeychain(path string) Option + func WithSecurityBin(path string) Option + func WithTimeout(d time.Duration) Option + type Store struct + func New(service string, opts ...Option) (*Store, error) + func (s *Store) Get(account string) (string, error) + func (s *Store) GetOrEnv(account, envVar string) (string, error) + func (s *Store) Has(account string) (bool, error) + func (s *Store) List(_ context.Context) ([]Item, error) + func (s *Store) List(ctx context.Context) ([]Item, error) + func (s *Store) Set(account, value string) error + func (s *Store) SetIfAbsent(account, value string) error