Documentation ¶
Index ¶
- Constants
- func ReadPassword(msg string) (string, error)
- func ShowKeys(keyfile string) error
- type Baccount
- func (b *Baccount) AddProfile(name, datafile string) error
- func (b *Baccount) GetDefault() (*Profile, error)
- func (b *Baccount) GetProfile(name string) (*Profile, error)
- func (b *Baccount) List() error
- func (b *Baccount) Show(site *Site) subcommands.ExitStatus
- func (b *Baccount) Update(name, site, datafile string) error
- func (b *Baccount) UpdateConfigFile(dest string) error
- type Coder
- type Profile
- type Site
Constants ¶
View Source
const Version = "0.1.0"
Variables ¶
This section is empty.
Functions ¶
func ReadPassword ¶
Types ¶
type Baccount ¶
type Baccount struct { Profiles []*Profile DefaultMail string // Used for private key seek Version string ReadOnly bool }
func LoadAccounts ¶
func (*Baccount) AddProfile ¶
func (*Baccount) GetDefault ¶
func (*Baccount) Show ¶
func (b *Baccount) Show(site *Site) subcommands.ExitStatus
func (*Baccount) UpdateConfigFile ¶
type Coder ¶
type Coder struct {
// contains filtered or unexported fields
}
func NewTestCoder ¶
func NewTestCoder() *Coder
func (*Coder) PublicKeyringFile ¶
func (*Coder) SecretKeyringFile ¶
func (*Coder) SetPassphrase ¶
func (coder *Coder) SetPassphrase()
type Profile ¶
type Profile struct { // This mail address corresponds to login info Name string Sites map[string]*Site Default bool }
func NewProfile ¶
func (*Profile) SetDefault ¶
func (*Profile) UpdateSite ¶
Click to show internal directories.
Click to hide internal directories.