Documentation ¶
Index ¶
- func Create(rp *object.ResourcePool, name string, resSpec *types.ResourceConfigSpec, ...) (*object.VirtualApp, error)
- func Delete(vc *object.VirtualApp) error
- func FromID(client *govmomi.Client, id string) (*object.VirtualApp, error)
- func FromPath(client *govmomi.Client, name string, dc *object.Datacenter) (*object.VirtualApp, error)
- func HasChildren(vc *object.VirtualApp) (bool, error)
- func IsVApp(client *govmomi.Client, rp string) bool
- func Properties(obj *object.VirtualApp) (*mo.VirtualApp, error)
- func Update(vc *object.VirtualApp, spec types.VAppConfigSpec) error
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 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 ¶
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.