- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for extractPathPrefixAndSuffix (0.15 sec)
-
cmd/iam-etcd-store.go
) var defaultContextTimeout = 30 * time.Second func etcdKvsToSet(prefix string, kvs []*mvccpb.KeyValue) set.StringSet { users := set.NewStringSet() for _, kv := range kvs { user := extractPathPrefixAndSuffix(string(kv.Key), prefix, path.Base(string(kv.Key))) users.Add(user) } return users } // Extract path string by stripping off the `prefix` value and the suffix, // value, usually in the following form.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 15 01:29:20 UTC 2024 - 14K bytes - Viewed (0) -
cmd/iam-etcd-store_test.go
{"config/iam/groups/foo/config.json", "config/iam/groups/", "/config.json", "foo"}, {"config/iam/groups/foo/config.json", "config/iam/groups/", "config.json", "foo"}, } for i, test := range specs { result := extractPathPrefixAndSuffix(test.path, test.prefix, test.suffix) if result != test.expected { t.Errorf("unexpected result on test[%v]: expected[%s] but had [%s]", i, test.expected, result) } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 1.5K bytes - Viewed (0)