Versions in this module Expand all Collapse all v0 v0.1.0 Mar 23, 2024 Changes in this version + var DefaultAppName = "safedata" + var ErrMalformedMetadata = errors.New("metadata contains invalid characters") + var ErrMetadataMaxLength = errors.New("metadata exceeds the maximum length") + var ErrNotFound = errors.New("not found") + var ErrUnsupported = errors.New("os not supported") + var ErrUserRefused = errors.New("user refused") + type Config struct — darwin/amd64, js/wasm, windows/amd64 + App string + type Config struct — linux/amd64 + type Looper func(identifier string) (next bool) + type SafeData struct + func NewSafeData(config Config) *SafeData + func (s *SafeData) Configure(config Config) + func (s *SafeData) Get(identifier string) (Secret, error) + func (s *SafeData) List(looper Looper) error + func (s *SafeData) Remove(identifier string) error + func (s *SafeData) Set(secret Secret) error + func (s *SafeData) View(identifier string, out *Secret) error + type Secret struct + Data []byte + Description string + Identifier string