Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getPolicyDocPath (0.22 sec)

  1. cmd/iam-etcd-store.go

    	return ies.loadPolicyDoc(ctx, policy, m)
    }
    
    func (ies *IAMEtcdStore) loadPolicyDoc(ctx context.Context, policy string, m map[string]PolicyDoc) error {
    	data, err := ies.loadIAMConfigBytes(ctx, getPolicyDocPath(policy))
    	if err != nil {
    		if err == errConfigNotFound {
    			return errNoSuchPolicy
    		}
    		return err
    	}
    
    	var p PolicyDoc
    	err = p.parseJSON(data)
    	if err != nil {
    		return err
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  2. cmd/iam-object-store.go

    }
    
    func (iamOS *IAMObjectStore) loadPolicyDocWithRetry(ctx context.Context, policy string, m map[string]PolicyDoc, retries int) error {
    	for {
    	retry:
    		data, objInfo, err := iamOS.loadIAMConfigBytesWithMetadata(ctx, getPolicyDocPath(policy))
    		if err != nil {
    			if err == errConfigNotFound {
    				return errNoSuchPolicy
    			}
    			retries--
    			if retries <= 0 {
    				return err
    			}
    			time.Sleep(500 * time.Millisecond)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  3. cmd/iam-store.go

    	return store.saveIAMConfig(ctx, newIAMFormatVersion1(), path)
    }
    
    func getGroupInfoPath(group string) string {
    	return pathJoin(iamConfigGroupsPrefix, group, iamGroupMembersFile)
    }
    
    func getPolicyDocPath(name string) string {
    	return pathJoin(iamConfigPoliciesPrefix, name, iamPolicyFile)
    }
    
    func getMappedPolicyPath(name string, userType IAMUserType, isGroup bool) string {
    	if isGroup {
    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)
  4. cmd/iam.go

    	if !sys.Initialized() {
    		return errServerNotInitialized
    	}
    
    	for _, v := range policy.DefaultPolicies {
    		if v.Name == policyName {
    			if err := checkConfig(ctx, globalObjectAPI, getPolicyDocPath(policyName)); err != nil && err == errConfigNotFound {
    				return fmt.Errorf("inbuilt policy `%s` not allowed to be deleted", 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)
Back to top