command

package
v1.0.0-...-ad34a62 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: MPL-2.0 Imports: 57 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HealthCritical = 2
	HealthWarn     = 1
	HealthPass     = 0
	HealthUnknown  = 3
)
View Source
const (
	// DefaultHclQuotaInitName is the default name we use when initializing the
	// example quota file in HCL format
	DefaultHclQuotaInitName = "spec.hcl"

	// DefaultHclQuotaInitName is the default name we use when initializing the
	// example quota file in JSON format
	DefaultJsonQuotaInitName = "spec.json"
)
View Source
const (
	// DefaultInitName is the default name we use when
	// initializing the example file
	DefaultInitName = "example.nomad"
)
View Source
const (
	// EnvNomadCLINoColor is an env var that toggles colored UI output.
	EnvNomadCLINoColor = `NOMAD_CLI_NO_COLOR`
)

Variables

This section is empty.

Functions

func Asset

func Asset(name string) ([]byte, error)

Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetDir

func AssetDir(name string) ([]string, error)

AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:

data/
  foo.txt
  img/
    a.png
    b.png

then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.

func AssetInfo

func AssetInfo(name string) (os.FileInfo, error)

AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetNames

func AssetNames() []string

AssetNames returns the names of the assets.

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 Format

func Format(json bool, template string, data interface{}) (string, error)

func MustAsset

func MustAsset(name string) []byte

MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.

func NamespacePredictor

func NamespacePredictor(factory ApiClientFactory, filter map[string]struct{}) complete.Predictor

NamespacePredictor returns a namespace predictor that can optionally filter specific namespaces

func QuotaPredictor

func QuotaPredictor(factory ApiClientFactory) complete.Predictor

QuotaPredictor returns a quota predictor

func RestoreAsset

func RestoreAsset(dir, name string) error

RestoreAsset restores an asset under the given directory

func RestoreAssets

func RestoreAssets(dir, name string) error

RestoreAssets restores an asset under the given directory recursively

Types

type ACLBootstrapCommand

type ACLBootstrapCommand struct {
	Meta
}

func (*ACLBootstrapCommand) AutocompleteArgs

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

func (*ACLBootstrapCommand) AutocompleteFlags

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

func (*ACLBootstrapCommand) Help

func (c *ACLBootstrapCommand) Help() string

func (*ACLBootstrapCommand) Name

func (c *ACLBootstrapCommand) Name() string

func (*ACLBootstrapCommand) Run

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

func (*ACLBootstrapCommand) Synopsis

func (c *ACLBootstrapCommand) Synopsis() string

type ACLCommand

type ACLCommand struct {
	Meta
}

func (*ACLCommand) Help

func (f *ACLCommand) Help() string

func (*ACLCommand) Name

func (f *ACLCommand) Name() string

func (*ACLCommand) Run

func (f *ACLCommand) Run(args []string) int

func (*ACLCommand) Synopsis

func (f *ACLCommand) Synopsis() string

type ACLPolicyApplyCommand

type ACLPolicyApplyCommand struct {
	Meta
}

func (*ACLPolicyApplyCommand) AutocompleteArgs

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

func (*ACLPolicyApplyCommand) AutocompleteFlags

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

func (*ACLPolicyApplyCommand) Help

func (c *ACLPolicyApplyCommand) Help() string

func (*ACLPolicyApplyCommand) Name

func (c *ACLPolicyApplyCommand) Name() string

func (*ACLPolicyApplyCommand) Run

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

func (*ACLPolicyApplyCommand) Synopsis

func (c *ACLPolicyApplyCommand) Synopsis() string

type ACLPolicyCommand

type ACLPolicyCommand struct {
	Meta
}

func (*ACLPolicyCommand) Help

func (f *ACLPolicyCommand) Help() string

func (*ACLPolicyCommand) Name

func (f *ACLPolicyCommand) Name() string

func (*ACLPolicyCommand) Run

func (f *ACLPolicyCommand) Run(args []string) int

func (*ACLPolicyCommand) Synopsis

func (f *ACLPolicyCommand) Synopsis() string

type ACLPolicyDeleteCommand

type ACLPolicyDeleteCommand struct {
	Meta
}

func (*ACLPolicyDeleteCommand) AutocompleteArgs

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

func (*ACLPolicyDeleteCommand) AutocompleteFlags

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

func (*ACLPolicyDeleteCommand) Help

func (c *ACLPolicyDeleteCommand) Help() string

func (*ACLPolicyDeleteCommand) Name

func (c *ACLPolicyDeleteCommand) Name() string

func (*ACLPolicyDeleteCommand) Run

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

func (*ACLPolicyDeleteCommand) Synopsis

func (c *ACLPolicyDeleteCommand) Synopsis() string

type ACLPolicyInfoCommand

type ACLPolicyInfoCommand struct {
	Meta
}

func (*ACLPolicyInfoCommand) AutocompleteArgs

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

func (*ACLPolicyInfoCommand) AutocompleteFlags

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

func (*ACLPolicyInfoCommand) Help

func (c *ACLPolicyInfoCommand) Help() string

func (*ACLPolicyInfoCommand) Name

func (c *ACLPolicyInfoCommand) Name() string

func (*ACLPolicyInfoCommand) Run

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

func (*ACLPolicyInfoCommand) Synopsis

func (c *ACLPolicyInfoCommand) Synopsis() string

type ACLPolicyListCommand

type ACLPolicyListCommand struct {
	Meta
}

func (*ACLPolicyListCommand) AutocompleteArgs

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

func (*ACLPolicyListCommand) AutocompleteFlags

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

func (*ACLPolicyListCommand) Help

func (c *ACLPolicyListCommand) Help() string

func (*ACLPolicyListCommand) Name

func (c *ACLPolicyListCommand) Name() string

func (*ACLPolicyListCommand) Run

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

func (*ACLPolicyListCommand) Synopsis

func (c *ACLPolicyListCommand) Synopsis() string

type ACLTokenCommand

type ACLTokenCommand struct {
	Meta
}

func (*ACLTokenCommand) Help

func (f *ACLTokenCommand) Help() string

func (*ACLTokenCommand) Name

func (f *ACLTokenCommand) Name() string

func (*ACLTokenCommand) Run

func (f *ACLTokenCommand) Run(args []string) int

func (*ACLTokenCommand) Synopsis

func (f *ACLTokenCommand) Synopsis() string

type ACLTokenCreateCommand

type ACLTokenCreateCommand struct {
	Meta
}

func (*ACLTokenCreateCommand) AutocompleteArgs

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

func (*ACLTokenCreateCommand) AutocompleteFlags

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

func (*ACLTokenCreateCommand) Help

func (c *ACLTokenCreateCommand) Help() string

func (*ACLTokenCreateCommand) Name

func (c *ACLTokenCreateCommand) Name() string

func (*ACLTokenCreateCommand) Run

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

func (*ACLTokenCreateCommand) Synopsis

func (c *ACLTokenCreateCommand) Synopsis() string

type ACLTokenDeleteCommand

type ACLTokenDeleteCommand struct {
	Meta
}

func (*ACLTokenDeleteCommand) AutocompleteArgs

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

func (*ACLTokenDeleteCommand) AutocompleteFlags

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

func (*ACLTokenDeleteCommand) Help

func (c *ACLTokenDeleteCommand) Help() string

func (*ACLTokenDeleteCommand) Name

func (c *ACLTokenDeleteCommand) Name() string

func (*ACLTokenDeleteCommand) Run

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

func (*ACLTokenDeleteCommand) Synopsis

func (c *ACLTokenDeleteCommand) Synopsis() string

type ACLTokenInfoCommand

type ACLTokenInfoCommand struct {
	Meta
}

func (*ACLTokenInfoCommand) AutocompleteArgs

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

func (*ACLTokenInfoCommand) AutocompleteFlags

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

func (*ACLTokenInfoCommand) Help

func (c *ACLTokenInfoCommand) Help() string

func (*ACLTokenInfoCommand) Name

func (c *ACLTokenInfoCommand) Name() string

func (*ACLTokenInfoCommand) Run

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

func (*ACLTokenInfoCommand) Synopsis

func (c *ACLTokenInfoCommand) Synopsis() string

type ACLTokenListCommand

type ACLTokenListCommand struct {
	Meta
}

func (*ACLTokenListCommand) AutocompleteArgs

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

func (*ACLTokenListCommand) AutocompleteFlags

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

func (*ACLTokenListCommand) Help

func (c *ACLTokenListCommand) Help() string

func (*ACLTokenListCommand) Name

func (c *ACLTokenListCommand) Name() string

func (*ACLTokenListCommand) Run

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

func (*ACLTokenListCommand) Synopsis

func (c *ACLTokenListCommand) Synopsis() string

type ACLTokenSelfCommand

type ACLTokenSelfCommand struct {
	Meta
}

func (*ACLTokenSelfCommand) AutocompleteArgs

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

func (*ACLTokenSelfCommand) AutocompleteFlags

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

func (*ACLTokenSelfCommand) Help

func (c *ACLTokenSelfCommand) Help() string

func (*ACLTokenSelfCommand) Name

func (c *ACLTokenSelfCommand) Name() string

func (*ACLTokenSelfCommand) Run

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

func (*ACLTokenSelfCommand) Synopsis

func (c *ACLTokenSelfCommand) Synopsis() string

type ACLTokenUpdateCommand

type ACLTokenUpdateCommand struct {
	Meta
}

func (*ACLTokenUpdateCommand) AutocompleteArgs

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

func (*ACLTokenUpdateCommand) AutocompleteFlags

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

func (*ACLTokenUpdateCommand) Help

func (c *ACLTokenUpdateCommand) Help() string

func (*ACLTokenUpdateCommand) Name

func (*ACLTokenUpdateCommand) Name() string

func (*ACLTokenUpdateCommand) Run

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

func (*ACLTokenUpdateCommand) Synopsis

func (c *ACLTokenUpdateCommand) Synopsis() string

type AgentCheckCommand

type AgentCheckCommand struct {
	Meta
}

func (*AgentCheckCommand) AutocompleteArgs

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

func (*AgentCheckCommand) AutocompleteFlags

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

func (*AgentCheckCommand) Help

func (c *AgentCheckCommand) Help() string

func (*AgentCheckCommand) Name

func (c *AgentCheckCommand) Name() string

func (*AgentCheckCommand) Run

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

func (*AgentCheckCommand) Synopsis

func (c *AgentCheckCommand) Synopsis() string

type AgentInfoCommand

type AgentInfoCommand struct {
	Meta
}

func (*AgentInfoCommand) AutocompleteArgs

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

func (*AgentInfoCommand) AutocompleteFlags

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

func (*AgentInfoCommand) Help

func (c *AgentInfoCommand) Help() string

func (*AgentInfoCommand) Name

func (c *AgentInfoCommand) Name() string

func (*AgentInfoCommand) Run

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

func (*AgentInfoCommand) Synopsis

func (c *AgentInfoCommand) Synopsis() string

type AllocCommand

type AllocCommand struct {
	Meta
}

func (*AllocCommand) Help

func (f *AllocCommand) Help() string

func (*AllocCommand) Name

func (f *AllocCommand) Name() string

func (*AllocCommand) Run

func (f *AllocCommand) Run(args []string) int

func (*AllocCommand) Synopsis

func (f *AllocCommand) Synopsis() string

type AllocExecCommand

type AllocExecCommand struct {
	Meta

	Stdin  io.Reader
	Stdout io.WriteCloser
	Stderr io.WriteCloser
}

func (*AllocExecCommand) AutocompleteArgs

func (l *AllocExecCommand) AutocompleteArgs() complete.Predictor

func (*AllocExecCommand) AutocompleteFlags

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

func (*AllocExecCommand) Help

func (l *AllocExecCommand) Help() string

func (*AllocExecCommand) Name

func (l *AllocExecCommand) Name() string

func (*AllocExecCommand) Run

func (l *AllocExecCommand) Run(args []string) int

func (*AllocExecCommand) Synopsis

func (l *AllocExecCommand) Synopsis() string

type AllocFSCommand

type AllocFSCommand struct {
	Meta
}

func (*AllocFSCommand) AutocompleteArgs

func (f *AllocFSCommand) AutocompleteArgs() complete.Predictor

func (*AllocFSCommand) AutocompleteFlags

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

func (*AllocFSCommand) Help

func (f *AllocFSCommand) Help() string

func (*AllocFSCommand) Name

func (f *AllocFSCommand) Name() string

func (*AllocFSCommand) Run

func (f *AllocFSCommand) Run(args []string) int

func (*AllocFSCommand) Synopsis

func (f *AllocFSCommand) Synopsis() string

type AllocLogsCommand

type AllocLogsCommand struct {
	Meta
}

func (*AllocLogsCommand) AutocompleteArgs

func (l *AllocLogsCommand) AutocompleteArgs() complete.Predictor

func (*AllocLogsCommand) AutocompleteFlags

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

func (*AllocLogsCommand) Help

func (l *AllocLogsCommand) Help() string

func (*AllocLogsCommand) Name

func (l *AllocLogsCommand) Name() string

func (*AllocLogsCommand) Run

func (l *AllocLogsCommand) Run(args []string) int

func (*AllocLogsCommand) Synopsis

func (l *AllocLogsCommand) Synopsis() string

type AllocRestartCommand

type AllocRestartCommand struct {
	Meta
}

func (*AllocRestartCommand) AutocompleteArgs

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

func (*AllocRestartCommand) Help

func (a *AllocRestartCommand) Help() string

func (*AllocRestartCommand) Name

func (c *AllocRestartCommand) Name() string

func (*AllocRestartCommand) Run

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

func (*AllocRestartCommand) Synopsis

func (a *AllocRestartCommand) Synopsis() string

type AllocSignalCommand

type AllocSignalCommand struct {
	Meta
}

func (*AllocSignalCommand) AutocompleteArgs

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

func (*AllocSignalCommand) AutocompleteFlags

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

func (*AllocSignalCommand) Help

func (a *AllocSignalCommand) Help() string

func (*AllocSignalCommand) Name

func (c *AllocSignalCommand) Name() string

func (*AllocSignalCommand) Run

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

func (*AllocSignalCommand) Synopsis

func (a *AllocSignalCommand) Synopsis() string

type AllocStatusCommand

type AllocStatusCommand struct {
	Meta
}

func (*AllocStatusCommand) AutocompleteArgs

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

func (*AllocStatusCommand) AutocompleteFlags

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

func (*AllocStatusCommand) Help

func (c *AllocStatusCommand) Help() string

func (*AllocStatusCommand) Name

func (c *AllocStatusCommand) Name() string

func (*AllocStatusCommand) Run

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

func (*AllocStatusCommand) Synopsis

func (c *AllocStatusCommand) Synopsis() string

type AllocStopCommand

type AllocStopCommand struct {
	Meta
}

func (*AllocStopCommand) Help

func (a *AllocStopCommand) Help() string

func (*AllocStopCommand) Name

func (c *AllocStopCommand) Name() string

func (*AllocStopCommand) Run

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

func (*AllocStopCommand) Synopsis

func (a *AllocStopCommand) Synopsis() string

type ApiClientFactory

type ApiClientFactory func() (*api.Client, error)

ApiClientFactory is the signature of a API client factory

type DataFormatter

type DataFormatter interface {
	// TransformData should return transformed string data.
	TransformData(interface{}) (string, error)
}

DataFormatter is a transformer of the data.

func DataFormat

func DataFormat(format, tmpl string) (DataFormatter, error)

DataFormat returns the data formatter specified format.

type DeploymentCommand

type DeploymentCommand struct {
	Meta
}

func (*DeploymentCommand) Help

func (f *DeploymentCommand) Help() string

func (*DeploymentCommand) Name

func (f *DeploymentCommand) Name() string

func (*DeploymentCommand) Run

func (f *DeploymentCommand) Run(args []string) int

func (*DeploymentCommand) Synopsis

func (f *DeploymentCommand) Synopsis() string

type DeploymentFailCommand

type DeploymentFailCommand struct {
	Meta
}

func (*DeploymentFailCommand) AutocompleteArgs

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

func (*DeploymentFailCommand) AutocompleteFlags

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

func (*DeploymentFailCommand) Help

func (c *DeploymentFailCommand) Help() string

func (*DeploymentFailCommand) Name

func (c *DeploymentFailCommand) Name() string

func (*DeploymentFailCommand) Run

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

func (*DeploymentFailCommand) Synopsis

func (c *DeploymentFailCommand) Synopsis() string

type DeploymentListCommand

type DeploymentListCommand struct {
	Meta
}

func (*DeploymentListCommand) AutocompleteArgs

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

func (*DeploymentListCommand) AutocompleteFlags

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

func (*DeploymentListCommand) Help

func (c *DeploymentListCommand) Help() string

func (*DeploymentListCommand) Name

func (c *DeploymentListCommand) Name() string

func (*DeploymentListCommand) Run

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

func (*DeploymentListCommand) Synopsis

func (c *DeploymentListCommand) Synopsis() string

type DeploymentPauseCommand

type DeploymentPauseCommand struct {
	Meta
}

func (*DeploymentPauseCommand) AutocompleteArgs

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

func (*DeploymentPauseCommand) AutocompleteFlags

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

func (*DeploymentPauseCommand) Help

func (c *DeploymentPauseCommand) Help() string

func (*DeploymentPauseCommand) Name

func (c *DeploymentPauseCommand) Name() string

func (*DeploymentPauseCommand) Run

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

func (*DeploymentPauseCommand) Synopsis

func (c *DeploymentPauseCommand) Synopsis() string

type DeploymentPromoteCommand

type DeploymentPromoteCommand struct {
	Meta
}

func (*DeploymentPromoteCommand) AutocompleteArgs

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

func (*DeploymentPromoteCommand) AutocompleteFlags

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

func (*DeploymentPromoteCommand) Help

func (c *DeploymentPromoteCommand) Help() string

func (*DeploymentPromoteCommand) Name

func (c *DeploymentPromoteCommand) Name() string

func (*DeploymentPromoteCommand) Run

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

func (*DeploymentPromoteCommand) Synopsis

func (c *DeploymentPromoteCommand) Synopsis() string

type DeploymentResumeCommand

type DeploymentResumeCommand struct {
	Meta
}

func (*DeploymentResumeCommand) AutocompleteArgs

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

func (*DeploymentResumeCommand) AutocompleteFlags

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

func (*DeploymentResumeCommand) Help

func (c *DeploymentResumeCommand) Help() string

func (*DeploymentResumeCommand) Name

func (c *DeploymentResumeCommand) Name() string

func (*DeploymentResumeCommand) Run

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

func (*DeploymentResumeCommand) Synopsis

func (c *DeploymentResumeCommand) Synopsis() string

type DeploymentStatusCommand

type DeploymentStatusCommand struct {
	Meta
}

func (*DeploymentStatusCommand) AutocompleteArgs

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

func (*DeploymentStatusCommand) AutocompleteFlags

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

func (*DeploymentStatusCommand) Help

func (c *DeploymentStatusCommand) Help() string

func (*DeploymentStatusCommand) Name

func (c *DeploymentStatusCommand) Name() string

func (*DeploymentStatusCommand) Run

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

func (*DeploymentStatusCommand) Synopsis

func (c *DeploymentStatusCommand) Synopsis() string

type DeprecatedCommand

type DeprecatedCommand struct {
	cli.Command
	Meta

	// Old is the old command name, New is the new command name.
	Old, New string
}

DeprecatedCommand is a command that wraps an existing command and prints a deprecation notice and points the user to the new command. Deprecated commands are always hidden from help output.

func (*DeprecatedCommand) Help

func (c *DeprecatedCommand) Help() string

Help wraps the embedded Help command and prints a warning about deprecations.

func (*DeprecatedCommand) Run

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

Run wraps the embedded Run command and prints a warning about deprecation.

type EvalCommand

type EvalCommand struct {
	Meta
}

func (*EvalCommand) Help

func (f *EvalCommand) Help() string

func (*EvalCommand) Name

func (f *EvalCommand) Name() string

func (*EvalCommand) Run

func (f *EvalCommand) Run(args []string) int

func (*EvalCommand) Synopsis

func (f *EvalCommand) Synopsis() string

type EvalStatusCommand

type EvalStatusCommand struct {
	Meta
}

func (*EvalStatusCommand) AutocompleteArgs

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

func (*EvalStatusCommand) AutocompleteFlags

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

func (*EvalStatusCommand) Help

func (c *EvalStatusCommand) Help() string

func (*EvalStatusCommand) Name

func (c *EvalStatusCommand) Name() string

func (*EvalStatusCommand) Run

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

func (*EvalStatusCommand) Synopsis

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

const (
	FlagSetNone    FlagSetFlags = 0
	FlagSetClient  FlagSetFlags = 1 << iota
	FlagSetDefault              = FlagSetClient
)

type JSONFormat

type JSONFormat struct {
}

func (*JSONFormat) TransformData

func (p *JSONFormat) TransformData(data interface{}) (string, error)

TransformData returns JSON format string data.

type JobCommand

type JobCommand struct {
	Meta
}

func (*JobCommand) Help

func (f *JobCommand) Help() string

func (*JobCommand) Name

func (f *JobCommand) Name() string

func (*JobCommand) Run

func (f *JobCommand) Run(args []string) int

func (*JobCommand) Synopsis

func (f *JobCommand) Synopsis() string

type JobDeploymentsCommand

type JobDeploymentsCommand struct {
	Meta
}

func (*JobDeploymentsCommand) AutocompleteArgs

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

func (*JobDeploymentsCommand) AutocompleteFlags

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

func (*JobDeploymentsCommand) Help

func (c *JobDeploymentsCommand) Help() string

func (*JobDeploymentsCommand) Name

func (c *JobDeploymentsCommand) Name() string

func (*JobDeploymentsCommand) Run

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

func (*JobDeploymentsCommand) Synopsis

func (c *JobDeploymentsCommand) Synopsis() string

type JobDispatchCommand

type JobDispatchCommand struct {
	Meta
}

func (*JobDispatchCommand) AutocompleteArgs

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

func (*JobDispatchCommand) AutocompleteFlags

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

func (*JobDispatchCommand) Help

func (c *JobDispatchCommand) Help() string

func (*JobDispatchCommand) Name

func (c *JobDispatchCommand) Name() string

func (*JobDispatchCommand) Run

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

func (*JobDispatchCommand) Synopsis

func (c *JobDispatchCommand) Synopsis() string

type JobEvalCommand

type JobEvalCommand struct {
	Meta
	// contains filtered or unexported fields
}

func (*JobEvalCommand) AutocompleteArgs

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

func (*JobEvalCommand) AutocompleteFlags

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

func (*JobEvalCommand) Help

func (c *JobEvalCommand) Help() string

func (*JobEvalCommand) Name

func (c *JobEvalCommand) Name() string

func (*JobEvalCommand) Run

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

func (*JobEvalCommand) Synopsis

func (c *JobEvalCommand) Synopsis() string

type JobGetter

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

func (*JobGetter) ApiJob

func (j *JobGetter) ApiJob(jpath string) (*api.Job, error)

StructJob returns the Job struct from jobfile.

type JobHistoryCommand

type JobHistoryCommand struct {
	Meta
	// contains filtered or unexported fields
}

func (*JobHistoryCommand) AutocompleteArgs

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

func (*JobHistoryCommand) AutocompleteFlags

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

func (*JobHistoryCommand) Help

func (c *JobHistoryCommand) Help() string

func (*JobHistoryCommand) Name

func (c *JobHistoryCommand) Name() string

func (*JobHistoryCommand) Run

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

func (*JobHistoryCommand) Synopsis

func (c *JobHistoryCommand) Synopsis() string

type JobInitCommand

type JobInitCommand struct {
	Meta
}

JobInitCommand generates a new job template that you can customize to your liking, like vagrant init

func (*JobInitCommand) AutocompleteArgs

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

func (*JobInitCommand) AutocompleteFlags

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

func (*JobInitCommand) Help

func (c *JobInitCommand) Help() string

func (*JobInitCommand) Name

func (c *JobInitCommand) Name() string

func (*JobInitCommand) Run

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

func (*JobInitCommand) Synopsis

func (c *JobInitCommand) Synopsis() string

type JobInspectCommand

type JobInspectCommand struct {
	Meta
}

func (*JobInspectCommand) AutocompleteArgs

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

func (*JobInspectCommand) AutocompleteFlags

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

func (*JobInspectCommand) Help

func (c *JobInspectCommand) Help() string

func (*JobInspectCommand) Name

func (c *JobInspectCommand) Name() string

func (*JobInspectCommand) Run

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

func (*JobInspectCommand) Synopsis

func (c *JobInspectCommand) Synopsis() string

type JobPeriodicCommand

type JobPeriodicCommand struct {
	Meta
}

func (*JobPeriodicCommand) Help

func (f *JobPeriodicCommand) Help() string

func (*JobPeriodicCommand) Name

func (f *JobPeriodicCommand) Name() string

func (*JobPeriodicCommand) Run

func (f *JobPeriodicCommand) Run(args []string) int

func (*JobPeriodicCommand) Synopsis

func (f *JobPeriodicCommand) Synopsis() string

type JobPeriodicForceCommand

type JobPeriodicForceCommand struct {
	Meta
}

func (*JobPeriodicForceCommand) AutocompleteArgs

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

func (*JobPeriodicForceCommand) AutocompleteFlags

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

func (*JobPeriodicForceCommand) Help

func (c *JobPeriodicForceCommand) Help() string

func (*JobPeriodicForceCommand) Name

func (c *JobPeriodicForceCommand) Name() string

func (*JobPeriodicForceCommand) Run

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

func (*JobPeriodicForceCommand) Synopsis

func (c *JobPeriodicForceCommand) Synopsis() string

type JobPlanCommand

type JobPlanCommand struct {
	Meta
	JobGetter
}

func (*JobPlanCommand) AutocompleteArgs

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

func (*JobPlanCommand) AutocompleteFlags

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

func (*JobPlanCommand) Help

func (c *JobPlanCommand) Help() string

func (*JobPlanCommand) Name

func (c *JobPlanCommand) Name() string

func (*JobPlanCommand) Run

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

func (*JobPlanCommand) Synopsis

func (c *JobPlanCommand) Synopsis() string

type JobPromoteCommand

type JobPromoteCommand struct {
	Meta
}

func (*JobPromoteCommand) AutocompleteArgs

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

func (*JobPromoteCommand) AutocompleteFlags

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

func (*JobPromoteCommand) Help

func (c *JobPromoteCommand) Help() string

func (*JobPromoteCommand) Name

func (c *JobPromoteCommand) Name() string

func (*JobPromoteCommand) Run

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

func (*JobPromoteCommand) Synopsis

func (c *JobPromoteCommand) Synopsis() string

type JobRevertCommand

type JobRevertCommand struct {
	Meta
}

func (*JobRevertCommand) AutocompleteArgs

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

func (*JobRevertCommand) AutocompleteFlags

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

func (*JobRevertCommand) Help

func (c *JobRevertCommand) Help() string

func (*JobRevertCommand) Name

func (c *JobRevertCommand) Name() string

func (*JobRevertCommand) Run

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

func (*JobRevertCommand) Synopsis

func (c *JobRevertCommand) Synopsis() string

type JobRunCommand

type JobRunCommand struct {
	Meta
	JobGetter
}

func (*JobRunCommand) AutocompleteArgs

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

func (*JobRunCommand) AutocompleteFlags

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

func (*JobRunCommand) Help

func (c *JobRunCommand) Help() string

func (*JobRunCommand) Name

func (c *JobRunCommand) Name() string

func (*JobRunCommand) Run

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

func (*JobRunCommand) Synopsis

func (c *JobRunCommand) Synopsis() string

type JobStatusCommand

type JobStatusCommand struct {
	Meta
	// contains filtered or unexported fields
}

func (*JobStatusCommand) AutocompleteArgs

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

func (*JobStatusCommand) AutocompleteFlags

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

func (*JobStatusCommand) Help

func (c *JobStatusCommand) Help() string

func (*JobStatusCommand) Name

func (c *JobStatusCommand) Name() string

func (*JobStatusCommand) Run

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

func (*JobStatusCommand) Synopsis

func (c *JobStatusCommand) Synopsis() string

type JobStopCommand

type JobStopCommand struct {
	Meta
}

func (*JobStopCommand) AutocompleteArgs

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

func (*JobStopCommand) AutocompleteFlags

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

func (*JobStopCommand) Help

func (c *JobStopCommand) Help() string

func (*JobStopCommand) Name

func (c *JobStopCommand) Name() string

func (*JobStopCommand) Run

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

func (*JobStopCommand) Synopsis

func (c *JobStopCommand) Synopsis() string

type JobValidateCommand

type JobValidateCommand struct {
	Meta
	JobGetter
}

func (*JobValidateCommand) AutocompleteArgs

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

func (*JobValidateCommand) AutocompleteFlags

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

func (*JobValidateCommand) Help

func (c *JobValidateCommand) Help() string

func (*JobValidateCommand) Name

func (c *JobValidateCommand) Name() string

func (*JobValidateCommand) Run

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

func (*JobValidateCommand) Synopsis

func (c *JobValidateCommand) Synopsis() string

type LineLimitReader

type LineLimitReader struct {
	io.ReadCloser
	// contains filtered or unexported fields
}

LineLimitReader wraps another reader and provides `tail -n` like behavior. LineLimitReader buffers up to the searchLimit and returns `-n` number of lines. After those lines have been returned, LineLimitReader streams the underlying ReadCloser

func NewLineLimitReader

func NewLineLimitReader(r io.ReadCloser, lines, searchLimit int, timeLimit time.Duration) *LineLimitReader

NewLineLimitReader takes the ReadCloser to wrap, the number of lines to find searching backwards in the first searchLimit bytes. timeLimit can optionally be specified by passing a non-zero duration. When set, the search for the last n lines is aborted if no data has been read in the duration. This can be used to flush what is had if no extra data is being received. When used, the underlying reader must not block forever and must periodically unblock even when no data has been read.

func (*LineLimitReader) Read

func (l *LineLimitReader) Read(p []byte) (n int, err error)

type Meta

type Meta struct {
	Ui cli.Ui
	// 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(fs FlagSetFlags) complete.Flags

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

func (*Meta) Client

func (m *Meta) Client() (*api.Client, error)

Client is used to initialize and return a new API client using the default command line arguments and env vars.

func (*Meta) Colorize

func (m *Meta) Colorize() *colorstring.Colorize

func (*Meta) FlagSet

func (m *Meta) FlagSet(n string, fs FlagSetFlags) *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.

type MonitorCommand

type MonitorCommand struct {
	Meta
}

func (*MonitorCommand) Help

func (c *MonitorCommand) Help() string

func (*MonitorCommand) Name

func (c *MonitorCommand) Name() string

func (*MonitorCommand) Run

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

func (*MonitorCommand) Synopsis

func (c *MonitorCommand) Synopsis() string

type NamedCommand

type NamedCommand interface {
	Name() string
}

NamedCommand is a interface to denote a commmand's name.

type NamespaceApplyCommand

type NamespaceApplyCommand struct {
	Meta
}

func (*NamespaceApplyCommand) AutocompleteArgs

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

func (*NamespaceApplyCommand) AutocompleteFlags

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

func (*NamespaceApplyCommand) Help

func (c *NamespaceApplyCommand) Help() string

func (*NamespaceApplyCommand) Name

func (c *NamespaceApplyCommand) Name() string

func (*NamespaceApplyCommand) Run

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

func (*NamespaceApplyCommand) Synopsis

func (c *NamespaceApplyCommand) Synopsis() string

type NamespaceCommand

type NamespaceCommand struct {
	Meta
}

func (*NamespaceCommand) Help

func (f *NamespaceCommand) Help() string

func (*NamespaceCommand) Name

func (f *NamespaceCommand) Name() string

func (*NamespaceCommand) Run

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

func (*NamespaceCommand) Synopsis

func (f *NamespaceCommand) Synopsis() string

type NamespaceDeleteCommand

type NamespaceDeleteCommand struct {
	Meta
}

func (*NamespaceDeleteCommand) AutocompleteArgs

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

func (*NamespaceDeleteCommand) AutocompleteFlags

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

func (*NamespaceDeleteCommand) Help

func (c *NamespaceDeleteCommand) Help() string

func (*NamespaceDeleteCommand) Name

func (c *NamespaceDeleteCommand) Name() string

func (*NamespaceDeleteCommand) Run

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

func (*NamespaceDeleteCommand) Synopsis

func (c *NamespaceDeleteCommand) Synopsis() string

type NamespaceInspectCommand

type NamespaceInspectCommand struct {
	Meta
}

func (*NamespaceInspectCommand) AutocompleteArgs

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

func (*NamespaceInspectCommand) AutocompleteFlags

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

func (*NamespaceInspectCommand) Help

func (c *NamespaceInspectCommand) Help() string

func (*NamespaceInspectCommand) Name

func (c *NamespaceInspectCommand) Name() string

func (*NamespaceInspectCommand) Run

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

func (*NamespaceInspectCommand) Synopsis

func (c *NamespaceInspectCommand) Synopsis() string

type NamespaceListCommand

type NamespaceListCommand struct {
	Meta
}

func (*NamespaceListCommand) AutocompleteArgs

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

func (*NamespaceListCommand) AutocompleteFlags

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

func (*NamespaceListCommand) Help

func (c *NamespaceListCommand) Help() string

func (*NamespaceListCommand) Name

func (c *NamespaceListCommand) Name() string

func (*NamespaceListCommand) Run

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

func (*NamespaceListCommand) Synopsis

func (c *NamespaceListCommand) Synopsis() string

type NamespaceStatusCommand

type NamespaceStatusCommand struct {
	Meta
}

func (*NamespaceStatusCommand) AutocompleteArgs

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

func (*NamespaceStatusCommand) AutocompleteFlags

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

func (*NamespaceStatusCommand) Help

func (c *NamespaceStatusCommand) Help() string

func (*NamespaceStatusCommand) Name

func (c *NamespaceStatusCommand) Name() string

func (*NamespaceStatusCommand) Run

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

func (*NamespaceStatusCommand) Synopsis

func (c *NamespaceStatusCommand) Synopsis() string

type NodeCommand

type NodeCommand struct {
	Meta
}

func (*NodeCommand) Help

func (f *NodeCommand) Help() string

func (*NodeCommand) Name

func (f *NodeCommand) Name() string

func (*NodeCommand) Run

func (f *NodeCommand) Run(args []string) int

func (*NodeCommand) Synopsis

func (f *NodeCommand) Synopsis() string

type NodeConfigCommand

type NodeConfigCommand struct {
	Meta
}

func (*NodeConfigCommand) AutocompleteArgs

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

func (*NodeConfigCommand) AutocompleteFlags

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

func (*NodeConfigCommand) Help

func (c *NodeConfigCommand) Help() string

func (*NodeConfigCommand) Name

func (c *NodeConfigCommand) Name() string

func (*NodeConfigCommand) Run

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

func (*NodeConfigCommand) Synopsis

func (c *NodeConfigCommand) Synopsis() string

type NodeDrainCommand

type NodeDrainCommand struct {
	Meta
}

func (*NodeDrainCommand) AutocompleteArgs

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

func (*NodeDrainCommand) AutocompleteFlags

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

func (*NodeDrainCommand) Help

func (c *NodeDrainCommand) Help() string

func (*NodeDrainCommand) Name

func (c *NodeDrainCommand) Name() string

func (*NodeDrainCommand) Run

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

func (*NodeDrainCommand) Synopsis

func (c *NodeDrainCommand) Synopsis() string

type NodeEligibilityCommand

type NodeEligibilityCommand struct {
	Meta
}

func (*NodeEligibilityCommand) AutocompleteArgs

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

func (*NodeEligibilityCommand) AutocompleteFlags

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

func (*NodeEligibilityCommand) Help

func (c *NodeEligibilityCommand) Help() string

func (*NodeEligibilityCommand) Name

func (c *NodeEligibilityCommand) Name() string

func (*NodeEligibilityCommand) Run

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

func (*NodeEligibilityCommand) Synopsis

func (c *NodeEligibilityCommand) Synopsis() string

type NodeStatusCommand

type NodeStatusCommand struct {
	Meta
	// contains filtered or unexported fields
}

func (*NodeStatusCommand) AutocompleteArgs

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

func (*NodeStatusCommand) AutocompleteFlags

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

func (*NodeStatusCommand) Help

func (c *NodeStatusCommand) Help() string

func (*NodeStatusCommand) Name

func (c *NodeStatusCommand) Name() string

func (*NodeStatusCommand) Run

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

func (*NodeStatusCommand) Synopsis

func (c *NodeStatusCommand) Synopsis() string

type OperatorAutopilotCommand

type OperatorAutopilotCommand struct {
	Meta
}

func (*OperatorAutopilotCommand) Help

func (c *OperatorAutopilotCommand) Help() string

func (*OperatorAutopilotCommand) Name

func (c *OperatorAutopilotCommand) Name() string

func (*OperatorAutopilotCommand) Run

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

func (*OperatorAutopilotCommand) Synopsis

func (c *OperatorAutopilotCommand) Synopsis() string

type OperatorAutopilotGetCommand

type OperatorAutopilotGetCommand struct {
	Meta
}

func (*OperatorAutopilotGetCommand) AutocompleteArgs

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

func (*OperatorAutopilotGetCommand) AutocompleteFlags

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

func (*OperatorAutopilotGetCommand) Help

func (*OperatorAutopilotGetCommand) Name

func (*OperatorAutopilotGetCommand) Run

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

func (*OperatorAutopilotGetCommand) Synopsis

func (c *OperatorAutopilotGetCommand) Synopsis() string

type OperatorAutopilotSetCommand

type OperatorAutopilotSetCommand struct {
	Meta
}

func (*OperatorAutopilotSetCommand) AutocompleteArgs

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

func (*OperatorAutopilotSetCommand) AutocompleteFlags

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

func (*OperatorAutopilotSetCommand) Help

func (*OperatorAutopilotSetCommand) Name

func (*OperatorAutopilotSetCommand) Run

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

func (*OperatorAutopilotSetCommand) Synopsis

func (c *OperatorAutopilotSetCommand) Synopsis() string

type OperatorCommand

type OperatorCommand struct {
	Meta
}

func (*OperatorCommand) Help

func (f *OperatorCommand) Help() string

func (*OperatorCommand) Name

func (f *OperatorCommand) Name() string

func (*OperatorCommand) Run

func (f *OperatorCommand) Run(args []string) int

func (*OperatorCommand) Synopsis

func (f *OperatorCommand) Synopsis() string

type OperatorKeygenCommand

type OperatorKeygenCommand struct {
	Meta
}

OperatorKeygenCommand is a Command implementation that generates an encryption key for use in `nomad agent`.

func (*OperatorKeygenCommand) Help

func (c *OperatorKeygenCommand) Help() string

func (*OperatorKeygenCommand) Name

func (c *OperatorKeygenCommand) Name() string

func (*OperatorKeygenCommand) Run

func (c *OperatorKeygenCommand) Run(_ []string) int

func (*OperatorKeygenCommand) Synopsis

func (c *OperatorKeygenCommand) Synopsis() string

type OperatorKeyringCommand

type OperatorKeyringCommand struct {
	Meta
}

OperatorKeyringCommand is a Command implementation that handles querying, installing, and removing gossip encryption keys from a keyring.

func (*OperatorKeyringCommand) AutocompleteArgs

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

func (*OperatorKeyringCommand) AutocompleteFlags

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

func (*OperatorKeyringCommand) Help

func (c *OperatorKeyringCommand) Help() string

func (*OperatorKeyringCommand) Name

func (c *OperatorKeyringCommand) Name() string

func (*OperatorKeyringCommand) Run

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

func (*OperatorKeyringCommand) Synopsis

func (c *OperatorKeyringCommand) Synopsis() string

type OperatorRaftCommand

type OperatorRaftCommand struct {
	Meta
}

func (*OperatorRaftCommand) Help

func (c *OperatorRaftCommand) Help() string

func (*OperatorRaftCommand) Name

func (c *OperatorRaftCommand) Name() string

func (*OperatorRaftCommand) Run

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

func (*OperatorRaftCommand) Synopsis

func (c *OperatorRaftCommand) Synopsis() string

type OperatorRaftListCommand

type OperatorRaftListCommand struct {
	Meta
}

func (*OperatorRaftListCommand) AutocompleteArgs

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

func (*OperatorRaftListCommand) AutocompleteFlags

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

func (*OperatorRaftListCommand) Help

func (c *OperatorRaftListCommand) Help() string

func (*OperatorRaftListCommand) Name

func (c *OperatorRaftListCommand) Name() string

func (*OperatorRaftListCommand) Run

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

func (*OperatorRaftListCommand) Synopsis

func (c *OperatorRaftListCommand) Synopsis() string

type OperatorRaftRemoveCommand

type OperatorRaftRemoveCommand struct {
	Meta
}

func (*OperatorRaftRemoveCommand) AutocompleteArgs

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

func (*OperatorRaftRemoveCommand) AutocompleteFlags

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

func (*OperatorRaftRemoveCommand) Help

func (*OperatorRaftRemoveCommand) Name

func (*OperatorRaftRemoveCommand) Run

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

func (*OperatorRaftRemoveCommand) Synopsis

func (c *OperatorRaftRemoveCommand) Synopsis() string

type QuotaApplyCommand

type QuotaApplyCommand struct {
	Meta
}

func (*QuotaApplyCommand) AutocompleteArgs

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

func (*QuotaApplyCommand) AutocompleteFlags

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

func (*QuotaApplyCommand) Help

func (c *QuotaApplyCommand) Help() string

func (*QuotaApplyCommand) Name

func (c *QuotaApplyCommand) Name() string

func (*QuotaApplyCommand) Run

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

func (*QuotaApplyCommand) Synopsis

func (c *QuotaApplyCommand) Synopsis() string

type QuotaCommand

type QuotaCommand struct {
	Meta
}

func (*QuotaCommand) Help

func (f *QuotaCommand) Help() string

func (*QuotaCommand) Name

func (f *QuotaCommand) Name() string

func (*QuotaCommand) Run

func (f *QuotaCommand) Run(args []string) int

func (*QuotaCommand) Synopsis

func (f *QuotaCommand) Synopsis() string

type QuotaDeleteCommand

type QuotaDeleteCommand struct {
	Meta
}

func (*QuotaDeleteCommand) AutocompleteArgs

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

func (*QuotaDeleteCommand) AutocompleteFlags

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

func (*QuotaDeleteCommand) Help

func (c *QuotaDeleteCommand) Help() string

func (*QuotaDeleteCommand) Name

func (c *QuotaDeleteCommand) Name() string

func (*QuotaDeleteCommand) Run

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

func (*QuotaDeleteCommand) Synopsis

func (c *QuotaDeleteCommand) Synopsis() string

type QuotaInitCommand

type QuotaInitCommand struct {
	Meta
}

QuotaInitCommand generates a new quota spec that you can customize to your liking, like vagrant init

func (*QuotaInitCommand) AutocompleteArgs

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

func (*QuotaInitCommand) AutocompleteFlags

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

func (*QuotaInitCommand) Help

func (c *QuotaInitCommand) Help() string

func (*QuotaInitCommand) Name

func (c *QuotaInitCommand) Name() string

func (*QuotaInitCommand) Run

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

func (*QuotaInitCommand) Synopsis

func (c *QuotaInitCommand) Synopsis() string

type QuotaInspectCommand

type QuotaInspectCommand struct {
	Meta
}

func (*QuotaInspectCommand) AutocompleteArgs

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

func (*QuotaInspectCommand) AutocompleteFlags

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

func (*QuotaInspectCommand) Help

func (c *QuotaInspectCommand) Help() string

func (*QuotaInspectCommand) Name

func (c *QuotaInspectCommand) Name() string

func (*QuotaInspectCommand) Run

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

func (*QuotaInspectCommand) Synopsis

func (c *QuotaInspectCommand) Synopsis() string

type QuotaListCommand

type QuotaListCommand struct {
	Meta
}

func (*QuotaListCommand) AutocompleteArgs

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

func (*QuotaListCommand) AutocompleteFlags

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

func (*QuotaListCommand) Help

func (c *QuotaListCommand) Help() string

func (*QuotaListCommand) Name

func (c *QuotaListCommand) Name() string

func (*QuotaListCommand) Run

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

func (*QuotaListCommand) Synopsis

func (c *QuotaListCommand) Synopsis() string

type QuotaStatusCommand

type QuotaStatusCommand struct {
	Meta
}

func (*QuotaStatusCommand) AutocompleteArgs

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

func (*QuotaStatusCommand) AutocompleteFlags

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

func (*QuotaStatusCommand) Help

func (c *QuotaStatusCommand) Help() string

func (*QuotaStatusCommand) Name

func (c *QuotaStatusCommand) Name() string

func (*QuotaStatusCommand) Run

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

func (*QuotaStatusCommand) Synopsis

func (c *QuotaStatusCommand) Synopsis() string

type SentinelApplyCommand

type SentinelApplyCommand struct {
	Meta
}

func (*SentinelApplyCommand) AutocompleteArgs

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

func (*SentinelApplyCommand) AutocompleteFlags

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

func (*SentinelApplyCommand) Help

func (c *SentinelApplyCommand) Help() string

func (*SentinelApplyCommand) Name

func (c *SentinelApplyCommand) Name() string

func (*SentinelApplyCommand) Run

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

func (*SentinelApplyCommand) Synopsis

func (c *SentinelApplyCommand) Synopsis() string

type SentinelCommand

type SentinelCommand struct {
	Meta
}

func (*SentinelCommand) Help

func (f *SentinelCommand) Help() string

func (*SentinelCommand) Name

func (f *SentinelCommand) Name() string

func (*SentinelCommand) Run

func (f *SentinelCommand) Run(args []string) int

func (*SentinelCommand) Synopsis

func (f *SentinelCommand) Synopsis() string

type SentinelDeleteCommand

type SentinelDeleteCommand struct {
	Meta
}

func (*SentinelDeleteCommand) AutocompleteArgs

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

func (*SentinelDeleteCommand) AutocompleteFlags

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

func (*SentinelDeleteCommand) Help

func (c *SentinelDeleteCommand) Help() string

func (*SentinelDeleteCommand) Name

func (c *SentinelDeleteCommand) Name() string

func (*SentinelDeleteCommand) Run

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

func (*SentinelDeleteCommand) Synopsis

func (c *SentinelDeleteCommand) Synopsis() string

type SentinelListCommand

type SentinelListCommand struct {
	Meta
}

func (*SentinelListCommand) AutocompleteArgs

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

func (*SentinelListCommand) AutocompleteFlags

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

func (*SentinelListCommand) Help

func (c *SentinelListCommand) Help() string

func (*SentinelListCommand) Name

func (c *SentinelListCommand) Name() string

func (*SentinelListCommand) Run

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

func (*SentinelListCommand) Synopsis

func (c *SentinelListCommand) Synopsis() string

type SentinelReadCommand

type SentinelReadCommand struct {
	Meta
}

func (*SentinelReadCommand) AutocompleteArgs

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

func (*SentinelReadCommand) AutocompleteFlags

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

func (*SentinelReadCommand) Help

func (c *SentinelReadCommand) Help() string

func (*SentinelReadCommand) Name

func (c *SentinelReadCommand) Name() string

func (*SentinelReadCommand) Run

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

func (*SentinelReadCommand) Synopsis

func (c *SentinelReadCommand) Synopsis() string

type ServerCommand

type ServerCommand struct {
	Meta
}

func (*ServerCommand) Help

func (f *ServerCommand) Help() string

func (*ServerCommand) Name

func (f *ServerCommand) Name() string

func (*ServerCommand) Run

func (f *ServerCommand) Run(args []string) int

func (*ServerCommand) Synopsis

func (f *ServerCommand) Synopsis() string

type ServerForceLeaveCommand

type ServerForceLeaveCommand struct {
	Meta
}

func (*ServerForceLeaveCommand) AutocompleteArgs

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

func (*ServerForceLeaveCommand) AutocompleteFlags

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

func (*ServerForceLeaveCommand) Help

func (c *ServerForceLeaveCommand) Help() string

func (*ServerForceLeaveCommand) Name

func (c *ServerForceLeaveCommand) Name() string

func (*ServerForceLeaveCommand) Run

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

func (*ServerForceLeaveCommand) Synopsis

func (c *ServerForceLeaveCommand) Synopsis() string

type ServerJoinCommand

type ServerJoinCommand struct {
	Meta
}

func (*ServerJoinCommand) AutocompleteArgs

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

func (*ServerJoinCommand) AutocompleteFlags

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

func (*ServerJoinCommand) Help

func (c *ServerJoinCommand) Help() string

func (*ServerJoinCommand) Name

func (c *ServerJoinCommand) Name() string

func (*ServerJoinCommand) Run

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

func (*ServerJoinCommand) Synopsis

func (c *ServerJoinCommand) Synopsis() string

type ServerMembersCommand

type ServerMembersCommand struct {
	Meta
}

func (*ServerMembersCommand) AutocompleteArgs

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

func (*ServerMembersCommand) AutocompleteFlags

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

func (*ServerMembersCommand) Help

func (c *ServerMembersCommand) Help() string

func (*ServerMembersCommand) Name

func (c *ServerMembersCommand) Name() string

func (*ServerMembersCommand) Run

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

func (*ServerMembersCommand) Synopsis

func (c *ServerMembersCommand) Synopsis() string

type StatusCommand

type StatusCommand struct {
	Meta
	// contains filtered or unexported fields
}

func (*StatusCommand) AutocompleteArgs

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

func (*StatusCommand) AutocompleteFlags

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

func (*StatusCommand) Help

func (s *StatusCommand) Help() string

func (*StatusCommand) Run

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

func (*StatusCommand) Synopsis

func (c *StatusCommand) Synopsis() string

type SystemCommand

type SystemCommand struct {
	Meta
}

func (*SystemCommand) Help

func (sc *SystemCommand) Help() string

func (*SystemCommand) Name

func (sc *SystemCommand) Name() string

func (*SystemCommand) Run

func (sc *SystemCommand) Run(args []string) int

func (*SystemCommand) Synopsis

func (sc *SystemCommand) Synopsis() string

type SystemGCCommand

type SystemGCCommand struct {
	Meta
}

func (*SystemGCCommand) AutocompleteArgs

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

func (*SystemGCCommand) AutocompleteFlags

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

func (*SystemGCCommand) Help

func (c *SystemGCCommand) Help() string

func (*SystemGCCommand) Name

func (c *SystemGCCommand) Name() string

func (*SystemGCCommand) Run

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

func (*SystemGCCommand) Synopsis

func (c *SystemGCCommand) Synopsis() string

type SystemReconcileCommand

type SystemReconcileCommand struct {
	Meta
}

func (*SystemReconcileCommand) Help

func (s *SystemReconcileCommand) Help() string

func (*SystemReconcileCommand) Name

func (s *SystemReconcileCommand) Name() string

func (*SystemReconcileCommand) Run

func (s *SystemReconcileCommand) Run(args []string) int

func (*SystemReconcileCommand) Synopsis

func (s *SystemReconcileCommand) Synopsis() string

type SystemReconcileSummariesCommand

type SystemReconcileSummariesCommand struct {
	Meta
}

func (*SystemReconcileSummariesCommand) AutocompleteArgs

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

func (*SystemReconcileSummariesCommand) AutocompleteFlags

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

func (*SystemReconcileSummariesCommand) Help

func (*SystemReconcileSummariesCommand) Name

func (*SystemReconcileSummariesCommand) Run

func (*SystemReconcileSummariesCommand) Synopsis

type TemplateFormat

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

func (*TemplateFormat) TransformData

func (p *TemplateFormat) TransformData(data interface{}) (string, error)

TransformData returns template format string data.

type UiCommand

type UiCommand struct {
	Meta
}

func (*UiCommand) AutocompleteArgs

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

func (*UiCommand) AutocompleteFlags

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

func (*UiCommand) Help

func (c *UiCommand) Help() string

func (*UiCommand) Name

func (c *UiCommand) Name() string

func (*UiCommand) Run

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

func (*UiCommand) Synopsis

func (c *UiCommand) Synopsis() string

type VersionCommand

type VersionCommand struct {
	Version *version.VersionInfo
	Ui      cli.Ui
}

VersionCommand is a Command implementation prints the version.

func (*VersionCommand) Help

func (c *VersionCommand) Help() string

func (*VersionCommand) Name

func (c *VersionCommand) Name() string

func (*VersionCommand) Run

func (c *VersionCommand) Run(_ []string) int

func (*VersionCommand) Synopsis

func (c *VersionCommand) Synopsis() string

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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