spbm

package
v1.24.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PolicyIDByName

func PolicyIDByName(client *govmomi.Client, name string) (string, error)

PolicyIDByName finds a SPBM storage policy by name and returns its ID.

func PolicyIDByVirtualDisk

func PolicyIDByVirtualDisk(client *govmomi.Client, vmMOID string, diskKey int) (string, error)

PolicyIDByVirtualDisk fetches the storage policy associated with a virtual disk.

func PolicyIDByVirtualMachine

func PolicyIDByVirtualMachine(client *govmomi.Client, vmMOID string) (string, error)

PolicyIDByVirtualMachine fetches the storage policy associated with a virtual machine.

func PolicyNameByID

func PolicyNameByID(client *govmomi.Client, id string) (string, error)

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.

Jump to

Keyboard shortcuts

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