Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterNode ¶
type ClusterNode struct {
*fc.MSCluster_Node
}
func GetClusterNode ¶
func GetClusterNode(whost *host.WmiHost, nodeName string) (cnode *ClusterNode, err error)
GetClusterNode gets an existing virtual machine Make sure to call Close once done using this instance
func GetLocalClusterNode ¶
func GetLocalClusterNode(whost *host.WmiHost) (cnode *ClusterNode, err error)
GetLocalClusterNode gets an existing virtual machine Make sure to call Close once done using this instance
func NewClusterNode ¶
func NewClusterNode(instance *wmi.WmiInstance) (*ClusterNode, error)
NewClusterNode
func (*ClusterNode) IsPaused ¶
func (c *ClusterNode) IsPaused() (status bool, err error)
IsPaused get the cluster health status
func (*ClusterNode) IsUp ¶
func (c *ClusterNode) IsUp() (status bool, err error)
IsUp get the cluster health status
func (*ClusterNode) State ¶
func (c *ClusterNode) State() (value int32, err error)
State gets the value of FaultState for the instance
type ClusterNodeCollection ¶
type ClusterNodeCollection []*ClusterNode
func GetClusterNodes ¶
func GetClusterNodes(whost *host.WmiHost) (cnodecollection ClusterNodeCollection, err error)
GetClusterNodes gets an existing virtual machine Make sure to call Close once done using this instance
func NewClusterNodeCollection ¶
func NewClusterNodeCollection(instances []*wmi.WmiInstance) (col ClusterNodeCollection, err error)
func (*ClusterNodeCollection) Close ¶
func (instances *ClusterNodeCollection) Close() (err error)
func (*ClusterNodeCollection) String ¶
func (instances *ClusterNodeCollection) String() string
Click to show internal directories.
Click to hide internal directories.