command

package
v0.12.103 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HelpCommand

func HelpCommand(app *cli.App) cli.Command

Types

type AdminCommand

type AdminCommand struct {
	*Command
}

func NewAdminCommand

func NewAdminCommand(command *Command) *AdminCommand

func (*AdminCommand) Debug

func (a *AdminCommand) Debug(c *cli.Context) error

func (*AdminCommand) GetCommand

func (a *AdminCommand) GetCommand() cli.Command

func (*AdminCommand) SQL

func (a *AdminCommand) SQL(c *cli.Context) error

func (*AdminCommand) Scale

func (a *AdminCommand) Scale(c *cli.Context) error

func (*AdminCommand) Version

func (a *AdminCommand) Version(c *cli.Context) error

type Command

type Command struct {
	Client   client.Client
	Printer  printer.Printer
	Resolver Resolver
}

func (*Command) SetPrinter

func (cm *Command) SetPrinter(printer printer.Printer)

type CommandGroup

type CommandGroup interface {
	SetPrinter(printer.Printer)
	GetCommand() cli.Command
}

type DeployCommand

type DeployCommand struct {
	*Command
}

func NewDeployCommand

func NewDeployCommand(command *Command) *DeployCommand

func (*DeployCommand) Create

func (d *DeployCommand) Create(c *cli.Context) error

func (*DeployCommand) Delete

func (d *DeployCommand) Delete(c *cli.Context) error

func (*DeployCommand) Get

func (d *DeployCommand) Get(c *cli.Context) error

func (*DeployCommand) GetCommand

func (d *DeployCommand) GetCommand() cli.Command

func (*DeployCommand) List

func (d *DeployCommand) List(c *cli.Context) error

type EnvironmentCommand

type EnvironmentCommand struct {
	*Command
}

func NewEnvironmentCommand

func NewEnvironmentCommand(command *Command) *EnvironmentCommand

func (*EnvironmentCommand) Create

func (e *EnvironmentCommand) Create(c *cli.Context) error

func (*EnvironmentCommand) Delete

func (e *EnvironmentCommand) Delete(c *cli.Context) error

func (*EnvironmentCommand) Get

func (e *EnvironmentCommand) Get(c *cli.Context) error

func (*EnvironmentCommand) GetCommand

func (e *EnvironmentCommand) GetCommand() cli.Command
func (e *EnvironmentCommand) Link(c *cli.Context) error

func (*EnvironmentCommand) List

func (e *EnvironmentCommand) List(c *cli.Context) error

func (*EnvironmentCommand) SetMinCount

func (e *EnvironmentCommand) SetMinCount(c *cli.Context) error
func (e *EnvironmentCommand) Unlink(c *cli.Context) error

type JobCommand

type JobCommand struct {
	*Command
}

func NewJobCommand

func NewJobCommand(command *Command) *JobCommand

func (*JobCommand) Delete

func (j *JobCommand) Delete(c *cli.Context) error

func (*JobCommand) Get

func (j *JobCommand) Get(c *cli.Context) error

func (*JobCommand) GetCommand

func (j *JobCommand) GetCommand() cli.Command

func (*JobCommand) List

func (j *JobCommand) List(c *cli.Context) error

func (*JobCommand) Logs

func (j *JobCommand) Logs(c *cli.Context) error

type LoadBalancerCommand

type LoadBalancerCommand struct {
	*Command
}

func NewLoadBalancerCommand

func NewLoadBalancerCommand(command *Command) *LoadBalancerCommand

func (*LoadBalancerCommand) AddPort

func (l *LoadBalancerCommand) AddPort(c *cli.Context) error

func (*LoadBalancerCommand) Create

func (l *LoadBalancerCommand) Create(c *cli.Context) error

func (*LoadBalancerCommand) CrossZone added in v0.11.0

func (l *LoadBalancerCommand) CrossZone(c *cli.Context) error

func (*LoadBalancerCommand) Delete

func (l *LoadBalancerCommand) Delete(c *cli.Context) error

func (*LoadBalancerCommand) DropPort

func (l *LoadBalancerCommand) DropPort(c *cli.Context) error

func (*LoadBalancerCommand) Get

func (l *LoadBalancerCommand) Get(c *cli.Context) error

func (*LoadBalancerCommand) GetCommand

func (l *LoadBalancerCommand) GetCommand() cli.Command

func (*LoadBalancerCommand) HealthCheck

func (l *LoadBalancerCommand) HealthCheck(c *cli.Context) error

func (*LoadBalancerCommand) IdleTimeout added in v0.10.7

func (l *LoadBalancerCommand) IdleTimeout(c *cli.Context) error

func (*LoadBalancerCommand) List

func (l *LoadBalancerCommand) List(c *cli.Context) error

type NoMatchError

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

type Resolver

type Resolver interface {
	Resolve(entityType, target string) ([]string, error)
}

type ServiceCommand

type ServiceCommand struct {
	*Command
}

func NewServiceCommand

func NewServiceCommand(command *Command) *ServiceCommand

func (*ServiceCommand) Create

func (s *ServiceCommand) Create(c *cli.Context) error

func (*ServiceCommand) Delete

func (s *ServiceCommand) Delete(c *cli.Context) error

func (*ServiceCommand) Get

func (s *ServiceCommand) Get(c *cli.Context) error

func (*ServiceCommand) GetCommand

func (s *ServiceCommand) GetCommand() cli.Command

func (*ServiceCommand) List

func (s *ServiceCommand) List(c *cli.Context) error

func (*ServiceCommand) Logs

func (s *ServiceCommand) Logs(c *cli.Context) error

func (*ServiceCommand) Scale

func (s *ServiceCommand) Scale(c *cli.Context) error

func (*ServiceCommand) Update

func (s *ServiceCommand) Update(c *cli.Context) error

type TagResolver

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

func NewTagResolver

func NewTagResolver(client client.Client) *TagResolver

func (*TagResolver) Resolve

func (r *TagResolver) Resolve(entityType, target string) ([]string, error)

type TaskCommand

type TaskCommand struct {
	*Command
}

func NewTaskCommand

func NewTaskCommand(command *Command) *TaskCommand

func (*TaskCommand) Create

func (t *TaskCommand) Create(c *cli.Context) error

func (*TaskCommand) Delete

func (t *TaskCommand) Delete(c *cli.Context) error

func (*TaskCommand) Get

func (t *TaskCommand) Get(c *cli.Context) error

func (*TaskCommand) GetCommand

func (t *TaskCommand) GetCommand() cli.Command

func (*TaskCommand) List

func (t *TaskCommand) List(c *cli.Context) error

func (*TaskCommand) Logs

func (t *TaskCommand) Logs(c *cli.Context) error

type UsageError

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

func NewUsageError

func NewUsageError(format string, tokens ...interface{}) *UsageError

Directories

Path Synopsis
Package mock_command is a generated GoMock package.
Package mock_command is a generated GoMock package.

Jump to

Keyboard shortcuts

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