innodbcluster

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMemberNotFound error = errors.New("member not found")

Functions

This section is empty.

Types

type ClusterStatus

type ClusterStatus string
const (
	ClusterStatusOK                   ClusterStatus = "OK"
	ClusterStatusOKPartial            ClusterStatus = "OK_PARTIAL"
	ClusterStatusOKNoTolerance        ClusterStatus = "OK_NO_TOLERANCE"
	ClusterStatusOKNoTolerancePartial ClusterStatus = "OK_NO_TOLERANCE_PARTIAL"
	ClusterStatusNoQuorum             ClusterStatus = "NO_QUORUM"
	ClusterStatusOffline              ClusterStatus = "OFFLINE"
	ClusterStatusError                ClusterStatus = "ERROR"
	ClusterStatusUnreachable          ClusterStatus = "UNREACHABLE"
	ClusterStatusUnknown              ClusterStatus = "UNKNOWN"
	ClusterStatusFenced               ClusterStatus = "FENCED_WRITES"
)

type Member

type Member struct {
	Address        string      `json:"address"`
	MemberState    MemberState `json:"status"`
	InstanceErrors []string    `json:"instanceErrors"`
}

type MemberState

type MemberState string
const (
	MemberStateOnline      MemberState = "ONLINE"
	MemberStateOffline     MemberState = "OFFLINE"
	MemberStateRecovering  MemberState = "RECOVERING"
	MemberStateUnreachable MemberState = "UNREACHABLE"
	MemberStateError       MemberState = "ERROR"
	MemberStateMissing     MemberState = "(MISSING)"
)

type ReplicaSetStatus added in v0.6.0

type ReplicaSetStatus struct {
	Primary    string            `json:"primary"`
	SSL        string            `json:"ssl"`
	Status     ClusterStatus     `json:"status"`
	StatusText string            `json:"statusText"`
	Topology   map[string]Member `json:"topology"`
}

type Status

type Status struct {
	ClusterName       string           `json:"clusterName"`
	DefaultReplicaSet ReplicaSetStatus `json:"defaultReplicaSet"`
}

func (Status) String added in v0.6.0

func (s Status) String() string

Jump to

Keyboard shortcuts

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