Documentation
¶
Index ¶
- Constants
- Variables
- func DefaultTokenHelper() (token.TokenHelper, error)
- func Format(ui cli.Ui) string
- func MakeShutdownCh() chan struct{}
- func MakeSighupCh() chan struct{}
- func OutputData(ui cli.Ui, data interface{}) int
- func OutputList(ui cli.Ui, data interface{}) int
- func OutputSealStatus(ui cli.Ui, client *api.Client, status *api.SealStatusResponse) int
- func OutputSecret(ui cli.Ui, secret *api.Secret) int
- func PredictClient() *api.Client
- func PrintRaw(ui cli.Ui, str string) int
- func PrintRawField(ui cli.Ui, secret *api.Secret, field string) int
- func RawField(secret *api.Secret, field string) (interface{}, bool)
- func Run(args []string) int
- type AuditCommand
- type AuditDisableCommand
- func (c *AuditDisableCommand) AutocompleteArgs() complete.Predictor
- func (c *AuditDisableCommand) AutocompleteFlags() complete.Flags
- func (c *AuditDisableCommand) Flags() *FlagSets
- func (c *AuditDisableCommand) Help() string
- func (c *AuditDisableCommand) Run(args []string) int
- func (c *AuditDisableCommand) Synopsis() string
- type AuditEnableCommand
- func (c *AuditEnableCommand) AutocompleteArgs() complete.Predictor
- func (c *AuditEnableCommand) AutocompleteFlags() complete.Flags
- func (c *AuditEnableCommand) Flags() *FlagSets
- func (c *AuditEnableCommand) Help() string
- func (c *AuditEnableCommand) Run(args []string) int
- func (c *AuditEnableCommand) Synopsis() string
- type AuditListCommand
- func (c *AuditListCommand) AutocompleteArgs() complete.Predictor
- func (c *AuditListCommand) AutocompleteFlags() complete.Flags
- func (c *AuditListCommand) Flags() *FlagSets
- func (c *AuditListCommand) Help() string
- func (c *AuditListCommand) Run(args []string) int
- func (c *AuditListCommand) Synopsis() string
- type AuthCommand
- type AuthDisableCommand
- func (c *AuthDisableCommand) AutocompleteArgs() complete.Predictor
- func (c *AuthDisableCommand) AutocompleteFlags() complete.Flags
- func (c *AuthDisableCommand) Flags() *FlagSets
- func (c *AuthDisableCommand) Help() string
- func (c *AuthDisableCommand) Run(args []string) int
- func (c *AuthDisableCommand) Synopsis() string
- type AuthEnableCommand
- func (c *AuthEnableCommand) AutocompleteArgs() complete.Predictor
- func (c *AuthEnableCommand) AutocompleteFlags() complete.Flags
- func (c *AuthEnableCommand) Flags() *FlagSets
- func (c *AuthEnableCommand) Help() string
- func (c *AuthEnableCommand) Run(args []string) int
- func (c *AuthEnableCommand) Synopsis() string
- type AuthHelpCommand
- func (c *AuthHelpCommand) AutocompleteArgs() complete.Predictor
- func (c *AuthHelpCommand) AutocompleteFlags() complete.Flags
- func (c *AuthHelpCommand) Flags() *FlagSets
- func (c *AuthHelpCommand) Help() string
- func (c *AuthHelpCommand) Run(args []string) int
- func (c *AuthHelpCommand) Synopsis() string
- type AuthListCommand
- func (c *AuthListCommand) AutocompleteArgs() complete.Predictor
- func (c *AuthListCommand) AutocompleteFlags() complete.Flags
- func (c *AuthListCommand) Flags() *FlagSets
- func (c *AuthListCommand) Help() string
- func (c *AuthListCommand) Run(args []string) int
- func (c *AuthListCommand) Synopsis() string
- type AuthTuneCommand
- func (c *AuthTuneCommand) AutocompleteArgs() complete.Predictor
- func (c *AuthTuneCommand) AutocompleteFlags() complete.Flags
- func (c *AuthTuneCommand) Flags() *FlagSets
- func (c *AuthTuneCommand) Help() string
- func (c *AuthTuneCommand) Run(args []string) int
- func (c *AuthTuneCommand) Synopsis() string
- type BaseCommand
- func (c *BaseCommand) Client() (*api.Client, error)
- func (c *BaseCommand) DefaultWrappingLookupFunc(operation, path string) string
- func (b *BaseCommand) PredictVaultAudits() complete.Predictor
- func (b *BaseCommand) PredictVaultAuths() complete.Predictor
- func (b *BaseCommand) PredictVaultAvailableAuths() complete.Predictor
- func (b *BaseCommand) PredictVaultAvailableMounts() complete.Predictor
- func (b *BaseCommand) PredictVaultFiles() complete.Predictor
- func (b *BaseCommand) PredictVaultFolders() complete.Predictor
- func (b *BaseCommand) PredictVaultMounts() complete.Predictor
- func (b *BaseCommand) PredictVaultPolicies() complete.Predictor
- func (c *BaseCommand) TokenHelper() (token.TokenHelper, error)
- type BoolVar
- type DefaultConfig
- type DeleteCommand
- type DeprecatedCommand
- type DurationVar
- type FlagBool
- type FlagExample
- type FlagSet
- func (f *FlagSet) BoolVar(i *BoolVar)
- func (f *FlagSet) DurationVar(i *DurationVar)
- func (f *FlagSet) Float64Var(i *Float64Var)
- func (f *FlagSet) Int64Var(i *Int64Var)
- func (f *FlagSet) IntVar(i *IntVar)
- func (f *FlagSet) Name() string
- func (f *FlagSet) StringMapVar(i *StringMapVar)
- func (f *FlagSet) StringSliceVar(i *StringSliceVar)
- func (f *FlagSet) StringVar(i *StringVar)
- func (f *FlagSet) Uint64Var(i *Uint64Var)
- func (f *FlagSet) UintVar(i *UintVar)
- func (f *FlagSet) Var(value flag.Value, name, usage string)
- func (f *FlagSet) VarFlag(i *VarFlag)
- func (f *FlagSet) Visit(fn func(*flag.Flag))
- func (f *FlagSet) VisitAll(fn func(*flag.Flag))
- type FlagSetBit
- type FlagSets
- type FlagVisibility
- type Float64Var
- type FormatOptions
- type Formatter
- type Int64Var
- type IntVar
- type JsonFormatter
- type LeaseCommand
- type LeaseRenewCommand
- func (c *LeaseRenewCommand) AutocompleteArgs() complete.Predictor
- func (c *LeaseRenewCommand) AutocompleteFlags() complete.Flags
- func (c *LeaseRenewCommand) Flags() *FlagSets
- func (c *LeaseRenewCommand) Help() string
- func (c *LeaseRenewCommand) Run(args []string) int
- func (c *LeaseRenewCommand) Synopsis() string
- type LeaseRevokeCommand
- func (c *LeaseRevokeCommand) AutocompleteArgs() complete.Predictor
- func (c *LeaseRevokeCommand) AutocompleteFlags() complete.Flags
- func (c *LeaseRevokeCommand) Flags() *FlagSets
- func (c *LeaseRevokeCommand) Help() string
- func (c *LeaseRevokeCommand) Run(args []string) int
- func (c *LeaseRevokeCommand) Synopsis() string
- type ListCommand
- type LoginCommand
- type LoginHandler
- type OperatorCommand
- type OperatorGenerateRootCommand
- func (c *OperatorGenerateRootCommand) AutocompleteArgs() complete.Predictor
- func (c *OperatorGenerateRootCommand) AutocompleteFlags() complete.Flags
- func (c *OperatorGenerateRootCommand) Flags() *FlagSets
- func (c *OperatorGenerateRootCommand) Help() string
- func (c *OperatorGenerateRootCommand) Run(args []string) int
- func (c *OperatorGenerateRootCommand) Synopsis() string
- type OperatorInitCommand
- func (c *OperatorInitCommand) AutocompleteArgs() complete.Predictor
- func (c *OperatorInitCommand) AutocompleteFlags() complete.Flags
- func (c *OperatorInitCommand) Flags() *FlagSets
- func (c *OperatorInitCommand) Help() string
- func (c *OperatorInitCommand) Run(args []string) int
- func (c *OperatorInitCommand) Synopsis() string
- type OperatorKeyStatusCommand
- func (c *OperatorKeyStatusCommand) AutocompleteArgs() complete.Predictor
- func (c *OperatorKeyStatusCommand) AutocompleteFlags() complete.Flags
- func (c *OperatorKeyStatusCommand) Flags() *FlagSets
- func (c *OperatorKeyStatusCommand) Help() string
- func (c *OperatorKeyStatusCommand) Run(args []string) int
- func (c *OperatorKeyStatusCommand) Synopsis() string
- type OperatorRekeyCommand
- func (c *OperatorRekeyCommand) AutocompleteArgs() complete.Predictor
- func (c *OperatorRekeyCommand) AutocompleteFlags() complete.Flags
- func (c *OperatorRekeyCommand) Flags() *FlagSets
- func (c *OperatorRekeyCommand) Help() string
- func (c *OperatorRekeyCommand) Run(args []string) int
- func (c *OperatorRekeyCommand) Synopsis() string
- type OperatorRotateCommand
- func (c *OperatorRotateCommand) AutocompleteArgs() complete.Predictor
- func (c *OperatorRotateCommand) AutocompleteFlags() complete.Flags
- func (c *OperatorRotateCommand) Flags() *FlagSets
- func (c *OperatorRotateCommand) Help() string
- func (c *OperatorRotateCommand) Run(args []string) int
- func (c *OperatorRotateCommand) Synopsis() string
- type OperatorSealCommand
- func (c *OperatorSealCommand) AutocompleteArgs() complete.Predictor
- func (c *OperatorSealCommand) AutocompleteFlags() complete.Flags
- func (c *OperatorSealCommand) Flags() *FlagSets
- func (c *OperatorSealCommand) Help() string
- func (c *OperatorSealCommand) Run(args []string) int
- func (c *OperatorSealCommand) Synopsis() string
- type OperatorStepDownCommand
- func (c *OperatorStepDownCommand) AutocompleteArgs() complete.Predictor
- func (c *OperatorStepDownCommand) AutocompleteFlags() complete.Flags
- func (c *OperatorStepDownCommand) Flags() *FlagSets
- func (c *OperatorStepDownCommand) Help() string
- func (c *OperatorStepDownCommand) Run(args []string) int
- func (c *OperatorStepDownCommand) Synopsis() string
- type OperatorUnsealCommand
- func (c *OperatorUnsealCommand) AutocompleteArgs() complete.Predictor
- func (c *OperatorUnsealCommand) AutocompleteFlags() complete.Flags
- func (c *OperatorUnsealCommand) Flags() *FlagSets
- func (c *OperatorUnsealCommand) Help() string
- func (c *OperatorUnsealCommand) Run(args []string) int
- func (c *OperatorUnsealCommand) Synopsis() string
- type PathHelpCommand
- func (c *PathHelpCommand) AutocompleteArgs() complete.Predictor
- func (c *PathHelpCommand) AutocompleteFlags() complete.Flags
- func (c *PathHelpCommand) Flags() *FlagSets
- func (c *PathHelpCommand) Help() string
- func (c *PathHelpCommand) Run(args []string) int
- func (c *PathHelpCommand) Synopsis() string
- type PoliciesDeprecatedCommand
- type PolicyCommand
- type PolicyDeleteCommand
- func (c *PolicyDeleteCommand) AutocompleteArgs() complete.Predictor
- func (c *PolicyDeleteCommand) AutocompleteFlags() complete.Flags
- func (c *PolicyDeleteCommand) Flags() *FlagSets
- func (c *PolicyDeleteCommand) Help() string
- func (c *PolicyDeleteCommand) Run(args []string) int
- func (c *PolicyDeleteCommand) Synopsis() string
- type PolicyFmtCommand
- func (c *PolicyFmtCommand) AutocompleteArgs() complete.Predictor
- func (c *PolicyFmtCommand) AutocompleteFlags() complete.Flags
- func (c *PolicyFmtCommand) Flags() *FlagSets
- func (c *PolicyFmtCommand) Help() string
- func (c *PolicyFmtCommand) Run(args []string) int
- func (c *PolicyFmtCommand) Synopsis() string
- type PolicyListCommand
- func (c *PolicyListCommand) AutocompleteArgs() complete.Predictor
- func (c *PolicyListCommand) AutocompleteFlags() complete.Flags
- func (c *PolicyListCommand) Flags() *FlagSets
- func (c *PolicyListCommand) Help() string
- func (c *PolicyListCommand) Run(args []string) int
- func (c *PolicyListCommand) Synopsis() string
- type PolicyReadCommand
- func (c *PolicyReadCommand) AutocompleteArgs() complete.Predictor
- func (c *PolicyReadCommand) AutocompleteFlags() complete.Flags
- func (c *PolicyReadCommand) Flags() *FlagSets
- func (c *PolicyReadCommand) Help() string
- func (c *PolicyReadCommand) Run(args []string) int
- func (c *PolicyReadCommand) Synopsis() string
- type PolicyWriteCommand
- func (c *PolicyWriteCommand) AutocompleteArgs() complete.Predictor
- func (c *PolicyWriteCommand) AutocompleteFlags() complete.Flags
- func (c *PolicyWriteCommand) Flags() *FlagSets
- func (c *PolicyWriteCommand) Help() string
- func (c *PolicyWriteCommand) Run(args []string) int
- func (c *PolicyWriteCommand) Synopsis() string
- type Predict
- func (p *Predict) Client() *api.Client
- func (p *Predict) VaultAudits() complete.Predictor
- func (p *Predict) VaultAuths() complete.Predictor
- func (p *Predict) VaultFiles() complete.Predictor
- func (p *Predict) VaultFolders() complete.Predictor
- func (p *Predict) VaultMounts() complete.Predictor
- func (p *Predict) VaultPolicies() complete.Predictor
- type ReadCommand
- type SSHCommand
- type SSHCredentialResp
- type SecretsCommand
- type SecretsDisableCommand
- func (c *SecretsDisableCommand) AutocompleteArgs() complete.Predictor
- func (c *SecretsDisableCommand) AutocompleteFlags() complete.Flags
- func (c *SecretsDisableCommand) Flags() *FlagSets
- func (c *SecretsDisableCommand) Help() string
- func (c *SecretsDisableCommand) Run(args []string) int
- func (c *SecretsDisableCommand) Synopsis() string
- type SecretsEnableCommand
- func (c *SecretsEnableCommand) AutocompleteArgs() complete.Predictor
- func (c *SecretsEnableCommand) AutocompleteFlags() complete.Flags
- func (c *SecretsEnableCommand) Flags() *FlagSets
- func (c *SecretsEnableCommand) Help() string
- func (c *SecretsEnableCommand) Run(args []string) int
- func (c *SecretsEnableCommand) Synopsis() string
- type SecretsListCommand
- func (c *SecretsListCommand) AutocompleteArgs() complete.Predictor
- func (c *SecretsListCommand) AutocompleteFlags() complete.Flags
- func (c *SecretsListCommand) Flags() *FlagSets
- func (c *SecretsListCommand) Help() string
- func (c *SecretsListCommand) Run(args []string) int
- func (c *SecretsListCommand) Synopsis() string
- type SecretsMoveCommand
- func (c *SecretsMoveCommand) AutocompleteArgs() complete.Predictor
- func (c *SecretsMoveCommand) AutocompleteFlags() complete.Flags
- func (c *SecretsMoveCommand) Flags() *FlagSets
- func (c *SecretsMoveCommand) Help() string
- func (c *SecretsMoveCommand) Run(args []string) int
- func (c *SecretsMoveCommand) Synopsis() string
- type SecretsTuneCommand
- func (c *SecretsTuneCommand) AutocompleteArgs() complete.Predictor
- func (c *SecretsTuneCommand) AutocompleteFlags() complete.Flags
- func (c *SecretsTuneCommand) Flags() *FlagSets
- func (c *SecretsTuneCommand) Help() string
- func (c *SecretsTuneCommand) Run(args []string) int
- func (c *SecretsTuneCommand) Synopsis() string
- type ServerCommand
- func (c *ServerCommand) AutocompleteArgs() complete.Predictor
- func (c *ServerCommand) AutocompleteFlags() complete.Flags
- func (c *ServerCommand) Flags() *FlagSets
- func (c *ServerCommand) Help() string
- func (c *ServerCommand) Reload(lock *sync.RWMutex, reloadFuncs *map[string][]reload.ReloadFunc, ...) error
- func (c *ServerCommand) Run(args []string) int
- func (c *ServerCommand) Synopsis() string
- type StatusCommand
- type StringMapVar
- type StringSliceVar
- type StringVar
- type TableFormatter
- func (t TableFormatter) Format(data interface{}) ([]byte, error)
- func (t TableFormatter) Output(ui cli.Ui, secret *api.Secret, data interface{}) error
- func (t TableFormatter) OutputList(ui cli.Ui, secret *api.Secret, data interface{}) error
- func (t TableFormatter) OutputSecret(ui cli.Ui, secret *api.Secret) error
- type TokenCapabilitiesCommand
- func (c *TokenCapabilitiesCommand) AutocompleteArgs() complete.Predictor
- func (c *TokenCapabilitiesCommand) AutocompleteFlags() complete.Flags
- func (c *TokenCapabilitiesCommand) Flags() *FlagSets
- func (c *TokenCapabilitiesCommand) Help() string
- func (c *TokenCapabilitiesCommand) Run(args []string) int
- func (c *TokenCapabilitiesCommand) Synopsis() string
- type TokenCommand
- type TokenCreateCommand
- func (c *TokenCreateCommand) AutocompleteArgs() complete.Predictor
- func (c *TokenCreateCommand) AutocompleteFlags() complete.Flags
- func (c *TokenCreateCommand) Flags() *FlagSets
- func (c *TokenCreateCommand) Help() string
- func (c *TokenCreateCommand) Run(args []string) int
- func (c *TokenCreateCommand) Synopsis() string
- type TokenLookupCommand
- func (c *TokenLookupCommand) AutocompleteArgs() complete.Predictor
- func (c *TokenLookupCommand) AutocompleteFlags() complete.Flags
- func (c *TokenLookupCommand) Flags() *FlagSets
- func (c *TokenLookupCommand) Help() string
- func (c *TokenLookupCommand) Run(args []string) int
- func (c *TokenLookupCommand) Synopsis() string
- type TokenRenewCommand
- func (c *TokenRenewCommand) AutocompleteArgs() complete.Predictor
- func (c *TokenRenewCommand) AutocompleteFlags() complete.Flags
- func (c *TokenRenewCommand) Flags() *FlagSets
- func (c *TokenRenewCommand) Help() string
- func (c *TokenRenewCommand) Run(args []string) int
- func (c *TokenRenewCommand) Synopsis() string
- type TokenRevokeCommand
- func (c *TokenRevokeCommand) AutocompleteArgs() complete.Predictor
- func (c *TokenRevokeCommand) AutocompleteFlags() complete.Flags
- func (c *TokenRevokeCommand) Flags() *FlagSets
- func (c *TokenRevokeCommand) Help() string
- func (c *TokenRevokeCommand) Run(args []string) int
- func (c *TokenRevokeCommand) Synopsis() string
- type Uint64Var
- type UintVar
- type UnwrapCommand
- type VarFlag
- type VaultUI
- type VersionCommand
- type WriteCommand
- type YamlFormatter
Constants ¶
const ( // EnvVaultCLINoColor is an env var that toggles colored UI output. EnvVaultCLINoColor = `VAULT_CLI_NO_COLOR` // EnvVaultFormat is the output format EnvVaultFormat = `VAULT_FORMAT` )
const ( // DefaultConfigPath is the default path to the configuration file DefaultConfigPath = "~/.vault" // ConfigPathEnv is the environment variable that can be used to // override where the Vault configuration is. ConfigPathEnv = "VAULT_CONFIG_PATH" )
Variables ¶
var Commands map[string]cli.CommandFactory
Commands is the mapping of all the available commands.
var DeprecatedCommands map[string]cli.CommandFactory
var Formatters = map[string]Formatter{ "json": JsonFormatter{}, "table": TableFormatter{}, "yaml": YamlFormatter{}, "yml": YamlFormatter{}, }
Functions ¶
func DefaultTokenHelper ¶
func DefaultTokenHelper() (token.TokenHelper, error)
DefaultTokenHelper returns the token helper that is configured for Vault.
func MakeShutdownCh ¶
func MakeShutdownCh() chan struct{}
MakeShutdownCh returns a channel that can be used for shutdown notifications for commands. This channel will send a message for every SIGINT or SIGTERM received.
func MakeSighupCh ¶
func MakeSighupCh() chan struct{}
MakeSighupCh returns a channel that can be used for SIGHUP reloading. This channel will send a message for every SIGHUP received.
func OutputData ¶
func OutputList ¶
func OutputSealStatus ¶
OutputSealStatus will print *api.SealStatusResponse in the CLI according to the format provided
func PredictClient ¶
PredictClient returns the cached API client for the predictor.
func PrintRaw ¶
PrintRaw prints a raw value to the terminal. If the process is being "piped" to something else, the "raw" value is printed without a newline character. Otherwise the value is printed as normal.
func PrintRawField ¶
PrintRawField prints raw field from the secret.
Types ¶
type AuditCommand ¶
type AuditCommand struct {
*BaseCommand
}
func (*AuditCommand) Help ¶
func (c *AuditCommand) Help() string
func (*AuditCommand) Run ¶
func (c *AuditCommand) Run(args []string) int
func (*AuditCommand) Synopsis ¶
func (c *AuditCommand) Synopsis() string
type AuditDisableCommand ¶
type AuditDisableCommand struct {
*BaseCommand
}
func (*AuditDisableCommand) AutocompleteArgs ¶
func (c *AuditDisableCommand) AutocompleteArgs() complete.Predictor
func (*AuditDisableCommand) AutocompleteFlags ¶
func (c *AuditDisableCommand) AutocompleteFlags() complete.Flags
func (*AuditDisableCommand) Flags ¶
func (c *AuditDisableCommand) Flags() *FlagSets
func (*AuditDisableCommand) Help ¶
func (c *AuditDisableCommand) Help() string
func (*AuditDisableCommand) Run ¶
func (c *AuditDisableCommand) Run(args []string) int
func (*AuditDisableCommand) Synopsis ¶
func (c *AuditDisableCommand) Synopsis() string
type AuditEnableCommand ¶
type AuditEnableCommand struct {
*BaseCommand
// contains filtered or unexported fields
}
func (*AuditEnableCommand) AutocompleteArgs ¶
func (c *AuditEnableCommand) AutocompleteArgs() complete.Predictor
func (*AuditEnableCommand) AutocompleteFlags ¶
func (c *AuditEnableCommand) AutocompleteFlags() complete.Flags
func (*AuditEnableCommand) Flags ¶
func (c *AuditEnableCommand) Flags() *FlagSets
func (*AuditEnableCommand) Help ¶
func (c *AuditEnableCommand) Help() string
func (*AuditEnableCommand) Run ¶
func (c *AuditEnableCommand) Run(args []string) int
func (*AuditEnableCommand) Synopsis ¶
func (c *AuditEnableCommand) Synopsis() string
type AuditListCommand ¶
type AuditListCommand struct {
*BaseCommand
// contains filtered or unexported fields
}
func (*AuditListCommand) AutocompleteArgs ¶
func (c *AuditListCommand) AutocompleteArgs() complete.Predictor
func (*AuditListCommand) AutocompleteFlags ¶
func (c *AuditListCommand) AutocompleteFlags() complete.Flags
func (*AuditListCommand) Flags ¶
func (c *AuditListCommand) Flags() *FlagSets
func (*AuditListCommand) Help ¶
func (c *AuditListCommand) Help() string
func (*AuditListCommand) Run ¶
func (c *AuditListCommand) Run(args []string) int
func (*AuditListCommand) Synopsis ¶
func (c *AuditListCommand) Synopsis() string
type AuthCommand ¶
type AuthCommand struct {
*BaseCommand
Handlers map[string]LoginHandler
// contains filtered or unexported fields
}
func (*AuthCommand) Help ¶
func (c *AuthCommand) Help() string
func (*AuthCommand) Run ¶
func (c *AuthCommand) Run(args []string) int
func (*AuthCommand) Synopsis ¶
func (c *AuthCommand) Synopsis() string
type AuthDisableCommand ¶
type AuthDisableCommand struct {
*BaseCommand
}
func (*AuthDisableCommand) AutocompleteArgs ¶
func (c *AuthDisableCommand) AutocompleteArgs() complete.Predictor
func (*AuthDisableCommand) AutocompleteFlags ¶
func (c *AuthDisableCommand) AutocompleteFlags() complete.Flags
func (*AuthDisableCommand) Flags ¶
func (c *AuthDisableCommand) Flags() *FlagSets
func (*AuthDisableCommand) Help ¶
func (c *AuthDisableCommand) Help() string
func (*AuthDisableCommand) Run ¶
func (c *AuthDisableCommand) Run(args []string) int
func (*AuthDisableCommand) Synopsis ¶
func (c *AuthDisableCommand) Synopsis() string
type AuthEnableCommand ¶
type AuthEnableCommand struct {
*BaseCommand
// contains filtered or unexported fields
}
func (*AuthEnableCommand) AutocompleteArgs ¶
func (c *AuthEnableCommand) AutocompleteArgs() complete.Predictor
func (*AuthEnableCommand) AutocompleteFlags ¶
func (c *AuthEnableCommand) AutocompleteFlags() complete.Flags
func (*AuthEnableCommand) Flags ¶
func (c *AuthEnableCommand) Flags() *FlagSets
func (*AuthEnableCommand) Help ¶
func (c *AuthEnableCommand) Help() string
func (*AuthEnableCommand) Run ¶
func (c *AuthEnableCommand) Run(args []string) int
func (*AuthEnableCommand) Synopsis ¶
func (c *AuthEnableCommand) Synopsis() string
type AuthHelpCommand ¶
type AuthHelpCommand struct {
*BaseCommand
Handlers map[string]LoginHandler
}
func (*AuthHelpCommand) AutocompleteArgs ¶
func (c *AuthHelpCommand) AutocompleteArgs() complete.Predictor
func (*AuthHelpCommand) AutocompleteFlags ¶
func (c *AuthHelpCommand) AutocompleteFlags() complete.Flags
func (*AuthHelpCommand) Flags ¶
func (c *AuthHelpCommand) Flags() *FlagSets
func (*AuthHelpCommand) Help ¶
func (c *AuthHelpCommand) Help() string
func (*AuthHelpCommand) Run ¶
func (c *AuthHelpCommand) Run(args []string) int
func (*AuthHelpCommand) Synopsis ¶
func (c *AuthHelpCommand) Synopsis() string
type AuthListCommand ¶
type AuthListCommand struct {
*BaseCommand
// contains filtered or unexported fields
}
func (*AuthListCommand) AutocompleteArgs ¶
func (c *AuthListCommand) AutocompleteArgs() complete.Predictor
func (*AuthListCommand) AutocompleteFlags ¶
func (c *AuthListCommand) AutocompleteFlags() complete.Flags
func (*AuthListCommand) Flags ¶
func (c *AuthListCommand) Flags() *FlagSets
func (*AuthListCommand) Help ¶
func (c *AuthListCommand) Help() string
func (*AuthListCommand) Run ¶
func (c *AuthListCommand) Run(args []string) int
func (*AuthListCommand) Synopsis ¶
func (c *AuthListCommand) Synopsis() string
type AuthTuneCommand ¶
type AuthTuneCommand struct {
*BaseCommand
// contains filtered or unexported fields
}
func (*AuthTuneCommand) AutocompleteArgs ¶
func (c *AuthTuneCommand) AutocompleteArgs() complete.Predictor
func (*AuthTuneCommand) AutocompleteFlags ¶
func (c *AuthTuneCommand) AutocompleteFlags() complete.Flags
func (*AuthTuneCommand) Flags ¶
func (c *AuthTuneCommand) Flags() *FlagSets
func (*AuthTuneCommand) Help ¶
func (c *AuthTuneCommand) Help() string
func (*AuthTuneCommand) Run ¶
func (c *AuthTuneCommand) Run(args []string) int
func (*AuthTuneCommand) Synopsis ¶
func (c *AuthTuneCommand) Synopsis() string
type BaseCommand ¶
func (*BaseCommand) Client ¶
func (c *BaseCommand) Client() (*api.Client, error)
Client returns the HTTP API client. The client is cached on the command to save performance on future calls.
func (*BaseCommand) DefaultWrappingLookupFunc ¶
func (c *BaseCommand) DefaultWrappingLookupFunc(operation, path string) string
DefaultWrappingLookupFunc is the default wrapping function based on the CLI flag.
func (*BaseCommand) PredictVaultAudits ¶
func (b *BaseCommand) PredictVaultAudits() complete.Predictor
PredictVaultAudits returns a predictor for "folders". See PredictVaultFiles for more information and restrictions.
func (*BaseCommand) PredictVaultAuths ¶
func (b *BaseCommand) PredictVaultAuths() complete.Predictor
PredictVaultAuths returns a predictor for "folders". See PredictVaultFiles for more information and restrictions.
func (*BaseCommand) PredictVaultAvailableAuths ¶
func (b *BaseCommand) PredictVaultAvailableAuths() complete.Predictor
PredictVaultAvailableAuths returns a predictor for the available auths in Vault. For now, there is no way to programatically get this list. If, in the future, such a list exists, we can adapt it here. Until then, it's hard-coded.
func (*BaseCommand) PredictVaultAvailableMounts ¶
func (b *BaseCommand) PredictVaultAvailableMounts() complete.Predictor
PredictVaultAvailableMounts returns a predictor for the available mounts in Vault. For now, there is no way to programatically get this list. If, in the future, such a list exists, we can adapt it here. Until then, it's hard-coded.
func (*BaseCommand) PredictVaultFiles ¶
func (b *BaseCommand) PredictVaultFiles() complete.Predictor
PredictVaultFiles returns a predictor for Vault mounts and paths based on the configured client for the base command. Unfortunately this happens pre-flag parsing, so users must rely on environment variables for autocomplete if they are not using Vault at the default endpoints.
func (*BaseCommand) PredictVaultFolders ¶
func (b *BaseCommand) PredictVaultFolders() complete.Predictor
PredictVaultFolders returns a predictor for "folders". See PredictVaultFiles for more information and restrictions.
func (*BaseCommand) PredictVaultMounts ¶
func (b *BaseCommand) PredictVaultMounts() complete.Predictor
PredictVaultMounts returns a predictor for "folders". See PredictVaultFiles for more information and restrictions.
func (*BaseCommand) PredictVaultPolicies ¶
func (b *BaseCommand) PredictVaultPolicies() complete.Predictor
PredictVaultPolicies returns a predictor for "folders". See PredictVaultFiles for more information and restrictions.
func (*BaseCommand) TokenHelper ¶
func (c *BaseCommand) TokenHelper() (token.TokenHelper, error)
TokenHelper returns the token helper attached to the command.
type BoolVar ¶
type BoolVar struct {
Name string
Aliases []string
Usage string
Default bool
Hidden bool
EnvVar string
Target *bool
Completion complete.Predictor
}
-- BoolVar and boolValue
type DefaultConfig ¶
type DefaultConfig struct {
// TokenHelper is the executable/command that is executed for storing
// and retrieving the authentication token for the Vault CLI. If this
// is not specified, then vault's internal token store will be used, which
// stores the token on disk unencrypted.
TokenHelper string `hcl:"token_helper"`
}
Config is the CLI configuration for Vault that can be specified via a `$HOME/.vault` file which is HCL-formatted (therefore HCL or JSON).
func Config ¶
func Config() (*DefaultConfig, error)
Config loads the configuration and returns it. If the configuration is already loaded, it is returned.
func LoadConfig ¶
func LoadConfig(path string) (*DefaultConfig, error)
LoadConfig reads the configuration from the given path. If path is empty, then the default path will be used, or the environment variable if set.
func ParseConfig ¶
func ParseConfig(contents string) (*DefaultConfig, error)
ParseConfig parses the given configuration as a string.
type DeleteCommand ¶
type DeleteCommand struct {
*BaseCommand
}
func (*DeleteCommand) AutocompleteArgs ¶
func (c *DeleteCommand) AutocompleteArgs() complete.Predictor
func (*DeleteCommand) AutocompleteFlags ¶
func (c *DeleteCommand) AutocompleteFlags() complete.Flags
func (*DeleteCommand) Flags ¶
func (c *DeleteCommand) Flags() *FlagSets
func (*DeleteCommand) Help ¶
func (c *DeleteCommand) Help() string
func (*DeleteCommand) Run ¶
func (c *DeleteCommand) Run(args []string) int
func (*DeleteCommand) Synopsis ¶
func (c *DeleteCommand) Synopsis() string
type DeprecatedCommand ¶
type DeprecatedCommand struct {
cli.Command
UI cli.Ui
// Old is the old command name, New is the new command name.
Old, New string
}
DeprecatedCommand is a command that wraps an existing command and prints a deprecation notice and points the user to the new command. Deprecated commands are always hidden from help output.
func (*DeprecatedCommand) Help ¶
func (c *DeprecatedCommand) Help() string
Help wraps the embedded Help command and prints a warning about deprecations.
func (*DeprecatedCommand) Run ¶
func (c *DeprecatedCommand) Run(args []string) int
Run wraps the embedded Run command and prints a warning about deprecation.
type DurationVar ¶
type DurationVar struct {
Name string
Aliases []string
Usage string
Default time.Duration
Hidden bool
EnvVar string
Target *time.Duration
Completion complete.Predictor
}
-- DurationVar and durationValue
type FlagBool ¶
type FlagBool interface {
IsBoolFlag() bool
}
FlagBool is an interface which boolean flags implement.
type FlagExample ¶
type FlagExample interface {
Example() string
}
FlagExample is an interface which declares an example value.
type FlagSet ¶
type FlagSet struct {
// contains filtered or unexported fields
}
FlagSet is a grouped wrapper around a real flag set and a grouped flag set.
func (*FlagSet) DurationVar ¶
func (f *FlagSet) DurationVar(i *DurationVar)
func (*FlagSet) Float64Var ¶
func (f *FlagSet) Float64Var(i *Float64Var)
func (*FlagSet) StringMapVar ¶
func (f *FlagSet) StringMapVar(i *StringMapVar)
func (*FlagSet) StringSliceVar ¶
func (f *FlagSet) StringSliceVar(i *StringSliceVar)
type FlagSetBit ¶
type FlagSetBit uint
const ( FlagSetNone FlagSetBit = 1 << iota FlagSetHTTP FlagSetOutputField FlagSetOutputFormat )
type FlagSets ¶
type FlagSets struct {
// contains filtered or unexported fields
}
FlagSets is a group of flag sets.
func (*FlagSets) Completions ¶
Completions returns the completions for this flag set.
func (*FlagSets) NewFlagSet ¶
NewFlagSet creates a new flag set from the given flag sets.
type FlagVisibility ¶
type FlagVisibility interface {
Hidden() bool
}
FlagVisibility is an interface which declares whether a flag should be hidden from help and completions. This is usually used for deprecations on "internal-only" flags.
type Float64Var ¶
type Float64Var struct {
Name string
Aliases []string
Usage string
Default float64
Hidden bool
EnvVar string
Target *float64
Completion complete.Predictor
}
-- Float64Var and float64Value
type FormatOptions ¶
type FormatOptions struct {
Format string
}
type Int64Var ¶
type Int64Var struct {
Name string
Aliases []string
Usage string
Default int64
Hidden bool
EnvVar string
Target *int64
Completion complete.Predictor
}
-- Int64Var and int64Value
type IntVar ¶
type IntVar struct {
Name string
Aliases []string
Usage string
Default int
Hidden bool
EnvVar string
Target *int
Completion complete.Predictor
}
-- IntVar and intValue
type JsonFormatter ¶
type JsonFormatter struct{}
An output formatter for json output of an object
func (JsonFormatter) Format ¶
func (j JsonFormatter) Format(data interface{}) ([]byte, error)
type LeaseCommand ¶
type LeaseCommand struct {
*BaseCommand
}
func (*LeaseCommand) Help ¶
func (c *LeaseCommand) Help() string
func (*LeaseCommand) Run ¶
func (c *LeaseCommand) Run(args []string) int
func (*LeaseCommand) Synopsis ¶
func (c *LeaseCommand) Synopsis() string
type LeaseRenewCommand ¶
type LeaseRenewCommand struct {
*BaseCommand
// contains filtered or unexported fields
}
func (*LeaseRenewCommand) AutocompleteArgs ¶
func (c *LeaseRenewCommand) AutocompleteArgs() complete.Predictor
func (*LeaseRenewCommand) AutocompleteFlags ¶
func (c *LeaseRenewCommand) AutocompleteFlags() complete.Flags
func (*LeaseRenewCommand) Flags ¶
func (c *LeaseRenewCommand) Flags() *FlagSets
func (*LeaseRenewCommand) Help ¶
func (c *LeaseRenewCommand) Help() string
func (*LeaseRenewCommand) Run ¶
func (c *LeaseRenewCommand) Run(args []string) int
func (*LeaseRenewCommand) Synopsis ¶
func (c *LeaseRenewCommand) Synopsis() string
type LeaseRevokeCommand ¶
type LeaseRevokeCommand struct {
*BaseCommand
// contains filtered or unexported fields
}
func (*LeaseRevokeCommand) AutocompleteArgs ¶
func (c *LeaseRevokeCommand) AutocompleteArgs() complete.Predictor
func (*LeaseRevokeCommand) AutocompleteFlags ¶
func (c *LeaseRevokeCommand) AutocompleteFlags() complete.Flags
func (*LeaseRevokeCommand) Flags ¶
func (c *LeaseRevokeCommand) Flags() *FlagSets
func (*LeaseRevokeCommand) Help ¶
func (c *LeaseRevokeCommand) Help() string
func (*LeaseRevokeCommand) Run ¶
func (c *LeaseRevokeCommand) Run(args []string) int
func (*LeaseRevokeCommand) Synopsis ¶
func (c *LeaseRevokeCommand) Synopsis() string
type ListCommand ¶
type ListCommand struct {
*BaseCommand
}
func (*ListCommand) AutocompleteArgs ¶
func (c *ListCommand) AutocompleteArgs() complete.Predictor
func (*ListCommand) AutocompleteFlags ¶
func (c *ListCommand) AutocompleteFlags() complete.Flags
func (*ListCommand) Flags ¶
func (c *ListCommand) Flags() *FlagSets
func (*ListCommand) Help ¶
func (c *ListCommand) Help() string
func (*ListCommand) Run ¶
func (c *ListCommand) Run(args []string) int
func (*ListCommand) Synopsis ¶
func (c *ListCommand) Synopsis() string
type LoginCommand ¶
type LoginCommand struct {
*BaseCommand
Handlers map[string]LoginHandler
// contains filtered or unexported fields
}
func (*LoginCommand) AutocompleteArgs ¶
func (c *LoginCommand) AutocompleteArgs() complete.Predictor
func (*LoginCommand) AutocompleteFlags ¶
func (c *LoginCommand) AutocompleteFlags() complete.Flags
func (*LoginCommand) Flags ¶
func (c *LoginCommand) Flags() *FlagSets
func (*LoginCommand) Help ¶
func (c *LoginCommand) Help() string
func (*LoginCommand) Run ¶
func (c *LoginCommand) Run(args []string) int
func (*LoginCommand) Synopsis ¶
func (c *LoginCommand) Synopsis() string
type LoginHandler ¶
type LoginHandler interface {
Auth(*api.Client, map[string]string) (*api.Secret, error)
Help() string
}
LoginHandler is the interface that any auth handlers must implement to enable auth via the CLI.
type OperatorCommand ¶
type OperatorCommand struct {
*BaseCommand
}
func (*OperatorCommand) Help ¶
func (c *OperatorCommand) Help() string
func (*OperatorCommand) Run ¶
func (c *OperatorCommand) Run(args []string) int
func (*OperatorCommand) Synopsis ¶
func (c *OperatorCommand) Synopsis() string
type OperatorGenerateRootCommand ¶
type OperatorGenerateRootCommand struct {
*BaseCommand
// contains filtered or unexported fields
}
func (*OperatorGenerateRootCommand) AutocompleteArgs ¶
func (c *OperatorGenerateRootCommand) AutocompleteArgs() complete.Predictor
func (*OperatorGenerateRootCommand) AutocompleteFlags ¶
func (c *OperatorGenerateRootCommand) AutocompleteFlags() complete.Flags
func (*OperatorGenerateRootCommand) Flags ¶
func (c *OperatorGenerateRootCommand) Flags() *FlagSets
func (*OperatorGenerateRootCommand) Help ¶
func (c *OperatorGenerateRootCommand) Help() string
func (*OperatorGenerateRootCommand) Run ¶
func (c *OperatorGenerateRootCommand) Run(args []string) int
func (*OperatorGenerateRootCommand) Synopsis ¶
func (c *OperatorGenerateRootCommand) Synopsis() string
type OperatorInitCommand ¶
type OperatorInitCommand struct {
*BaseCommand
// contains filtered or unexported fields
}
func (*OperatorInitCommand) AutocompleteArgs ¶
func (c *OperatorInitCommand) AutocompleteArgs() complete.Predictor
func (*OperatorInitCommand) AutocompleteFlags ¶
func (c *OperatorInitCommand) AutocompleteFlags() complete.Flags
func (*OperatorInitCommand) Flags ¶
func (c *OperatorInitCommand) Flags() *FlagSets
func (*OperatorInitCommand) Help ¶
func (c *OperatorInitCommand) Help() string
func (*OperatorInitCommand) Run ¶
func (c *OperatorInitCommand) Run(args []string) int
func (*OperatorInitCommand) Synopsis ¶
func (c *OperatorInitCommand) Synopsis() string
type OperatorKeyStatusCommand ¶
type OperatorKeyStatusCommand struct {
*BaseCommand
}
func (*OperatorKeyStatusCommand) AutocompleteArgs ¶
func (c *OperatorKeyStatusCommand) AutocompleteArgs() complete.Predictor
func (*OperatorKeyStatusCommand) AutocompleteFlags ¶
func (c *OperatorKeyStatusCommand) AutocompleteFlags() complete.Flags
func (*OperatorKeyStatusCommand) Flags ¶
func (c *OperatorKeyStatusCommand) Flags() *FlagSets
func (*OperatorKeyStatusCommand) Help ¶
func (c *OperatorKeyStatusCommand) Help() string
func (*OperatorKeyStatusCommand) Run ¶
func (c *OperatorKeyStatusCommand) Run(args []string) int
func (*OperatorKeyStatusCommand) Synopsis ¶
func (c *OperatorKeyStatusCommand) Synopsis() string
type OperatorRekeyCommand ¶
type OperatorRekeyCommand struct {
*BaseCommand
// contains filtered or unexported fields
}
func (*OperatorRekeyCommand) AutocompleteArgs ¶
func (c *OperatorRekeyCommand) AutocompleteArgs() complete.Predictor
func (*OperatorRekeyCommand) AutocompleteFlags ¶
func (c *OperatorRekeyCommand) AutocompleteFlags() complete.Flags
func (*OperatorRekeyCommand) Flags ¶
func (c *OperatorRekeyCommand) Flags() *FlagSets
func (*OperatorRekeyCommand) Help ¶
func (c *OperatorRekeyCommand) Help() string
func (*OperatorRekeyCommand) Run ¶
func (c *OperatorRekeyCommand) Run(args []string) int
func (*OperatorRekeyCommand) Synopsis ¶
func (c *OperatorRekeyCommand) Synopsis() string
type OperatorRotateCommand ¶
type OperatorRotateCommand struct {
*BaseCommand
}
func (*OperatorRotateCommand) AutocompleteArgs ¶
func (c *OperatorRotateCommand) AutocompleteArgs() complete.Predictor
func (*OperatorRotateCommand) AutocompleteFlags ¶
func (c *OperatorRotateCommand) AutocompleteFlags() complete.Flags
func (*OperatorRotateCommand) Flags ¶
func (c *OperatorRotateCommand) Flags() *FlagSets
func (*OperatorRotateCommand) Help ¶
func (c *OperatorRotateCommand) Help() string
func (*OperatorRotateCommand) Run ¶
func (c *OperatorRotateCommand) Run(args []string) int
func (*OperatorRotateCommand) Synopsis ¶
func (c *OperatorRotateCommand) Synopsis() string
type OperatorSealCommand ¶
type OperatorSealCommand struct {
*BaseCommand
}
func (*OperatorSealCommand) AutocompleteArgs ¶
func (c *OperatorSealCommand) AutocompleteArgs() complete.Predictor
func (*OperatorSealCommand) AutocompleteFlags ¶
func (c *OperatorSealCommand) AutocompleteFlags() complete.Flags
func (*OperatorSealCommand) Flags ¶
func (c *OperatorSealCommand) Flags() *FlagSets
func (*OperatorSealCommand) Help ¶
func (c *OperatorSealCommand) Help() string
func (*OperatorSealCommand) Run ¶
func (c *OperatorSealCommand) Run(args []string) int
func (*OperatorSealCommand) Synopsis ¶
func (c *OperatorSealCommand) Synopsis() string
type OperatorStepDownCommand ¶
type OperatorStepDownCommand struct {
*BaseCommand
}
func (*OperatorStepDownCommand) AutocompleteArgs ¶
func (c *OperatorStepDownCommand) AutocompleteArgs() complete.Predictor
func (*OperatorStepDownCommand) AutocompleteFlags ¶
func (c *OperatorStepDownCommand) AutocompleteFlags() complete.Flags
func (*OperatorStepDownCommand) Flags ¶
func (c *OperatorStepDownCommand) Flags() *FlagSets
func (*OperatorStepDownCommand) Help ¶
func (c *OperatorStepDownCommand) Help() string
func (*OperatorStepDownCommand) Run ¶
func (c *OperatorStepDownCommand) Run(args []string) int
func (*OperatorStepDownCommand) Synopsis ¶
func (c *OperatorStepDownCommand) Synopsis() string
type OperatorUnsealCommand ¶
type OperatorUnsealCommand struct {
*BaseCommand
// contains filtered or unexported fields
}
func (*OperatorUnsealCommand) AutocompleteArgs ¶
func (c *OperatorUnsealCommand) AutocompleteArgs() complete.Predictor
func (*OperatorUnsealCommand) AutocompleteFlags ¶
func (c *OperatorUnsealCommand) AutocompleteFlags() complete.Flags
func (*OperatorUnsealCommand) Flags ¶
func (c *OperatorUnsealCommand) Flags() *FlagSets
func (*OperatorUnsealCommand) Help ¶
func (c *OperatorUnsealCommand) Help() string
func (*OperatorUnsealCommand) Run ¶
func (c *OperatorUnsealCommand) Run(args []string) int
func (*OperatorUnsealCommand) Synopsis ¶
func (c *OperatorUnsealCommand) Synopsis() string
type PathHelpCommand ¶
type PathHelpCommand struct {
*BaseCommand
}
func (*PathHelpCommand) AutocompleteArgs ¶
func (c *PathHelpCommand) AutocompleteArgs() complete.Predictor
func (*PathHelpCommand) AutocompleteFlags ¶
func (c *PathHelpCommand) AutocompleteFlags() complete.Flags
func (*PathHelpCommand) Flags ¶
func (c *PathHelpCommand) Flags() *FlagSets
func (*PathHelpCommand) Help ¶
func (c *PathHelpCommand) Help() string
func (*PathHelpCommand) Run ¶
func (c *PathHelpCommand) Run(args []string) int
func (*PathHelpCommand) Synopsis ¶
func (c *PathHelpCommand) Synopsis() string
type PoliciesDeprecatedCommand ¶
type PoliciesDeprecatedCommand struct {
*BaseCommand
}
func (*PoliciesDeprecatedCommand) Help ¶
func (c *PoliciesDeprecatedCommand) Help() string
func (*PoliciesDeprecatedCommand) Run ¶
func (c *PoliciesDeprecatedCommand) Run(args []string) int
func (*PoliciesDeprecatedCommand) Synopsis ¶
func (c *PoliciesDeprecatedCommand) Synopsis() string
type PolicyCommand ¶
type PolicyCommand struct {
*BaseCommand
}
PolicyCommand is a Command that holds the audit commands
func (*PolicyCommand) Help ¶
func (c *PolicyCommand) Help() string
func (*PolicyCommand) Run ¶
func (c *PolicyCommand) Run(args []string) int
func (*PolicyCommand) Synopsis ¶
func (c *PolicyCommand) Synopsis() string
type PolicyDeleteCommand ¶
type PolicyDeleteCommand struct {
*BaseCommand
}
func (*PolicyDeleteCommand) AutocompleteArgs ¶
func (c *PolicyDeleteCommand) AutocompleteArgs() complete.Predictor
func (*PolicyDeleteCommand) AutocompleteFlags ¶
func (c *PolicyDeleteCommand) AutocompleteFlags() complete.Flags
func (*PolicyDeleteCommand) Flags ¶
func (c *PolicyDeleteCommand) Flags() *FlagSets
func (*PolicyDeleteCommand) Help ¶
func (c *PolicyDeleteCommand) Help() string
func (*PolicyDeleteCommand) Run ¶
func (c *PolicyDeleteCommand) Run(args []string) int
func (*PolicyDeleteCommand) Synopsis ¶
func (c *PolicyDeleteCommand) Synopsis() string
type PolicyFmtCommand ¶
type PolicyFmtCommand struct {
*BaseCommand
}
func (*PolicyFmtCommand) AutocompleteArgs ¶
func (c *PolicyFmtCommand) AutocompleteArgs() complete.Predictor
func (*PolicyFmtCommand) AutocompleteFlags ¶
func (c *PolicyFmtCommand) AutocompleteFlags() complete.Flags
func (*PolicyFmtCommand) Flags ¶
func (c *PolicyFmtCommand) Flags() *FlagSets
func (*PolicyFmtCommand) Help ¶
func (c *PolicyFmtCommand) Help() string
func (*PolicyFmtCommand) Run ¶
func (c *PolicyFmtCommand) Run(args []string) int
func (*PolicyFmtCommand) Synopsis ¶
func (c *PolicyFmtCommand) Synopsis() string
type PolicyListCommand ¶
type PolicyListCommand struct {
*BaseCommand
}
func (*PolicyListCommand) AutocompleteArgs ¶
func (c *PolicyListCommand) AutocompleteArgs() complete.Predictor
func (*PolicyListCommand) AutocompleteFlags ¶
func (c *PolicyListCommand) AutocompleteFlags() complete.Flags
func (*PolicyListCommand) Flags ¶
func (c *PolicyListCommand) Flags() *FlagSets
func (*PolicyListCommand) Help ¶
func (c *PolicyListCommand) Help() string
func (*PolicyListCommand) Run ¶
func (c *PolicyListCommand) Run(args []string) int
func (*PolicyListCommand) Synopsis ¶
func (c *PolicyListCommand) Synopsis() string
type PolicyReadCommand ¶
type PolicyReadCommand struct {
*BaseCommand
}
func (*PolicyReadCommand) AutocompleteArgs ¶
func (c *PolicyReadCommand) AutocompleteArgs() complete.Predictor
func (*PolicyReadCommand) AutocompleteFlags ¶
func (c *PolicyReadCommand) AutocompleteFlags() complete.Flags
func (*PolicyReadCommand) Flags ¶
func (c *PolicyReadCommand) Flags() *FlagSets
func (*PolicyReadCommand) Help ¶
func (c *PolicyReadCommand) Help() string
func (*PolicyReadCommand) Run ¶
func (c *PolicyReadCommand) Run(args []string) int
func (*PolicyReadCommand) Synopsis ¶
func (c *PolicyReadCommand) Synopsis() string
type PolicyWriteCommand ¶
type PolicyWriteCommand struct {
*BaseCommand
// contains filtered or unexported fields
}
func (*PolicyWriteCommand) AutocompleteArgs ¶
func (c *PolicyWriteCommand) AutocompleteArgs() complete.Predictor
func (*PolicyWriteCommand) AutocompleteFlags ¶
func (c *PolicyWriteCommand) AutocompleteFlags() complete.Flags
func (*PolicyWriteCommand) Flags ¶
func (c *PolicyWriteCommand) Flags() *FlagSets
func (*PolicyWriteCommand) Help ¶
func (c *PolicyWriteCommand) Help() string
func (*PolicyWriteCommand) Run ¶
func (c *PolicyWriteCommand) Run(args []string) int
func (*PolicyWriteCommand) Synopsis ¶
func (c *PolicyWriteCommand) Synopsis() string
type Predict ¶
type Predict struct {
// contains filtered or unexported fields
}
func NewPredict ¶
func NewPredict() *Predict
func (*Predict) VaultAudits ¶
VaultAudits returns a predictor for Vault "folders". This is a public API for consumers, but you probably want BaseCommand.PredictVaultAudits instead.
func (*Predict) VaultAuths ¶
VaultAuths returns a predictor for Vault "folders". This is a public API for consumers, but you probably want BaseCommand.PredictVaultAuths instead.
func (*Predict) VaultFiles ¶
VaultFiles returns a predictor for Vault "files". This is a public API for consumers, but you probably want BaseCommand.PredictVaultFiles instead.
func (*Predict) VaultFolders ¶
VaultFolders returns a predictor for Vault "folders". This is a public API for consumers, but you probably want BaseCommand.PredictVaultFolders instead.
func (*Predict) VaultMounts ¶
VaultMounts returns a predictor for Vault "folders". This is a public API for consumers, but you probably want BaseCommand.PredictVaultMounts instead.
func (*Predict) VaultPolicies ¶
VaultPolicies returns a predictor for Vault "folders". This is a public API for consumers, but you probably want BaseCommand.PredictVaultPolicies instead.
type ReadCommand ¶
type ReadCommand struct {
*BaseCommand
}
func (*ReadCommand) AutocompleteArgs ¶
func (c *ReadCommand) AutocompleteArgs() complete.Predictor
func (*ReadCommand) AutocompleteFlags ¶
func (c *ReadCommand) AutocompleteFlags() complete.Flags
func (*ReadCommand) Flags ¶
func (c *ReadCommand) Flags() *FlagSets
func (*ReadCommand) Help ¶
func (c *ReadCommand) Help() string
func (*ReadCommand) Run ¶
func (c *ReadCommand) Run(args []string) int
func (*ReadCommand) Synopsis ¶
func (c *ReadCommand) Synopsis() string
type SSHCommand ¶
type SSHCommand struct {
*BaseCommand
// contains filtered or unexported fields
}
func (*SSHCommand) AutocompleteArgs ¶
func (c *SSHCommand) AutocompleteArgs() complete.Predictor
func (*SSHCommand) AutocompleteFlags ¶
func (c *SSHCommand) AutocompleteFlags() complete.Flags
func (*SSHCommand) Flags ¶
func (c *SSHCommand) Flags() *FlagSets
func (*SSHCommand) Help ¶
func (c *SSHCommand) Help() string
func (*SSHCommand) Run ¶
func (c *SSHCommand) Run(args []string) int
func (*SSHCommand) Synopsis ¶
func (c *SSHCommand) Synopsis() string
type SSHCredentialResp ¶
type SSHCredentialResp struct {
KeyType string `mapstructure:"key_type"`
Key string `mapstructure:"key"`
Username string `mapstructure:"username"`
IP string `mapstructure:"ip"`
Port string `mapstructure:"port"`
}
Structure to hold the fields returned when asked for a credential from SSH secrets engine.
type SecretsCommand ¶
type SecretsCommand struct {
*BaseCommand
}
func (*SecretsCommand) Help ¶
func (c *SecretsCommand) Help() string
func (*SecretsCommand) Run ¶
func (c *SecretsCommand) Run(args []string) int
func (*SecretsCommand) Synopsis ¶
func (c *SecretsCommand) Synopsis() string
type SecretsDisableCommand ¶
type SecretsDisableCommand struct {
*BaseCommand
}
func (*SecretsDisableCommand) AutocompleteArgs ¶
func (c *SecretsDisableCommand) AutocompleteArgs() complete.Predictor
func (*SecretsDisableCommand) AutocompleteFlags ¶
func (c *SecretsDisableCommand) AutocompleteFlags() complete.Flags
func (*SecretsDisableCommand) Flags ¶
func (c *SecretsDisableCommand) Flags() *FlagSets
func (*SecretsDisableCommand) Help ¶
func (c *SecretsDisableCommand) Help() string
func (*SecretsDisableCommand) Run ¶
func (c *SecretsDisableCommand) Run(args []string) int
func (*SecretsDisableCommand) Synopsis ¶
func (c *SecretsDisableCommand) Synopsis() string
type SecretsEnableCommand ¶
type SecretsEnableCommand struct {
*BaseCommand
// contains filtered or unexported fields
}
func (*SecretsEnableCommand) AutocompleteArgs ¶
func (c *SecretsEnableCommand) AutocompleteArgs() complete.Predictor
func (*SecretsEnableCommand) AutocompleteFlags ¶
func (c *SecretsEnableCommand) AutocompleteFlags() complete.Flags
func (*SecretsEnableCommand) Flags ¶
func (c *SecretsEnableCommand) Flags() *FlagSets
func (*SecretsEnableCommand) Help ¶
func (c *SecretsEnableCommand) Help() string
func (*SecretsEnableCommand) Run ¶
func (c *SecretsEnableCommand) Run(args []string) int
func (*SecretsEnableCommand) Synopsis ¶
func (c *SecretsEnableCommand) Synopsis() string
type SecretsListCommand ¶
type SecretsListCommand struct {
*BaseCommand
// contains filtered or unexported fields
}
func (*SecretsListCommand) AutocompleteArgs ¶
func (c *SecretsListCommand) AutocompleteArgs() complete.Predictor
func (*SecretsListCommand) AutocompleteFlags ¶
func (c *SecretsListCommand) AutocompleteFlags() complete.Flags
func (*SecretsListCommand) Flags ¶
func (c *SecretsListCommand) Flags() *FlagSets
func (*SecretsListCommand) Help ¶
func (c *SecretsListCommand) Help() string
func (*SecretsListCommand) Run ¶
func (c *SecretsListCommand) Run(args []string) int
func (*SecretsListCommand) Synopsis ¶
func (c *SecretsListCommand) Synopsis() string
type SecretsMoveCommand ¶
type SecretsMoveCommand struct {
*BaseCommand
}
func (*SecretsMoveCommand) AutocompleteArgs ¶
func (c *SecretsMoveCommand) AutocompleteArgs() complete.Predictor
func (*SecretsMoveCommand) AutocompleteFlags ¶
func (c *SecretsMoveCommand) AutocompleteFlags() complete.Flags
func (*SecretsMoveCommand) Flags ¶
func (c *SecretsMoveCommand) Flags() *FlagSets
func (*SecretsMoveCommand) Help ¶
func (c *SecretsMoveCommand) Help() string
func (*SecretsMoveCommand) Run ¶
func (c *SecretsMoveCommand) Run(args []string) int
func (*SecretsMoveCommand) Synopsis ¶
func (c *SecretsMoveCommand) Synopsis() string
type SecretsTuneCommand ¶
type SecretsTuneCommand struct {
*BaseCommand
// contains filtered or unexported fields
}
func (*SecretsTuneCommand) AutocompleteArgs ¶
func (c *SecretsTuneCommand) AutocompleteArgs() complete.Predictor
func (*SecretsTuneCommand) AutocompleteFlags ¶
func (c *SecretsTuneCommand) AutocompleteFlags() complete.Flags
func (*SecretsTuneCommand) Flags ¶
func (c *SecretsTuneCommand) Flags() *FlagSets
func (*SecretsTuneCommand) Help ¶
func (c *SecretsTuneCommand) Help() string
func (*SecretsTuneCommand) Run ¶
func (c *SecretsTuneCommand) Run(args []string) int
func (*SecretsTuneCommand) Synopsis ¶
func (c *SecretsTuneCommand) Synopsis() string
type ServerCommand ¶
type ServerCommand struct {
*BaseCommand
AuditBackends map[string]audit.Factory
CredentialBackends map[string]logical.Factory
LogicalBackends map[string]logical.Factory
PhysicalBackends map[string]physical.Factory
ShutdownCh chan struct{}
SighupCh chan struct{}
WaitGroup *sync.WaitGroup
// contains filtered or unexported fields
}
func (*ServerCommand) AutocompleteArgs ¶
func (c *ServerCommand) AutocompleteArgs() complete.Predictor
func (*ServerCommand) AutocompleteFlags ¶
func (c *ServerCommand) AutocompleteFlags() complete.Flags
func (*ServerCommand) Flags ¶
func (c *ServerCommand) Flags() *FlagSets
func (*ServerCommand) Help ¶
func (c *ServerCommand) Help() string
func (*ServerCommand) Reload ¶
func (c *ServerCommand) Reload(lock *sync.RWMutex, reloadFuncs *map[string][]reload.ReloadFunc, configPath []string) error
func (*ServerCommand) Run ¶
func (c *ServerCommand) Run(args []string) int
func (*ServerCommand) Synopsis ¶
func (c *ServerCommand) Synopsis() string
type StatusCommand ¶
type StatusCommand struct {
*BaseCommand
}
func (*StatusCommand) AutocompleteArgs ¶
func (c *StatusCommand) AutocompleteArgs() complete.Predictor
func (*StatusCommand) AutocompleteFlags ¶
func (c *StatusCommand) AutocompleteFlags() complete.Flags
func (*StatusCommand) Flags ¶
func (c *StatusCommand) Flags() *FlagSets
func (*StatusCommand) Help ¶
func (c *StatusCommand) Help() string
func (*StatusCommand) Run ¶
func (c *StatusCommand) Run(args []string) int
func (*StatusCommand) Synopsis ¶
func (c *StatusCommand) Synopsis() string
type StringMapVar ¶
type StringMapVar struct {
Name string
Aliases []string
Usage string
Default map[string]string
Hidden bool
Target *map[string]string
Completion complete.Predictor
}
-- StringMapVar and stringMapValue
type StringSliceVar ¶
type StringSliceVar struct {
Name string
Aliases []string
Usage string
Default []string
Hidden bool
EnvVar string
Target *[]string
Completion complete.Predictor
}
-- StringSliceVar and stringSliceValue
type StringVar ¶
type StringVar struct {
Name string
Aliases []string
Usage string
Default string
Hidden bool
EnvVar string
Target *string
Completion complete.Predictor
}
-- StringVar and stringValue
type TableFormatter ¶
type TableFormatter struct {
}
An output formatter for table output of an object
func (TableFormatter) Format ¶
func (t TableFormatter) Format(data interface{}) ([]byte, error)
We don't use this
func (TableFormatter) OutputList ¶
func (TableFormatter) OutputSecret ¶
type TokenCapabilitiesCommand ¶
type TokenCapabilitiesCommand struct {
*BaseCommand
}
func (*TokenCapabilitiesCommand) AutocompleteArgs ¶
func (c *TokenCapabilitiesCommand) AutocompleteArgs() complete.Predictor
func (*TokenCapabilitiesCommand) AutocompleteFlags ¶
func (c *TokenCapabilitiesCommand) AutocompleteFlags() complete.Flags
func (*TokenCapabilitiesCommand) Flags ¶
func (c *TokenCapabilitiesCommand) Flags() *FlagSets
func (*TokenCapabilitiesCommand) Help ¶
func (c *TokenCapabilitiesCommand) Help() string
func (*TokenCapabilitiesCommand) Run ¶
func (c *TokenCapabilitiesCommand) Run(args []string) int
func (*TokenCapabilitiesCommand) Synopsis ¶
func (c *TokenCapabilitiesCommand) Synopsis() string
type TokenCommand ¶
type TokenCommand struct {
*BaseCommand
}
func (*TokenCommand) Help ¶
func (c *TokenCommand) Help() string
func (*TokenCommand) Run ¶
func (c *TokenCommand) Run(args []string) int
func (*TokenCommand) Synopsis ¶
func (c *TokenCommand) Synopsis() string
type TokenCreateCommand ¶
type TokenCreateCommand struct {
*BaseCommand
// contains filtered or unexported fields
}
func (*TokenCreateCommand) AutocompleteArgs ¶
func (c *TokenCreateCommand) AutocompleteArgs() complete.Predictor
func (*TokenCreateCommand) AutocompleteFlags ¶
func (c *TokenCreateCommand) AutocompleteFlags() complete.Flags
func (*TokenCreateCommand) Flags ¶
func (c *TokenCreateCommand) Flags() *FlagSets
func (*TokenCreateCommand) Help ¶
func (c *TokenCreateCommand) Help() string
func (*TokenCreateCommand) Run ¶
func (c *TokenCreateCommand) Run(args []string) int
func (*TokenCreateCommand) Synopsis ¶
func (c *TokenCreateCommand) Synopsis() string
type TokenLookupCommand ¶
type TokenLookupCommand struct {
*BaseCommand
// contains filtered or unexported fields
}
func (*TokenLookupCommand) AutocompleteArgs ¶
func (c *TokenLookupCommand) AutocompleteArgs() complete.Predictor
func (*TokenLookupCommand) AutocompleteFlags ¶
func (c *TokenLookupCommand) AutocompleteFlags() complete.Flags
func (*TokenLookupCommand) Flags ¶
func (c *TokenLookupCommand) Flags() *FlagSets
func (*TokenLookupCommand) Help ¶
func (c *TokenLookupCommand) Help() string
func (*TokenLookupCommand) Run ¶
func (c *TokenLookupCommand) Run(args []string) int
func (*TokenLookupCommand) Synopsis ¶
func (c *TokenLookupCommand) Synopsis() string
type TokenRenewCommand ¶
type TokenRenewCommand struct {
*BaseCommand
// contains filtered or unexported fields
}
func (*TokenRenewCommand) AutocompleteArgs ¶
func (c *TokenRenewCommand) AutocompleteArgs() complete.Predictor
func (*TokenRenewCommand) AutocompleteFlags ¶
func (c *TokenRenewCommand) AutocompleteFlags() complete.Flags
func (*TokenRenewCommand) Flags ¶
func (c *TokenRenewCommand) Flags() *FlagSets
func (*TokenRenewCommand) Help ¶
func (c *TokenRenewCommand) Help() string
func (*TokenRenewCommand) Run ¶
func (c *TokenRenewCommand) Run(args []string) int
func (*TokenRenewCommand) Synopsis ¶
func (c *TokenRenewCommand) Synopsis() string
type TokenRevokeCommand ¶
type TokenRevokeCommand struct {
*BaseCommand
// contains filtered or unexported fields
}
func (*TokenRevokeCommand) AutocompleteArgs ¶
func (c *TokenRevokeCommand) AutocompleteArgs() complete.Predictor
func (*TokenRevokeCommand) AutocompleteFlags ¶
func (c *TokenRevokeCommand) AutocompleteFlags() complete.Flags
func (*TokenRevokeCommand) Flags ¶
func (c *TokenRevokeCommand) Flags() *FlagSets
func (*TokenRevokeCommand) Help ¶
func (c *TokenRevokeCommand) Help() string
func (*TokenRevokeCommand) Run ¶
func (c *TokenRevokeCommand) Run(args []string) int
func (*TokenRevokeCommand) Synopsis ¶
func (c *TokenRevokeCommand) Synopsis() string
type Uint64Var ¶
type Uint64Var struct {
Name string
Aliases []string
Usage string
Default uint64
Hidden bool
EnvVar string
Target *uint64
Completion complete.Predictor
}
-- Uint64Var and uint64Value
type UintVar ¶
type UintVar struct {
Name string
Aliases []string
Usage string
Default uint
Hidden bool
EnvVar string
Target *uint
Completion complete.Predictor
}
-- UintVar && uintValue
type UnwrapCommand ¶
type UnwrapCommand struct {
*BaseCommand
}
UnwrapCommand is a Command that behaves like ReadCommand but specifically for unwrapping cubbyhole-wrapped secrets
func (*UnwrapCommand) AutocompleteArgs ¶
func (c *UnwrapCommand) AutocompleteArgs() complete.Predictor
func (*UnwrapCommand) AutocompleteFlags ¶
func (c *UnwrapCommand) AutocompleteFlags() complete.Flags
func (*UnwrapCommand) Flags ¶
func (c *UnwrapCommand) Flags() *FlagSets
func (*UnwrapCommand) Help ¶
func (c *UnwrapCommand) Help() string
func (*UnwrapCommand) Run ¶
func (c *UnwrapCommand) Run(args []string) int
func (*UnwrapCommand) Synopsis ¶
func (c *UnwrapCommand) Synopsis() string
type VarFlag ¶
type VarFlag struct {
Name string
Aliases []string
Usage string
Default string
EnvVar string
Value flag.Value
Completion complete.Predictor
}
-- VarFlag
type VersionCommand ¶
type VersionCommand struct {
*BaseCommand
VersionInfo *version.VersionInfo
}
VersionCommand is a Command implementation prints the version.
func (*VersionCommand) AutocompleteArgs ¶
func (c *VersionCommand) AutocompleteArgs() complete.Predictor
func (*VersionCommand) AutocompleteFlags ¶
func (c *VersionCommand) AutocompleteFlags() complete.Flags
func (*VersionCommand) Flags ¶
func (c *VersionCommand) Flags() *FlagSets
func (*VersionCommand) Help ¶
func (c *VersionCommand) Help() string
func (*VersionCommand) Run ¶
func (c *VersionCommand) Run(_ []string) int
func (*VersionCommand) Synopsis ¶
func (c *VersionCommand) Synopsis() string
type WriteCommand ¶
type WriteCommand struct {
*BaseCommand
// contains filtered or unexported fields
}
WriteCommand is a Command that puts data into the Vault.
func (*WriteCommand) AutocompleteArgs ¶
func (c *WriteCommand) AutocompleteArgs() complete.Predictor
func (*WriteCommand) AutocompleteFlags ¶
func (c *WriteCommand) AutocompleteFlags() complete.Flags
func (*WriteCommand) Flags ¶
func (c *WriteCommand) Flags() *FlagSets
func (*WriteCommand) Help ¶
func (c *WriteCommand) Help() string
func (*WriteCommand) Run ¶
func (c *WriteCommand) Run(args []string) int
func (*WriteCommand) Synopsis ¶
func (c *WriteCommand) Synopsis() string
type YamlFormatter ¶
type YamlFormatter struct {
}
An output formatter for yaml output format of an object
func (YamlFormatter) Format ¶
func (y YamlFormatter) Format(data interface{}) ([]byte, error)
Source Files
¶
- audit.go
- audit_disable.go
- audit_enable.go
- audit_list.go
- auth.go
- auth_disable.go
- auth_enable.go
- auth_help.go
- auth_list.go
- auth_tune.go
- base.go
- base_flags.go
- base_helpers.go
- base_predict.go
- commands.go
- config.go
- delete.go
- format.go
- lease.go
- lease_renew.go
- lease_revoke.go
- list.go
- login.go
- main.go
- operator.go
- operator_generate_root.go
- operator_init.go
- operator_key_status.go
- operator_rekey.go
- operator_seal.go
- operator_step_down.go
- operator_unseal.go
- path_help.go
- policies_deprecated.go
- policy.go
- policy_delete.go
- policy_fmt.go
- policy_list.go
- policy_read.go
- policy_write.go
- read.go
- rotate.go
- secrets.go
- secrets_disable.go
- secrets_enable.go
- secrets_list.go
- secrets_move.go
- secrets_tune.go
- server.go
- ssh.go
- status.go
- token.go
- token_capabilities.go
- token_create.go
- token_lookup.go
- token_renew.go
- token_revoke.go
- unwrap.go
- util.go
- version.go
- write.go