 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- func GetVirtualIpHost() (string, error)
- func IsVirtualIpOwner(hostname string) bool
- type AttrPair
- type Clone
- type ClusterOptions
- type CountField
- type CurrentDC
- type Node
- type NodeAttribute
- type NodeHistory
- type NodeOnHost
- type OperationHistory
- type Resource
- type ResourceHistory
- type ResourcesConfig
- type Stack
- type Status
- type Summary
- type TimestampOrigin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVirtualIpHost ¶
func IsVirtualIpOwner ¶
Types ¶
type ClusterOptions ¶
type ClusterOptions struct {
	StonithEnabled         string `xml:"stonith-enabled,attr"`
	SymmetricCluster       string `xml:"symmetric-cluster,attr"`
	NoQuorumPolicy         string `xml:"no-quorum-policy,attr"`
	MaintenanceMode        string `xml:"maintenance-mode,attr"`
	StopAllResources       string `xml:"stop-all-resources,attr"`
	StonithTimeoutMs       string `xml:"stonith-timeout-ms,attr"`
	PriorityFencingDelayMs string `xml:"priority-fencing-delay-ms,attr"`
}
    type CountField ¶
type CountField struct {
	Number string `xml:"number,attr"`
}
    type NodeAttribute ¶
type NodeHistory ¶
type NodeHistory struct {
	Name            string            `xml:"name,attr"`
	ResourceHistory []ResourceHistory `xml:"resource_history"`
}
    type NodeOnHost ¶
type OperationHistory ¶
type OperationHistory struct {
	Call         string `xml:"call,attr"`
	Task         string `xml:"task,attr"`
	RC           string `xml:"rc,attr"`
	RCText       string `xml:"rc_text,attr"`
	Interval     string `xml:"interval,attr,omitempty"`
	LastRCChange string `xml:"last-rc-change,attr"`
	ExecTime     string `xml:"exec-time,attr"`
	QueueTime    string `xml:"queue-time,attr"`
}
    type Resource ¶
type Resource struct {
	ID             string       `xml:"id,attr"`
	ResourceAgent  string       `xml:"resource_agent,attr"`
	Role           string       `xml:"role,attr"`
	NodesRunningOn string       `xml:"nodes_running_on,attr"`
	NodeList       []NodeOnHost `xml:"node"`
}
    type ResourceHistory ¶
type ResourceHistory struct {
	ID                 string             `xml:"id,attr"`
	OperationHistories []OperationHistory `xml:"operation_history"`
}
    type ResourcesConfig ¶
type Status ¶
type Status struct {
	XMLName          xml.Name `xml:"pacemaker-result"`
	Summary          Summary  `xml:"summary"`
	Nodes            []Node   `xml:"nodes>node"`
	ResourceAndClone struct {
		Resources []Resource `xml:"resource"`
		Clones    []Clone    `xml:"clone"`
	} `xml:"resources"`
	NodeAttributes []NodeAttribute `xml:"node_attributes>node"`
	NodeHistory    []NodeHistory   `xml:"node_history>node"`
}
    func (*Status) GetVipHost ¶
type Summary ¶
type Summary struct {
	Stack           Stack           `xml:"stack"`
	CurrentDC       CurrentDC       `xml:"current_dc"`
	LastUpdate      TimestampOrigin `xml:"last_update"`
	LastChange      TimestampOrigin `xml:"last_change"`
	NodesConfigured CountField      `xml:"nodes_configured"`
	ResourcesConfig ResourcesConfig `xml:"resources_configured"`
	ClusterOptions  ClusterOptions  `xml:"cluster_options"`
}
     Click to show internal directories. 
   Click to hide internal directories.