Documentation ¶
Index ¶
- func VM(op trace.Operation, session *session.Session, pool *object.ResourcePool) ([]types.ManagedObjectReference, error)
- type Cluster
- type ResourcePool
- func (rp *ResourcePool) GetChildVM(ctx context.Context, name string) (*vm.VirtualMachine, error)
- func (rp *ResourcePool) GetChildrenVMs(op trace.Operation) ([]*vm.VirtualMachine, error)
- func (rp *ResourcePool) GetCluster(ctx context.Context) (*object.ComputeResource, error)
- func (rp *ResourcePool) GetDatacenter(ctx context.Context) (*object.Datacenter, error)
- type VirtualApp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cluster ¶
type Cluster struct {
*object.ClusterComputeResource
}
func NewCluster ¶
func NewCluster(compute object.ComputeResource) *Cluster
type ResourcePool ¶
type ResourcePool struct { *object.ResourcePool *session.Session }
ResourcePool struct defines the ResourcePool which provides additional VIC specific methods over object.ResourcePool as well as keeps some state
func NewResourcePool ¶
func NewResourcePool(ctx context.Context, session *session.Session, moref types.ManagedObjectReference) *ResourcePool
NewResourcePool returns a New ResourcePool object
func (*ResourcePool) GetChildVM ¶
func (rp *ResourcePool) GetChildVM(ctx context.Context, name string) (*vm.VirtualMachine, error)
GetChildVM searches the pool for a VM by name and returns a VirtualMachine
func (*ResourcePool) GetChildrenVMs ¶
func (rp *ResourcePool) GetChildrenVMs(op trace.Operation) ([]*vm.VirtualMachine, error)
GetChildrenVMs returns a slice of VirtualMachines that are the pools VMs
func (*ResourcePool) GetCluster ¶
func (rp *ResourcePool) GetCluster(ctx context.Context) (*object.ComputeResource, error)
func (*ResourcePool) GetDatacenter ¶
func (rp *ResourcePool) GetDatacenter(ctx context.Context) (*object.Datacenter, error)
type VirtualApp ¶
type VirtualApp struct { *object.VirtualApp *session.Session }
VirtualApp struct defines the VirtualApp which provides additional VIC specific methods over object.VirtualApp as well as keeps some state
func NewVirtualApp ¶
func NewVirtualApp(ctx context.Context, session *session.Session, moref types.ManagedObjectReference) *VirtualApp
NewResourcePool returns a New ResourcePool object
Click to show internal directories.
Click to hide internal directories.