Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCrmMonParser ¶
func NewCrmMonParser(crmMonPath string) *crmMonParser
Types ¶
type Node ¶
type Node struct { Name string `xml:"name,attr"` Id string `xml:"id,attr"` Online bool `xml:"online,attr"` Standby bool `xml:"standby,attr"` StandbyOnFail bool `xml:"standby_onfail,attr"` Maintenance bool `xml:"maintenance,attr"` Pending bool `xml:"pending,attr"` Unclean bool `xml:"unclean,attr"` Shutdown bool `xml:"shutdown,attr"` ExpectedUp bool `xml:"expected_up,attr"` DC bool `xml:"is_dc,attr"` ResourcesRunning int `xml:"resources_running,attr"` Type string `xml:"type,attr"` }
type Resource ¶
type Resource struct { Id string `xml:"id,attr"` Agent string `xml:"resource_agent,attr"` Role string `xml:"role,attr"` Active bool `xml:"active,attr"` Orphaned bool `xml:"orphaned,attr"` Blocked bool `xml:"blocked,attr"` Managed bool `xml:"managed,attr"` Failed bool `xml:"failed,attr"` FailureIgnored bool `xml:"failure_ignored,attr"` NodesRunningOn int `xml:"nodes_running_on,attr"` Node *struct { Name string `xml:"name,attr"` Id string `xml:"id,attr"` Cached bool `xml:"cached,attr"` } `xml:"node,omitempty"` }
type Root ¶
type Root struct { Version string `xml:"version,attr"` Summary struct { Nodes struct { Number int `xml:"number,attr"` } `xml:"nodes_configured"` LastChange struct { Time string `xml:"time,attr"` } `xml:"last_change"` Resources struct { Number int `xml:"number,attr"` Disabled int `xml:"disabled,attr"` Blocked int `xml:"blocked,attr"` } `xml:"resources_configured"` ClusterOptions struct { StonithEnabled bool `xml:"stonith-enabled,attr"` MaintenanceMode bool `xml:"maintenance-mode,attr"` } `xml:"cluster_options"` } `xml:"summary"` Nodes []Node `xml:"nodes>node"` NodeAttributes struct { Nodes []struct { Name string `xml:"name,attr"` Attributes []struct { Name string `xml:"name,attr"` Value string `xml:"value,attr"` } `xml:"attribute"` } `xml:"node"` } `xml:"node_attributes"` NodeHistory struct { Nodes []struct { Name string `xml:"name,attr"` ResourceHistory []struct { Name string `xml:"id,attr"` MigrationThreshold int `xml:"migration-threshold,attr"` FailCount int `xml:"fail-count,attr"` } `xml:"resource_history"` } `xml:"node"` } `xml:"node_history"` Resources []Resource `xml:"resources>resource"` Clones []Clone `xml:"resources>clone"` Groups []Group `xml:"resources>group"` }
Click to show internal directories.
Click to hide internal directories.