cli

package
v2.5.99 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterStatus

func ClusterStatus(
	ctx context.Context,
	pbm *sdk.Client,
	confGetter RSConfGetter,
) (map[string][]Node, error)

Types

type LostAgentError

type LostAgentError struct {
	// contains filtered or unexported fields
}

func (LostAgentError) Error

func (e LostAgentError) Error() string

type Node

type Node struct {
	Host string
	Ver  string
	Role RSRole
	OK   bool
	Errs []error
}

func (Node) IsAgentLost

func (n Node) IsAgentLost() bool

type RSConfGetter

type RSConfGetter string

func (RSConfGetter) Get

func (g RSConfGetter) Get(ctx context.Context, host string) (*topo.RSConfig, error)

type RSRole

type RSRole string
const (
	RolePrimary   RSRole = "P"
	RoleSecondary RSRole = "S"
	RoleArbiter   RSRole = "A"
	RoleHidden    RSRole = "H"
	RoleDelayed   RSRole = "D"
)

Jump to

Keyboard shortcuts

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