@@ -37,16 +37,16 @@ const CONFIG_SUBDIRS = {
37
37
} ;
38
38
39
39
const CONFIG_ROOT_FLAG = 'config_root' ;
40
- const GLOBAL_CONFIG_OPTIONS = new Set ( [ CONFIG_ROOT_FLAG , 'config_root_backend' , 'debug' ] ) ;
40
+ const GENERAL_OPTIONS = new Set ( [ CONFIG_ROOT_FLAG , 'config_root_backend' , 'debug' ] ) ;
41
41
const FROM_FILE = 'from_file' ;
42
42
const ANONYMOUS = 'anonymous' ;
43
43
44
44
const VALID_OPTIONS_ACCOUNT = {
45
- 'add' : new Set ( [ 'name' , 'uid' , 'gid' , 'new_buckets_path' , 'user' , 'access_key' , 'secret_key' , 'fs_backend' , 'allow_bucket_creation' , 'force_md5_etag' , 'iam_operate_on_root_account' , FROM_FILE , ...GLOBAL_CONFIG_OPTIONS ] ) ,
46
- 'update' : new Set ( [ 'name' , 'uid' , 'gid' , 'new_buckets_path' , 'user' , 'access_key' , 'secret_key' , 'fs_backend' , 'allow_bucket_creation' , 'force_md5_etag' , 'iam_operate_on_root_account' , 'new_name' , 'regenerate' , ...GLOBAL_CONFIG_OPTIONS ] ) ,
47
- 'delete' : new Set ( [ 'name' , ...GLOBAL_CONFIG_OPTIONS ] ) ,
48
- 'list' : new Set ( [ 'wide' , 'show_secrets' , 'gid' , 'uid' , 'user' , 'name' , 'access_key' , ...GLOBAL_CONFIG_OPTIONS ] ) ,
49
- 'status' : new Set ( [ 'name' , 'access_key' , 'show_secrets' , ...GLOBAL_CONFIG_OPTIONS ] ) ,
45
+ 'add' : new Set ( [ 'name' , 'uid' , 'gid' , 'new_buckets_path' , 'user' , 'access_key' , 'secret_key' , 'fs_backend' , 'allow_bucket_creation' , 'force_md5_etag' , 'iam_operate_on_root_account' , FROM_FILE , ...GENERAL_OPTIONS ] ) ,
46
+ 'update' : new Set ( [ 'name' , 'uid' , 'gid' , 'new_buckets_path' , 'user' , 'access_key' , 'secret_key' , 'fs_backend' , 'allow_bucket_creation' , 'force_md5_etag' , 'iam_operate_on_root_account' , 'new_name' , 'regenerate' , ...GENERAL_OPTIONS ] ) ,
47
+ 'delete' : new Set ( [ 'name' , ...GENERAL_OPTIONS ] ) ,
48
+ 'list' : new Set ( [ 'wide' , 'show_secrets' , 'gid' , 'uid' , 'user' , 'name' , 'access_key' , ...GENERAL_OPTIONS ] ) ,
49
+ 'status' : new Set ( [ 'name' , 'access_key' , 'show_secrets' , ...GENERAL_OPTIONS ] ) ,
50
50
} ;
51
51
52
52
const VALID_OPTIONS_ANONYMOUS_ACCOUNT = {
@@ -57,11 +57,11 @@ const VALID_OPTIONS_ANONYMOUS_ACCOUNT = {
57
57
} ;
58
58
59
59
const VALID_OPTIONS_BUCKET = {
60
- 'add' : new Set ( [ 'name' , 'owner' , 'path' , 'bucket_policy' , 'fs_backend' , 'force_md5_etag' , FROM_FILE , ...GLOBAL_CONFIG_OPTIONS ] ) ,
61
- 'update' : new Set ( [ 'name' , 'owner' , 'path' , 'bucket_policy' , 'fs_backend' , 'new_name' , 'force_md5_etag' , ...GLOBAL_CONFIG_OPTIONS ] ) ,
62
- 'delete' : new Set ( [ 'name' , 'force' , ...GLOBAL_CONFIG_OPTIONS ] ) ,
63
- 'list' : new Set ( [ 'wide' , 'name' , ...GLOBAL_CONFIG_OPTIONS ] ) ,
64
- 'status' : new Set ( [ 'name' , ...GLOBAL_CONFIG_OPTIONS ] ) ,
60
+ 'add' : new Set ( [ 'name' , 'owner' , 'path' , 'bucket_policy' , 'fs_backend' , 'force_md5_etag' , FROM_FILE , ...GENERAL_OPTIONS ] ) ,
61
+ 'update' : new Set ( [ 'name' , 'owner' , 'path' , 'bucket_policy' , 'fs_backend' , 'new_name' , 'force_md5_etag' , ...GENERAL_OPTIONS ] ) ,
62
+ 'delete' : new Set ( [ 'name' , 'force' , ...GENERAL_OPTIONS ] ) ,
63
+ 'list' : new Set ( [ 'wide' , 'name' , ...GENERAL_OPTIONS ] ) ,
64
+ 'status' : new Set ( [ 'name' , ...GENERAL_OPTIONS ] ) ,
65
65
} ;
66
66
67
67
const VALID_OPTIONS_GLACIER = {
@@ -71,15 +71,15 @@ const VALID_OPTIONS_GLACIER = {
71
71
} ;
72
72
73
73
const VALID_OPTIONS_DIAGNOSE = {
74
- 'health' : new Set ( [ 'https_port' , 'deployment_type' , 'all_account_details' , 'all_bucket_details' , ...GLOBAL_CONFIG_OPTIONS ] ) ,
74
+ 'health' : new Set ( [ 'https_port' , 'deployment_type' , 'all_account_details' , 'all_bucket_details' , ...GENERAL_OPTIONS ] ) ,
75
75
'gather-logs' : new Set ( [ CONFIG_ROOT_FLAG ] ) ,
76
76
'metrics' : new Set ( [ CONFIG_ROOT_FLAG ] )
77
77
} ;
78
78
79
79
80
- const VALID_OPTIONS_WHITELIST = new Set ( [ 'ips' , ...GLOBAL_CONFIG_OPTIONS ] ) ;
80
+ const VALID_OPTIONS_WHITELIST = new Set ( [ 'ips' , ...GENERAL_OPTIONS ] ) ;
81
81
82
- const VALID_OPTIONS_FROM_FILE = new Set ( [ 'from_file' , ...GLOBAL_CONFIG_OPTIONS ] ) ;
82
+ const VALID_OPTIONS_FROM_FILE = new Set ( [ 'from_file' , ...GENERAL_OPTIONS ] ) ;
83
83
84
84
const VALID_OPTIONS = {
85
85
account_options : VALID_OPTIONS_ACCOUNT ,
0 commit comments