cluster

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListHostsFromGroup

func ListHostsFromGroup(ctx context.Context, ccr *object.ClusterComputeResource, hostGroup string) ([]object.Reference, error)

Types

type Rule

type Rule interface {
	Disabled() bool

	IsMandatory() bool
}

func VerifyAffinityRule

func VerifyAffinityRule(ctx computeClusterContext, clusterName, hostGroupName, vmGroupName string) (Rule, error)

type VMGroup added in v0.7.10

VMGroup represents a VSphere VM Group object.

func FindVMGroup added in v0.7.10

func FindVMGroup(ctx computeClusterContext, clusterName, vmGroupName string) (*VMGroup, error)

func (VMGroup) Add added in v0.7.10

Add a VSphere VM object to the VM Group.

func (VMGroup) HasVM added in v0.7.10

func (vg VMGroup) HasVM(vmObj types.ManagedObjectReference) (bool, error)

HasVM returns whether a VSphere VM object is a member of the VM Group.

Jump to

Keyboard shortcuts

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