Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetRolePolicy (0.07 sec)

  1. cmd/iam.go

    	return err
    }
    
    // HasRolePolicy - returns if a role policy is configured for IAM.
    func (sys *IAMSys) HasRolePolicy() bool {
    	return len(sys.rolesMap) > 0
    }
    
    // GetRolePolicy - returns policies associated with a role ARN.
    func (sys *IAMSys) GetRolePolicy(arnStr string) (arn.ARN, string, error) {
    	roleArn, err := arn.Parse(arnStr)
    	if err != nil {
    		return arn.ARN{}, "", fmt.Errorf("RoleARN parse err: %v", err)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  2. cmd/admin-handlers-users.go

    			if policy.Name == "consoleAdmin" {
    				effectivePolicy = policy.Definition
    				break
    			}
    		}
    
    	case roleArn != "":
    		_, policy, err := globalIAMSys.GetRolePolicy(roleArn)
    		if err != nil {
    			writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    			return
    		}
    		policySlice := newMappedPolicy(policy).toSlice()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
Back to top