commands

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2016 License: Apache-2.0 Imports: 16 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PING_INTERVAL time.Duration = 200 // milliseconds
)

Functions

This section is empty.

Types

type CommandBase

type CommandBase struct {
	Input   interface{}
	Output  interface{}
	ExcInfo CommandExcInfo
}

func (*CommandBase) Arguments

func (c *CommandBase) Arguments() []string

func (*CommandBase) Command

func (c *CommandBase) Command() string

func (*CommandBase) Execute

func (c *CommandBase) Execute(cn base.Connection) error

func (*CommandBase) ExecuteOffline

func (c *CommandBase) ExecuteOffline() (string, error)

func (*CommandBase) InputModel

func (c *CommandBase) InputModel() interface{}

func (*CommandBase) IsOffline

func (c *CommandBase) IsOffline() bool

func (*CommandBase) OutputModel

func (c *CommandBase) OutputModel() interface{}

func (*CommandBase) Resource

func (c *CommandBase) Resource() string

func (*CommandBase) ShowBrief

func (c *CommandBase) ShowBrief() []string

func (*CommandBase) ShowHelp

func (c *CommandBase) ShowHelp() string

type CommandExcInfo

type CommandExcInfo struct {
	Verb     string
	Url      string
	Resource string
	Command  string
	Help     help.Command
}

type ComplexResponse

type ComplexResponse struct {
	Links []models.LinkEntity
}

type DatacenterGet

type DatacenterGet struct {
	CommandBase
}

func NewDatacenterGet

func NewDatacenterGet(info CommandExcInfo) *DatacenterGet

func (*DatacenterGet) Execute

func (dcGet *DatacenterGet) Execute(cn base.Connection) error

type DatacenterList

type DatacenterList struct {
	CommandBase
}

func NewDatacenterList

func NewDatacenterList(info CommandExcInfo) *DatacenterList

func (*DatacenterList) Execute

func (dcList *DatacenterList) Execute(cn base.Connection) error

type GroupList

type GroupList struct {
	CommandBase
}

func NewGroupList

func NewGroupList(info CommandExcInfo) *GroupList

func (*GroupList) Execute

func (g *GroupList) Execute(cn base.Connection) error

type Login

type Login struct {
	CommandBase
}

func NewLogin

func NewLogin(info CommandExcInfo) *Login

func (*Login) InputModel

func (l *Login) InputModel() interface{}

func (*Login) Login

func (l *Login) Login(opts *options.Options, conf *config.Config) string

type ServerList

type ServerList struct {
	CommandBase
}

func NewServerList

func NewServerList(info CommandExcInfo) *ServerList

func (*ServerList) Execute

func (sl *ServerList) Execute(cn base.Connection) error

type SetDefaultDC

type SetDefaultDC struct {
	CommandBase
}

func NewSetDefaultDC

func NewSetDefaultDC(info CommandExcInfo) *SetDefaultDC

func (*SetDefaultDC) Execute

func (s *SetDefaultDC) Execute(cn base.Connection) error

type ShowDefaultDC

type ShowDefaultDC struct {
	CommandBase
}

func NewShowDefaultDC

func NewShowDefaultDC(info CommandExcInfo) *ShowDefaultDC

func (*ShowDefaultDC) ExecuteOffline

func (u *ShowDefaultDC) ExecuteOffline() (string, error)

func (*ShowDefaultDC) IsOffline

func (u *ShowDefaultDC) IsOffline() bool

type StatusResponse

type StatusResponse struct {
	Status string
}

type UnsetDefaultDC

type UnsetDefaultDC struct {
	CommandBase
}

func NewUnsetDefaultDC

func NewUnsetDefaultDC(info CommandExcInfo) *UnsetDefaultDC

func (*UnsetDefaultDC) ExecuteOffline

func (u *UnsetDefaultDC) ExecuteOffline() (string, error)

func (*UnsetDefaultDC) IsOffline

func (u *UnsetDefaultDC) IsOffline() bool

type Version

type Version struct {
	CommandBase
}

func NewVersion

func NewVersion(info CommandExcInfo) *Version

func (*Version) ExecuteOffline

func (v *Version) ExecuteOffline() (string, error)

func (*Version) IsOffline

func (v *Version) IsOffline() bool

type Wait

type Wait struct {
	CommandBase
}

func NewWait

func NewWait(info CommandExcInfo) *Wait

func (*Wait) Execute

func (w *Wait) Execute(cn base.Connection) error

func (*Wait) InputModel

func (w *Wait) InputModel() interface{}

Jump to

Keyboard shortcuts

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