command

package
v0.0.0-...-e8682ef Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MPL-2.0 Imports: 144 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EnvVaultCLINoColor is an env var that toggles colored UI output.
	EnvVaultCLINoColor = `BAO_CLI_NO_COLOR`
	// EnvVaultFormat is the output format
	EnvVaultFormat = `BAO_FORMAT`
	// EnvVaultDetailed is to output detailed information (e.g., ListResponseWithInfo).
	EnvVaultDetailed = `BAO_DETAILED`
	// EnvVaultLogFormat is used to specify the log format. Supported values are "standard" and "json"
	EnvVaultLogFormat = "BAO_LOG_FORMAT"
	// EnvVaultLogLevel is used to specify the log level applied to logging
	// Supported log levels: Trace, Debug, Error, Warn, Info
	EnvVaultLogLevel = "BAO_LOG_LEVEL"
)
View Source
const (
	// DefaultConfigPath is the default path to the configuration file
	DefaultConfigPath = "~/.bao"

	// ConfigPathEnv is the environment variable that can be used to
	// override where the Vault configuration is.
	ConfigPathEnv = "BAO_CONFIG_PATH"
)
View Source
const (
	MountMigrationStatusSuccess = "success"
	MountMigrationStatusFailure = "failure"
)
View Source
const CoreConfigUninitializedErr = "Diagnose cannot attempt this step because core config could not be set."

Variables

View Source
var Formatters = map[string]Formatter{
	"json":   JsonFormatter{},
	"table":  TableFormatter{},
	"yaml":   YamlFormatter{},
	"yml":    YamlFormatter{},
	"pretty": PrettyFormatter{},
	"raw":    RawFormatter{},
}

Functions

func DefaultTokenHelper

func DefaultTokenHelper(vaultAddr string) (token.TokenHelper, error)

DefaultTokenHelper returns the token helper that is configured for Vault. This helper should only be used for non-server CLI commands.

func Detailed

func Detailed(ui cli.Ui) bool

func Format

func Format(ui cli.Ui) string

func ImportKey

func ImportKey(c *BaseCommand, operation string, pathFunc ImportKeyFunc, flags *FlagSets, args []string) int

error codes: 1: user error, 2: internal computation error, 3: remote api call error

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 MakeSigUSR2Ch

func MakeSigUSR2Ch() chan struct{}

MakeSigUSR2Ch returns a channel that can be used for SIGUSR2 goroutine logging. This channel will send a message for every SIGUSR2 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 OutputData(ui cli.Ui, data interface{}) int

func OutputList

func OutputList(ui cli.Ui, data interface{}) int

func OutputSealStatus

func OutputSealStatus(ui cli.Ui, client *api.Client, status *api.SealStatusResponse) int

OutputSealStatus will print *api.SealStatusResponse in the CLI according to the format provided

func OutputSecret

func OutputSecret(ui cli.Ui, secret *api.Secret) int

func PredictClient

func PredictClient() *api.Client

PredictClient returns the cached API client for the predictor.

func PrintRaw

func PrintRaw(ui cli.Ui, str string) int

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

func PrintRawField(ui cli.Ui, data interface{}, field string) int

PrintRawField prints raw field from the secret.

func RawField

func RawField(secret *api.Secret, field string) interface{}

RawField extracts the raw field from the given data and returns it as a string for printing purposes.

func Run

func Run(args []string) int

func RunCustom

func RunCustom(args []string, runOpts *RunOptions) int

RunCustom allows passing in a base command template to pass to other commands. Currently, this is only used for setting a custom token helper.

func SetStorageMigration

func SetStorageMigration(b physical.Backend, active bool) error

Types

type AgentCommand

type AgentCommand struct {
	*BaseCommand

	ShutdownCh chan struct{}
	SighupCh   chan struct{}
	// contains filtered or unexported fields
}

func (*AgentCommand) AutocompleteArgs

func (c *AgentCommand) AutocompleteArgs() complete.Predictor

func (*AgentCommand) AutocompleteFlags

func (c *AgentCommand) AutocompleteFlags() complete.Flags

func (*AgentCommand) Flags

func (c *AgentCommand) Flags() *FlagSets

func (*AgentCommand) Help

func (c *AgentCommand) Help() string

func (*AgentCommand) Run

func (c *AgentCommand) Run(args []string) int

func (*AgentCommand) Synopsis

func (c *AgentCommand) Synopsis() string

type AgentGenerateConfigCommand

type AgentGenerateConfigCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*AgentGenerateConfigCommand) AutocompleteArgs

func (c *AgentGenerateConfigCommand) AutocompleteArgs() complete.Predictor

func (*AgentGenerateConfigCommand) AutocompleteFlags

func (c *AgentGenerateConfigCommand) AutocompleteFlags() complete.Flags

func (*AgentGenerateConfigCommand) Flags

func (*AgentGenerateConfigCommand) Help

func (*AgentGenerateConfigCommand) Run

func (c *AgentGenerateConfigCommand) Run(args []string) int

func (*AgentGenerateConfigCommand) Synopsis

func (c *AgentGenerateConfigCommand) Synopsis() string

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
}

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 AuthMoveCommand

type AuthMoveCommand struct {
	*BaseCommand
}

func (*AuthMoveCommand) AutocompleteArgs

func (c *AuthMoveCommand) AutocompleteArgs() complete.Predictor

func (*AuthMoveCommand) AutocompleteFlags

func (c *AuthMoveCommand) AutocompleteFlags() complete.Flags

func (*AuthMoveCommand) Flags

func (c *AuthMoveCommand) Flags() *FlagSets

func (*AuthMoveCommand) Help

func (c *AuthMoveCommand) Help() string

func (*AuthMoveCommand) Run

func (c *AuthMoveCommand) Run(args []string) int

func (*AuthMoveCommand) Synopsis

func (c *AuthMoveCommand) 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

type BaseCommand struct {
	UI cli.Ui
	// contains filtered or unexported fields
}

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) ClientWithoutToken

func (c *BaseCommand) ClientWithoutToken() (*api.Client, error)

Construct the HTTP API client, but do not set the token on it yet. This is to avoid invoking the token helper for calls that do not need a token, such as `vault login`.

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 programmatically 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 programmatically get this list. If, in the future, such a list exists, we can adapt it here. Until then, it's hard-coded.

func (*BaseCommand) PredictVaultDebugTargets

func (b *BaseCommand) PredictVaultDebugTargets() complete.Predictor

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) PredictVaultNamespaces

func (b *BaseCommand) PredictVaultNamespaces() complete.Predictor

PredictVaultNamespaces returns a predictor for "namespaces". See PredictVaultFiles for more information an restrictions.

func (*BaseCommand) PredictVaultPlugins

func (b *BaseCommand) PredictVaultPlugins(pluginTypes ...api.PluginType) complete.Predictor

PredictVaultPlugins returns a predictor for installed plugins.

func (*BaseCommand) PredictVaultPolicies

func (b *BaseCommand) PredictVaultPolicies() complete.Predictor

PredictVaultPolicies returns a predictor for "folders". See PredictVaultFiles for more information and restrictions.

func (*BaseCommand) SetAddress

func (c *BaseCommand) SetAddress(addr string)

SetAddress sets the token helper on the command; useful for the demo server and other outside cases.

func (*BaseCommand) SetTokenHelper

func (c *BaseCommand) SetTokenHelper(th token.TokenHelper)

SetTokenHelper sets the token helper on the command.

func (*BaseCommand) TokenHelper

func (c *BaseCommand) TokenHelper(vaultAddr string) (token.TokenHelper, error)

TokenHelper returns the token helper attached to the command.

type BoolPtr

type BoolPtr struct {
	// contains filtered or unexported fields
}

BoolPtr is a bool which is aware if it has been set.

func (*BoolPtr) Get

func (b *BoolPtr) Get() bool

func (*BoolPtr) IsSet

func (b *BoolPtr) IsSet() bool

func (*BoolPtr) Set

func (b *BoolPtr) Set(v string) error

func (*BoolPtr) String

func (b *BoolPtr) String() string

type BoolPtrVar

type BoolPtrVar struct {
	Name       string
	Aliases    []string
	Usage      string
	Hidden     bool
	EnvVar     string
	Default    *bool
	Target     *BoolPtr
	Completion complete.Predictor
}

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 DebugCommand

type DebugCommand struct {
	*BaseCommand

	// ShutdownCh is used to capture interrupt signal and end polling capture
	ShutdownCh chan struct{}
	// contains filtered or unexported fields
}

func (*DebugCommand) AutocompleteArgs

func (c *DebugCommand) AutocompleteArgs() complete.Predictor

func (*DebugCommand) AutocompleteFlags

func (c *DebugCommand) AutocompleteFlags() complete.Flags

func (*DebugCommand) Flags

func (c *DebugCommand) Flags() *FlagSets

func (*DebugCommand) Help

func (c *DebugCommand) Help() string

func (*DebugCommand) Run

func (c *DebugCommand) Run(args []string) int

func (*DebugCommand) Synopsis

func (c *DebugCommand) Synopsis() string

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.

Config just calls into config.Config for backwards compatibility purposes. Use config.Config instead.

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.

LoadConfig just calls into config.LoadConfig for backwards compatibility purposes. Use config.LoadConfig instead.

func ParseConfig

func ParseConfig(contents string) (*DefaultConfig, error)

ParseConfig parses the given configuration as a string.

ParseConfig just calls into config.ParseConfig for backwards compatibility purposes. Use config.ParseConfig instead.

type DeleteCommand

type DeleteCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

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 DisableDisplayFlagWarning

type DisableDisplayFlagWarning bool

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 NewFlagSet

func NewFlagSet(name string) *FlagSet

NewFlagSet creates a new flag set.

func (*FlagSet) BoolPtrVar

func (f *FlagSet) BoolPtrVar(i *BoolPtrVar)

func (*FlagSet) BoolVar

func (f *FlagSet) BoolVar(i *BoolVar)

func (*FlagSet) DurationVar

func (f *FlagSet) DurationVar(i *DurationVar)

func (*FlagSet) Float64Var

func (f *FlagSet) Float64Var(i *Float64Var)

func (*FlagSet) Int64Var

func (f *FlagSet) Int64Var(i *Int64Var)

func (*FlagSet) IntVar

func (f *FlagSet) IntVar(i *IntVar)

func (*FlagSet) Name

func (f *FlagSet) Name() string

Name returns the name of this flag set.

func (*FlagSet) StringMapVar

func (f *FlagSet) StringMapVar(i *StringMapVar)

func (*FlagSet) StringSliceVar

func (f *FlagSet) StringSliceVar(i *StringSliceVar)

func (*FlagSet) StringVar

func (f *FlagSet) StringVar(i *StringVar)

func (*FlagSet) TimeVar

func (f *FlagSet) TimeVar(i *TimeVar)

func (*FlagSet) Uint64Var

func (f *FlagSet) Uint64Var(i *Uint64Var)

func (*FlagSet) UintVar

func (f *FlagSet) UintVar(i *UintVar)

func (*FlagSet) Var

func (f *FlagSet) Var(value flag.Value, name, usage string)

Var is a lower-level API for adding something to the flags. It should be used with caution, since it bypasses all validation. Consider VarFlag instead.

func (*FlagSet) VarFlag

func (f *FlagSet) VarFlag(i *VarFlag)

func (*FlagSet) Visit

func (f *FlagSet) Visit(fn func(*flag.Flag))

func (*FlagSet) VisitAll

func (f *FlagSet) VisitAll(fn func(*flag.Flag))

type FlagSetBit

type FlagSetBit uint
const (
	FlagSetNone FlagSetBit = 1 << iota
	FlagSetHTTP
	FlagSetOutputField
	FlagSetOutputFormat
	FlagSetOutputDetailed
)

type FlagSets

type FlagSets struct {
	// contains filtered or unexported fields
}

FlagSets is a group of flag sets.

func NewFlagSets

func NewFlagSets(ui cli.Ui) *FlagSets

NewFlagSets creates a new flag sets.

func (*FlagSets) Args

func (f *FlagSets) Args() []string

Args returns the remaining args after parsing.

func (*FlagSets) Completions

func (f *FlagSets) Completions() complete.Flags

Completions returns the completions for this flag set.

func (*FlagSets) Help

func (f *FlagSets) Help() string

Help builds custom help for this command, grouping by flag set.

func (*FlagSets) NewFlagSet

func (f *FlagSets) NewFlagSet(name string) *FlagSet

NewFlagSet creates a new flag set from the given flag sets.

func (*FlagSets) Parse

func (f *FlagSets) Parse(args []string, opts ...ParseOptions) error

Parse parses the given flags, returning any errors. Warnings, if any, regarding the arguments format are sent to stdout

func (*FlagSets) Parsed

func (f *FlagSets) Parsed() bool

Parsed reports whether the command-line flags have been parsed.

func (*FlagSets) Visit

func (f *FlagSets) Visit(fn func(*flag.Flag))

Visit visits the flags in lexicographical order, calling fn for each. It visits only those flags that have been set.

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 Formatter

type Formatter interface {
	Output(ui cli.Ui, secret *api.Secret, data interface{}) error
	Format(data interface{}) ([]byte, error)
}

type ImportKeyFunc

type ImportKeyFunc func(s string, operation string) (path string, apiPath string, err error)

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)

func (JsonFormatter) Output

func (j JsonFormatter) Output(ui cli.Ui, secret *api.Secret, data interface{}) error

type KVCommand

type KVCommand struct {
	*BaseCommand
}

func (*KVCommand) Help

func (c *KVCommand) Help() string

func (*KVCommand) Run

func (c *KVCommand) Run(args []string) int

func (*KVCommand) Synopsis

func (c *KVCommand) Synopsis() string

type KVDeleteCommand

type KVDeleteCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*KVDeleteCommand) AutocompleteArgs

func (c *KVDeleteCommand) AutocompleteArgs() complete.Predictor

func (*KVDeleteCommand) AutocompleteFlags

func (c *KVDeleteCommand) AutocompleteFlags() complete.Flags

func (*KVDeleteCommand) Flags

func (c *KVDeleteCommand) Flags() *FlagSets

func (*KVDeleteCommand) Help

func (c *KVDeleteCommand) Help() string

func (*KVDeleteCommand) Run

func (c *KVDeleteCommand) Run(args []string) int

func (*KVDeleteCommand) Synopsis

func (c *KVDeleteCommand) Synopsis() string

type KVDestroyCommand

type KVDestroyCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*KVDestroyCommand) AutocompleteArgs

func (c *KVDestroyCommand) AutocompleteArgs() complete.Predictor

func (*KVDestroyCommand) AutocompleteFlags

func (c *KVDestroyCommand) AutocompleteFlags() complete.Flags

func (*KVDestroyCommand) Flags

func (c *KVDestroyCommand) Flags() *FlagSets

func (*KVDestroyCommand) Help

func (c *KVDestroyCommand) Help() string

func (*KVDestroyCommand) Run

func (c *KVDestroyCommand) Run(args []string) int

func (*KVDestroyCommand) Synopsis

func (c *KVDestroyCommand) Synopsis() string

type KVEnableVersioningCommand

type KVEnableVersioningCommand struct {
	*BaseCommand
}

func (*KVEnableVersioningCommand) AutocompleteArgs

func (c *KVEnableVersioningCommand) AutocompleteArgs() complete.Predictor

func (*KVEnableVersioningCommand) AutocompleteFlags

func (c *KVEnableVersioningCommand) AutocompleteFlags() complete.Flags

func (*KVEnableVersioningCommand) Flags

func (c *KVEnableVersioningCommand) Flags() *FlagSets

func (*KVEnableVersioningCommand) Help

func (*KVEnableVersioningCommand) Run

func (c *KVEnableVersioningCommand) Run(args []string) int

func (*KVEnableVersioningCommand) Synopsis

func (c *KVEnableVersioningCommand) Synopsis() string

type KVGetCommand

type KVGetCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*KVGetCommand) AutocompleteArgs

func (c *KVGetCommand) AutocompleteArgs() complete.Predictor

func (*KVGetCommand) AutocompleteFlags

func (c *KVGetCommand) AutocompleteFlags() complete.Flags

func (*KVGetCommand) Flags

func (c *KVGetCommand) Flags() *FlagSets

func (*KVGetCommand) Help

func (c *KVGetCommand) Help() string

func (*KVGetCommand) Run

func (c *KVGetCommand) Run(args []string) int

func (*KVGetCommand) Synopsis

func (c *KVGetCommand) Synopsis() string

type KVListCommand

type KVListCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*KVListCommand) AutocompleteArgs

func (c *KVListCommand) AutocompleteArgs() complete.Predictor

func (*KVListCommand) AutocompleteFlags

func (c *KVListCommand) AutocompleteFlags() complete.Flags

func (*KVListCommand) Flags

func (c *KVListCommand) Flags() *FlagSets

func (*KVListCommand) Help

func (c *KVListCommand) Help() string

func (*KVListCommand) Run

func (c *KVListCommand) Run(args []string) int

func (*KVListCommand) Synopsis

func (c *KVListCommand) Synopsis() string

type KVMetadataCommand

type KVMetadataCommand struct {
	*BaseCommand
}

func (*KVMetadataCommand) Help

func (c *KVMetadataCommand) Help() string

func (*KVMetadataCommand) Run

func (c *KVMetadataCommand) Run(args []string) int

func (*KVMetadataCommand) Synopsis

func (c *KVMetadataCommand) Synopsis() string

type KVMetadataDeleteCommand

type KVMetadataDeleteCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*KVMetadataDeleteCommand) AutocompleteArgs

func (c *KVMetadataDeleteCommand) AutocompleteArgs() complete.Predictor

func (*KVMetadataDeleteCommand) AutocompleteFlags

func (c *KVMetadataDeleteCommand) AutocompleteFlags() complete.Flags

func (*KVMetadataDeleteCommand) Flags

func (c *KVMetadataDeleteCommand) Flags() *FlagSets

func (*KVMetadataDeleteCommand) Help

func (c *KVMetadataDeleteCommand) Help() string

func (*KVMetadataDeleteCommand) Run

func (c *KVMetadataDeleteCommand) Run(args []string) int

func (*KVMetadataDeleteCommand) Synopsis

func (c *KVMetadataDeleteCommand) Synopsis() string

type KVMetadataGetCommand

type KVMetadataGetCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*KVMetadataGetCommand) AutocompleteArgs

func (c *KVMetadataGetCommand) AutocompleteArgs() complete.Predictor

func (*KVMetadataGetCommand) AutocompleteFlags

func (c *KVMetadataGetCommand) AutocompleteFlags() complete.Flags

func (*KVMetadataGetCommand) Flags

func (c *KVMetadataGetCommand) Flags() *FlagSets

func (*KVMetadataGetCommand) Help

func (c *KVMetadataGetCommand) Help() string

func (*KVMetadataGetCommand) Run

func (c *KVMetadataGetCommand) Run(args []string) int

func (*KVMetadataGetCommand) Synopsis

func (c *KVMetadataGetCommand) Synopsis() string

type KVMetadataPatchCommand

type KVMetadataPatchCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*KVMetadataPatchCommand) AutocompleteArgs

func (c *KVMetadataPatchCommand) AutocompleteArgs() complete.Predictor

func (*KVMetadataPatchCommand) AutocompleteFlags

func (c *KVMetadataPatchCommand) AutocompleteFlags() complete.Flags

func (*KVMetadataPatchCommand) Flags

func (c *KVMetadataPatchCommand) Flags() *FlagSets

func (*KVMetadataPatchCommand) Help

func (c *KVMetadataPatchCommand) Help() string

func (*KVMetadataPatchCommand) Run

func (c *KVMetadataPatchCommand) Run(args []string) int

func (*KVMetadataPatchCommand) Synopsis

func (c *KVMetadataPatchCommand) Synopsis() string

type KVMetadataPutCommand

type KVMetadataPutCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*KVMetadataPutCommand) AutocompleteArgs

func (c *KVMetadataPutCommand) AutocompleteArgs() complete.Predictor

func (*KVMetadataPutCommand) AutocompleteFlags

func (c *KVMetadataPutCommand) AutocompleteFlags() complete.Flags

func (*KVMetadataPutCommand) Flags

func (c *KVMetadataPutCommand) Flags() *FlagSets

func (*KVMetadataPutCommand) Help

func (c *KVMetadataPutCommand) Help() string

func (*KVMetadataPutCommand) Run

func (c *KVMetadataPutCommand) Run(args []string) int

func (*KVMetadataPutCommand) Synopsis

func (c *KVMetadataPutCommand) Synopsis() string

type KVPatchCommand

type KVPatchCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*KVPatchCommand) AutocompleteArgs

func (c *KVPatchCommand) AutocompleteArgs() complete.Predictor

func (*KVPatchCommand) AutocompleteFlags

func (c *KVPatchCommand) AutocompleteFlags() complete.Flags

func (*KVPatchCommand) Flags

func (c *KVPatchCommand) Flags() *FlagSets

func (*KVPatchCommand) Help

func (c *KVPatchCommand) Help() string

func (*KVPatchCommand) Run

func (c *KVPatchCommand) Run(args []string) int

func (*KVPatchCommand) Synopsis

func (c *KVPatchCommand) Synopsis() string

type KVPutCommand

type KVPutCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*KVPutCommand) AutocompleteArgs

func (c *KVPutCommand) AutocompleteArgs() complete.Predictor

func (*KVPutCommand) AutocompleteFlags

func (c *KVPutCommand) AutocompleteFlags() complete.Flags

func (*KVPutCommand) Flags

func (c *KVPutCommand) Flags() *FlagSets

func (*KVPutCommand) Help

func (c *KVPutCommand) Help() string

func (*KVPutCommand) Run

func (c *KVPutCommand) Run(args []string) int

func (*KVPutCommand) Synopsis

func (c *KVPutCommand) Synopsis() string

type KVRollbackCommand

type KVRollbackCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*KVRollbackCommand) AutocompleteArgs

func (c *KVRollbackCommand) AutocompleteArgs() complete.Predictor

func (*KVRollbackCommand) AutocompleteFlags

func (c *KVRollbackCommand) AutocompleteFlags() complete.Flags

func (*KVRollbackCommand) Flags

func (c *KVRollbackCommand) Flags() *FlagSets

func (*KVRollbackCommand) Help

func (c *KVRollbackCommand) Help() string

func (*KVRollbackCommand) Run

func (c *KVRollbackCommand) Run(args []string) int

func (*KVRollbackCommand) Synopsis

func (c *KVRollbackCommand) Synopsis() string

type KVUndeleteCommand

type KVUndeleteCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*KVUndeleteCommand) AutocompleteArgs

func (c *KVUndeleteCommand) AutocompleteArgs() complete.Predictor

func (*KVUndeleteCommand) AutocompleteFlags

func (c *KVUndeleteCommand) AutocompleteFlags() complete.Flags

func (*KVUndeleteCommand) Flags

func (c *KVUndeleteCommand) Flags() *FlagSets

func (*KVUndeleteCommand) Help

func (c *KVUndeleteCommand) Help() string

func (*KVUndeleteCommand) Run

func (c *KVUndeleteCommand) Run(args []string) int

func (*KVUndeleteCommand) Synopsis

func (c *KVUndeleteCommand) Synopsis() string

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 LeaseLookupCommand

type LeaseLookupCommand struct {
	*BaseCommand
}

func (*LeaseLookupCommand) AutocompleteArgs

func (c *LeaseLookupCommand) AutocompleteArgs() complete.Predictor

func (*LeaseLookupCommand) AutocompleteFlags

func (c *LeaseLookupCommand) AutocompleteFlags() complete.Flags

func (*LeaseLookupCommand) Flags

func (c *LeaseLookupCommand) Flags() *FlagSets

func (*LeaseLookupCommand) Help

func (c *LeaseLookupCommand) Help() string

func (*LeaseLookupCommand) Run

func (c *LeaseLookupCommand) Run(args []string) int

func (*LeaseLookupCommand) Synopsis

func (c *LeaseLookupCommand) 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
	// contains filtered or unexported fields
}

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, bool) (*api.Secret, error)
	Help() string
}

LoginHandler is the interface that any auth handlers must implement to enable auth via the CLI.

type MFAMethodInfo

type MFAMethodInfo struct {
	// contains filtered or unexported fields
}

MFAMethodInfo contains the information about an MFA method

type MonitorCommand

type MonitorCommand struct {
	*BaseCommand

	// ShutdownCh is used to capture interrupt signal and end streaming
	ShutdownCh chan struct{}
	// contains filtered or unexported fields
}

func (*MonitorCommand) AutocompleteArgs

func (c *MonitorCommand) AutocompleteArgs() complete.Predictor

func (*MonitorCommand) AutocompleteFlags

func (c *MonitorCommand) AutocompleteFlags() complete.Flags

func (*MonitorCommand) Flags

func (c *MonitorCommand) Flags() *FlagSets

func (*MonitorCommand) Help

func (c *MonitorCommand) Help() string

func (*MonitorCommand) Run

func (c *MonitorCommand) Run(args []string) int

func (*MonitorCommand) Synopsis

func (c *MonitorCommand) Synopsis() string

type NamespaceAPILockCommand

type NamespaceAPILockCommand struct {
	*BaseCommand
}

func (*NamespaceAPILockCommand) AutocompleteArgs

func (c *NamespaceAPILockCommand) AutocompleteArgs() complete.Predictor

func (*NamespaceAPILockCommand) AutocompleteFlags

func (c *NamespaceAPILockCommand) AutocompleteFlags() complete.Flags

func (*NamespaceAPILockCommand) Flags

func (c *NamespaceAPILockCommand) Flags() *FlagSets

func (*NamespaceAPILockCommand) Help

func (c *NamespaceAPILockCommand) Help() string

func (*NamespaceAPILockCommand) Run

func (c *NamespaceAPILockCommand) Run(args []string) int

func (*NamespaceAPILockCommand) Synopsis

func (c *NamespaceAPILockCommand) Synopsis() string

type NamespaceAPIUnlockCommand

type NamespaceAPIUnlockCommand struct {
	*BaseCommand
}

func (*NamespaceAPIUnlockCommand) AutocompleteArgs

func (c *NamespaceAPIUnlockCommand) AutocompleteArgs() complete.Predictor

func (*NamespaceAPIUnlockCommand) AutocompleteFlags

func (c *NamespaceAPIUnlockCommand) AutocompleteFlags() complete.Flags

func (*NamespaceAPIUnlockCommand) Flags

func (c *NamespaceAPIUnlockCommand) Flags() *FlagSets

func (*NamespaceAPIUnlockCommand) Help

func (*NamespaceAPIUnlockCommand) Run

func (c *NamespaceAPIUnlockCommand) Run(args []string) int

func (*NamespaceAPIUnlockCommand) Synopsis

func (c *NamespaceAPIUnlockCommand) Synopsis() string

type NamespaceCommand

type NamespaceCommand struct {
	*BaseCommand
}

func (*NamespaceCommand) Help

func (c *NamespaceCommand) Help() string

func (*NamespaceCommand) Run

func (c *NamespaceCommand) Run(args []string) int

func (*NamespaceCommand) Synopsis

func (c *NamespaceCommand) Synopsis() string

type NamespaceCreateCommand

type NamespaceCreateCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*NamespaceCreateCommand) AutocompleteArgs

func (c *NamespaceCreateCommand) AutocompleteArgs() complete.Predictor

func (*NamespaceCreateCommand) AutocompleteFlags

func (c *NamespaceCreateCommand) AutocompleteFlags() complete.Flags

func (*NamespaceCreateCommand) Flags

func (c *NamespaceCreateCommand) Flags() *FlagSets

func (*NamespaceCreateCommand) Help

func (c *NamespaceCreateCommand) Help() string

func (*NamespaceCreateCommand) Run

func (c *NamespaceCreateCommand) Run(args []string) int

func (*NamespaceCreateCommand) Synopsis

func (c *NamespaceCreateCommand) Synopsis() string

type NamespaceDeleteCommand

type NamespaceDeleteCommand struct {
	*BaseCommand
}

func (*NamespaceDeleteCommand) AutocompleteArgs

func (c *NamespaceDeleteCommand) AutocompleteArgs() complete.Predictor

func (*NamespaceDeleteCommand) AutocompleteFlags

func (c *NamespaceDeleteCommand) AutocompleteFlags() complete.Flags

func (*NamespaceDeleteCommand) Flags

func (c *NamespaceDeleteCommand) Flags() *FlagSets

func (*NamespaceDeleteCommand) Help

func (c *NamespaceDeleteCommand) Help() string

func (*NamespaceDeleteCommand) Run

func (c *NamespaceDeleteCommand) Run(args []string) int

func (*NamespaceDeleteCommand) Synopsis

func (c *NamespaceDeleteCommand) Synopsis() string

type NamespaceListCommand

type NamespaceListCommand struct {
	*BaseCommand
}

func (*NamespaceListCommand) AutocompleteArgs

func (c *NamespaceListCommand) AutocompleteArgs() complete.Predictor

func (*NamespaceListCommand) AutocompleteFlags

func (c *NamespaceListCommand) AutocompleteFlags() complete.Flags

func (*NamespaceListCommand) Flags

func (c *NamespaceListCommand) Flags() *FlagSets

func (*NamespaceListCommand) Help

func (c *NamespaceListCommand) Help() string

func (*NamespaceListCommand) Run

func (c *NamespaceListCommand) Run(args []string) int

func (*NamespaceListCommand) Synopsis

func (c *NamespaceListCommand) Synopsis() string

type NamespaceLookupCommand

type NamespaceLookupCommand struct {
	*BaseCommand
}

func (*NamespaceLookupCommand) AutocompleteArgs

func (c *NamespaceLookupCommand) AutocompleteArgs() complete.Predictor

func (*NamespaceLookupCommand) AutocompleteFlags

func (c *NamespaceLookupCommand) AutocompleteFlags() complete.Flags

func (*NamespaceLookupCommand) Flags

func (c *NamespaceLookupCommand) Flags() *FlagSets

func (*NamespaceLookupCommand) Help

func (c *NamespaceLookupCommand) Help() string

func (*NamespaceLookupCommand) Run

func (c *NamespaceLookupCommand) Run(args []string) int

func (*NamespaceLookupCommand) Synopsis

func (c *NamespaceLookupCommand) Synopsis() string

type NamespacePatchCommand

type NamespacePatchCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*NamespacePatchCommand) AutocompleteArgs

func (c *NamespacePatchCommand) AutocompleteArgs() complete.Predictor

func (*NamespacePatchCommand) AutocompleteFlags

func (c *NamespacePatchCommand) AutocompleteFlags() complete.Flags

func (*NamespacePatchCommand) Flags

func (c *NamespacePatchCommand) Flags() *FlagSets

func (*NamespacePatchCommand) Help

func (c *NamespacePatchCommand) Help() string

func (*NamespacePatchCommand) Run

func (c *NamespacePatchCommand) Run(args []string) int

func (*NamespacePatchCommand) Synopsis

func (c *NamespacePatchCommand) Synopsis() string

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 OperatorDiagnoseCommand

type OperatorDiagnoseCommand struct {
	*BaseCommand

	ServiceRegistrations map[string]sr.Factory
	// contains filtered or unexported fields
}

func (*OperatorDiagnoseCommand) AutocompleteArgs

func (c *OperatorDiagnoseCommand) AutocompleteArgs() complete.Predictor

func (*OperatorDiagnoseCommand) AutocompleteFlags

func (c *OperatorDiagnoseCommand) AutocompleteFlags() complete.Flags

func (*OperatorDiagnoseCommand) Flags

func (c *OperatorDiagnoseCommand) Flags() *FlagSets

func (*OperatorDiagnoseCommand) Help

func (c *OperatorDiagnoseCommand) Help() string

func (*OperatorDiagnoseCommand) Run

func (c *OperatorDiagnoseCommand) Run(args []string) int

func (*OperatorDiagnoseCommand) RunWithParsedFlags

func (c *OperatorDiagnoseCommand) RunWithParsedFlags() int

func (*OperatorDiagnoseCommand) Synopsis

func (c *OperatorDiagnoseCommand) 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 (*OperatorGenerateRootCommand) Help

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 OperatorMembersCommand

type OperatorMembersCommand struct {
	*BaseCommand
}

func (*OperatorMembersCommand) AutocompleteArgs

func (c *OperatorMembersCommand) AutocompleteArgs() complete.Predictor

func (*OperatorMembersCommand) AutocompleteFlags

func (c *OperatorMembersCommand) AutocompleteFlags() complete.Flags

func (*OperatorMembersCommand) Flags

func (c *OperatorMembersCommand) Flags() *FlagSets

func (*OperatorMembersCommand) Help

func (c *OperatorMembersCommand) Help() string

func (*OperatorMembersCommand) Run

func (c *OperatorMembersCommand) Run(args []string) int

func (*OperatorMembersCommand) Synopsis

func (c *OperatorMembersCommand) Synopsis() string

type OperatorMigrateCommand

type OperatorMigrateCommand struct {
	*BaseCommand

	PhysicalBackends map[string]physical.Factory

	ShutdownCh chan struct{}
	// contains filtered or unexported fields
}

func (*OperatorMigrateCommand) AutocompleteArgs

func (c *OperatorMigrateCommand) AutocompleteArgs() complete.Predictor

func (*OperatorMigrateCommand) AutocompleteFlags

func (c *OperatorMigrateCommand) AutocompleteFlags() complete.Flags

func (*OperatorMigrateCommand) Flags

func (c *OperatorMigrateCommand) Flags() *FlagSets

func (*OperatorMigrateCommand) Help

func (c *OperatorMigrateCommand) Help() string

func (*OperatorMigrateCommand) Run

func (c *OperatorMigrateCommand) Run(args []string) int

func (*OperatorMigrateCommand) Synopsis

func (c *OperatorMigrateCommand) Synopsis() string

type OperatorRaftAutopilotGetConfigCommand

type OperatorRaftAutopilotGetConfigCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*OperatorRaftAutopilotGetConfigCommand) AutocompleteArgs

func (*OperatorRaftAutopilotGetConfigCommand) AutocompleteFlags

func (c *OperatorRaftAutopilotGetConfigCommand) AutocompleteFlags() complete.Flags

func (*OperatorRaftAutopilotGetConfigCommand) Flags

func (*OperatorRaftAutopilotGetConfigCommand) Help

func (*OperatorRaftAutopilotGetConfigCommand) Run

func (*OperatorRaftAutopilotGetConfigCommand) Synopsis

type OperatorRaftAutopilotSetConfigCommand

type OperatorRaftAutopilotSetConfigCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*OperatorRaftAutopilotSetConfigCommand) AutocompleteArgs

func (*OperatorRaftAutopilotSetConfigCommand) AutocompleteFlags

func (c *OperatorRaftAutopilotSetConfigCommand) AutocompleteFlags() complete.Flags

func (*OperatorRaftAutopilotSetConfigCommand) Flags

func (*OperatorRaftAutopilotSetConfigCommand) Help

func (*OperatorRaftAutopilotSetConfigCommand) Run

func (*OperatorRaftAutopilotSetConfigCommand) Synopsis

type OperatorRaftAutopilotStateCommand

type OperatorRaftAutopilotStateCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*OperatorRaftAutopilotStateCommand) AutocompleteArgs

func (*OperatorRaftAutopilotStateCommand) AutocompleteFlags

func (c *OperatorRaftAutopilotStateCommand) AutocompleteFlags() complete.Flags

func (*OperatorRaftAutopilotStateCommand) Flags

func (*OperatorRaftAutopilotStateCommand) Help

func (*OperatorRaftAutopilotStateCommand) Run

func (*OperatorRaftAutopilotStateCommand) Synopsis

type OperatorRaftCommand

type OperatorRaftCommand struct {
	*BaseCommand
}

func (*OperatorRaftCommand) Help

func (c *OperatorRaftCommand) Help() string

func (*OperatorRaftCommand) Run

func (c *OperatorRaftCommand) Run(args []string) int

func (*OperatorRaftCommand) Synopsis

func (c *OperatorRaftCommand) Synopsis() string

type OperatorRaftJoinCommand

type OperatorRaftJoinCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*OperatorRaftJoinCommand) AutocompleteArgs

func (c *OperatorRaftJoinCommand) AutocompleteArgs() complete.Predictor

func (*OperatorRaftJoinCommand) AutocompleteFlags

func (c *OperatorRaftJoinCommand) AutocompleteFlags() complete.Flags

func (*OperatorRaftJoinCommand) Flags

func (c *OperatorRaftJoinCommand) Flags() *FlagSets

func (*OperatorRaftJoinCommand) Help

func (c *OperatorRaftJoinCommand) Help() string

func (*OperatorRaftJoinCommand) Run

func (c *OperatorRaftJoinCommand) Run(args []string) int

func (*OperatorRaftJoinCommand) Synopsis

func (c *OperatorRaftJoinCommand) Synopsis() string

type OperatorRaftListPeersCommand

type OperatorRaftListPeersCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*OperatorRaftListPeersCommand) AutocompleteArgs

func (c *OperatorRaftListPeersCommand) AutocompleteArgs() complete.Predictor

func (*OperatorRaftListPeersCommand) AutocompleteFlags

func (c *OperatorRaftListPeersCommand) AutocompleteFlags() complete.Flags

func (*OperatorRaftListPeersCommand) Flags

func (*OperatorRaftListPeersCommand) Help

func (*OperatorRaftListPeersCommand) Run

func (c *OperatorRaftListPeersCommand) Run(args []string) int

func (*OperatorRaftListPeersCommand) Synopsis

func (c *OperatorRaftListPeersCommand) Synopsis() string

type OperatorRaftRemovePeerCommand

type OperatorRaftRemovePeerCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*OperatorRaftRemovePeerCommand) AutocompleteArgs

func (c *OperatorRaftRemovePeerCommand) AutocompleteArgs() complete.Predictor

func (*OperatorRaftRemovePeerCommand) AutocompleteFlags

func (c *OperatorRaftRemovePeerCommand) AutocompleteFlags() complete.Flags

func (*OperatorRaftRemovePeerCommand) Flags

func (*OperatorRaftRemovePeerCommand) Help

func (*OperatorRaftRemovePeerCommand) Run

func (c *OperatorRaftRemovePeerCommand) Run(args []string) int

func (*OperatorRaftRemovePeerCommand) Synopsis

func (c *OperatorRaftRemovePeerCommand) Synopsis() string

type OperatorRaftSnapshotCommand

type OperatorRaftSnapshotCommand struct {
	*BaseCommand
}

func (*OperatorRaftSnapshotCommand) Help

func (*OperatorRaftSnapshotCommand) Run

func (c *OperatorRaftSnapshotCommand) Run(args []string) int

func (*OperatorRaftSnapshotCommand) Synopsis

func (c *OperatorRaftSnapshotCommand) Synopsis() string

type OperatorRaftSnapshotRestoreCommand

type OperatorRaftSnapshotRestoreCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*OperatorRaftSnapshotRestoreCommand) AutocompleteArgs

func (*OperatorRaftSnapshotRestoreCommand) AutocompleteFlags

func (c *OperatorRaftSnapshotRestoreCommand) AutocompleteFlags() complete.Flags

func (*OperatorRaftSnapshotRestoreCommand) Flags

func (*OperatorRaftSnapshotRestoreCommand) Help

func (*OperatorRaftSnapshotRestoreCommand) Run

func (*OperatorRaftSnapshotRestoreCommand) Synopsis

type OperatorRaftSnapshotSaveCommand

type OperatorRaftSnapshotSaveCommand struct {
	*BaseCommand
}

func (*OperatorRaftSnapshotSaveCommand) AutocompleteArgs

func (c *OperatorRaftSnapshotSaveCommand) AutocompleteArgs() complete.Predictor

func (*OperatorRaftSnapshotSaveCommand) AutocompleteFlags

func (c *OperatorRaftSnapshotSaveCommand) AutocompleteFlags() complete.Flags

func (*OperatorRaftSnapshotSaveCommand) Flags

func (*OperatorRaftSnapshotSaveCommand) Help

func (*OperatorRaftSnapshotSaveCommand) Run

func (*OperatorRaftSnapshotSaveCommand) Synopsis

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 PKICommand

type PKICommand struct {
	*BaseCommand
}

func (*PKICommand) Help

func (c *PKICommand) Help() string

func (*PKICommand) Run

func (c *PKICommand) Run(args []string) int

func (*PKICommand) Synopsis

func (c *PKICommand) Synopsis() string

type PKIHealthCheckCommand

type PKIHealthCheckCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*PKIHealthCheckCommand) AutocompleteArgs

func (c *PKIHealthCheckCommand) AutocompleteArgs() complete.Predictor

func (*PKIHealthCheckCommand) AutocompleteFlags

func (c *PKIHealthCheckCommand) AutocompleteFlags() complete.Flags

func (*PKIHealthCheckCommand) Flags

func (c *PKIHealthCheckCommand) Flags() *FlagSets

func (*PKIHealthCheckCommand) Help

func (c *PKIHealthCheckCommand) Help() string

func (*PKIHealthCheckCommand) Run

func (c *PKIHealthCheckCommand) Run(args []string) int

func (*PKIHealthCheckCommand) Synopsis

func (c *PKIHealthCheckCommand) Synopsis() string

type PKIIssueCACommand

type PKIIssueCACommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*PKIIssueCACommand) Flags

func (c *PKIIssueCACommand) Flags() *FlagSets

func (*PKIIssueCACommand) Help

func (c *PKIIssueCACommand) Help() string

func (*PKIIssueCACommand) Run

func (c *PKIIssueCACommand) Run(args []string) int

func (*PKIIssueCACommand) Synopsis

func (c *PKIIssueCACommand) Synopsis() string

type PKIListIntermediateCommand

type PKIListIntermediateCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*PKIListIntermediateCommand) Flags

func (*PKIListIntermediateCommand) Help

func (*PKIListIntermediateCommand) Run

func (c *PKIListIntermediateCommand) Run(args []string) int

func (*PKIListIntermediateCommand) Synopsis

func (c *PKIListIntermediateCommand) Synopsis() string

type PKIReIssueCACommand

type PKIReIssueCACommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*PKIReIssueCACommand) Flags

func (c *PKIReIssueCACommand) Flags() *FlagSets

func (*PKIReIssueCACommand) Help

func (c *PKIReIssueCACommand) Help() string

func (*PKIReIssueCACommand) Run

func (c *PKIReIssueCACommand) Run(args []string) int

func (*PKIReIssueCACommand) Synopsis

func (c *PKIReIssueCACommand) Synopsis() string

type PKIVerifySignCommand

type PKIVerifySignCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*PKIVerifySignCommand) Flags

func (c *PKIVerifySignCommand) Flags() *FlagSets

func (*PKIVerifySignCommand) Help

func (c *PKIVerifySignCommand) Help() string

func (*PKIVerifySignCommand) Run

func (c *PKIVerifySignCommand) Run(args []string) int

func (*PKIVerifySignCommand) Synopsis

func (c *PKIVerifySignCommand) Synopsis() string

type ParseOptionAllowRawFormat

type ParseOptionAllowRawFormat bool

type ParseOptions

type ParseOptions interface{}

type PatchCommand

type PatchCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

PatchCommand is a Command that puts data into the Vault.

func (*PatchCommand) AutocompleteArgs

func (c *PatchCommand) AutocompleteArgs() complete.Predictor

func (*PatchCommand) AutocompleteFlags

func (c *PatchCommand) AutocompleteFlags() complete.Flags

func (*PatchCommand) Flags

func (c *PatchCommand) Flags() *FlagSets

func (*PatchCommand) Help

func (c *PatchCommand) Help() string

func (*PatchCommand) Run

func (c *PatchCommand) Run(args []string) int

func (*PatchCommand) Synopsis

func (c *PatchCommand) 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 PluginCommand

type PluginCommand struct {
	*BaseCommand
}

func (*PluginCommand) Help

func (c *PluginCommand) Help() string

func (*PluginCommand) Run

func (c *PluginCommand) Run(args []string) int

func (*PluginCommand) Synopsis

func (c *PluginCommand) Synopsis() string

type PluginDeregisterCommand

type PluginDeregisterCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*PluginDeregisterCommand) AutocompleteArgs

func (c *PluginDeregisterCommand) AutocompleteArgs() complete.Predictor

func (*PluginDeregisterCommand) AutocompleteFlags

func (c *PluginDeregisterCommand) AutocompleteFlags() complete.Flags

func (*PluginDeregisterCommand) Flags

func (c *PluginDeregisterCommand) Flags() *FlagSets

func (*PluginDeregisterCommand) Help

func (c *PluginDeregisterCommand) Help() string

func (*PluginDeregisterCommand) Run

func (c *PluginDeregisterCommand) Run(args []string) int

func (*PluginDeregisterCommand) Synopsis

func (c *PluginDeregisterCommand) Synopsis() string

type PluginInfoCommand

type PluginInfoCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*PluginInfoCommand) AutocompleteArgs

func (c *PluginInfoCommand) AutocompleteArgs() complete.Predictor

func (*PluginInfoCommand) AutocompleteFlags

func (c *PluginInfoCommand) AutocompleteFlags() complete.Flags

func (*PluginInfoCommand) Flags

func (c *PluginInfoCommand) Flags() *FlagSets

func (*PluginInfoCommand) Help

func (c *PluginInfoCommand) Help() string

func (*PluginInfoCommand) Run

func (c *PluginInfoCommand) Run(args []string) int

func (*PluginInfoCommand) Synopsis

func (c *PluginInfoCommand) Synopsis() string

type PluginListCommand

type PluginListCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*PluginListCommand) AutocompleteArgs

func (c *PluginListCommand) AutocompleteArgs() complete.Predictor

func (*PluginListCommand) AutocompleteFlags

func (c *PluginListCommand) AutocompleteFlags() complete.Flags

func (*PluginListCommand) Flags

func (c *PluginListCommand) Flags() *FlagSets

func (*PluginListCommand) Help

func (c *PluginListCommand) Help() string

func (*PluginListCommand) Run

func (c *PluginListCommand) Run(args []string) int

func (*PluginListCommand) Synopsis

func (c *PluginListCommand) Synopsis() string

type PluginRegisterCommand

type PluginRegisterCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*PluginRegisterCommand) AutocompleteArgs

func (c *PluginRegisterCommand) AutocompleteArgs() complete.Predictor

func (*PluginRegisterCommand) AutocompleteFlags

func (c *PluginRegisterCommand) AutocompleteFlags() complete.Flags

func (*PluginRegisterCommand) Flags

func (c *PluginRegisterCommand) Flags() *FlagSets

func (*PluginRegisterCommand) Help

func (c *PluginRegisterCommand) Help() string

func (*PluginRegisterCommand) Run

func (c *PluginRegisterCommand) Run(args []string) int

func (*PluginRegisterCommand) Synopsis

func (c *PluginRegisterCommand) Synopsis() string

type PluginReloadCommand

type PluginReloadCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

func (*PluginReloadCommand) AutocompleteArgs

func (c *PluginReloadCommand) AutocompleteArgs() complete.Predictor

func (*PluginReloadCommand) AutocompleteFlags

func (c *PluginReloadCommand) AutocompleteFlags() complete.Flags

func (*PluginReloadCommand) Flags

func (c *PluginReloadCommand) Flags() *FlagSets

func (*PluginReloadCommand) Help

func (c *PluginReloadCommand) Help() string

func (*PluginReloadCommand) Run

func (c *PluginReloadCommand) Run(args []string) int

func (*PluginReloadCommand) Synopsis

func (c *PluginReloadCommand) Synopsis() string

type PluginReloadStatusCommand

type PluginReloadStatusCommand struct {
	*BaseCommand
}

func (*PluginReloadStatusCommand) AutocompleteArgs

func (c *PluginReloadStatusCommand) AutocompleteArgs() complete.Predictor

func (*PluginReloadStatusCommand) AutocompleteFlags

func (c *PluginReloadStatusCommand) AutocompleteFlags() complete.Flags

func (*PluginReloadStatusCommand) Flags

func (c *PluginReloadStatusCommand) Flags() *FlagSets

func (*PluginReloadStatusCommand) Help

func (*PluginReloadStatusCommand) Run

func (c *PluginReloadStatusCommand) Run(args []string) int

func (*PluginReloadStatusCommand) Synopsis

func (c *PluginReloadStatusCommand) 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) Client

func (p *Predict) Client() *api.Client

func (*Predict) VaultAudits

func (p *Predict) VaultAudits() complete.Predictor

VaultAudits returns a predictor for Vault "folders". This is a public API for consumers, but you probably want BaseCommand.PredictVaultAudits instead.

func (*Predict) VaultAuths

func (p *Predict) VaultAuths() complete.Predictor

VaultAuths returns a predictor for Vault "folders". This is a public API for consumers, but you probably want BaseCommand.PredictVaultAuths instead.

func (*Predict) VaultFiles

func (p *Predict) VaultFiles() complete.Predictor

VaultFiles returns a predictor for Vault "files". This is a public API for consumers, but you probably want BaseCommand.PredictVaultFiles instead.

func (*Predict) VaultFolders

func (p *Predict) VaultFolders() complete.Predictor

VaultFolders returns a predictor for Vault "folders". This is a public API for consumers, but you probably want BaseCommand.PredictVaultFolders instead.

func (*Predict) VaultMounts

func (p *Predict) VaultMounts() complete.Predictor

VaultMounts returns a predictor for Vault "folders". This is a public API for consumers, but you probably want BaseCommand.PredictVaultMounts instead.

func (*Predict) VaultNamespaces

func (p *Predict) VaultNamespaces() complete.Predictor

VaultNamespaces returns a predictor for Vault "namespaces". This is a public API for consumers, but you probably want BaseCommand.PredictVaultNamespaces instead.

func (*Predict) VaultPlugins

func (p *Predict) VaultPlugins(pluginTypes ...api.PluginType) complete.Predictor

VaultPlugins returns a predictor for Vault's plugin catalog. This is a public API for consumers, but you probably want BaseCommand.PredictVaultPlugins instead.

func (*Predict) VaultPolicies

func (p *Predict) VaultPolicies() complete.Predictor

VaultPolicies returns a predictor for Vault "folders". This is a public API for consumers, but you probably want BaseCommand.PredictVaultPolicies instead.

type PrettyFormatter

type PrettyFormatter struct{}

func (PrettyFormatter) Format

func (p PrettyFormatter) Format(data interface{}) ([]byte, error)

func (PrettyFormatter) Output

func (p PrettyFormatter) Output(ui cli.Ui, secret *api.Secret, data interface{}) error

func (PrettyFormatter) OutputAutopilotState

func (p PrettyFormatter) OutputAutopilotState(ui cli.Ui, data interface{})

type PrintCommand

type PrintCommand struct {
	*BaseCommand
}

func (*PrintCommand) AutocompleteArgs

func (c *PrintCommand) AutocompleteArgs() complete.Predictor

func (*PrintCommand) AutocompleteFlags

func (c *PrintCommand) AutocompleteFlags() complete.Flags

func (*PrintCommand) Help

func (c *PrintCommand) Help() string

func (*PrintCommand) Run

func (c *PrintCommand) Run(args []string) int

func (*PrintCommand) Synopsis

func (c *PrintCommand) Synopsis() string

type PrintTokenCommand

type PrintTokenCommand struct {
	*BaseCommand
}

func (*PrintTokenCommand) AutocompleteArgs

func (c *PrintTokenCommand) AutocompleteArgs() complete.Predictor

func (*PrintTokenCommand) AutocompleteFlags

func (c *PrintTokenCommand) AutocompleteFlags() complete.Flags

func (*PrintTokenCommand) Help

func (c *PrintTokenCommand) Help() string

func (*PrintTokenCommand) Run

func (c *PrintTokenCommand) Run(args []string) int

func (*PrintTokenCommand) Synopsis

func (c *PrintTokenCommand) Synopsis() string

type ProxyCommand

type ProxyCommand struct {
	*BaseCommand

	ShutdownCh chan struct{}
	SighupCh   chan struct{}
	// contains filtered or unexported fields
}

func (*ProxyCommand) AutocompleteArgs

func (c *ProxyCommand) AutocompleteArgs() complete.Predictor

func (*ProxyCommand) AutocompleteFlags

func (c *ProxyCommand) AutocompleteFlags() complete.Flags

func (*ProxyCommand) Flags

func (c *ProxyCommand) Flags() *FlagSets

func (*ProxyCommand) Help

func (c *ProxyCommand) Help() string

func (*ProxyCommand) Run

func (c *ProxyCommand) Run(args []string) int

func (*ProxyCommand) Synopsis

func (c *ProxyCommand) Synopsis() string

type RawFormatter

type RawFormatter struct{}

An output formatter for raw output of the original request object

func (RawFormatter) Format

func (r RawFormatter) Format(data interface{}) ([]byte, error)

func (RawFormatter) Output

func (r RawFormatter) Output(ui cli.Ui, secret *api.Secret, data interface{}) error

type ReadCommand

type ReadCommand struct {
	*BaseCommand
	// contains filtered or unexported fields
}

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 RunOptions

type RunOptions struct {
	TokenHelper token.TokenHelper
	Stdout      io.Writer
	Stderr      io.Writer
	Address     string
	Client      *api.Client
}

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 SealStatusOutput

type SealStatusOutput struct {
	api.SealStatusResponse
	HAEnabled                bool      `json:"ha_enabled"`
	IsSelf                   bool      `json:"is_self,omitempty"`
	ActiveTime               time.Time `json:"active_time,omitempty"`
	LeaderAddress            string    `json:"leader_address,omitempty"`
	LeaderClusterAddress     string    `json:"leader_cluster_address,omitempty"`
	PerfStandby              bool      `json:"performance_standby,omitempty"`
	PerfStandbyLastRemoteWAL uint64    `json:"performance_standby_last_remote_wal,omitempty"`
	LastWAL                  uint64    `json:"last_wal,omitempty"`
	RaftCommittedIndex       uint64    `json:"raft_committed_index,omitempty"`
	RaftAppliedIndex         uint64    `json:"raft_applied_index,omitempty"`
}

This struct is responsible for capturing all the fields to be output by a vault status command, including fields that do not come from the status API. Currently we are adding the fields from api.LeaderResponse

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

	ServiceRegistrations map[string]sr.Factory

	ShutdownCh chan struct{}
	SighupCh   chan struct{}
	SigUSR2Ch  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) InitListeners

func (c *ServerCommand) InitListeners(config *server.Config, disableClustering bool, infoKeys *[]string, info *map[string]string) (int, []listenerutil.Listener, []*net.TCPAddr, error)

InitListeners returns a response code, error message, Listeners, and a TCP Address list.

func (*ServerCommand) Reload

func (c *ServerCommand) Reload(lock *sync.RWMutex, reloadFuncs *map[string][]reloadutil.ReloadFunc, configPath []string, core *vault.Core) 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 StorageMigrationStatus

type StorageMigrationStatus struct {
	Start time.Time `json:"start"`
}

func CheckStorageMigration

func CheckStorageMigration(b physical.Backend) (*StorageMigrationStatus, error)

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 due to the TableFormatter introducing a bug when the -field flag is supplied: https://github.com/morevault/vaultum/commit/b24cf9a8af2190e96c614205b8cdf06d8c4b6718 .

func (TableFormatter) Output

func (t TableFormatter) Output(ui cli.Ui, secret *api.Secret, data interface{}) error

func (TableFormatter) OutputList

func (t TableFormatter) OutputList(ui cli.Ui, secret *api.Secret, data interface{}) error

func (TableFormatter) OutputMap

func (t TableFormatter) OutputMap(ui cli.Ui, data map[string]interface{}) error

func (TableFormatter) OutputSealStatusStruct

func (t TableFormatter) OutputSealStatusStruct(ui cli.Ui, secret *api.Secret, data interface{}) error

func (TableFormatter) OutputSecret

func (t TableFormatter) OutputSecret(ui cli.Ui, secret *api.Secret) error

type TimeFormat

type TimeFormat int

Identify the allowable formats, identified by the minimum precision accepted. TODO: move this somewhere where it can be re-used for the API.

const (
	TimeVar_EpochSecond TimeFormat = 1 << iota
	TimeVar_RFC3339Nano
	TimeVar_RFC3339Second
	TimeVar_Day
	TimeVar_Month
)

Default value to use

type TimeVar

type TimeVar struct {
	Name       string
	Aliases    []string
	Usage      string
	Default    time.Time
	Hidden     bool
	EnvVar     string
	Target     *time.Time
	Completion complete.Predictor
	Formats    TimeFormat
}

-- TimeVar and timeValue

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 TransformCommand

type TransformCommand struct {
	*BaseCommand
}

func (*TransformCommand) Help

func (c *TransformCommand) Help() string

func (*TransformCommand) Run

func (c *TransformCommand) Run(args []string) int

func (*TransformCommand) Synopsis

func (c *TransformCommand) Synopsis() string

type TransformImportCommand

type TransformImportCommand struct {
	*BaseCommand
}

func (*TransformImportCommand) AutocompleteArgs

func (c *TransformImportCommand) AutocompleteArgs() complete.Predictor

func (*TransformImportCommand) AutocompleteFlags

func (c *TransformImportCommand) AutocompleteFlags() complete.Flags

func (*TransformImportCommand) Flags

func (c *TransformImportCommand) Flags() *FlagSets

func (*TransformImportCommand) Help

func (c *TransformImportCommand) Help() string

func (*TransformImportCommand) Run

func (c *TransformImportCommand) Run(args []string) int

func (*TransformImportCommand) Synopsis

func (c *TransformImportCommand) Synopsis() string

type TransformImportVersionCommand

type TransformImportVersionCommand struct {
	*BaseCommand
}

func (*TransformImportVersionCommand) AutocompleteArgs

func (c *TransformImportVersionCommand) AutocompleteArgs() complete.Predictor

func (*TransformImportVersionCommand) AutocompleteFlags

func (c *TransformImportVersionCommand) AutocompleteFlags() complete.Flags

func (*TransformImportVersionCommand) Flags

func (*TransformImportVersionCommand) Help

func (*TransformImportVersionCommand) Run

func (c *TransformImportVersionCommand) Run(args []string) int

func (*TransformImportVersionCommand) Synopsis

func (c *TransformImportVersionCommand) Synopsis() string

type TransitCommand

type TransitCommand struct {
	*BaseCommand
}

func (*TransitCommand) Help

func (c *TransitCommand) Help() string

func (*TransitCommand) Run

func (c *TransitCommand) Run(args []string) int

func (*TransitCommand) Synopsis

func (c *TransitCommand) Synopsis() string

type TransitImportCommand

type TransitImportCommand struct {
	*BaseCommand
}

func (*TransitImportCommand) AutocompleteArgs

func (c *TransitImportCommand) AutocompleteArgs() complete.Predictor

func (*TransitImportCommand) AutocompleteFlags

func (c *TransitImportCommand) AutocompleteFlags() complete.Flags

func (*TransitImportCommand) Flags

func (c *TransitImportCommand) Flags() *FlagSets

func (*TransitImportCommand) Help

func (c *TransitImportCommand) Help() string

func (*TransitImportCommand) Run

func (c *TransitImportCommand) Run(args []string) int

func (*TransitImportCommand) Synopsis

func (c *TransitImportCommand) Synopsis() string

type TransitImportVersionCommand

type TransitImportVersionCommand struct {
	*BaseCommand
}

func (*TransitImportVersionCommand) AutocompleteArgs

func (c *TransitImportVersionCommand) AutocompleteArgs() complete.Predictor

func (*TransitImportVersionCommand) AutocompleteFlags

func (c *TransitImportVersionCommand) AutocompleteFlags() complete.Flags

func (*TransitImportVersionCommand) Flags

func (*TransitImportVersionCommand) Help

func (*TransitImportVersionCommand) Run

func (c *TransitImportVersionCommand) Run(args []string) int

func (*TransitImportVersionCommand) Synopsis

func (c *TransitImportVersionCommand) 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 VaultUI

type VaultUI struct {
	cli.Ui
	// contains filtered or unexported fields
}

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 VersionHistoryCommand

type VersionHistoryCommand struct {
	*BaseCommand
}

VersionHistoryCommand is a Command implementation prints the version.

func (*VersionHistoryCommand) AutocompleteArgs

func (c *VersionHistoryCommand) AutocompleteArgs() complete.Predictor

func (*VersionHistoryCommand) AutocompleteFlags

func (c *VersionHistoryCommand) AutocompleteFlags() complete.Flags

func (*VersionHistoryCommand) Flags

func (c *VersionHistoryCommand) Flags() *FlagSets

func (*VersionHistoryCommand) Help

func (c *VersionHistoryCommand) Help() string

func (*VersionHistoryCommand) Run

func (c *VersionHistoryCommand) Run(args []string) int

func (*VersionHistoryCommand) Synopsis

func (c *VersionHistoryCommand) 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)

func (YamlFormatter) Output

func (y YamlFormatter) Output(ui cli.Ui, secret *api.Secret, data interface{}) error

Source Files

Directories

Path Synopsis
Package agent implements a daemon mode of Vault designed to provide helper features like auto-auth, caching, and templating.
Package agent implements a daemon mode of Vault designed to provide helper features like auto-auth, caching, and templating.
template
Package template is responsible for rendering user supplied templates to disk.
Package template is responsible for rendering user supplied templates to disk.
proxy

Jump to

Keyboard shortcuts

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