Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for InfoPolicy (0.23 sec)

  1. cmd/iam.go

    		if nerr.Err != nil {
    			logger.GetReqInfo(ctx).SetTags("peerAddress", nerr.Host.String())
    			iamLogIf(ctx, nerr.Err)
    		}
    	}
    
    	return nil
    }
    
    // InfoPolicy - returns the policy definition with some metadata.
    func (sys *IAMSys) InfoPolicy(policyName string) (*madmin.PolicyInfo, error) {
    	if !sys.Initialized() {
    		return nil, errServerNotInitialized
    	}
    
    	d, err := sys.store.GetPolicyDoc(policyName)
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Sep 17 16:45:46 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  2. cmd/admin-handlers-users.go

    	policies := newMappedPolicy(name).toSlice()
    	if len(policies) != 1 {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, errTooManyPolicies), r.URL)
    		return
    	}
    
    	policyDoc, err := globalIAMSys.InfoPolicy(name)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	// Is the new API version being requested?
    	infoPolicyAPIVersion := r.Form.Get("v")
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
Back to top