mirror of
https://github.com/minio/minio.git
synced 2025-11-28 21:18:10 -05:00
Add target parsing code for config (#9375)
This code is helper for mcs project
This commit is contained in:
@@ -45,6 +45,15 @@ type HelpKV struct {
|
||||
// HelpKVS - implement order of keys help messages.
|
||||
type HelpKVS []HelpKV
|
||||
|
||||
// Keys returns help keys
|
||||
func (h Help) Keys() []string {
|
||||
var keys []string
|
||||
for _, kh := range h.KeysHelp {
|
||||
keys = append(keys, kh.Key)
|
||||
}
|
||||
return keys
|
||||
}
|
||||
|
||||
// HelpConfigKV - return help for a given sub-system.
|
||||
func (adm *AdminClient) HelpConfigKV(ctx context.Context, subSys, key string, envOnly bool) (Help, error) {
|
||||
v := url.Values{}
|
||||
|
||||
Reference in New Issue
Block a user