clusternetwork

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 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 ClusterNetwork

type ClusterNetwork struct {
	*fc.MSCluster_Network
}

func GetClusterNetwork

func GetClusterNetwork(whost *host.WmiHost, nodeName string) (cnode *ClusterNetwork, err error)

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

func NewClusterNetwork

func NewClusterNetwork(instance *wmi.WmiInstance) (*ClusterNetwork, error)

NewClusterNetwork

func (*ClusterNetwork) IsPartitioned

func (c *ClusterNetwork) IsPartitioned() (status bool, err error)

IsPartitioned get the cluster network health status

func (*ClusterNetwork) State

func (c *ClusterNetwork) State() (value int32, err error)

State gets the value of FaultState for the instance

type ClusterNetworkCollection

type ClusterNetworkCollection []*ClusterNetwork

func GetClusterNetworks

func GetClusterNetworks(whost *host.WmiHost) (cnodecollection ClusterNetworkCollection, err error)

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

func NewClusterNetworkCollection

func NewClusterNetworkCollection(instances []*wmi.WmiInstance) (col ClusterNetworkCollection, err error)

func (*ClusterNetworkCollection) Close

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

func (*ClusterNetworkCollection) String

func (instances *ClusterNetworkCollection) String() string

Jump to

Keyboard shortcuts

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