cluster

package
v1.10.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package cluster contains tools for managing ComputeClusters.

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)

ListHostsFromGroup returns references to hosts for a given hostGroup.

Types

type Rule

type Rule interface {
	Disabled() bool

	IsMandatory() bool
}

Rule is a role for host affinity.

func VerifyAffinityRule

func VerifyAffinityRule(ctx context.Context, computeClusterCtx computeClusterContext, clusterName, hostGroupName, vmGroupName string) (Rule, error)

VerifyAffinityRule checks whether an affinity rule exists for a given hostGroup and vmGroup.

type VMGroup added in v0.7.10

VMGroup represents a VSphere VM Group object.

func FindVMGroup added in v0.7.10

func FindVMGroup(ctx context.Context, computeClusterCtx computeClusterContext, clusterName, vmGroupName string) (*VMGroup, error)

FindVMGroup returns the VSphereVMGroup object.

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