Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for loadMappedPolicies (0.14 sec)

  1. cmd/iam-store.go

    		// load polices mapped to users
    		if err := store.loadMappedPolicies(ctx, regUser, false, newCache.iamUserPolicyMap); err != nil {
    			return err
    		}
    
    		bootstrapTraceMsgFirstTime("loading group policy mapping")
    		// load policies mapped to groups
    		if err := store.loadMappedPolicies(ctx, regUser, true, newCache.iamGroupPolicyMap); err != nil {
    			return err
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
  2. cmd/iam-etcd-store.go

    			return errNoSuchPolicy
    		}
    		return err
    	}
    	name := extractPathPrefixAndSuffix(string(kv.Key), basePrefix, ".json")
    	m.Store(name, p)
    	return nil
    }
    
    func (ies *IAMEtcdStore) loadMappedPolicies(ctx context.Context, userType IAMUserType, isGroup bool, m *xsync.MapOf[string, MappedPolicy]) error {
    	cctx, cancel := context.WithTimeout(ctx, defaultContextTimeout)
    	defer cancel()
    	var basePrefix string
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 01:29:20 UTC 2024
    - 14K bytes
    - Viewed (0)
  3. cmd/site-replication.go

    			}
    		} else {
    			stsErr := globalIAMSys.store.loadMappedPolicies(ctx, stsUser, false, stsPolicyMap)
    			if stsErr != nil {
    				return info, errSRBackendIssue(stsErr)
    			}
    			usrErr := globalIAMSys.store.loadMappedPolicies(ctx, regUser, false, userPolicyMap)
    			if usrErr != nil {
    				return info, errSRBackendIssue(usrErr)
    			}
    			svcErr := globalIAMSys.store.loadMappedPolicies(ctx, svcUser, false, svcPolicyMap)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 185.1K bytes
    - Viewed (0)
  4. cmd/admin-handlers-users.go

    				writeErrorResponse(ctx, w, exportError(ctx, err, iamFile, ""), r.URL)
    				return
    			}
    		case userPolicyMappingsFile:
    			userPolicyMap := xsync.NewMapOf[string, MappedPolicy]()
    			err := globalIAMSys.store.loadMappedPolicies(ctx, regUser, false, userPolicyMap)
    			if err != nil {
    				writeErrorResponse(ctx, w, exportError(ctx, err, iamFile, ""), r.URL)
    				return
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
  5. cmd/iam-object-store.go

    	p, err := iamOS.loadMappedPolicyInternal(ctx, name, userType, isGroup)
    	if err != nil {
    		return err
    	}
    	m.Store(name, p)
    	return nil
    }
    
    func (iamOS *IAMObjectStore) loadMappedPolicies(ctx context.Context, userType IAMUserType, isGroup bool, m *xsync.MapOf[string, MappedPolicy]) error {
    	var basePath string
    	if isGroup {
    		basePath = iamConfigPolicyDBGroupsPrefix
    	} else {
    		switch userType {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 26.6K bytes
    - Viewed (0)
Back to top