Documentation ¶
Index ¶
- func DeleteBrokenCopyset(logicalPoolID, copysetID uint32, peer *common.Peer, opts Options) (interface{}, *cmderror.CmdError)
- func GetLeader(logicalPoolID, copysetID uint32, conf Configuration, opts Options) (*common.Peer, *cmderror.CmdError)
- func NewCommand() *cobra.Command
- func ParsePeer(peer string) (*common.Peer, *cmderror.CmdError)
- type Command
- type Configuration
- type DeleteBrokenCopysetRPC
- type LeaderRpc
- type Options
- type RPCClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteBrokenCopyset ¶
func DeleteBrokenCopyset(logicalPoolID, copysetID uint32, peer *common.Peer, opts Options) (interface{}, *cmderror.CmdError)
DeleteBrokenCopyset delete broken copyset.
Types ¶
type Command ¶
type Command struct { basecmd.FinalCurveCmd // contains filtered or unexported fields }
Command the command to perform remove peer.
func (*Command) ResultPlainOutput ¶
type Configuration ¶
Configuration the configuration for peer.
func ParseConfiguration ¶
func ParseConfiguration(peers []string) (*Configuration, *cmderror.CmdError)
ParseConfiguration parse the conf string into Configuration
type DeleteBrokenCopysetRPC ¶
type DeleteBrokenCopysetRPC struct { Info *basecmd.Rpc Request *copyset.CopysetRequest Cli copyset.CopysetServiceClient }
DeleteBrokenCopysetRPC the rpc client for the rpc function DeleteBrokenCopyset
func (*DeleteBrokenCopysetRPC) NewRpcClient ¶
func (ufRp *DeleteBrokenCopysetRPC) NewRpcClient(cc grpc.ClientConnInterface)
NewRpcClient ...
type LeaderRpc ¶
type LeaderRpc struct { Info *basecmd.Rpc Request *cli2.GetLeaderRequest2 Cli cli2.CliService2Client }
LeaderRpc the rpc client for the rpc function GetLeader
func (*LeaderRpc) NewRpcClient ¶
func (ufRp *LeaderRpc) NewRpcClient(cc grpc.ClientConnInterface)
NewRpcClient ...
type RPCClient ¶
type RPCClient struct { Info *basecmd.Rpc Request *cli.RemovePeerRequest // contains filtered or unexported fields }
RPCClient the rpc client for the rpc function RemovePeer
func (*RPCClient) NewRpcClient ¶
func (rpp *RPCClient) NewRpcClient(cc grpc.ClientConnInterface)
Click to show internal directories.
Click to hide internal directories.