Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetPolicyDoc (0.19 sec)

  1. 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
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  2. 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,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  3. 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 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 184.1K bytes
    - Viewed (1)
Back to top