command

package
v0.0.0-...-ea7380c Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EnvNomadCLINoColor is an env var that toggles colored UI output.
	EnvVaultCLINoColor = `VAULT_CLI_NO_COLOR`
)

Variables

This section is empty.

Functions

func Commands

func Commands(metaPtr *Meta, agentUI cli.Ui) map[string]cli.CommandFactory

Commands returns the mapping of CLI commands for Nomad. The meta parameter lets you set meta options for all commands.

func EntCommands

func EntCommands(metaPtr *Meta, agentUi cli.Ui) map[string]cli.CommandFactory

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

func (m *Meta) AutocompleteFlags() complete.Flags

AutocompleteFlags returns a set of flag completions for the given flag set.

func (*Meta) FlagSet

func (m *Meta) FlagSet(n string) *flag.FlagSet

FlagSet returns a FlagSet with the common flags that every command implements. The exact behavior of FlagSet can be configured using the flags as the second parameter, for example to disable server settings on the commands that don't talk to a server.

func (*Meta) Load

func (m *Meta) Load() error

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

Jump to

Keyboard shortcuts

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