snapshot

package
v0.0.0-...-46d4b59 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	STATUS_SUBURI  = "/vars/snapshotcloneserver_status"
	VERSION_SUBURI = "/vars/curve_version"
)

Variables

View Source
var (
	SnapshotCloneStatusMap = map[string]string{
		"active":  "leader",
		"standby": "follower",
	}
)

Functions

func GetSnapshotStatus

func GetSnapshotStatus(caller *cobra.Command) (*interface{}, *cmderror.CmdError, cobrautil.ClUSTER_HEALTH_STATUS)

func NewSnapshotCommand

func NewSnapshotCommand() *cobra.Command

Types

type SnapshotCommand

type SnapshotCommand struct {
	basecmd.FinalCurveCmd
	// contains filtered or unexported fields
}

func NewStatusSnapshotCommand

func NewStatusSnapshotCommand() *SnapshotCommand

func (*SnapshotCommand) AddFlags

func (sCmd *SnapshotCommand) AddFlags()

func (*SnapshotCommand) Init

func (sCmd *SnapshotCommand) Init(cmd *cobra.Command, args []string) error

func (*SnapshotCommand) Print

func (sCmd *SnapshotCommand) Print(cmd *cobra.Command, args []string) error

func (*SnapshotCommand) ResultPlainOutput

func (sCmd *SnapshotCommand) ResultPlainOutput() error

func (*SnapshotCommand) RunCommand

func (sCmd *SnapshotCommand) RunCommand(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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