affinityrule

package
v0.24.3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 8 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) (affinityRule *AffinityRule, err error)

CreateAffinityRule

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

Jump to

Keyboard shortcuts

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