cli

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultKeyringName = "alicloud-vault"
)

Variables

View Source
var GlobalFlags struct {
	Debug        bool
	Backend      string
	KeychainName string
	PassDir      string
	PassCmd      string
	PassPrefix   string
}

Functions

func AddCommand

func AddCommand(app *kingpin.Application, input AddCommandInput)

func ConfigureAddCommand

func ConfigureAddCommand(app *kingpin.Application)

func ConfigureExecCommand

func ConfigureExecCommand(app *kingpin.Application)

func ConfigureGlobals

func ConfigureGlobals(app *kingpin.Application)

ConfigureGlobals configures all global keyring settings

func ConfigureListCommand

func ConfigureListCommand(app *kingpin.Application)

func ConfigureRemoveCommand

func ConfigureRemoveCommand(app *kingpin.Application)

func ConfigureRotateCommand

func ConfigureRotateCommand(app *kingpin.Application)

func ExecCommand

func ExecCommand(input ExecCommandInput) error

func LsCommand

func LsCommand(input LsCommandInput) error

func RemoveCommand

func RemoveCommand(app *kingpin.Application, input RemoveCommandInput)

func RotateCommand

func RotateCommand(input RotateCommandInput) error

Types

type AddCommandInput

type AddCommandInput struct {
	ProfileName string
	Keyring     *vault.CredentialKeyring
	FromEnv     bool
}

type ExecCommandInput

type ExecCommandInput struct {
	ProfileName     string
	Command         string
	Args            []string
	Keyring         keyring.Keyring
	Config          vault.Config
	SessionDuration int
	// contains filtered or unexported fields
}

type LsCommandInput

type LsCommandInput struct {
	Keyring         *vault.CredentialKeyring
	OnlyProfiles    bool
	OnlyCredentials bool
}

type RemoveCommandInput

type RemoveCommandInput struct {
	ProfileName     string
	AliyunCliProfil bool
	Keyring         *vault.CredentialKeyring
}

type RotateCommandInput

type RotateCommandInput struct {
	ProfileName string
	UserName    string
	Keyring     *vault.CredentialKeyring
}

Jump to

Keyboard shortcuts

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