Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CloseDatabase = closeDatabase
CloseDatabase opens the database before running a subcommand.
View Source
var Command = exec.Command
Command returns the Cmd struct to execute the named program
View Source
var OpenDatabase = openDatabase
OpenDatabase opens the database before running a subcommand.
View Source
var Remove = os.Remove
Remove removes the named file or (empty) directory.
View Source
var Stat = os.Stat
Stat returns a FileInfo describing the named file.
Functions ¶
func NewRootCommand ¶
NewRootCommand creates the parent of all subcommands.
Types ¶
type PasswordType ¶
type PasswordType string
PasswordType is an enum of possible password types.
const ( // PasswordTypePlain is a password sent to a server as-is. PasswordTypePlain PasswordType = "plain" // PasswordTypeTotp is a TOTP shared secret. PasswordTypeTotp PasswordType = "totp" )
func (*PasswordType) Set ¶
func (t *PasswordType) Set(v string) error
Set sets the value of `t` from `v`.
func (*PasswordType) String ¶
func (t *PasswordType) String() string
func (*PasswordType) Type ¶
func (t *PasswordType) Type() string
Type returns the type of `t` as a string.
type XMLMachine ¶
type XMLMachine struct { XMLName xml.Name `xml:"node"` Label string `xml:"label,attr"` Services []XMLService `xml:"node"` }
XMLMachine is the 1st <node> element from cpm's XML database.
type XMLMachines ¶
type XMLMachines struct { XMLName xml.Name `xml:"root"` Machines []XMLMachine `xml:"node"` }
XMLMachines is the <root> element from cpm's XML database.
type XMLPassword ¶
type XMLPassword struct { XMLName xml.Name `xml:"node"` Label string `xml:"label,attr"` Totp string `xml:"totp,attr"` }
XMLPassword is the 4th <node> element from cpm's XML database.
Click to show internal directories.
Click to hide internal directories.