command

package
v0.7.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2017 License: MPL-2.0 Imports: 49 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"
)

Variables

This section is empty.

Functions

func Format added in v0.6.0

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

func NamespacePredictor added in v0.7.0

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

NamespacePredictor returns a namespace predictor that can optionally filter specific namespaces

func QuotaPredictor added in v0.7.0

func QuotaPredictor(factory ApiClientFactory) complete.Predictor

QuotaPredictor returns a quota predictor

Types

type ACLBootstrapCommand added in v0.7.0

type ACLBootstrapCommand struct {
	Meta
}

func (*ACLBootstrapCommand) AutocompleteArgs added in v0.7.0

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

func (*ACLBootstrapCommand) AutocompleteFlags added in v0.7.0

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

func (*ACLBootstrapCommand) Help added in v0.7.0

func (c *ACLBootstrapCommand) Help() string

func (*ACLBootstrapCommand) Run added in v0.7.0

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

func (*ACLBootstrapCommand) Synopsis added in v0.7.0

func (c *ACLBootstrapCommand) Synopsis() string

type ACLCommand added in v0.7.0

type ACLCommand struct {
	Meta
}

func (*ACLCommand) Help added in v0.7.0

func (f *ACLCommand) Help() string

func (*ACLCommand) Run added in v0.7.0

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

func (*ACLCommand) Synopsis added in v0.7.0

func (f *ACLCommand) Synopsis() string

type ACLPolicyApplyCommand added in v0.7.0

type ACLPolicyApplyCommand struct {
	Meta
}

func (*ACLPolicyApplyCommand) AutocompleteArgs added in v0.7.0

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

func (*ACLPolicyApplyCommand) AutocompleteFlags added in v0.7.0

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

func (*ACLPolicyApplyCommand) Help added in v0.7.0

func (c *ACLPolicyApplyCommand) Help() string

func (*ACLPolicyApplyCommand) Run added in v0.7.0

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

func (*ACLPolicyApplyCommand) Synopsis added in v0.7.0

func (c *ACLPolicyApplyCommand) Synopsis() string

type ACLPolicyCommand added in v0.7.0

type ACLPolicyCommand struct {
	Meta
}

func (*ACLPolicyCommand) Help added in v0.7.0

func (f *ACLPolicyCommand) Help() string

func (*ACLPolicyCommand) Run added in v0.7.0

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

func (*ACLPolicyCommand) Synopsis added in v0.7.0

func (f *ACLPolicyCommand) Synopsis() string

type ACLPolicyDeleteCommand added in v0.7.0

type ACLPolicyDeleteCommand struct {
	Meta
}

func (*ACLPolicyDeleteCommand) AutocompleteArgs added in v0.7.0

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

func (*ACLPolicyDeleteCommand) AutocompleteFlags added in v0.7.0

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

func (*ACLPolicyDeleteCommand) Help added in v0.7.0

func (c *ACLPolicyDeleteCommand) Help() string

func (*ACLPolicyDeleteCommand) Run added in v0.7.0

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

func (*ACLPolicyDeleteCommand) Synopsis added in v0.7.0

func (c *ACLPolicyDeleteCommand) Synopsis() string

type ACLPolicyInfoCommand added in v0.7.0

type ACLPolicyInfoCommand struct {
	Meta
}

func (*ACLPolicyInfoCommand) AutocompleteArgs added in v0.7.0

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

func (*ACLPolicyInfoCommand) AutocompleteFlags added in v0.7.0

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

func (*ACLPolicyInfoCommand) Help added in v0.7.0

func (c *ACLPolicyInfoCommand) Help() string

func (*ACLPolicyInfoCommand) Run added in v0.7.0

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

func (*ACLPolicyInfoCommand) Synopsis added in v0.7.0

func (c *ACLPolicyInfoCommand) Synopsis() string

type ACLPolicyListCommand added in v0.7.0

type ACLPolicyListCommand struct {
	Meta
}

func (*ACLPolicyListCommand) AutocompleteArgs added in v0.7.0

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

func (*ACLPolicyListCommand) AutocompleteFlags added in v0.7.0

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

func (*ACLPolicyListCommand) Help added in v0.7.0

func (c *ACLPolicyListCommand) Help() string

func (*ACLPolicyListCommand) Run added in v0.7.0

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

func (*ACLPolicyListCommand) Synopsis added in v0.7.0

func (c *ACLPolicyListCommand) Synopsis() string

type ACLTokenCommand added in v0.7.0

type ACLTokenCommand struct {
	Meta
}

func (*ACLTokenCommand) Help added in v0.7.0

func (f *ACLTokenCommand) Help() string

func (*ACLTokenCommand) Run added in v0.7.0

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

func (*ACLTokenCommand) Synopsis added in v0.7.0

func (f *ACLTokenCommand) Synopsis() string

type ACLTokenCreateCommand added in v0.7.0

type ACLTokenCreateCommand struct {
	Meta
}

func (*ACLTokenCreateCommand) AutocompleteArgs added in v0.7.0

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

func (*ACLTokenCreateCommand) AutocompleteFlags added in v0.7.0

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

func (*ACLTokenCreateCommand) Help added in v0.7.0

func (c *ACLTokenCreateCommand) Help() string

func (*ACLTokenCreateCommand) Run added in v0.7.0

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

func (*ACLTokenCreateCommand) Synopsis added in v0.7.0

func (c *ACLTokenCreateCommand) Synopsis() string

type ACLTokenDeleteCommand added in v0.7.0

type ACLTokenDeleteCommand struct {
	Meta
}

func (*ACLTokenDeleteCommand) AutocompleteArgs added in v0.7.0

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

func (*ACLTokenDeleteCommand) AutocompleteFlags added in v0.7.0

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

func (*ACLTokenDeleteCommand) Help added in v0.7.0

func (c *ACLTokenDeleteCommand) Help() string

func (*ACLTokenDeleteCommand) Run added in v0.7.0

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

func (*ACLTokenDeleteCommand) Synopsis added in v0.7.0

func (c *ACLTokenDeleteCommand) Synopsis() string

type ACLTokenInfoCommand added in v0.7.0

type ACLTokenInfoCommand struct {
	Meta
}

func (*ACLTokenInfoCommand) AutocompleteArgs added in v0.7.0

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

func (*ACLTokenInfoCommand) AutocompleteFlags added in v0.7.0

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

func (*ACLTokenInfoCommand) Help added in v0.7.0

func (c *ACLTokenInfoCommand) Help() string

func (*ACLTokenInfoCommand) Run added in v0.7.0

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

func (*ACLTokenInfoCommand) Synopsis added in v0.7.0

func (c *ACLTokenInfoCommand) Synopsis() string

type ACLTokenSelfCommand added in v0.7.0

type ACLTokenSelfCommand struct {
	Meta
}

func (*ACLTokenSelfCommand) AutocompleteArgs added in v0.7.0

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

func (*ACLTokenSelfCommand) AutocompleteFlags added in v0.7.0

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

func (*ACLTokenSelfCommand) Help added in v0.7.0

func (c *ACLTokenSelfCommand) Help() string

func (*ACLTokenSelfCommand) Run added in v0.7.0

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

func (*ACLTokenSelfCommand) Synopsis added in v0.7.0

func (c *ACLTokenSelfCommand) Synopsis() string

type ACLTokenUpdateCommand added in v0.7.0

type ACLTokenUpdateCommand struct {
	Meta
}

func (*ACLTokenUpdateCommand) AutocompleteArgs added in v0.7.0

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

func (*ACLTokenUpdateCommand) AutocompleteFlags added in v0.7.0

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

func (*ACLTokenUpdateCommand) Help added in v0.7.0

func (c *ACLTokenUpdateCommand) Help() string

func (*ACLTokenUpdateCommand) Run added in v0.7.0

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

func (*ACLTokenUpdateCommand) Synopsis added in v0.7.0

func (c *ACLTokenUpdateCommand) Synopsis() string

type AgentCheckCommand added in v0.4.0

type AgentCheckCommand struct {
	Meta
}

func (*AgentCheckCommand) AutocompleteArgs added in v0.6.1

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

func (*AgentCheckCommand) AutocompleteFlags added in v0.6.1

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

func (*AgentCheckCommand) Help added in v0.4.0

func (c *AgentCheckCommand) Help() string

func (*AgentCheckCommand) Run added in v0.4.0

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

func (*AgentCheckCommand) Synopsis added in v0.4.0

func (c *AgentCheckCommand) Synopsis() string

type AgentInfoCommand

type AgentInfoCommand struct {
	Meta
}

func (*AgentInfoCommand) Help

func (c *AgentInfoCommand) Help() string

func (*AgentInfoCommand) Run

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

func (*AgentInfoCommand) Synopsis

func (c *AgentInfoCommand) Synopsis() string

type AllocStatusCommand

type AllocStatusCommand struct {
	Meta
}

func (*AllocStatusCommand) AutocompleteArgs added in v0.6.1

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

func (*AllocStatusCommand) AutocompleteFlags added in v0.6.1

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

func (*AllocStatusCommand) Help

func (c *AllocStatusCommand) Help() string

func (*AllocStatusCommand) Run

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

func (*AllocStatusCommand) Synopsis

func (c *AllocStatusCommand) Synopsis() string

type ApiClientFactory added in v0.7.0

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

ApiClientFactory is the signature of a API client factory

type ClientConfigCommand

type ClientConfigCommand struct {
	Meta
}

func (*ClientConfigCommand) AutocompleteArgs added in v0.6.1

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

func (*ClientConfigCommand) AutocompleteFlags added in v0.6.1

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

func (*ClientConfigCommand) Help

func (c *ClientConfigCommand) Help() string

func (*ClientConfigCommand) Run

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

func (*ClientConfigCommand) Synopsis

func (c *ClientConfigCommand) Synopsis() string

type DataFormatter added in v0.4.1

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

DataFormatter is a transformer of the data.

func DataFormat added in v0.4.1

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

DataFormat returns the data formatter specified format.

type DeploymentCommand added in v0.6.0

type DeploymentCommand struct {
	Meta
}

func (*DeploymentCommand) Help added in v0.6.0

func (f *DeploymentCommand) Help() string

func (*DeploymentCommand) Run added in v0.6.0

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

func (*DeploymentCommand) Synopsis added in v0.6.0

func (f *DeploymentCommand) Synopsis() string

type DeploymentFailCommand added in v0.6.0

type DeploymentFailCommand struct {
	Meta
}

func (*DeploymentFailCommand) AutocompleteArgs added in v0.6.1

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

func (*DeploymentFailCommand) AutocompleteFlags added in v0.6.1

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

func (*DeploymentFailCommand) Help added in v0.6.0

func (c *DeploymentFailCommand) Help() string

func (*DeploymentFailCommand) Run added in v0.6.0

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

func (*DeploymentFailCommand) Synopsis added in v0.6.0

func (c *DeploymentFailCommand) Synopsis() string

type DeploymentListCommand added in v0.6.0

type DeploymentListCommand struct {
	Meta
}

func (*DeploymentListCommand) AutocompleteArgs added in v0.6.1

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

func (*DeploymentListCommand) AutocompleteFlags added in v0.6.1

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

func (*DeploymentListCommand) Help added in v0.6.0

func (c *DeploymentListCommand) Help() string

func (*DeploymentListCommand) Run added in v0.6.0

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

func (*DeploymentListCommand) Synopsis added in v0.6.0

func (c *DeploymentListCommand) Synopsis() string

type DeploymentPauseCommand added in v0.6.0

type DeploymentPauseCommand struct {
	Meta
}

func (*DeploymentPauseCommand) AutocompleteArgs added in v0.6.1

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

func (*DeploymentPauseCommand) AutocompleteFlags added in v0.6.1

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

func (*DeploymentPauseCommand) Help added in v0.6.0

func (c *DeploymentPauseCommand) Help() string

func (*DeploymentPauseCommand) Run added in v0.6.0

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

func (*DeploymentPauseCommand) Synopsis added in v0.6.0

func (c *DeploymentPauseCommand) Synopsis() string

type DeploymentPromoteCommand added in v0.6.0

type DeploymentPromoteCommand struct {
	Meta
}

func (*DeploymentPromoteCommand) AutocompleteArgs added in v0.6.1

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

func (*DeploymentPromoteCommand) AutocompleteFlags added in v0.6.1

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

func (*DeploymentPromoteCommand) Help added in v0.6.0

func (c *DeploymentPromoteCommand) Help() string

func (*DeploymentPromoteCommand) Run added in v0.6.0

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

func (*DeploymentPromoteCommand) Synopsis added in v0.6.0

func (c *DeploymentPromoteCommand) Synopsis() string

type DeploymentResumeCommand added in v0.6.0

type DeploymentResumeCommand struct {
	Meta
}

func (*DeploymentResumeCommand) AutocompleteArgs added in v0.6.1

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

func (*DeploymentResumeCommand) AutocompleteFlags added in v0.6.1

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

func (*DeploymentResumeCommand) Help added in v0.6.0

func (c *DeploymentResumeCommand) Help() string

func (*DeploymentResumeCommand) Run added in v0.6.0

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

func (*DeploymentResumeCommand) Synopsis added in v0.6.0

func (c *DeploymentResumeCommand) Synopsis() string

type DeploymentStatusCommand added in v0.6.0

type DeploymentStatusCommand struct {
	Meta
}

func (*DeploymentStatusCommand) AutocompleteArgs added in v0.6.1

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

func (*DeploymentStatusCommand) AutocompleteFlags added in v0.6.1

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

func (*DeploymentStatusCommand) Help added in v0.6.0

func (c *DeploymentStatusCommand) Help() string

func (*DeploymentStatusCommand) Run added in v0.6.0

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

func (*DeploymentStatusCommand) Synopsis added in v0.6.0

func (c *DeploymentStatusCommand) Synopsis() string

type EvalStatusCommand added in v0.4.0

type EvalStatusCommand struct {
	Meta
}

func (*EvalStatusCommand) AutocompleteArgs added in v0.6.1

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

func (*EvalStatusCommand) AutocompleteFlags added in v0.6.1

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

func (*EvalStatusCommand) Help added in v0.4.0

func (c *EvalStatusCommand) Help() string

func (*EvalStatusCommand) Run added in v0.4.0

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

func (*EvalStatusCommand) Synopsis added in v0.4.0

func (c *EvalStatusCommand) Synopsis() string

type ExecutorPluginCommand added in v0.3.0

type ExecutorPluginCommand struct {
	Meta
}

func (*ExecutorPluginCommand) Help added in v0.3.0

func (e *ExecutorPluginCommand) Help() string

func (*ExecutorPluginCommand) Run added in v0.3.0

func (e *ExecutorPluginCommand) Run(args []string) int

func (*ExecutorPluginCommand) Synopsis added in v0.3.0

func (e *ExecutorPluginCommand) Synopsis() string

type FSCommand added in v0.3.0

type FSCommand struct {
	Meta
}

func (*FSCommand) AutocompleteArgs added in v0.6.1

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

func (*FSCommand) AutocompleteFlags added in v0.6.1

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

func (*FSCommand) Help added in v0.3.0

func (f *FSCommand) Help() string

func (*FSCommand) Run added in v0.3.0

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

func (*FSCommand) Synopsis added in v0.3.0

func (f *FSCommand) 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 InitCommand

type InitCommand struct {
	Meta
}

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

func (*InitCommand) Help

func (c *InitCommand) Help() string

func (*InitCommand) Run

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

func (*InitCommand) Synopsis

func (c *InitCommand) Synopsis() string

type InspectCommand added in v0.3.2

type InspectCommand struct {
	Meta
}

func (*InspectCommand) AutocompleteArgs added in v0.6.1

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

func (*InspectCommand) AutocompleteFlags added in v0.6.1

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

func (*InspectCommand) Help added in v0.3.2

func (c *InspectCommand) Help() string

func (*InspectCommand) Run added in v0.3.2

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

func (*InspectCommand) Synopsis added in v0.3.2

func (c *InspectCommand) Synopsis() string

type JSONFormat added in v0.4.1

type JSONFormat struct {
}

func (*JSONFormat) TransformData added in v0.4.1

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

TransformData returns JSON format string data.

type JobCommand added in v0.5.3

type JobCommand struct {
	Meta
}

func (*JobCommand) Help added in v0.5.3

func (f *JobCommand) Help() string

func (*JobCommand) Run added in v0.5.3

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

func (*JobCommand) Synopsis added in v0.5.3

func (f *JobCommand) Synopsis() string

type JobDeploymentsCommand added in v0.6.0

type JobDeploymentsCommand struct {
	Meta
}

func (*JobDeploymentsCommand) AutocompleteArgs added in v0.6.1

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

func (*JobDeploymentsCommand) AutocompleteFlags added in v0.6.1

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

func (*JobDeploymentsCommand) Help added in v0.6.0

func (c *JobDeploymentsCommand) Help() string

func (*JobDeploymentsCommand) Run added in v0.6.0

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

func (*JobDeploymentsCommand) Synopsis added in v0.6.0

func (c *JobDeploymentsCommand) Synopsis() string

type JobDispatchCommand added in v0.5.3

type JobDispatchCommand struct {
	Meta
}

func (*JobDispatchCommand) AutocompleteArgs added in v0.6.1

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

func (*JobDispatchCommand) AutocompleteFlags added in v0.6.1

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

func (*JobDispatchCommand) Help added in v0.5.3

func (c *JobDispatchCommand) Help() string

func (*JobDispatchCommand) Run added in v0.5.3

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

func (*JobDispatchCommand) Synopsis added in v0.5.3

func (c *JobDispatchCommand) Synopsis() string

type JobGetter added in v0.4.1

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

func (*JobGetter) ApiJob added in v0.5.5

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

StructJob returns the Job struct from jobfile.

type JobHistoryCommand added in v0.6.0

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

func (*JobHistoryCommand) AutocompleteArgs added in v0.6.1

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

func (*JobHistoryCommand) Autocompleteflags added in v0.6.1

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

func (*JobHistoryCommand) Help added in v0.6.0

func (c *JobHistoryCommand) Help() string

func (*JobHistoryCommand) Run added in v0.6.0

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

func (*JobHistoryCommand) Synopsis added in v0.6.0

func (c *JobHistoryCommand) Synopsis() string

type JobPromoteCommand added in v0.6.0

type JobPromoteCommand struct {
	Meta
}

func (*JobPromoteCommand) AutocompleteArgs added in v0.6.1

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

func (*JobPromoteCommand) AutocompleteFlags added in v0.6.1

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

func (*JobPromoteCommand) Help added in v0.6.0

func (c *JobPromoteCommand) Help() string

func (*JobPromoteCommand) Run added in v0.6.0

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

func (*JobPromoteCommand) Synopsis added in v0.6.0

func (c *JobPromoteCommand) Synopsis() string

type JobRevertCommand added in v0.6.0

type JobRevertCommand struct {
	Meta
}

func (*JobRevertCommand) AutocompleteArgs added in v0.6.1

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

func (*JobRevertCommand) AutocompleteFlags added in v0.6.1

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

func (*JobRevertCommand) Help added in v0.6.0

func (c *JobRevertCommand) Help() string

func (*JobRevertCommand) Run added in v0.6.0

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

func (*JobRevertCommand) Synopsis added in v0.6.0

func (c *JobRevertCommand) Synopsis() string

type JobStatusCommand added in v0.6.1

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

func (*JobStatusCommand) AutocompleteArgs added in v0.6.1

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

func (*JobStatusCommand) AutocompleteFlags added in v0.6.1

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

func (*JobStatusCommand) Help added in v0.6.1

func (c *JobStatusCommand) Help() string

func (*JobStatusCommand) Run added in v0.6.1

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

func (*JobStatusCommand) Synopsis added in v0.6.1

func (c *JobStatusCommand) Synopsis() string

type KeygenCommand added in v0.5.0

type KeygenCommand struct {
	Meta
}

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

func (*KeygenCommand) Help added in v0.5.0

func (c *KeygenCommand) Help() string

func (*KeygenCommand) Run added in v0.5.0

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

func (*KeygenCommand) Synopsis added in v0.5.0

func (c *KeygenCommand) Synopsis() string

type KeyringCommand added in v0.5.0

type KeyringCommand struct {
	Meta
}

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

func (*KeyringCommand) AutocompleteArgs added in v0.6.1

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

func (*KeyringCommand) AutocompleteFlags added in v0.6.1

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

func (*KeyringCommand) Help added in v0.5.0

func (c *KeyringCommand) Help() string

func (*KeyringCommand) Run added in v0.5.0

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

func (*KeyringCommand) Synopsis added in v0.5.0

func (c *KeyringCommand) Synopsis() string

type LineLimitReader added in v0.4.1

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 added in v0.4.1

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 added in v0.4.1

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

type LogsCommand added in v0.4.1

type LogsCommand struct {
	Meta
}

func (*LogsCommand) AutocompleteArgs added in v0.6.1

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

func (*LogsCommand) AutocompleteFlags added in v0.6.1

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

func (*LogsCommand) Help added in v0.4.1

func (l *LogsCommand) Help() string

func (*LogsCommand) Run added in v0.4.1

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

func (*LogsCommand) Synopsis added in v0.4.1

func (l *LogsCommand) Synopsis() string

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 added in v0.6.1

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 added in v0.4.0

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 NamespaceApplyCommand added in v0.7.0

type NamespaceApplyCommand struct {
	Meta
}

func (*NamespaceApplyCommand) AutocompleteArgs added in v0.7.0

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

func (*NamespaceApplyCommand) AutocompleteFlags added in v0.7.0

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

func (*NamespaceApplyCommand) Help added in v0.7.0

func (c *NamespaceApplyCommand) Help() string

func (*NamespaceApplyCommand) Run added in v0.7.0

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

func (*NamespaceApplyCommand) Synopsis added in v0.7.0

func (c *NamespaceApplyCommand) Synopsis() string

type NamespaceCommand added in v0.7.0

type NamespaceCommand struct {
	Meta
}

func (*NamespaceCommand) Help added in v0.7.0

func (f *NamespaceCommand) Help() string

func (*NamespaceCommand) Run added in v0.7.0

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

func (*NamespaceCommand) Synopsis added in v0.7.0

func (f *NamespaceCommand) Synopsis() string

type NamespaceDeleteCommand added in v0.7.0

type NamespaceDeleteCommand struct {
	Meta
}

func (*NamespaceDeleteCommand) AutocompleteArgs added in v0.7.0

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

func (*NamespaceDeleteCommand) AutocompleteFlags added in v0.7.0

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

func (*NamespaceDeleteCommand) Help added in v0.7.0

func (c *NamespaceDeleteCommand) Help() string

func (*NamespaceDeleteCommand) Run added in v0.7.0

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

func (*NamespaceDeleteCommand) Synopsis added in v0.7.0

func (c *NamespaceDeleteCommand) Synopsis() string

type NamespaceInspectCommand added in v0.7.0

type NamespaceInspectCommand struct {
	Meta
}

func (*NamespaceInspectCommand) AutocompleteArgs added in v0.7.0

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

func (*NamespaceInspectCommand) AutocompleteFlags added in v0.7.0

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

func (*NamespaceInspectCommand) Help added in v0.7.0

func (c *NamespaceInspectCommand) Help() string

func (*NamespaceInspectCommand) Run added in v0.7.0

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

func (*NamespaceInspectCommand) Synopsis added in v0.7.0

func (c *NamespaceInspectCommand) Synopsis() string

type NamespaceListCommand added in v0.7.0

type NamespaceListCommand struct {
	Meta
}

func (*NamespaceListCommand) AutocompleteArgs added in v0.7.0

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

func (*NamespaceListCommand) AutocompleteFlags added in v0.7.0

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

func (*NamespaceListCommand) Help added in v0.7.0

func (c *NamespaceListCommand) Help() string

func (*NamespaceListCommand) Run added in v0.7.0

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

func (*NamespaceListCommand) Synopsis added in v0.7.0

func (c *NamespaceListCommand) Synopsis() string

type NamespaceStatusCommand added in v0.7.0

type NamespaceStatusCommand struct {
	Meta
}

func (*NamespaceStatusCommand) AutocompleteArgs added in v0.7.0

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

func (*NamespaceStatusCommand) AutocompleteFlags added in v0.7.0

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

func (*NamespaceStatusCommand) Help added in v0.7.0

func (c *NamespaceStatusCommand) Help() string

func (*NamespaceStatusCommand) Run added in v0.7.0

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

func (*NamespaceStatusCommand) Synopsis added in v0.7.0

func (c *NamespaceStatusCommand) Synopsis() string

type NodeDrainCommand

type NodeDrainCommand struct {
	Meta
}

func (*NodeDrainCommand) AutocompleteArgs added in v0.6.1

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

func (*NodeDrainCommand) AutocompleteFlags added in v0.6.1

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

func (*NodeDrainCommand) Help

func (c *NodeDrainCommand) Help() string

func (*NodeDrainCommand) Run

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

func (*NodeDrainCommand) Synopsis

func (c *NodeDrainCommand) Synopsis() string

type NodeStatusCommand

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

func (*NodeStatusCommand) AutocompleteArgs added in v0.6.1

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

func (*NodeStatusCommand) AutocompleteFlags added in v0.6.1

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

func (*NodeStatusCommand) Help

func (c *NodeStatusCommand) Help() string

func (*NodeStatusCommand) Run

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

func (*NodeStatusCommand) Synopsis

func (c *NodeStatusCommand) Synopsis() string

type OperatorCommand added in v0.5.5

type OperatorCommand struct {
	Meta
}

func (*OperatorCommand) Help added in v0.5.5

func (f *OperatorCommand) Help() string

func (*OperatorCommand) Run added in v0.5.5

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

func (*OperatorCommand) Synopsis added in v0.5.5

func (f *OperatorCommand) Synopsis() string

type OperatorRaftCommand added in v0.5.5

type OperatorRaftCommand struct {
	Meta
}

func (*OperatorRaftCommand) Help added in v0.5.5

func (c *OperatorRaftCommand) Help() string

func (*OperatorRaftCommand) Run added in v0.5.5

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

func (*OperatorRaftCommand) Synopsis added in v0.5.5

func (c *OperatorRaftCommand) Synopsis() string

type OperatorRaftListCommand added in v0.5.5

type OperatorRaftListCommand struct {
	Meta
}

func (*OperatorRaftListCommand) AutocompleteArgs added in v0.6.1

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

func (*OperatorRaftListCommand) AutocompleteFlags added in v0.6.1

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

func (*OperatorRaftListCommand) Help added in v0.5.5

func (c *OperatorRaftListCommand) Help() string

func (*OperatorRaftListCommand) Run added in v0.5.5

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

func (*OperatorRaftListCommand) Synopsis added in v0.5.5

func (c *OperatorRaftListCommand) Synopsis() string

type OperatorRaftRemoveCommand added in v0.5.5

type OperatorRaftRemoveCommand struct {
	Meta
}

func (*OperatorRaftRemoveCommand) AutocompleteArgs added in v0.6.1

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

func (*OperatorRaftRemoveCommand) AutocompleteFlags added in v0.6.1

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

func (*OperatorRaftRemoveCommand) Help added in v0.5.5

func (*OperatorRaftRemoveCommand) Run added in v0.5.5

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

func (*OperatorRaftRemoveCommand) Synopsis added in v0.5.5

func (c *OperatorRaftRemoveCommand) Synopsis() string

type PlanCommand added in v0.4.0

type PlanCommand struct {
	Meta
	JobGetter
}

func (*PlanCommand) AutocompleteArgs added in v0.6.0

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

func (*PlanCommand) AutocompleteFlags added in v0.6.0

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

func (*PlanCommand) Help added in v0.4.0

func (c *PlanCommand) Help() string

func (*PlanCommand) Run added in v0.4.0

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

func (*PlanCommand) Synopsis added in v0.4.0

func (c *PlanCommand) Synopsis() string

type QuotaApplyCommand added in v0.7.0

type QuotaApplyCommand struct {
	Meta
}

func (*QuotaApplyCommand) AutocompleteArgs added in v0.7.0

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

func (*QuotaApplyCommand) AutocompleteFlags added in v0.7.0

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

func (*QuotaApplyCommand) Help added in v0.7.0

func (c *QuotaApplyCommand) Help() string

func (*QuotaApplyCommand) Run added in v0.7.0

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

func (*QuotaApplyCommand) Synopsis added in v0.7.0

func (c *QuotaApplyCommand) Synopsis() string

type QuotaCommand added in v0.7.0

type QuotaCommand struct {
	Meta
}

func (*QuotaCommand) Help added in v0.7.0

func (f *QuotaCommand) Help() string

func (*QuotaCommand) Run added in v0.7.0

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

func (*QuotaCommand) Synopsis added in v0.7.0

func (f *QuotaCommand) Synopsis() string

type QuotaDeleteCommand added in v0.7.0

type QuotaDeleteCommand struct {
	Meta
}

func (*QuotaDeleteCommand) AutocompleteArgs added in v0.7.0

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

func (*QuotaDeleteCommand) AutocompleteFlags added in v0.7.0

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

func (*QuotaDeleteCommand) Help added in v0.7.0

func (c *QuotaDeleteCommand) Help() string

func (*QuotaDeleteCommand) Run added in v0.7.0

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

func (*QuotaDeleteCommand) Synopsis added in v0.7.0

func (c *QuotaDeleteCommand) Synopsis() string

type QuotaInitCommand added in v0.7.0

type QuotaInitCommand struct {
	Meta
}

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

func (*QuotaInitCommand) AutocompleteArgs added in v0.7.0

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

func (*QuotaInitCommand) AutocompleteFlags added in v0.7.0

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

func (*QuotaInitCommand) Help added in v0.7.0

func (c *QuotaInitCommand) Help() string

func (*QuotaInitCommand) Run added in v0.7.0

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

func (*QuotaInitCommand) Synopsis added in v0.7.0

func (c *QuotaInitCommand) Synopsis() string

type QuotaInspectCommand added in v0.7.0

type QuotaInspectCommand struct {
	Meta
}

func (*QuotaInspectCommand) AutocompleteArgs added in v0.7.0

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

func (*QuotaInspectCommand) AutocompleteFlags added in v0.7.0

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

func (*QuotaInspectCommand) Help added in v0.7.0

func (c *QuotaInspectCommand) Help() string

func (*QuotaInspectCommand) Run added in v0.7.0

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

func (*QuotaInspectCommand) Synopsis added in v0.7.0

func (c *QuotaInspectCommand) Synopsis() string

type QuotaListCommand added in v0.7.0

type QuotaListCommand struct {
	Meta
}

func (*QuotaListCommand) AutocompleteArgs added in v0.7.0

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

func (*QuotaListCommand) AutocompleteFlags added in v0.7.0

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

func (*QuotaListCommand) Help added in v0.7.0

func (c *QuotaListCommand) Help() string

func (*QuotaListCommand) Run added in v0.7.0

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

func (*QuotaListCommand) Synopsis added in v0.7.0

func (c *QuotaListCommand) Synopsis() string

type QuotaStatusCommand added in v0.7.0

type QuotaStatusCommand struct {
	Meta
}

func (*QuotaStatusCommand) AutocompleteArgs added in v0.7.0

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

func (*QuotaStatusCommand) AutocompleteFlags added in v0.7.0

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

func (*QuotaStatusCommand) Help added in v0.7.0

func (c *QuotaStatusCommand) Help() string

func (*QuotaStatusCommand) Run added in v0.7.0

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

func (*QuotaStatusCommand) Synopsis added in v0.7.0

func (c *QuotaStatusCommand) Synopsis() string

type RunCommand

type RunCommand struct {
	Meta
	JobGetter
}

func (*RunCommand) AutocompleteArgs added in v0.6.0

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

func (*RunCommand) AutocompleteFlags added in v0.6.0

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

func (*RunCommand) Help

func (c *RunCommand) Help() string

func (*RunCommand) Run

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

func (*RunCommand) Synopsis

func (c *RunCommand) Synopsis() string

type SentinelApplyCommand added in v0.7.0

type SentinelApplyCommand struct {
	Meta
}

func (*SentinelApplyCommand) AutocompleteArgs added in v0.7.0

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

func (*SentinelApplyCommand) AutocompleteFlags added in v0.7.0

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

func (*SentinelApplyCommand) Help added in v0.7.0

func (c *SentinelApplyCommand) Help() string

func (*SentinelApplyCommand) Run added in v0.7.0

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

func (*SentinelApplyCommand) Synopsis added in v0.7.0

func (c *SentinelApplyCommand) Synopsis() string

type SentinelCommand added in v0.7.0

type SentinelCommand struct {
	Meta
}

func (*SentinelCommand) Help added in v0.7.0

func (f *SentinelCommand) Help() string

func (*SentinelCommand) Run added in v0.7.0

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

func (*SentinelCommand) Synopsis added in v0.7.0

func (f *SentinelCommand) Synopsis() string

type SentinelDeleteCommand added in v0.7.0

type SentinelDeleteCommand struct {
	Meta
}

func (*SentinelDeleteCommand) AutocompleteArgs added in v0.7.0

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

func (*SentinelDeleteCommand) AutocompleteFlags added in v0.7.0

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

func (*SentinelDeleteCommand) Help added in v0.7.0

func (c *SentinelDeleteCommand) Help() string

func (*SentinelDeleteCommand) Run added in v0.7.0

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

func (*SentinelDeleteCommand) Synopsis added in v0.7.0

func (c *SentinelDeleteCommand) Synopsis() string

type SentinelListCommand added in v0.7.0

type SentinelListCommand struct {
	Meta
}

func (*SentinelListCommand) AutocompleteArgs added in v0.7.0

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

func (*SentinelListCommand) AutocompleteFlags added in v0.7.0

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

func (*SentinelListCommand) Help added in v0.7.0

func (c *SentinelListCommand) Help() string

func (*SentinelListCommand) Run added in v0.7.0

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

func (*SentinelListCommand) Synopsis added in v0.7.0

func (c *SentinelListCommand) Synopsis() string

type SentinelReadCommand added in v0.7.0

type SentinelReadCommand struct {
	Meta
}

func (*SentinelReadCommand) AutocompleteArgs added in v0.7.0

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

func (*SentinelReadCommand) AutocompleteFlags added in v0.7.0

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

func (*SentinelReadCommand) Help added in v0.7.0

func (c *SentinelReadCommand) Help() string

func (*SentinelReadCommand) Run added in v0.7.0

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

func (*SentinelReadCommand) Synopsis added in v0.7.0

func (c *SentinelReadCommand) Synopsis() string

type ServerForceLeaveCommand

type ServerForceLeaveCommand struct {
	Meta
}

func (*ServerForceLeaveCommand) Help

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

func (c *ServerJoinCommand) Help() 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 added in v0.6.1

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

func (*ServerMembersCommand) AutocompleteFlags added in v0.6.1

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

func (*ServerMembersCommand) Help

func (c *ServerMembersCommand) Help() 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
}

func (*StatusCommand) AutocompleteArgs added in v0.6.1

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

func (*StatusCommand) AutocompleteFlags added in v0.6.1

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 StopCommand

type StopCommand struct {
	Meta
}

func (*StopCommand) AutocompleteArgs added in v0.6.1

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

func (*StopCommand) AutocompleteFlags added in v0.6.1

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

func (*StopCommand) Help

func (c *StopCommand) Help() string

func (*StopCommand) Run

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

func (*StopCommand) Synopsis

func (c *StopCommand) Synopsis() string

type TemplateFormat added in v0.4.1

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

func (*TemplateFormat) TransformData added in v0.4.1

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

TransformData returns template format string data.

type UiCommand added in v0.7.0

type UiCommand struct {
	Meta
}

func (*UiCommand) AutocompleteArgs added in v0.7.0

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

func (*UiCommand) AutocompleteFlags added in v0.7.0

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

func (*UiCommand) Help added in v0.7.0

func (c *UiCommand) Help() string

func (*UiCommand) Run added in v0.7.0

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

func (*UiCommand) Synopsis added in v0.7.0

func (c *UiCommand) Synopsis() string

type ValidateCommand

type ValidateCommand struct {
	Meta
	JobGetter
}

func (*ValidateCommand) AutocompleteArgs added in v0.6.0

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

func (*ValidateCommand) AutocompleteFlags added in v0.6.0

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

func (*ValidateCommand) Help

func (c *ValidateCommand) Help() string

func (*ValidateCommand) Run

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

func (*ValidateCommand) Synopsis

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

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

func (*VersionCommand) Synopsis

func (c *VersionCommand) Synopsis() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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