Documentation ¶
Index ¶
- Constants
- Variables
- func Listen(backend env.Backend, queue string)
- func QueueByClassAndID(class Class, id string) string
- func Run(backend env.Backend, name string, params map[string]interface{}) (result map[string]interface{}, err error)
- type AddVmParams
- type Class
- type ClusterHostParams
- type Command
- type Commands
- type IDParams
- type Request
- type Response
- type UpdateVmParams
- type Validator
Constants ¶
View Source
const GlobalQueue = "cmd:global"
Variables ¶
View Source
var ErrBlankName = errors.New("Name cannot be blank")
View Source
var ErrMissingClusterID = errors.New("'cluster_id' must be specified")
View Source
var ErrNegativeMemory = errors.New("Memory size must be positive")
View Source
var TimedOut = errors.New("command.Run: Command timed out")
Functions ¶
func QueueByClassAndID ¶
Types ¶
type AddVmParams ¶
func (*AddVmParams) Validate ¶
func (p *AddVmParams) Validate() error
type ClusterHostParams ¶
type ClusterHostParams struct { HostID model.GUID `structs:"host_id" mapstructure:"host_id"` ClusterID model.GUID `structs:"cluster_id" mapstructure:"cluster_id"` }
func (*ClusterHostParams) Validate ¶
func (params *ClusterHostParams) Validate() error
type Response ¶
type Response struct { Status string `json:"status"` Result interface{} `json:"result"` }
type UpdateVmParams ¶
Click to show internal directories.
Click to hide internal directories.