Versions in this module Expand all Collapse all v5 v5.0.3 Jul 10, 2026 Changes in this version + const KeychainServiceName + var ErrKeychainNotSupported = errors.New(context.Background(), "keychain storage is supported on macOS only in v1") + func NormalizePath(path string) (string, error) + type ApiUrl string + func (a ApiUrl) Key() (Key, error) + func (a ApiUrl) String() string + type Config struct + CacheEnabled bool + Password Password + Timeout libtime.Duration + Url Url + User User + func ParseTeamvaultConfig(content []byte) (*Config, error) + type ConfigGenerator interface + Generate func(ctx context.Context, sourceDirectory SourceDirectory, ...) error + func NewConfigGenerator(configParser ConfigParser) ConfigGenerator + type ConfigParser interface + Parse func(ctx context.Context, content []byte) ([]byte, error) + func NewConfigParser(teamvaultConnector Connector) ConfigParser + type Connector interface + File func(ctx context.Context, key Key) (File, error) + Password func(ctx context.Context, key Key) (Password, error) + Search func(ctx context.Context, name string) ([]Key, error) + Url func(ctx context.Context, key Key) (Url, error) + User func(ctx context.Context, key Key) (User, error) + func NewCacheConnector(connector Connector) Connector + func NewDiskFallbackConnector(connector Connector) Connector + func NewDummyConnector() Connector + func NewRemoteConnector(httpClient *http.Client, url Url, user User, pass Password, ...) Connector + type CurrentRevision string + func (t CurrentRevision) String() string + type File string + func (t File) Content() ([]byte, error) + func (t File) String() string + type HtpasswdGenerator interface + Generate func(ctx context.Context, key Key) ([]byte, error) + func NewHtpasswdGenerator(connector Connector) HtpasswdGenerator + type Key string + func (k Key) String() string + func (k Key) Validate(ctx context.Context) error + type Keychain interface + ReadPassword func(ctx context.Context, url Url) (Password, error) + WritePassword func(ctx context.Context, url Url, password Password) error + func NewKeychain() Keychain + func NewKeychainWithClient(client KeyringClient) Keychain + type KeyringClient interface — darwin/amd64, linux/amd64, windows/amd64 + Get func(service, user string) (string, error) + Set func(service, user, password string) error + type Password string + func (t *Password) UnmarshalJSON(data []byte) error + func (t Password) String() string + type RealKeyringClient struct — darwin/amd64, linux/amd64, windows/amd64 + func (RealKeyringClient) Get(service, user string) (string, error) + func (RealKeyringClient) Set(service, user, password string) error + type SourceDirectory string + func (s SourceDirectory) String() string + type Staging bool + func (s Staging) Bool() bool + type TargetDirectory string + func (t TargetDirectory) String() string + type TeamvaultConfigPath string + func (t TeamvaultConfigPath) Exists() bool + func (t TeamvaultConfigPath) NormalizePath() (TeamvaultConfigPath, error) + func (t TeamvaultConfigPath) Parse() (*Config, error) + func (t TeamvaultConfigPath) String() string + type Url string + func (u Url) String() string + type User string + func (u *User) UnmarshalJSON(data []byte) error + func (u User) String() string v5.0.2 Jul 9, 2026 v5.0.1 Jul 9, 2026 v5.0.0 Jul 9, 2026