key

package
v1.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

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

func GetUserKey

func GetUserKey(path string) (keys.KeyEntry, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL