Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Username string Passphrase string UserKey keys.KeyEntry )
View Source
var Cmd = &cobra.Command{ Use: "key", Aliases: []string{"k"}, Short: "Manage local keyring", }
View Source
var ExportCmd = &cobra.Command{ Use: "export <username>", Short: "Import a raw private key from base64-formatted string", Args: cobra.MinimumNArgs(1), RunE: exportFunc, }
View Source
var GenCmd = &cobra.Command{ Use: "generate <username>", Short: "Generate a key with a specified username", Args: cobra.MinimumNArgs(1), RunE: genFunc, }
View Source
var ImportCmd = &cobra.Command{ Use: "import <private key> --username <username>", Short: "Import a raw private key from base64-formatted string", Args: cobra.MinimumNArgs(1), RunE: importFunc, }
View Source
var ListCmd = &cobra.Command{ Use: "list", Short: "Show all of keys stored on the local storage", Args: cobra.NoArgs, RunE: listFunc, }
View Source
var RemoveCmd = &cobra.Command{ Use: "remove <username>", Short: "Remove the specified key", Args: cobra.MinimumNArgs(1), RunE: removeFunc, }
Functions ¶
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.