failovercluster

package
v0.10.1-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddVmToCluster

func AddVmToCluster(span *trace.LogSpan, virtualMachine string) error

func IsVmClustered

func IsVmClustered(span *trace.LogSpan, virtualMachine string) bool

func PinVmToLocalNode

func PinVmToLocalNode(span *trace.LogSpan, virtualMachine string) error

func RemoveVmFromCluster

func RemoveVmFromCluster(span *trace.LogSpan, virtualMachine string, options DestroyGroupOption) error

func UpdateVmConfiguration

func UpdateVmConfiguration(span *trace.LogSpan, virtualMachine string) error

Types

type DestroyGroupOption

type DestroyGroupOption uint32
const (
	DestroyGroupOption_None           DestroyGroupOption = 1 // Example: Keep the VM running and remove the group and its associated resources
	DestroyGroupOption_PerformCleanup DestroyGroupOption = 2 // Example: Save the VM before removing the group and its associated resources
)

type FailoverCluster

type FailoverCluster struct {
	Name   string
	Domain string
}

func GetFailoverCluster

func GetFailoverCluster(span *trace.LogSpan) *FailoverCluster

func GetFailoverClusterByName

func GetFailoverClusterByName(span *trace.LogSpan, failoverClusterName string, domain string) (*FailoverCluster, error)

type FailoverClusterGroupState

type FailoverClusterGroupState int
const (
	GroupState_Unknown       FailoverClusterGroupState = -1
	GroupState_Online        FailoverClusterGroupState = 0
	GroupState_Offline       FailoverClusterGroupState = 1
	GroupState_Failed        FailoverClusterGroupState = 2
	GroupState_PartialOnline FailoverClusterGroupState = 3
	GroupState_Pending       FailoverClusterGroupState = 4
)

type FailoverClusterMonitor

type FailoverClusterMonitor struct {
}

func GetClusterAddNodeMonitor

func GetClusterAddNodeMonitor(span *trace.LogSpan, failoverClusterName string, domain string, upperLevelCallbackContext interface{}, nodeAdded func(interface{}, string)) (*FailoverClusterMonitor, error)

func GetClusterGroupMonitor

func GetClusterGroupMonitor(span *trace.LogSpan, failoverClusterName string, domain string, upperLevelCallbackContext interface{}, vmMoved func(interface{}, string)) (*FailoverClusterMonitor, error)

func GetClusterNodeChangeMonitor

func GetClusterNodeChangeMonitor(span *trace.LogSpan, failoverClusterName string, domain string, upperLevelCallbackContext interface{}, nodeChanged func(interface{}, string)) (*FailoverClusterMonitor, error)

func GetClusterRemoveNodeMonitor

func GetClusterRemoveNodeMonitor(span *trace.LogSpan, failoverClusterName string, domain string, upperLevelCallbackContext interface{}, nodeRemoved func(interface{}, string)) (*FailoverClusterMonitor, error)

type FailoverClusterNode

type FailoverClusterNode struct {
	Name  string
	State FailoverClusterNodeState
}

func GetClusterNode

func GetClusterNode(span *trace.LogSpan, failoverClusterName string, domain string, nodeName string) (*FailoverClusterNode, error)

func GetClusterNodes

func GetClusterNodes(span *trace.LogSpan, failoverClusterName string, domain string) ([]FailoverClusterNode, error)

func GetClusteredVmOwnerNode

func GetClusteredVmOwnerNode(span *trace.LogSpan, vmName string) (*FailoverClusterNode, error)

type FailoverClusterNodeState

type FailoverClusterNodeState int

type FailoverClusteredVm

type FailoverClusteredVm struct {
	Name  string
	State FailoverClusterGroupState
	Node  FailoverClusterNode
}

Jump to

Keyboard shortcuts

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