Documentation ¶
Index ¶
- Constants
- Variables
- func GetSnapshotStatus(caller *cobra.Command) (*interface{}, *cmderror.CmdError, cobrautil.ClUSTER_HEALTH_STATUS)
- func NewSnapshotCommand() *cobra.Command
- type SnapshotCommand
- func (sCmd *SnapshotCommand) AddFlags()
- func (sCmd *SnapshotCommand) Init(cmd *cobra.Command, args []string) error
- func (sCmd *SnapshotCommand) Print(cmd *cobra.Command, args []string) error
- func (sCmd *SnapshotCommand) ResultPlainOutput() error
- func (sCmd *SnapshotCommand) RunCommand(cmd *cobra.Command, args []string) error
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 NewSnapshotCommand ¶
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
Click to show internal directories.
Click to hide internal directories.