resourcepool

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2018 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 FromID

func FromID(client *govmomi.Client, id string) (*object.ResourcePool, error)

FromID locates a ResourcePool by its managed object reference ID.

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

func OSFamily(client *govmomi.Client, pool *object.ResourcePool, guest string) (string, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL