MCPcopy
hub / github.com/minio/minio-go / Add

Method Add

pkg/policy/bucket-policy-condition.go:28–34  ·  view source on GitHub ↗

Add - adds key and value. The value is appended If key already exists.

(key string, value set.StringSet)

Source from the content-addressed store, hash-verified

26
27// Add - adds key and value. The value is appended If key already exists.
28func (ckm ConditionKeyMap) Add(key string, value set.StringSet) {
29 if v, ok := ckm[key]; ok {
30 ckm[key] = v.Union(value)
31 } else {
32 ckm[key] = set.CopyStringSet(value)
33 }
34}
35
36// Remove - removes value of given key. If key has empty after removal, the key is also removed.
37func (ckm ConditionKeyMap) Remove(key string, value set.StringSet) {

Callers

nothing calls this directly

Calls 2

CopyStringSetFunction · 0.92
UnionMethod · 0.45

Tested by

no test coverage detected