Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for loadAllFromObjStore (0.09 sec)

  1. cmd/iam-object-store.go

    			policyDocs[index] = policyDoc
    			return nil
    		}, index)
    	}
    
    	err := errors.Join(g.Wait()...)
    	return policyDocs, err
    }
    
    // Assumes cache is locked by caller.
    func (iamOS *IAMObjectStore) loadAllFromObjStore(ctx context.Context, cache *iamCache, firstTime bool) error {
    	bootstrapTraceMsgFirstTime := func(s string) {
    		if firstTime {
    			bootstrapTraceMsg(s)
    		}
    	}
    
    	if iamOS.objAPI == nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  2. cmd/iam-store.go

    		}
    	}
    	bootstrapTraceMsgFirstTime("loading IAM data")
    
    	newCache := newIamCache()
    
    	loadedAt := time.Now()
    
    	if iamOS, ok := store.IAMStorageAPI.(*IAMObjectStore); ok {
    		err := iamOS.loadAllFromObjStore(ctx, newCache, firstTime)
    		if err != nil {
    			return err
    		}
    	} else {
    		// Only non-object IAM store (i.e. only etcd backend).
    		bootstrapTraceMsgFirstTime("loading policy documents")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
Back to top