Documentation
¶
Overview ¶
Package profiles stores named credential profiles in ~/.config/bitbottle/profiles.yml. Each profile is a set of Bitbucket credentials (hostname, token, user, etc.) that can be switched as a unit, similar to how kubectl manages contexts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NamedProfile ¶
NamedProfile is a Profile annotated with its store key, used for listing.
type Profile ¶
type Profile struct {
Hostname string `yaml:"hostname"`
Token string `yaml:"token"`
User string `yaml:"user,omitempty"`
AuthUser string `yaml:"auth_user,omitempty"`
SkipTLSVerify bool `yaml:"skip_tls_verify,omitempty"`
BackendType string `yaml:"backend_type,omitempty"` // "server" | "cloud" | "" (auto)
GitProtocol string `yaml:"git_protocol,omitempty"` // "https" | "ssh"
}
Profile is a named set of Bitbucket credentials.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a thread-safe handle to profiles.yml.
func (*Store) All ¶
func (s *Store) All() []NamedProfile
All returns all profiles as a sorted slice of NamedProfile.
Click to show internal directories.
Click to hide internal directories.