recovery

package
v0.38.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GaleraStateFileName = "grastate.dat"
	BootstrapFileName   = "1-bootstrap.cnf"
	BootstrapFile       = `[galera]
wsrep_new_cluster="ON"`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bootstrap

type Bootstrap struct {
	UUID  string `json:"uuid"`
	Seqno int    `json:"seqno"`
}

func (*Bootstrap) Compare

func (g *Bootstrap) Compare(other GaleraRecoverer) int

func (*Bootstrap) GetSeqno

func (b *Bootstrap) GetSeqno() int

func (*Bootstrap) GetUUID

func (b *Bootstrap) GetUUID() string

func (*Bootstrap) Unmarshal

func (r *Bootstrap) Unmarshal(text []byte) error

func (*Bootstrap) Validate

func (b *Bootstrap) Validate() error

type GaleraRecoverer

type GaleraRecoverer interface {
	GetUUID() string
	GetSeqno() int
	Compare(other GaleraRecoverer) int
}

type GaleraState

type GaleraState struct {
	Version         string `json:"version"`
	UUID            string `json:"uuid"`
	Seqno           int    `json:"seqno"`
	SafeToBootstrap bool   `json:"safeToBootstrap"`
}

func (*GaleraState) Compare

func (g *GaleraState) Compare(other GaleraRecoverer) int

func (*GaleraState) GetSeqno

func (g *GaleraState) GetSeqno() int

func (*GaleraState) GetUUID

func (g *GaleraState) GetUUID() string

func (*GaleraState) Marshal

func (g *GaleraState) Marshal() ([]byte, error)

func (*GaleraState) Unmarshal

func (g *GaleraState) Unmarshal(text []byte) error

Jump to

Keyboard shortcuts

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

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy