Documentation ¶
Index ¶
- Constants
- func Commands(metaPtr *Meta, agentUI cli.Ui) map[string]cli.CommandFactory
- func EntCommands(metaPtr *Meta, agentUi cli.Ui) map[string]cli.CommandFactory
- type ConfigCommand
- type FlagSetFlags
- type Meta
- type NamedCommand
- type PutCommand
- type PutJWTRoleCommand
- func (c *PutJWTRoleCommand) AutocompleteArgs() complete.Predictor
- func (c *PutJWTRoleCommand) AutocompleteFlags() complete.Flags
- func (c *PutJWTRoleCommand) Help() string
- func (c *PutJWTRoleCommand) Name() string
- func (c *PutJWTRoleCommand) Run(args []string) int
- func (c *PutJWTRoleCommand) Synopsis() string
- type PutPKIRoleCommand
- func (c *PutPKIRoleCommand) AutocompleteArgs() complete.Predictor
- func (c *PutPKIRoleCommand) AutocompleteFlags() complete.Flags
- func (c *PutPKIRoleCommand) Help() string
- func (c *PutPKIRoleCommand) Name() string
- func (c *PutPKIRoleCommand) Run(args []string) int
- func (c *PutPKIRoleCommand) Synopsis() string
- type PutSSHRoleCommand
- func (c *PutSSHRoleCommand) AutocompleteArgs() complete.Predictor
- func (c *PutSSHRoleCommand) AutocompleteFlags() complete.Flags
- func (c *PutSSHRoleCommand) Help() string
- func (c *PutSSHRoleCommand) Name() string
- func (c *PutSSHRoleCommand) Run(args []string) int
- func (c *PutSSHRoleCommand) Synopsis() string
- type PutVaultAuthCommand
- func (c *PutVaultAuthCommand) AutocompleteArgs() complete.Predictor
- func (c *PutVaultAuthCommand) AutocompleteFlags() complete.Flags
- func (c *PutVaultAuthCommand) Help() string
- func (c *PutVaultAuthCommand) Name() string
- func (c *PutVaultAuthCommand) Run(args []string) int
- func (c *PutVaultAuthCommand) Synopsis() string
- type PutVaultEndpointCommand
- func (c *PutVaultEndpointCommand) AutocompleteArgs() complete.Predictor
- func (c *PutVaultEndpointCommand) AutocompleteFlags() complete.Flags
- func (c *PutVaultEndpointCommand) ConfigureCRLs(filename, path string, endpoint *v1.VaultEndpoint) error
- func (c *PutVaultEndpointCommand) ConfigureIntermediateCAInternal(filename, intermediatePath string, endpoint *v1.VaultEndpoint) error
- func (c *PutVaultEndpointCommand) ConfigureRootCAInternal(filename, path string, endpoint *v1.VaultEndpoint) error
- func (c *PutVaultEndpointCommand) ConfigureSSHGenerateSigning(filename, path string, endpoint *v1.VaultEndpoint) error
- func (c *PutVaultEndpointCommand) ConfigureURLs(filename, path string, endpoint *v1.VaultEndpoint) error
- func (c *PutVaultEndpointCommand) Help() string
- func (c *PutVaultEndpointCommand) Name() string
- func (c *PutVaultEndpointCommand) Run(args []string) int
- func (c *PutVaultEndpointCommand) Synopsis() string
- type PutVaultNamespaceCommand
- func (c *PutVaultNamespaceCommand) AutocompleteArgs() complete.Predictor
- func (c *PutVaultNamespaceCommand) AutocompleteFlags() complete.Flags
- func (c *PutVaultNamespaceCommand) Help() string
- func (c *PutVaultNamespaceCommand) Name() string
- func (c *PutVaultNamespaceCommand) Run(args []string) int
- func (c *PutVaultNamespaceCommand) Synopsis() string
- type PutVaultPolicyCommand
- func (c *PutVaultPolicyCommand) AutocompleteArgs() complete.Predictor
- func (c *PutVaultPolicyCommand) AutocompleteFlags() complete.Flags
- func (c *PutVaultPolicyCommand) Help() string
- func (c *PutVaultPolicyCommand) Name() string
- func (c *PutVaultPolicyCommand) Run(args []string) int
- func (c *PutVaultPolicyCommand) Synopsis() string
- type PutVaultRoleCommand
- func (c *PutVaultRoleCommand) AutocompleteArgs() complete.Predictor
- func (c *PutVaultRoleCommand) AutocompleteFlags() complete.Flags
- func (c *PutVaultRoleCommand) Help() string
- func (c *PutVaultRoleCommand) Name() string
- func (c *PutVaultRoleCommand) Run(args []string) int
- func (c *PutVaultRoleCommand) Synopsis() string
Constants ¶
const (
// EnvNomadCLINoColor is an env var that toggles colored UI output.
EnvVaultCLINoColor = `VAULT_CLI_NO_COLOR`
)
Variables ¶
This section is empty.
Functions ¶
func Commands ¶
Commands returns the mapping of CLI commands for Nomad. The meta parameter lets you set meta options for all commands.
func EntCommands ¶
Types ¶
type ConfigCommand ¶
type ConfigCommand struct {
Meta
}
func (*ConfigCommand) Help ¶
func (f *ConfigCommand) Help() string
func (*ConfigCommand) Name ¶
func (f *ConfigCommand) Name() string
func (*ConfigCommand) Run ¶
func (f *ConfigCommand) Run(args []string) int
func (*ConfigCommand) Synopsis ¶
func (f *ConfigCommand) Synopsis() string
type FlagSetFlags ¶
type FlagSetFlags uint
FlagSetFlags is an enum to define what flags are present in the default FlagSet returned by Meta.FlagSet.
type Meta ¶
type Meta struct { Ui cli.Ui Config *config.Config ConfigService configservice.ConfigService SecretService secretservice.SecretService CurrentContext *config.Context InventoryPath string // contains filtered or unexported fields }
Meta contains the meta-options and functionality that nearly every Nomad command inherits.
func (*Meta) AutocompleteFlags ¶
AutocompleteFlags returns a set of flag completions for the given flag set.
type NamedCommand ¶
type NamedCommand interface {
Name() string
}
NamedCommand is a interface to denote a commmand's name.
type PutCommand ¶
type PutCommand struct {
Meta
}
func (*PutCommand) Help ¶
func (f *PutCommand) Help() string
func (*PutCommand) Name ¶
func (f *PutCommand) Name() string
func (*PutCommand) Run ¶
func (f *PutCommand) Run(args []string) int
func (*PutCommand) Synopsis ¶
func (f *PutCommand) Synopsis() string
type PutJWTRoleCommand ¶
type PutJWTRoleCommand struct {
Meta Meta
}
func (*PutJWTRoleCommand) AutocompleteArgs ¶
func (c *PutJWTRoleCommand) AutocompleteArgs() complete.Predictor
func (*PutJWTRoleCommand) AutocompleteFlags ¶
func (c *PutJWTRoleCommand) AutocompleteFlags() complete.Flags
func (*PutJWTRoleCommand) Help ¶
func (c *PutJWTRoleCommand) Help() string
func (*PutJWTRoleCommand) Name ¶
func (c *PutJWTRoleCommand) Name() string
func (*PutJWTRoleCommand) Run ¶
func (c *PutJWTRoleCommand) Run(args []string) int
func (*PutJWTRoleCommand) Synopsis ¶
func (c *PutJWTRoleCommand) Synopsis() string
type PutPKIRoleCommand ¶
type PutPKIRoleCommand struct {
Meta Meta
}
func (*PutPKIRoleCommand) AutocompleteArgs ¶
func (c *PutPKIRoleCommand) AutocompleteArgs() complete.Predictor
func (*PutPKIRoleCommand) AutocompleteFlags ¶
func (c *PutPKIRoleCommand) AutocompleteFlags() complete.Flags
func (*PutPKIRoleCommand) Help ¶
func (c *PutPKIRoleCommand) Help() string
func (*PutPKIRoleCommand) Name ¶
func (c *PutPKIRoleCommand) Name() string
func (*PutPKIRoleCommand) Run ¶
func (c *PutPKIRoleCommand) Run(args []string) int
func (*PutPKIRoleCommand) Synopsis ¶
func (c *PutPKIRoleCommand) Synopsis() string
type PutSSHRoleCommand ¶
type PutSSHRoleCommand struct {
Meta Meta
}
func (*PutSSHRoleCommand) AutocompleteArgs ¶
func (c *PutSSHRoleCommand) AutocompleteArgs() complete.Predictor
func (*PutSSHRoleCommand) AutocompleteFlags ¶
func (c *PutSSHRoleCommand) AutocompleteFlags() complete.Flags
func (*PutSSHRoleCommand) Help ¶
func (c *PutSSHRoleCommand) Help() string
func (*PutSSHRoleCommand) Name ¶
func (c *PutSSHRoleCommand) Name() string
func (*PutSSHRoleCommand) Run ¶
func (c *PutSSHRoleCommand) Run(args []string) int
func (*PutSSHRoleCommand) Synopsis ¶
func (c *PutSSHRoleCommand) Synopsis() string
type PutVaultAuthCommand ¶
type PutVaultAuthCommand struct {
Meta Meta
}
func (*PutVaultAuthCommand) AutocompleteArgs ¶
func (c *PutVaultAuthCommand) AutocompleteArgs() complete.Predictor
func (*PutVaultAuthCommand) AutocompleteFlags ¶
func (c *PutVaultAuthCommand) AutocompleteFlags() complete.Flags
func (*PutVaultAuthCommand) Help ¶
func (c *PutVaultAuthCommand) Help() string
func (*PutVaultAuthCommand) Name ¶
func (c *PutVaultAuthCommand) Name() string
func (*PutVaultAuthCommand) Run ¶
func (c *PutVaultAuthCommand) Run(args []string) int
func (*PutVaultAuthCommand) Synopsis ¶
func (c *PutVaultAuthCommand) Synopsis() string
type PutVaultEndpointCommand ¶
type PutVaultEndpointCommand struct {
Meta Meta
}
func (*PutVaultEndpointCommand) AutocompleteArgs ¶
func (c *PutVaultEndpointCommand) AutocompleteArgs() complete.Predictor
func (*PutVaultEndpointCommand) AutocompleteFlags ¶
func (c *PutVaultEndpointCommand) AutocompleteFlags() complete.Flags
func (*PutVaultEndpointCommand) ConfigureCRLs ¶
func (c *PutVaultEndpointCommand) ConfigureCRLs(filename, path string, endpoint *v1.VaultEndpoint) error
ConfigureCRLs configures the endpoint TODO Resolve issues with where this information comes from
func (*PutVaultEndpointCommand) ConfigureIntermediateCAInternal ¶
func (c *PutVaultEndpointCommand) ConfigureIntermediateCAInternal(filename, intermediatePath string, endpoint *v1.VaultEndpoint) error
ConfigureIntermediateCAInternal configures the endpoint
func (*PutVaultEndpointCommand) ConfigureRootCAInternal ¶
func (c *PutVaultEndpointCommand) ConfigureRootCAInternal(filename, path string, endpoint *v1.VaultEndpoint) error
ConfigureRootCAInternal configures the endpoint
func (*PutVaultEndpointCommand) ConfigureSSHGenerateSigning ¶
func (c *PutVaultEndpointCommand) ConfigureSSHGenerateSigning(filename, path string, endpoint *v1.VaultEndpoint) error
ConfigureSSHGenerateSigning configures the endpoint
func (*PutVaultEndpointCommand) ConfigureURLs ¶
func (c *PutVaultEndpointCommand) ConfigureURLs(filename, path string, endpoint *v1.VaultEndpoint) error
ConfigureURLs configures the endpoint TODO Resolve issues with where this information comes from
func (*PutVaultEndpointCommand) Help ¶
func (c *PutVaultEndpointCommand) Help() string
func (*PutVaultEndpointCommand) Name ¶
func (c *PutVaultEndpointCommand) Name() string
func (*PutVaultEndpointCommand) Run ¶
func (c *PutVaultEndpointCommand) Run(args []string) int
func (*PutVaultEndpointCommand) Synopsis ¶
func (c *PutVaultEndpointCommand) Synopsis() string
type PutVaultNamespaceCommand ¶
type PutVaultNamespaceCommand struct {
Meta Meta
}
func (*PutVaultNamespaceCommand) AutocompleteArgs ¶
func (c *PutVaultNamespaceCommand) AutocompleteArgs() complete.Predictor
func (*PutVaultNamespaceCommand) AutocompleteFlags ¶
func (c *PutVaultNamespaceCommand) AutocompleteFlags() complete.Flags
func (*PutVaultNamespaceCommand) Help ¶
func (c *PutVaultNamespaceCommand) Help() string
func (*PutVaultNamespaceCommand) Name ¶
func (c *PutVaultNamespaceCommand) Name() string
func (*PutVaultNamespaceCommand) Run ¶
func (c *PutVaultNamespaceCommand) Run(args []string) int
func (*PutVaultNamespaceCommand) Synopsis ¶
func (c *PutVaultNamespaceCommand) Synopsis() string
type PutVaultPolicyCommand ¶
type PutVaultPolicyCommand struct {
Meta Meta
}
func (*PutVaultPolicyCommand) AutocompleteArgs ¶
func (c *PutVaultPolicyCommand) AutocompleteArgs() complete.Predictor
func (*PutVaultPolicyCommand) AutocompleteFlags ¶
func (c *PutVaultPolicyCommand) AutocompleteFlags() complete.Flags
func (*PutVaultPolicyCommand) Help ¶
func (c *PutVaultPolicyCommand) Help() string
func (*PutVaultPolicyCommand) Name ¶
func (c *PutVaultPolicyCommand) Name() string
func (*PutVaultPolicyCommand) Run ¶
func (c *PutVaultPolicyCommand) Run(args []string) int
func (*PutVaultPolicyCommand) Synopsis ¶
func (c *PutVaultPolicyCommand) Synopsis() string
type PutVaultRoleCommand ¶
type PutVaultRoleCommand struct { Meta Meta FlagPolicies string FlagBoundNamespaces string FlagBoundServiceAccountNames string }
func (*PutVaultRoleCommand) AutocompleteArgs ¶
func (c *PutVaultRoleCommand) AutocompleteArgs() complete.Predictor
func (*PutVaultRoleCommand) AutocompleteFlags ¶
func (c *PutVaultRoleCommand) AutocompleteFlags() complete.Flags
func (*PutVaultRoleCommand) Help ¶
func (c *PutVaultRoleCommand) Help() string
func (*PutVaultRoleCommand) Name ¶
func (c *PutVaultRoleCommand) Name() string
func (*PutVaultRoleCommand) Run ¶
func (c *PutVaultRoleCommand) Run(args []string) int
func (*PutVaultRoleCommand) Synopsis ¶
func (c *PutVaultRoleCommand) Synopsis() string