- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for GetPolicyDoc (0.12 sec)
-
cmd/iam-store.go
if len(toMerge) == 0 { return policy.Policy{}, errNoSuchPolicy } return policy.MergePolicies(toMerge...), nil } // GetPolicyDoc - gets the policy doc which has the policy and some metadata. // Exactly one policy must be specified here. func (store *IAMStoreSys) GetPolicyDoc(name string) (r PolicyDoc, err error) { name = strings.TrimSpace(name) if name == "" { return r, errInvalidArgument }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Oct 14 16:35:37 UTC 2024 - 83.2K bytes - Viewed (0) -
cmd/iam.go
func (sys *IAMSys) InfoPolicy(policyName string) (*madmin.PolicyInfo, error) { if !sys.Initialized() { return nil, errServerNotInitialized } d, err := sys.store.GetPolicyDoc(policyName) if err != nil { return nil, err } pdata, err := json.Marshal(d.Policy) if err != nil { return nil, err } return &madmin.PolicyInfo{ PolicyName: policyName,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Oct 29 16:01:48 UTC 2024 - 74.6K bytes - Viewed (0) -
cmd/site-replication.go
var err error // skip overwrite of local update if peer sent stale info if !updatedAt.IsZero() { if p, err := globalIAMSys.store.GetPolicyDoc(policyName); err == nil && p.UpdateDate.After(updatedAt) { return nil } } if p == nil { err = globalIAMSys.DeletePolicy(ctx, policyName, true) } else {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 15 12:04:40 UTC 2024 - 185.1K bytes - Viewed (0)