cluster

package
v0.0.0-...-7eda018 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SBDPath            = "/usr/sbin/sbd"
	SBDConfigPath      = "/etc/sysconfig/sbd"
	SBDStatusUnknown   = "unknown"
	SBDStatusUnhealthy = "unhealthy"
	SBDStatusHealthy   = "healthy"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Cib    cib.Root    `mapstructure:"cib,omitempty"`
	Crmmon crmmon.Root `mapstructure:"crmmon,omitempty"`
	SBD    SBD         `mapstructure:"sbd,omitempty"`
	Id     string      `mapstructure:"id"`
	Name   string      `mapstructure:"name"`
	DC     bool        `mapstructure:"dc"`
}

func NewCluster

func NewCluster() (Cluster, error)

func NewClusterWithDiscoveryTools

func NewClusterWithDiscoveryTools(discoveryTools *DiscoveryTools) (Cluster, error)

func (*Cluster) FencingResourceExists

func (c *Cluster) FencingResourceExists() bool

func (*Cluster) FencingType

func (c *Cluster) FencingType() string

func (*Cluster) IsFencingEnabled

func (c *Cluster) IsFencingEnabled() bool

func (*Cluster) IsFencingSBD

func (c *Cluster) IsFencingSBD() bool

type DiscoveryTools

type DiscoveryTools struct {
	CibAdmPath      string
	CrmmonAdmPath   string
	CorosyncKeyPath string
	SBDPath         string
	SBDConfigPath   string
}

type SBD

type SBD struct {
	Devices []*SBDDevice           `mapstructure:"devices,omitempty"`
	Config  map[string]interface{} `mapstructure:"config,omitempty"`
	// contains filtered or unexported fields
}

func NewSBD

func NewSBD(cluster, sbdPath, sbdConfigPath string) (SBD, error)

type SBDDevice

type SBDDevice struct {
	Device string     `mapstructure:"device,omitempty"`
	Status string     `mapstructure:"status,omitempty"`
	Dump   SBDDump    `mapstructure:"dump,omitempty"`
	List   []*SBDNode `mapstructure:"list,omitempty"`
	// contains filtered or unexported fields
}

func NewSBDDevice

func NewSBDDevice(sbdPath string, device string) SBDDevice

func (*SBDDevice) LoadDeviceData

func (s *SBDDevice) LoadDeviceData() error

type SBDDump

type SBDDump struct {
	Header          string `mapstructure:"header,omitempty"`
	Uuid            string `mapstructure:"uuid,omitempty"`
	Slots           int    `mapstructure:"slots,omitempty"`
	SectorSize      int    `mapstructure:"sectorsize,omitempty"`
	TimeoutWatchdog int    `mapstructure:"timeoutwatchdog,omitempty"`
	TimeoutAllocate int    `mapstructure:"timeoutallocate,omitempty"`
	TimeoutLoop     int    `mapstructure:"timeoutloop,omitempty"`
	TimeoutMsgwait  int    `mapstructure:"timeoutmsgwait,omitempty"`
}

type SBDNode

type SBDNode struct {
	Id     int    `mapstructure:"id,omitempty"`
	Name   string `mapstructure:"name,omitempty"`
	Status string `mapstructure:"status,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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