Documentation ¶
Index ¶
- Variables
- func ListCollectionNames(commandEnv *CommandEnv, includeNormalVolumes, includeEcVolumes bool) (collections []string, err error)
- func LiveMoveVolume(grpcDialOption grpc.DialOption, writer io.Writer, volumeId needle.VolumeId, ...) (err error)
- func RunShell(options ShellOptions)
- type CandidateEcNode
- type CapacityFunc
- type CollectionInfo
- type CommandEnv
- type EcNode
- type EcNodeId
- type EcRack
- type EcShardLocations
- type EcShardMap
- type FileFilter
- type Node
- type Prefix
- type RackId
- type SelectOneVolumeFunc
- type ShellOptions
- type VInfo
- type VolumeReplica
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(grpcDialOption grpc.DialOption, writer io.Writer, volumeId needle.VolumeId, sourceVolumeServer, targetVolumeServer pb.ServerAddress, idleTimeout time.Duration, diskType string, skipTailError bool) (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 CapacityFunc ¶
type CapacityFunc func(*master_pb.DataNodeInfo) int
type CollectionInfo ¶
type CommandEnv ¶
type CommandEnv struct { MasterClient *wdclient.MasterClient // contains filtered or unexported fields }
func NewCommandEnv ¶
func NewCommandEnv(options *ShellOptions) *CommandEnv
func (*CommandEnv) AdjustedUrl ¶
func (ce *CommandEnv) AdjustedUrl(location *filer_pb.Location) string
func (*CommandEnv) WithFilerClient ¶
func (ce *CommandEnv) WithFilerClient(streamingMode bool, fn func(filer_pb.SeaweedFilerClient) error) error
type EcShardLocations ¶
type EcShardLocations [][]*EcNode
type EcShardMap ¶
type EcShardMap map[needle.VolumeId]EcShardLocations
type FileFilter ¶
type FileFilter struct {
// contains filtered or unexported fields
}
type SelectOneVolumeFunc ¶
type SelectOneVolumeFunc func(replicas []*VolumeReplica, replicaPlacement *super_block.ReplicaPlacement) *VolumeReplica
type ShellOptions ¶
type ShellOptions struct { Masters *string GrpcDialOption grpc.DialOption // shell transient context FilerHost string FilerPort int64 FilerGroup *string FilerAddress pb.ServerAddress Directory string }
type VolumeReplica ¶
type VolumeReplica struct {
// contains filtered or unexported fields
}
Source Files ¶
- command_cluster_check.go
- command_cluster_ps.go
- command_cluster_raft_add.go
- command_cluster_raft_ps.go
- command_cluster_raft_remove.go
- command_collection_delete.go
- command_collection_list.go
- command_ec_balance.go
- command_ec_common.go
- command_ec_decode.go
- command_ec_encode.go
- command_ec_rebuild.go
- command_fs_cat.go
- command_fs_cd.go
- command_fs_configure.go
- command_fs_du.go
- command_fs_ls.go
- command_fs_meta_cat.go
- command_fs_meta_load.go
- command_fs_meta_notify.go
- command_fs_meta_save.go
- command_fs_mkdir.go
- command_fs_mv.go
- command_fs_pwd.go
- command_fs_rm.go
- command_fs_tree.go
- command_lock_unlock.go
- command_mount_configure.go
- command_remote_cache.go
- command_remote_configure.go
- command_remote_meta_sync.go
- command_remote_mount.go
- command_remote_mount_buckets.go
- command_remote_uncache.go
- command_remote_unmount.go
- command_s3_bucket_create.go
- command_s3_bucket_delete.go
- command_s3_bucket_list.go
- command_s3_bucket_quota.go
- command_s3_bucket_quota_check.go
- command_s3_clean_uploads.go
- command_s3_configure.go
- command_volume_balance.go
- command_volume_check_disk.go
- command_volume_configure_replication.go
- command_volume_copy.go
- command_volume_delete.go
- command_volume_delete_empty.go
- command_volume_fix_replication.go
- command_volume_fsck.go
- command_volume_list.go
- command_volume_mark.go
- command_volume_mount.go
- command_volume_move.go
- command_volume_server_evacuate.go
- command_volume_server_leave.go
- command_volume_tier_download.go
- command_volume_tier_move.go
- command_volume_tier_upload.go
- command_volume_unmount.go
- command_volume_vacuum.go
- commands.go
- shell_liner.go
Click to show internal directories.
Click to hide internal directories.