Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cobra.Command{ Use: "ssh-key", Short: "Manage SSH keys", Run: func(cmd *cobra.Command, args []string) { fmt.Println("Key requires a subcommand:") for _, command := range cmd.Commands() { fmt.Println(command.Name()) } }, }
Command represents this folder's command
Functions ¶
Types ¶
type SSHKey ¶
type SSHKey struct {
Type string `json:"type" mapstructure:"type"`
ID common.UUID `json:"uuid" mapstructure:"uuid"`
Label string `json:"label" mapstructure:"label"`
Comment string `json:"comment" mapstructure:"comment"`
Key string `json:"key" mapstructure:"key"`
Fingerprint string `json:"fingerprint" mapstructure:"fingerprint"`
CreatedOn time.Time `json:"created_on" mapstructure:"created_on"`
ExpiresOn time.Time `json:"expires_on" mapstructure:"expires_on"`
LastUsed time.Time `json:"last_used" mapstructure:"last_used"`
Owner user.User `json:"owner" mapstructure:"owner"`
Links common.Links `json:"links" mapstructure:"links"`
}
func GetSSHKeys ¶
GetSSHKeys gets the SSHKeys
Click to show internal directories.
Click to hide internal directories.