vappcontainer

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(rp *object.ResourcePool, name string, resSpec *types.ResourceConfigSpec, vSpec *types.VAppConfigSpec, folder *object.Folder) (*object.VirtualApp, error)

Create creates a VirtualApp.

func Delete

func Delete(vc *object.VirtualApp) error

Delete destroys a VirtualApp.

func FromID

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

FromID locates a VirtualApp by its managed object reference ID.

func FromPath

func FromPath(client *govmomi.Client, name string, dc *object.Datacenter) (*object.VirtualApp, error)

FromPath returns a VirtualApp via its supplied path.

func HasChildren

func HasChildren(vc *object.VirtualApp) (bool, error)

HasChildren checks to see if a vApp container has any child items (virtual machines, vApps, or resource pools) and returns true if that is the case. This is useful when checking to see if a vApp container is safe to delete. Destroying a vApp container in vSphere destroys *all* children if at all possible, so extra verification is necessary to prevent accidental removal.

func IsVApp

func IsVApp(client *govmomi.Client, rp string) bool

IsVApp checks if a given managed object ID is a vApp. This is useful deciding if a given resource pool is a vApp or a standard resource pool.

func Properties

func Properties(obj *object.VirtualApp) (*mo.VirtualApp, error)

Properties returns the VirtualApp managed object from its higher-level object.

func Update

func Update(vc *object.VirtualApp, spec types.VAppConfigSpec) error

Update updates a VirtualApp.

Types

This section is empty.

Jump to

Keyboard shortcuts

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