- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for GetPolicyDoc (0.2 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)