Documentation ¶
Index ¶
- Variables
- type CommandBase
- func (c *CommandBase) Arguments() []string
- func (c *CommandBase) Command() string
- func (c *CommandBase) Execute(cn base.Connection) error
- func (c *CommandBase) ExecuteOffline() (string, error)
- func (c *CommandBase) InputModel() interface{}
- func (c *CommandBase) IsOffline() bool
- func (c *CommandBase) OutputModel() interface{}
- func (c *CommandBase) Resource() string
- func (c *CommandBase) ShowBrief() []string
- func (c *CommandBase) ShowHelp() string
- type CommandExcInfo
- type ComplexResponse
- type DatacenterGet
- type DatacenterList
- type GroupList
- type Login
- type ServerList
- type SetDefaultDC
- type ShowDefaultDC
- type StatusResponse
- type UnsetDefaultDC
- type Version
- type Wait
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 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
type Login ¶
type Login struct {
CommandBase
}
func NewLogin ¶
func NewLogin(info CommandExcInfo) *Login
func (*Login) InputModel ¶
func (l *Login) InputModel() interface{}
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 ¶
type Wait ¶
type Wait struct {
CommandBase
}
func NewWait ¶
func NewWait(info CommandExcInfo) *Wait
func (*Wait) InputModel ¶
func (w *Wait) InputModel() interface{}
Click to show internal directories.
Click to hide internal directories.