aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--weed/shell/command.go8
-rw-r--r--weed/shell/command_cluster_check.go2
-rw-r--r--weed/shell/command_cluster_ps.go2
-rw-r--r--weed/shell/command_cluster_raft_add.go2
-rw-r--r--weed/shell/command_cluster_raft_ps.go2
-rw-r--r--weed/shell/command_cluster_raft_remove.go2
-rw-r--r--weed/shell/command_collection_delete.go2
-rw-r--r--weed/shell/command_collection_list.go2
-rw-r--r--weed/shell/command_ec_balance.go2
-rw-r--r--weed/shell/command_ec_decode.go2
-rw-r--r--weed/shell/command_ec_encode.go2
-rw-r--r--weed/shell/command_ec_rebuild.go2
-rw-r--r--weed/shell/command_fs_cat.go2
-rw-r--r--weed/shell/command_fs_cd.go2
-rw-r--r--weed/shell/command_fs_configure.go2
-rw-r--r--weed/shell/command_fs_du.go2
-rw-r--r--weed/shell/command_fs_log.go2
-rw-r--r--weed/shell/command_fs_ls.go2
-rw-r--r--weed/shell/command_fs_merge_volumes.go4
-rw-r--r--weed/shell/command_fs_meta_cat.go2
-rw-r--r--weed/shell/command_fs_meta_change_volume_id.go2
-rw-r--r--weed/shell/command_fs_meta_load.go2
-rw-r--r--weed/shell/command_fs_meta_notify.go2
-rw-r--r--weed/shell/command_fs_meta_save.go2
-rw-r--r--weed/shell/command_fs_mkdir.go2
-rw-r--r--weed/shell/command_fs_mv.go2
-rw-r--r--weed/shell/command_fs_pwd.go2
-rw-r--r--weed/shell/command_fs_rm.go2
-rw-r--r--weed/shell/command_fs_tree.go2
-rw-r--r--weed/shell/command_fs_verify.go2
-rw-r--r--weed/shell/command_lock_unlock.go4
-rw-r--r--weed/shell/command_mount_configure.go2
-rw-r--r--weed/shell/command_mq_balance.go2
-rw-r--r--weed/shell/command_mq_topic_configure.go2
-rw-r--r--weed/shell/command_mq_topic_desc.go2
-rw-r--r--weed/shell/command_mq_topic_list.go2
-rw-r--r--weed/shell/command_remote_cache.go2
-rw-r--r--weed/shell/command_remote_configure.go2
-rw-r--r--weed/shell/command_remote_meta_sync.go2
-rw-r--r--weed/shell/command_remote_mount.go2
-rw-r--r--weed/shell/command_remote_mount_buckets.go2
-rw-r--r--weed/shell/command_remote_uncache.go2
-rw-r--r--weed/shell/command_remote_unmount.go2
-rw-r--r--weed/shell/command_s3_bucket_create.go2
-rw-r--r--weed/shell/command_s3_bucket_delete.go2
-rw-r--r--weed/shell/command_s3_bucket_list.go2
-rw-r--r--weed/shell/command_s3_bucket_quota.go2
-rw-r--r--weed/shell/command_s3_bucket_quota_check.go2
-rw-r--r--weed/shell/command_s3_circuitbreaker.go2
-rw-r--r--weed/shell/command_s3_clean_uploads.go2
-rw-r--r--weed/shell/command_s3_configure.go2
-rw-r--r--weed/shell/command_volume_balance.go2
-rw-r--r--weed/shell/command_volume_check_disk.go2
-rw-r--r--weed/shell/command_volume_configure_replication.go2
-rw-r--r--weed/shell/command_volume_copy.go2
-rw-r--r--weed/shell/command_volume_delete.go2
-rw-r--r--weed/shell/command_volume_delete_empty.go2
-rw-r--r--weed/shell/command_volume_fix_replication.go2
-rw-r--r--weed/shell/command_volume_fsck.go2
-rw-r--r--weed/shell/command_volume_grow.go2
-rw-r--r--weed/shell/command_volume_list.go2
-rw-r--r--weed/shell/command_volume_mark.go2
-rw-r--r--weed/shell/command_volume_mount.go2
-rw-r--r--weed/shell/command_volume_move.go2
-rw-r--r--weed/shell/command_volume_server_evacuate.go2
-rw-r--r--weed/shell/command_volume_server_leave.go2
-rw-r--r--weed/shell/command_volume_tier_download.go2
-rw-r--r--weed/shell/command_volume_tier_move.go2
-rw-r--r--weed/shell/command_volume_tier_upload.go2
-rw-r--r--weed/shell/command_volume_unmount.go2
-rw-r--r--weed/shell/command_volume_vacuum.go2
-rw-r--r--weed/shell/command_volume_vacuum_disable.go2
-rw-r--r--weed/shell/command_volume_vacuum_enable.go2
73 files changed, 81 insertions, 75 deletions
diff --git a/weed/shell/command.go b/weed/shell/command.go
index e1a820ff8..cfd994f3f 100644
--- a/weed/shell/command.go
+++ b/weed/shell/command.go
@@ -6,9 +6,15 @@ type command interface {
Name() string
Help() string
Do([]string, *CommandEnv, io.Writer) error
- IsResourceHeavy() bool
+ HasTag(tag CommandTag) bool
}
var (
Commands = []command{}
)
+
+type CommandTag string
+
+const (
+ ResourceHeavy CommandTag = "resourceHeavy"
+)
diff --git a/weed/shell/command_cluster_check.go b/weed/shell/command_cluster_check.go
index b7c0defb1..27a4f2bb3 100644
--- a/weed/shell/command_cluster_check.go
+++ b/weed/shell/command_cluster_check.go
@@ -32,7 +32,7 @@ func (c *commandClusterCheck) Help() string {
`
}
-func (c *commandClusterCheck) IsResourceHeavy() bool {
+func (c *commandClusterCheck) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_cluster_ps.go b/weed/shell/command_cluster_ps.go
index 0aa317e4a..5a1503612 100644
--- a/weed/shell/command_cluster_ps.go
+++ b/weed/shell/command_cluster_ps.go
@@ -35,7 +35,7 @@ func (c *commandClusterPs) Help() string {
`
}
-func (c *commandClusterPs) IsResourceHeavy() bool {
+func (c *commandClusterPs) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_cluster_raft_add.go b/weed/shell/command_cluster_raft_add.go
index 1c8cbdc73..6089631b1 100644
--- a/weed/shell/command_cluster_raft_add.go
+++ b/weed/shell/command_cluster_raft_add.go
@@ -27,7 +27,7 @@ func (c *commandRaftServerAdd) Help() string {
`
}
-func (c *commandRaftServerAdd) IsResourceHeavy() bool {
+func (c *commandRaftServerAdd) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_cluster_raft_ps.go b/weed/shell/command_cluster_raft_ps.go
index 081661584..c8324f635 100644
--- a/weed/shell/command_cluster_raft_ps.go
+++ b/weed/shell/command_cluster_raft_ps.go
@@ -26,7 +26,7 @@ func (c *commandRaftClusterPs) Help() string {
`
}
-func (c *commandRaftClusterPs) IsResourceHeavy() bool {
+func (c *commandRaftClusterPs) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_cluster_raft_remove.go b/weed/shell/command_cluster_raft_remove.go
index f0cafcddd..109125890 100644
--- a/weed/shell/command_cluster_raft_remove.go
+++ b/weed/shell/command_cluster_raft_remove.go
@@ -27,7 +27,7 @@ func (c *commandRaftServerRemove) Help() string {
`
}
-func (c *commandRaftServerRemove) IsResourceHeavy() bool {
+func (c *commandRaftServerRemove) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_collection_delete.go b/weed/shell/command_collection_delete.go
index b473c5a1f..0239d4c55 100644
--- a/weed/shell/command_collection_delete.go
+++ b/weed/shell/command_collection_delete.go
@@ -28,7 +28,7 @@ func (c *commandCollectionDelete) Help() string {
`
}
-func (c *commandCollectionDelete) IsResourceHeavy() bool {
+func (c *commandCollectionDelete) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_collection_list.go b/weed/shell/command_collection_list.go
index a09e41775..32085f565 100644
--- a/weed/shell/command_collection_list.go
+++ b/weed/shell/command_collection_list.go
@@ -23,7 +23,7 @@ func (c *commandCollectionList) Help() string {
return `list all collections`
}
-func (c *commandCollectionList) IsResourceHeavy() bool {
+func (c *commandCollectionList) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_ec_balance.go b/weed/shell/command_ec_balance.go
index 8dfc6aa4e..704027580 100644
--- a/weed/shell/command_ec_balance.go
+++ b/weed/shell/command_ec_balance.go
@@ -98,7 +98,7 @@ func (c *commandEcBalance) Help() string {
`
}
-func (c *commandEcBalance) IsResourceHeavy() bool {
+func (c *commandEcBalance) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_ec_decode.go b/weed/shell/command_ec_decode.go
index 3097eff8c..02d0f316d 100644
--- a/weed/shell/command_ec_decode.go
+++ b/weed/shell/command_ec_decode.go
@@ -37,7 +37,7 @@ func (c *commandEcDecode) Help() string {
`
}
-func (c *commandEcDecode) IsResourceHeavy() bool {
+func (c *commandEcDecode) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_ec_encode.go b/weed/shell/command_ec_encode.go
index 7429e9a6a..e41529174 100644
--- a/weed/shell/command_ec_encode.go
+++ b/weed/shell/command_ec_encode.go
@@ -56,7 +56,7 @@ func (c *commandEcEncode) Help() string {
`
}
-func (c *commandEcEncode) IsResourceHeavy() bool {
+func (c *commandEcEncode) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_ec_rebuild.go b/weed/shell/command_ec_rebuild.go
index ec4fe5982..b761ea676 100644
--- a/weed/shell/command_ec_rebuild.go
+++ b/weed/shell/command_ec_rebuild.go
@@ -55,7 +55,7 @@ func (c *commandEcRebuild) Help() string {
`
}
-func (c *commandEcRebuild) IsResourceHeavy() bool {
+func (c *commandEcRebuild) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_fs_cat.go b/weed/shell/command_fs_cat.go
index 9272ad3ad..47a7f3be8 100644
--- a/weed/shell/command_fs_cat.go
+++ b/weed/shell/command_fs_cat.go
@@ -26,7 +26,7 @@ func (c *commandFsCat) Help() string {
`
}
-func (c *commandFsCat) IsResourceHeavy() bool {
+func (c *commandFsCat) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_fs_cd.go b/weed/shell/command_fs_cd.go
index 651357bb9..698865142 100644
--- a/weed/shell/command_fs_cd.go
+++ b/weed/shell/command_fs_cd.go
@@ -28,7 +28,7 @@ func (c *commandFsCd) Help() string {
`
}
-func (c *commandFsCd) IsResourceHeavy() bool {
+func (c *commandFsCd) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_fs_configure.go b/weed/shell/command_fs_configure.go
index 6dc8e1ea2..b70eb88fc 100644
--- a/weed/shell/command_fs_configure.go
+++ b/weed/shell/command_fs_configure.go
@@ -46,7 +46,7 @@ func (c *commandFsConfigure) Help() string {
`
}
-func (c *commandFsConfigure) IsResourceHeavy() bool {
+func (c *commandFsConfigure) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_fs_du.go b/weed/shell/command_fs_du.go
index 6204ffdbd..c35179f88 100644
--- a/weed/shell/command_fs_du.go
+++ b/weed/shell/command_fs_du.go
@@ -29,7 +29,7 @@ func (c *commandFsDu) Help() string {
`
}
-func (c *commandFsDu) IsResourceHeavy() bool {
+func (c *commandFsDu) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_fs_log.go b/weed/shell/command_fs_log.go
index 974ddfa9f..137a218f0 100644
--- a/weed/shell/command_fs_log.go
+++ b/weed/shell/command_fs_log.go
@@ -27,7 +27,7 @@ func (c *commandFsLogPurge) Help() string {
`
}
-func (c *commandFsLogPurge) IsResourceHeavy() bool {
+func (c *commandFsLogPurge) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_fs_ls.go b/weed/shell/command_fs_ls.go
index dfc2144a3..e007b4c9e 100644
--- a/weed/shell/command_fs_ls.go
+++ b/weed/shell/command_fs_ls.go
@@ -33,7 +33,7 @@ func (c *commandFsLs) Help() string {
`
}
-func (c *commandFsLs) IsResourceHeavy() bool {
+func (c *commandFsLs) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_fs_merge_volumes.go b/weed/shell/command_fs_merge_volumes.go
index 6293acf4a..eb401aab1 100644
--- a/weed/shell/command_fs_merge_volumes.go
+++ b/weed/shell/command_fs_merge_volumes.go
@@ -44,7 +44,7 @@ func (c *commandFsMergeVolumes) Help() string {
`
}
-func (c *commandFsMergeVolumes) IsResourceHeavy() bool {
+func (c *commandFsMergeVolumes) HasTag(CommandTag) bool {
return false
}
@@ -326,7 +326,7 @@ func moveChunk(chunk *filer_pb.FileChunk, toVolumeId needle.VolumeId, masterClie
if err != nil {
return err
}
-
+
_, err, _ = uploader.Upload(reader, &operation.UploadOption{
UploadUrl: uploadURL,
Filename: filename,
diff --git a/weed/shell/command_fs_meta_cat.go b/weed/shell/command_fs_meta_cat.go
index 994e1ee18..e47d8faa6 100644
--- a/weed/shell/command_fs_meta_cat.go
+++ b/weed/shell/command_fs_meta_cat.go
@@ -30,7 +30,7 @@ func (c *commandFsMetaCat) Help() string {
`
}
-func (c *commandFsMetaCat) IsResourceHeavy() bool {
+func (c *commandFsMetaCat) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_fs_meta_change_volume_id.go b/weed/shell/command_fs_meta_change_volume_id.go
index d9a489cf0..f1c148f5b 100644
--- a/weed/shell/command_fs_meta_change_volume_id.go
+++ b/weed/shell/command_fs_meta_change_volume_id.go
@@ -37,7 +37,7 @@ func (c *commandFsMetaChangeVolumeId) Help() string {
`
}
-func (c *commandFsMetaChangeVolumeId) IsResourceHeavy() bool {
+func (c *commandFsMetaChangeVolumeId) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_fs_meta_load.go b/weed/shell/command_fs_meta_load.go
index 5d81014d9..d56274362 100644
--- a/weed/shell/command_fs_meta_load.go
+++ b/weed/shell/command_fs_meta_load.go
@@ -38,7 +38,7 @@ func (c *commandFsMetaLoad) Help() string {
`
}
-func (c *commandFsMetaLoad) IsResourceHeavy() bool {
+func (c *commandFsMetaLoad) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_fs_meta_notify.go b/weed/shell/command_fs_meta_notify.go
index d0ea7c8c5..d7aca21d3 100644
--- a/weed/shell/command_fs_meta_notify.go
+++ b/weed/shell/command_fs_meta_notify.go
@@ -30,7 +30,7 @@ func (c *commandFsMetaNotify) Help() string {
`
}
-func (c *commandFsMetaNotify) IsResourceHeavy() bool {
+func (c *commandFsMetaNotify) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_fs_meta_save.go b/weed/shell/command_fs_meta_save.go
index a44b55dce..a8be9fe2c 100644
--- a/weed/shell/command_fs_meta_save.go
+++ b/weed/shell/command_fs_meta_save.go
@@ -44,7 +44,7 @@ func (c *commandFsMetaSave) Help() string {
`
}
-func (c *commandFsMetaSave) IsResourceHeavy() bool {
+func (c *commandFsMetaSave) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_fs_mkdir.go b/weed/shell/command_fs_mkdir.go
index 859693129..9c33aa81c 100644
--- a/weed/shell/command_fs_mkdir.go
+++ b/weed/shell/command_fs_mkdir.go
@@ -27,7 +27,7 @@ func (c *commandFsMkdir) Help() string {
`
}
-func (c *commandFsMkdir) IsResourceHeavy() bool {
+func (c *commandFsMkdir) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_fs_mv.go b/weed/shell/command_fs_mv.go
index f21245501..cb966571c 100644
--- a/weed/shell/command_fs_mv.go
+++ b/weed/shell/command_fs_mv.go
@@ -34,7 +34,7 @@ func (c *commandFsMv) Help() string {
`
}
-func (c *commandFsMv) IsResourceHeavy() bool {
+func (c *commandFsMv) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_fs_pwd.go b/weed/shell/command_fs_pwd.go
index ef6c000ba..e74fb6c3d 100644
--- a/weed/shell/command_fs_pwd.go
+++ b/weed/shell/command_fs_pwd.go
@@ -20,7 +20,7 @@ func (c *commandFsPwd) Help() string {
return `print out current directory`
}
-func (c *commandFsPwd) IsResourceHeavy() bool {
+func (c *commandFsPwd) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_fs_rm.go b/weed/shell/command_fs_rm.go
index 0523620c3..0af75f048 100644
--- a/weed/shell/command_fs_rm.go
+++ b/weed/shell/command_fs_rm.go
@@ -34,7 +34,7 @@ func (c *commandFsRm) Help() string {
`
}
-func (c *commandFsRm) IsResourceHeavy() bool {
+func (c *commandFsRm) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_fs_tree.go b/weed/shell/command_fs_tree.go
index a18d9e532..21e352af2 100644
--- a/weed/shell/command_fs_tree.go
+++ b/weed/shell/command_fs_tree.go
@@ -28,7 +28,7 @@ func (c *commandFsTree) Help() string {
`
}
-func (c *commandFsTree) IsResourceHeavy() bool {
+func (c *commandFsTree) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_fs_verify.go b/weed/shell/command_fs_verify.go
index 1312ab8b1..ea9f86c3c 100644
--- a/weed/shell/command_fs_verify.go
+++ b/weed/shell/command_fs_verify.go
@@ -51,7 +51,7 @@ func (c *commandFsVerify) Help() string {
`
}
-func (c *commandFsVerify) IsResourceHeavy() bool {
+func (c *commandFsVerify) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_lock_unlock.go b/weed/shell/command_lock_unlock.go
index a651c667e..79f3c95b1 100644
--- a/weed/shell/command_lock_unlock.go
+++ b/weed/shell/command_lock_unlock.go
@@ -25,7 +25,7 @@ func (c *commandLock) Help() string {
`
}
-func (c *commandLock) IsResourceHeavy() bool {
+func (c *commandLock) HasTag(CommandTag) bool {
return false
}
@@ -51,7 +51,7 @@ func (c *commandUnlock) Help() string {
`
}
-func (c *commandUnlock) IsResourceHeavy() bool {
+func (c *commandUnlock) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_mount_configure.go b/weed/shell/command_mount_configure.go
index 9b79c19bf..5b224c39e 100644
--- a/weed/shell/command_mount_configure.go
+++ b/weed/shell/command_mount_configure.go
@@ -34,7 +34,7 @@ func (c *commandMountConfigure) Help() string {
`
}
-func (c *commandMountConfigure) IsResourceHeavy() bool {
+func (c *commandMountConfigure) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_mq_balance.go b/weed/shell/command_mq_balance.go
index af79bba2d..2e61e640c 100644
--- a/weed/shell/command_mq_balance.go
+++ b/weed/shell/command_mq_balance.go
@@ -25,7 +25,7 @@ func (c *commandMqBalanceTopics) Help() string {
`
}
-func (c *commandMqBalanceTopics) IsResourceHeavy() bool {
+func (c *commandMqBalanceTopics) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_mq_topic_configure.go b/weed/shell/command_mq_topic_configure.go
index 88b1cf2ba..9342c8604 100644
--- a/weed/shell/command_mq_topic_configure.go
+++ b/weed/shell/command_mq_topic_configure.go
@@ -29,7 +29,7 @@ func (c *commandMqTopicConfigure) Help() string {
`
}
-func (c *commandMqTopicConfigure) IsResourceHeavy() bool {
+func (c *commandMqTopicConfigure) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_mq_topic_desc.go b/weed/shell/command_mq_topic_desc.go
index bcaca7219..8c944271c 100644
--- a/weed/shell/command_mq_topic_desc.go
+++ b/weed/shell/command_mq_topic_desc.go
@@ -24,7 +24,7 @@ func (c *commandMqTopicDescribe) Help() string {
return `describe a topic`
}
-func (c *commandMqTopicDescribe) IsResourceHeavy() bool {
+func (c *commandMqTopicDescribe) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_mq_topic_list.go b/weed/shell/command_mq_topic_list.go
index 009f6083b..8da86f4a6 100644
--- a/weed/shell/command_mq_topic_list.go
+++ b/weed/shell/command_mq_topic_list.go
@@ -25,7 +25,7 @@ func (c *commandMqTopicList) Help() string {
return `print out all topics`
}
-func (c *commandMqTopicList) IsResourceHeavy() bool {
+func (c *commandMqTopicList) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_remote_cache.go b/weed/shell/command_remote_cache.go
index b04968631..da19af0cf 100644
--- a/weed/shell/command_remote_cache.go
+++ b/weed/shell/command_remote_cache.go
@@ -46,7 +46,7 @@ func (c *commandRemoteCache) Help() string {
`
}
-func (c *commandRemoteCache) IsResourceHeavy() bool {
+func (c *commandRemoteCache) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_remote_configure.go b/weed/shell/command_remote_configure.go
index 8502e7699..dbc44c8bf 100644
--- a/weed/shell/command_remote_configure.go
+++ b/weed/shell/command_remote_configure.go
@@ -48,7 +48,7 @@ func (c *commandRemoteConfigure) Help() string {
`
}
-func (c *commandRemoteConfigure) IsResourceHeavy() bool {
+func (c *commandRemoteConfigure) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_remote_meta_sync.go b/weed/shell/command_remote_meta_sync.go
index 7f205870e..1b2e33c14 100644
--- a/weed/shell/command_remote_meta_sync.go
+++ b/weed/shell/command_remote_meta_sync.go
@@ -44,7 +44,7 @@ func (c *commandRemoteMetaSync) Help() string {
`
}
-func (c *commandRemoteMetaSync) IsResourceHeavy() bool {
+func (c *commandRemoteMetaSync) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_remote_mount.go b/weed/shell/command_remote_mount.go
index 172a8df22..cfe89ddce 100644
--- a/weed/shell/command_remote_mount.go
+++ b/weed/shell/command_remote_mount.go
@@ -44,7 +44,7 @@ func (c *commandRemoteMount) Help() string {
`
}
-func (c *commandRemoteMount) IsResourceHeavy() bool {
+func (c *commandRemoteMount) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_remote_mount_buckets.go b/weed/shell/command_remote_mount_buckets.go
index 4facb0ad7..d8df09e60 100644
--- a/weed/shell/command_remote_mount_buckets.go
+++ b/weed/shell/command_remote_mount_buckets.go
@@ -38,7 +38,7 @@ func (c *commandRemoteMountBuckets) Help() string {
`
}
-func (c *commandRemoteMountBuckets) IsResourceHeavy() bool {
+func (c *commandRemoteMountBuckets) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_remote_uncache.go b/weed/shell/command_remote_uncache.go
index b597b042c..86d992ef1 100644
--- a/weed/shell/command_remote_uncache.go
+++ b/weed/shell/command_remote_uncache.go
@@ -41,7 +41,7 @@ func (c *commandRemoteUncache) Help() string {
`
}
-func (c *commandRemoteUncache) IsResourceHeavy() bool {
+func (c *commandRemoteUncache) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_remote_unmount.go b/weed/shell/command_remote_unmount.go
index c85a35c43..6de92e612 100644
--- a/weed/shell/command_remote_unmount.go
+++ b/weed/shell/command_remote_unmount.go
@@ -37,7 +37,7 @@ func (c *commandRemoteUnmount) Help() string {
`
}
-func (c *commandRemoteUnmount) IsResourceHeavy() bool {
+func (c *commandRemoteUnmount) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_s3_bucket_create.go b/weed/shell/command_s3_bucket_create.go
index 97a434ab7..86c788b0d 100644
--- a/weed/shell/command_s3_bucket_create.go
+++ b/weed/shell/command_s3_bucket_create.go
@@ -30,7 +30,7 @@ func (c *commandS3BucketCreate) Help() string {
`
}
-func (c *commandS3BucketCreate) IsResourceHeavy() bool {
+func (c *commandS3BucketCreate) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_s3_bucket_delete.go b/weed/shell/command_s3_bucket_delete.go
index 1afa80f41..6f8c9c4b5 100644
--- a/weed/shell/command_s3_bucket_delete.go
+++ b/weed/shell/command_s3_bucket_delete.go
@@ -28,7 +28,7 @@ func (c *commandS3BucketDelete) Help() string {
`
}
-func (c *commandS3BucketDelete) IsResourceHeavy() bool {
+func (c *commandS3BucketDelete) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_s3_bucket_list.go b/weed/shell/command_s3_bucket_list.go
index aaabdf5da..7939f2086 100644
--- a/weed/shell/command_s3_bucket_list.go
+++ b/weed/shell/command_s3_bucket_list.go
@@ -27,7 +27,7 @@ func (c *commandS3BucketList) Help() string {
`
}
-func (c *commandS3BucketList) IsResourceHeavy() bool {
+func (c *commandS3BucketList) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_s3_bucket_quota.go b/weed/shell/command_s3_bucket_quota.go
index 90bd685da..3301a8d0e 100644
--- a/weed/shell/command_s3_bucket_quota.go
+++ b/weed/shell/command_s3_bucket_quota.go
@@ -28,7 +28,7 @@ func (c *commandS3BucketQuota) Help() string {
`
}
-func (c *commandS3BucketQuota) IsResourceHeavy() bool {
+func (c *commandS3BucketQuota) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_s3_bucket_quota_check.go b/weed/shell/command_s3_bucket_quota_check.go
index db94e225d..04708a0e7 100644
--- a/weed/shell/command_s3_bucket_quota_check.go
+++ b/weed/shell/command_s3_bucket_quota_check.go
@@ -29,7 +29,7 @@ func (c *commandS3BucketQuotaEnforce) Help() string {
`
}
-func (c *commandS3BucketQuotaEnforce) IsResourceHeavy() bool {
+func (c *commandS3BucketQuotaEnforce) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_s3_circuitbreaker.go b/weed/shell/command_s3_circuitbreaker.go
index 32ff5da35..5abc2d429 100644
--- a/weed/shell/command_s3_circuitbreaker.go
+++ b/weed/shell/command_s3_circuitbreaker.go
@@ -51,7 +51,7 @@ func (c *commandS3CircuitBreaker) Help() string {
`
}
-func (c *commandS3CircuitBreaker) IsResourceHeavy() bool {
+func (c *commandS3CircuitBreaker) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_s3_clean_uploads.go b/weed/shell/command_s3_clean_uploads.go
index bee6b6bec..aa296dd67 100644
--- a/weed/shell/command_s3_clean_uploads.go
+++ b/weed/shell/command_s3_clean_uploads.go
@@ -34,7 +34,7 @@ func (c *commandS3CleanUploads) Help() string {
`
}
-func (c *commandS3CleanUploads) IsResourceHeavy() bool {
+func (c *commandS3CleanUploads) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_s3_configure.go b/weed/shell/command_s3_configure.go
index a92abe277..0726bd143 100644
--- a/weed/shell/command_s3_configure.go
+++ b/weed/shell/command_s3_configure.go
@@ -33,7 +33,7 @@ func (c *commandS3Configure) Help() string {
`
}
-func (c *commandS3Configure) IsResourceHeavy() bool {
+func (c *commandS3Configure) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_volume_balance.go b/weed/shell/command_volume_balance.go
index c452ba2b1..bea6f33c3 100644
--- a/weed/shell/command_volume_balance.go
+++ b/weed/shell/command_volume_balance.go
@@ -64,7 +64,7 @@ func (c *commandVolumeBalance) Help() string {
`
}
-func (c *commandVolumeBalance) IsResourceHeavy() bool {
+func (c *commandVolumeBalance) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_volume_check_disk.go b/weed/shell/command_volume_check_disk.go
index 08e457e9d..f1f3a0728 100644
--- a/weed/shell/command_volume_check_disk.go
+++ b/weed/shell/command_volume_check_disk.go
@@ -48,7 +48,7 @@ func (c *commandVolumeCheckDisk) Help() string {
`
}
-func (c *commandVolumeCheckDisk) IsResourceHeavy() bool {
+func (c *commandVolumeCheckDisk) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_volume_configure_replication.go b/weed/shell/command_volume_configure_replication.go
index 37c8dda97..29d7ebac4 100644
--- a/weed/shell/command_volume_configure_replication.go
+++ b/weed/shell/command_volume_configure_replication.go
@@ -35,7 +35,7 @@ func (c *commandVolumeConfigureReplication) Help() string {
`
}
-func (c *commandVolumeConfigureReplication) IsResourceHeavy() bool {
+func (c *commandVolumeConfigureReplication) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_volume_copy.go b/weed/shell/command_volume_copy.go
index 89339cb63..be00cb18f 100644
--- a/weed/shell/command_volume_copy.go
+++ b/weed/shell/command_volume_copy.go
@@ -31,7 +31,7 @@ func (c *commandVolumeCopy) Help() string {
`
}
-func (c *commandVolumeCopy) IsResourceHeavy() bool {
+func (c *commandVolumeCopy) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_volume_delete.go b/weed/shell/command_volume_delete.go
index 24391a2bd..719420bcc 100644
--- a/weed/shell/command_volume_delete.go
+++ b/weed/shell/command_volume_delete.go
@@ -29,7 +29,7 @@ func (c *commandVolumeDelete) Help() string {
`
}
-func (c *commandVolumeDelete) IsResourceHeavy() bool {
+func (c *commandVolumeDelete) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_volume_delete_empty.go b/weed/shell/command_volume_delete_empty.go
index 7af922f45..fc1d50e64 100644
--- a/weed/shell/command_volume_delete_empty.go
+++ b/weed/shell/command_volume_delete_empty.go
@@ -32,7 +32,7 @@ func (c *commandVolumeDeleteEmpty) Help() string {
`
}
-func (c *commandVolumeDeleteEmpty) IsResourceHeavy() bool {
+func (c *commandVolumeDeleteEmpty) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_volume_fix_replication.go b/weed/shell/command_volume_fix_replication.go
index 3d699fb13..8337f5368 100644
--- a/weed/shell/command_volume_fix_replication.go
+++ b/weed/shell/command_volume_fix_replication.go
@@ -55,7 +55,7 @@ func (c *commandVolumeFixReplication) Help() string {
`
}
-func (c *commandVolumeFixReplication) IsResourceHeavy() bool {
+func (c *commandVolumeFixReplication) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_volume_fsck.go b/weed/shell/command_volume_fsck.go
index a465ac501..89c15a8af 100644
--- a/weed/shell/command_volume_fsck.go
+++ b/weed/shell/command_volume_fsck.go
@@ -79,7 +79,7 @@ func (c *commandVolumeFsck) Help() string {
`
}
-func (c *commandVolumeFsck) IsResourceHeavy() bool {
+func (c *commandVolumeFsck) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_volume_grow.go b/weed/shell/command_volume_grow.go
index dd3a26f2e..5b351e6ab 100644
--- a/weed/shell/command_volume_grow.go
+++ b/weed/shell/command_volume_grow.go
@@ -30,7 +30,7 @@ func (c *commandGrow) Help() string {
`
}
-func (c *commandGrow) IsResourceHeavy() bool {
+func (c *commandGrow) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_volume_list.go b/weed/shell/command_volume_list.go
index 3f22d691d..1e5238f39 100644
--- a/weed/shell/command_volume_list.go
+++ b/weed/shell/command_volume_list.go
@@ -39,7 +39,7 @@ func (c *commandVolumeList) Help() string {
`
}
-func (c *commandVolumeList) IsResourceHeavy() bool {
+func (c *commandVolumeList) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_volume_mark.go b/weed/shell/command_volume_mark.go
index 77a561e85..9bc35e6c1 100644
--- a/weed/shell/command_volume_mark.go
+++ b/weed/shell/command_volume_mark.go
@@ -28,7 +28,7 @@ func (c *commandVolumeMark) Help() string {
`
}
-func (c *commandVolumeMark) IsResourceHeavy() bool {
+func (c *commandVolumeMark) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_volume_mount.go b/weed/shell/command_volume_mount.go
index 8444ceee4..0b62905de 100644
--- a/weed/shell/command_volume_mount.go
+++ b/weed/shell/command_volume_mount.go
@@ -33,7 +33,7 @@ func (c *commandVolumeMount) Help() string {
`
}
-func (c *commandVolumeMount) IsResourceHeavy() bool {
+func (c *commandVolumeMount) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_volume_move.go b/weed/shell/command_volume_move.go
index 88eb2dbc5..cf9991695 100644
--- a/weed/shell/command_volume_move.go
+++ b/weed/shell/command_volume_move.go
@@ -49,7 +49,7 @@ func (c *commandVolumeMove) Help() string {
`
}
-func (c *commandVolumeMove) IsResourceHeavy() bool {
+func (c *commandVolumeMove) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_volume_server_evacuate.go b/weed/shell/command_volume_server_evacuate.go
index d74390d93..3b593d9be 100644
--- a/weed/shell/command_volume_server_evacuate.go
+++ b/weed/shell/command_volume_server_evacuate.go
@@ -46,7 +46,7 @@ func (c *commandVolumeServerEvacuate) Help() string {
`
}
-func (c *commandVolumeServerEvacuate) IsResourceHeavy() bool {
+func (c *commandVolumeServerEvacuate) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_volume_server_leave.go b/weed/shell/command_volume_server_leave.go
index 695879404..e7c979cad 100644
--- a/weed/shell/command_volume_server_leave.go
+++ b/weed/shell/command_volume_server_leave.go
@@ -35,7 +35,7 @@ func (c *commandVolumeServerLeave) Help() string {
`
}
-func (c *commandVolumeServerLeave) IsResourceHeavy() bool {
+func (c *commandVolumeServerLeave) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_volume_tier_download.go b/weed/shell/command_volume_tier_download.go
index 6e195d7e8..2878d16fe 100644
--- a/weed/shell/command_volume_tier_download.go
+++ b/weed/shell/command_volume_tier_download.go
@@ -41,7 +41,7 @@ func (c *commandVolumeTierDownload) Help() string {
`
}
-func (c *commandVolumeTierDownload) IsResourceHeavy() bool {
+func (c *commandVolumeTierDownload) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_volume_tier_move.go b/weed/shell/command_volume_tier_move.go
index 07ef3e694..d5087f0ec 100644
--- a/weed/shell/command_volume_tier_move.go
+++ b/weed/shell/command_volume_tier_move.go
@@ -53,7 +53,7 @@ func (c *commandVolumeTierMove) Help() string {
`
}
-func (c *commandVolumeTierMove) IsResourceHeavy() bool {
+func (c *commandVolumeTierMove) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_volume_tier_upload.go b/weed/shell/command_volume_tier_upload.go
index 3fa45ff95..5ef1c5209 100644
--- a/weed/shell/command_volume_tier_upload.go
+++ b/weed/shell/command_volume_tier_upload.go
@@ -56,7 +56,7 @@ func (c *commandVolumeTierUpload) Help() string {
`
}
-func (c *commandVolumeTierUpload) IsResourceHeavy() bool {
+func (c *commandVolumeTierUpload) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_volume_unmount.go b/weed/shell/command_volume_unmount.go
index ce5cd18d6..ccb83bbae 100644
--- a/weed/shell/command_volume_unmount.go
+++ b/weed/shell/command_volume_unmount.go
@@ -34,7 +34,7 @@ func (c *commandVolumeUnmount) Help() string {
`
}
-func (c *commandVolumeUnmount) IsResourceHeavy() bool {
+func (c *commandVolumeUnmount) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_volume_vacuum.go b/weed/shell/command_volume_vacuum.go
index 2a99b0aca..e55bf1ec9 100644
--- a/weed/shell/command_volume_vacuum.go
+++ b/weed/shell/command_volume_vacuum.go
@@ -27,7 +27,7 @@ func (c *commandVacuum) Help() string {
`
}
-func (c *commandVacuum) IsResourceHeavy() bool {
+func (c *commandVacuum) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_volume_vacuum_disable.go b/weed/shell/command_volume_vacuum_disable.go
index 87d5ff496..15897ddb0 100644
--- a/weed/shell/command_volume_vacuum_disable.go
+++ b/weed/shell/command_volume_vacuum_disable.go
@@ -26,7 +26,7 @@ func (c *commandDisableVacuum) Help() string {
`
}
-func (c *commandDisableVacuum) IsResourceHeavy() bool {
+func (c *commandDisableVacuum) HasTag(CommandTag) bool {
return false
}
diff --git a/weed/shell/command_volume_vacuum_enable.go b/weed/shell/command_volume_vacuum_enable.go
index 9f57086ae..b8f779b14 100644
--- a/weed/shell/command_volume_vacuum_enable.go
+++ b/weed/shell/command_volume_vacuum_enable.go
@@ -26,7 +26,7 @@ func (c *commandEnableVacuum) Help() string {
`
}
-func (c *commandEnableVacuum) IsResourceHeavy() bool {
+func (c *commandEnableVacuum) HasTag(CommandTag) bool {
return false
}