Documentation ¶
Index ¶
- func IsSupported(client *govmomi.Client) bool
- func PolicyIDByName(client *govmomi.Client, name string) (string, error)
- func PolicyIDByVirtualDisk(client *govmomi.Client, vmMOID string, diskKey int) (string, error)
- func PolicyIDByVirtualMachine(client *govmomi.Client, vmMOID string) (string, error)
- func PolicyNameByID(client *govmomi.Client, id string) (string, error)
- func PolicySpecByID(id string) []types.BaseVirtualMachineProfileSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSupported ¶
func PolicyIDByName ¶
PolicyIDByName finds a SPBM storage policy by name and returns its ID.
func PolicyIDByVirtualDisk ¶
PolicyIDByVirtualDisk fetches the storage policy associated with a virtual disk.
func PolicyIDByVirtualMachine ¶
PolicyIDByVirtualMachine fetches the storage policy associated with a virtual machine.
func PolicyNameByID ¶
PolicyNameByID returns storage policy name by its ID.
func PolicySpecByID ¶
func PolicySpecByID(id string) []types.BaseVirtualMachineProfileSpec
PolicySpecByID creates and returns VirtualMachineDefinedProfileSpec by policy ID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.