spbm

package
v0.0.0-...-26687db Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSupported

func IsSupported(client *govmomi.Client) bool

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