Documentation ¶
Index ¶
- func DefaultDevices(client *govmomi.Client, pool *object.ResourcePool, guest string) (object.VirtualDeviceList, error)
- func FromID(client *govmomi.Client, id string) (*object.ResourcePool, error)
- func FromPathOrDefault(client *govmomi.Client, name string, dc *object.Datacenter) (*object.ResourcePool, error)
- func OSFamily(client *govmomi.Client, pool *object.ResourcePool, guest string) (string, error)
- func Properties(obj *object.ResourcePool) (*mo.ResourcePool, error)
- func ValidateHost(client *govmomi.Client, pool *object.ResourcePool, host *object.HostSystem) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDevices ¶
func DefaultDevices(client *govmomi.Client, pool *object.ResourcePool, guest string) (object.VirtualDeviceList, error)
DefaultDevices loads a default VirtualDeviceList for a supplied pool and guest ID (guest OS type).
func FromPathOrDefault ¶
func FromPathOrDefault(client *govmomi.Client, name string, dc *object.Datacenter) (*object.ResourcePool, error)
FromPathOrDefault returns a ResourcePool via its supplied path.
func OSFamily ¶
OSFamily uses the resource pool's environment browser to get the OS family for a specific guest ID.
func Properties ¶
func Properties(obj *object.ResourcePool) (*mo.ResourcePool, error)
Properties returns the ResourcePool managed object from its higher-level object.
func ValidateHost ¶
func ValidateHost(client *govmomi.Client, pool *object.ResourcePool, host *object.HostSystem) error
ValidateHost checks to see if a HostSystem is a member of a ResourcePool through cluster membership, or if the HostSystem ID matches the ID of a standalone host ComputeResource. An error is returned if it is not a member of the cluster to which the resource pool belongs, or if there was some sort of other error with checking.
This is used as an extra validation before a VM creation happens, or vMotion to a specific host is attempted.
Types ¶
This section is empty.