affinityrule

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AffinityRule

type AffinityRule struct {
	*fc.MSCluster_AffinityRule
}

func CreateAffinityRule added in v0.24.2

func CreateAffinityRule(whost *host.WmiHost, name string, ruleType int, strict bool) (affinityRule *AffinityRule, err error)

CreateAffinityRule Make sure to call Close once done using this instance

func GetAffinityRule

func GetAffinityRule(whost *host.WmiHost, affinityRuleName string) (caffinityRule *AffinityRule, err error)

GetAffinityRule gets an existing virtual machine Make sure to call Close once done using this instance

func NewAffinityRule

func NewAffinityRule(instance *wmi.WmiInstance) (*AffinityRule, error)

NewAffinityRule

type AffinityRuleCollection

type AffinityRuleCollection []*AffinityRule

func GetAffinityRules

func GetAffinityRules(whost *host.WmiHost) (caffinityRulecollection AffinityRuleCollection, err error)

GetAffinityRule gets an existing virtual machine Make sure to call Close once done using this instance

func NewAffinityRuleCollection

func NewAffinityRuleCollection(instances []*wmi.WmiInstance) (col AffinityRuleCollection, err error)

func (*AffinityRuleCollection) Close

func (instances *AffinityRuleCollection) Close() (err error)

func (*AffinityRuleCollection) String

func (instances *AffinityRuleCollection) String() string

type FailoverClusterAffinityRuleType added in v0.24.6

type FailoverClusterAffinityRuleType int
const (
	SameFaultDomain      FailoverClusterAffinityRuleType = 1
	SameNode             FailoverClusterAffinityRuleType = 2
	DifferentFaultDomain FailoverClusterAffinityRuleType = 3
	DifferentNode        FailoverClusterAffinityRuleType = 4
)

Jump to

Keyboard shortcuts

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