Documentation ¶
Index ¶
- Variables
- func ListCollectionNames(commandEnv *CommandEnv, includeNormalVolumes, includeEcVolumes bool) (collections []string, err error)
- func LiveMoveVolume(ctx context.Context, grpcDialOption grpc.DialOption, volumeId needle.VolumeId, ...) (err error)
- func RunShell(options ShellOptions)
- type CandidateEcNode
- type CommandEnv
- type EcNode
- type EcNodeId
- type EcRack
- type EcShardLocations
- type EcShardMap
- type Node
- type Prefix
- type RackId
- type ShellOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Commands = []command{}
)
Functions ¶
func ListCollectionNames ¶
func ListCollectionNames(commandEnv *CommandEnv, includeNormalVolumes, includeEcVolumes bool) (collections []string, err error)
func LiveMoveVolume ¶
func LiveMoveVolume(ctx context.Context, grpcDialOption grpc.DialOption, volumeId needle.VolumeId, sourceVolumeServer, targetVolumeServer string, idleTimeout time.Duration) (err error)
LiveMoveVolume moves one volume from one source volume server to one target volume server, with idleTimeout to drain the incoming requests.
func RunShell ¶
func RunShell(options ShellOptions)
Types ¶
type CandidateEcNode ¶
type CandidateEcNode struct {
// contains filtered or unexported fields
}
type CommandEnv ¶
type CommandEnv struct { MasterClient *wdclient.MasterClient // contains filtered or unexported fields }
func NewCommandEnv ¶
func NewCommandEnv(options ShellOptions) *CommandEnv
type EcShardLocations ¶
type EcShardLocations [][]*EcNode
type EcShardMap ¶
type EcShardMap map[needle.VolumeId]EcShardLocations
type ShellOptions ¶
Source Files ¶
- command_collection_delete.go
- command_collection_list.go
- command_ec_balance.go
- command_ec_common.go
- command_ec_encode.go
- command_ec_rebuild.go
- command_fs_cat.go
- command_fs_cd.go
- command_fs_du.go
- command_fs_ls.go
- command_fs_meta_load.go
- command_fs_meta_notify.go
- command_fs_meta_save.go
- command_fs_mv.go
- command_fs_pwd.go
- command_fs_tree.go
- command_volume_balance.go
- command_volume_copy.go
- command_volume_delete.go
- command_volume_fix_replication.go
- command_volume_list.go
- command_volume_mount.go
- command_volume_move.go
- command_volume_unmount.go
- commands.go
- shell_liner.go
Click to show internal directories.
Click to hide internal directories.