Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ModulesPath is rest endpoint for the Cluster Modules API ModulesPath = "/vcenter/cluster/modules" // ModulesVMPath is rest endpoint for the Cluster Modules Members API ModulesVMPath = "/vcenter/cluster/modules/vm" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateModule ¶
type CreateModule struct { Spec struct { ID string `json:"cluster"` } `json:"spec"` }
CreateModule is used for JSON encode/decode
type ModuleMembers ¶
type ModuleMembers struct {
VMs []string `json:"vms"`
}
ModuleMembers is used for JSON encode/decode
func (*ModuleMembers) AsReferences ¶
func (m *ModuleMembers) AsReferences() []types.ManagedObjectReference
AsReferences converts the ModuleMembers.VM field to morefs
Click to show internal directories.
Click to hide internal directories.