auth

package
v0.2.12-dev.5 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GenerateCommand = &cli.Command{
	Name:    "generate",
	Aliases: []string{"gen", "new"},
	Usage:   "Generate a new private key and optionally store it in OS keyring",
	Flags: append(common.GlobalFlags, []cli.Flag{
		common.EnvironmentFlag,
		&cli.BoolFlag{
			Name:    "store",
			Aliases: []string{"s"},
			Usage:   "Automatically store the generated key in OS keyring",
		},
	}...),
	Action: generateAction,
}
View Source
var ListCommand = &cli.Command{
	Name:   "list",
	Usage:  "List all stored private keys by deployment environment",
	Flags:  common.GlobalFlags,
	Action: listAction,
}
View Source
var LoginCommand = &cli.Command{
	Name:  "login",
	Usage: "Store an existing private key in OS keyring",
	Flags: append(common.GlobalFlags, []cli.Flag{
		common.EnvironmentFlag,
	}...),
	Action: loginAction,
}
View Source
var LogoutCommand = &cli.Command{
	Name:  "logout",
	Usage: "Remove private key from OS keyring",
	Flags: append(common.GlobalFlags, []cli.Flag{
		common.EnvironmentFlag,
		common.ForceFlag,
	}...),
	Action: logoutAction,
}
View Source
var WhoamiCommand = &cli.Command{
	Name:  "whoami",
	Usage: "Show current authentication status and address",
	Flags: append(common.GlobalFlags, []cli.Flag{
		common.EnvironmentFlag,
	}...),
	Action: whoamiAction,
}

Functions

func GetPrivateKeyWithSource

func GetPrivateKeyWithSource(cCtx *cli.Context) (string, string, error)

GetPrivateKeyWithSource tries to get private key from multiple sources and returns the source

func ListStoredKeys

func ListStoredKeys() (map[string]string, error)

ListStoredKeys returns all stored key environments

Types

This section is empty.

Jump to

Keyboard shortcuts

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