Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Template is the content template of a credential. // credentials files are .toml files. Template = `` /* 288-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func CopyClipboard ¶
CopyClipboard copies the password field to the clipboard.
func EmptyClipboard ¶
func EmptyClipboard() error
EmptyClipboard deletes the content of the clipboard.
func GeneratePassword ¶
GeneratePassword generates a random password
func LogFields ¶
LogFields prints in the terminal the the most important fields of the credential file.
func ValidateFile ¶
ValidateFile validates a file as toml credential file.
Types ¶
type Credential ¶
type Credential struct { Login string `toml:"login"` Password string `toml:"password"` Email string `toml:"email"` ApiKey string `toml:"api_key"` ApiSecret string `toml:"api_secret"` ApiName string `toml:"api_name"` ApiPassphrase string `toml:"api_passphrase"` VerificationCode string `toml:"verification_code"` TwoFactorAuth string `toml:"two_factor_auth"` // All other stuff here as multiline Remarks string `toml:"remarks"` }
A Credential contains all relevant information for accessing and controlling an online resource (password/s, api keys, 2FA backup code)
Click to show internal directories.
Click to hide internal directories.