Documentation ¶
Overview ¶
* Copyright (c) 2023 NetEase Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
* Project: CurveCli * Created Date: 2023-05-11 * Author: chengyi01
Index ¶
- func GetChunkserverStatus(caller *cobra.Command) (*interface{}, *cmderror.CmdError, cobrautil.ClUSTER_HEALTH_STATUS)
- func NewChunkServerCommand() *cobra.Command
- type ChunkServerCommand
- func (csCmd *ChunkServerCommand) AddFlags()
- func (csCmd *ChunkServerCommand) Init(cmd *cobra.Command, args []string) error
- func (csCmd *ChunkServerCommand) Print(cmd *cobra.Command, args []string) error
- func (csCmd *ChunkServerCommand) ResultPlainOutput() error
- func (csCmd *ChunkServerCommand) RunCommand(cmd *cobra.Command, args []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetChunkserverStatus ¶
func NewChunkServerCommand ¶
Types ¶
type ChunkServerCommand ¶
type ChunkServerCommand struct { basecmd.FinalCurveCmd ChunkServerInfos []*topology.ChunkServerInfo RecoverStatusMap map[uint32]bool }
func NewStatusChunkServerCommand ¶
func NewStatusChunkServerCommand() *ChunkServerCommand
func (*ChunkServerCommand) AddFlags ¶
func (csCmd *ChunkServerCommand) AddFlags()
func (*ChunkServerCommand) Init ¶
func (csCmd *ChunkServerCommand) Init(cmd *cobra.Command, args []string) error
func (*ChunkServerCommand) Print ¶
func (csCmd *ChunkServerCommand) Print(cmd *cobra.Command, args []string) error
func (*ChunkServerCommand) ResultPlainOutput ¶
func (csCmd *ChunkServerCommand) ResultPlainOutput() error
func (*ChunkServerCommand) RunCommand ¶
func (csCmd *ChunkServerCommand) RunCommand(cmd *cobra.Command, args []string) error