Versions in this module Expand all Collapse all v0 v0.13.0 Nov 22, 2024 Changes in this version + const CRED_MAX_CREDENTIAL_BLOB_SIZE — windows/amd64 + const CRED_MAX_GENERIC_TARGET_NAME_LENGTH — windows/amd64 + const CRED_MAX_USERNAME_LENGTH — windows/amd64 + const ZetaUserName — linux/amd64 + var ErrNotFound = errors.New("secret not found in keyring") + var ErrSetDataTooBig = errors.New("data passed to Set was too big") + var ErrUnsupportedPlatform = errors.New("unsupported platform: " + runtime.GOOS) + func Discard(ctx context.Context, targetName string) error + func Quote(s string) string — darwin/amd64 + func Store(ctx context.Context, targetName string, c *Cred) error + type Cred struct + Password string + UserName string + func Find(ctx context.Context, targetName string) (*Cred, error) + type Keyring interface + Discard func(ctx context.Context, targetName string) error + Find func(ctx context.Context, targetName string) (*Cred, error) + Store func(ctx context.Context, targetName string, c *Cred) error