Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ListPolicies (0.11 sec)

  1. cmd/iam.go

    		CreateDate: d.CreateDate,
    		UpdateDate: d.UpdateDate,
    	}, nil
    }
    
    // ListPolicies - lists all canned policies.
    func (sys *IAMSys) ListPolicies(ctx context.Context, bucketName string) (map[string]policy.Policy, error) {
    	if !sys.Initialized() {
    		return nil, errServerNotInitialized
    	}
    
    	return sys.store.ListPolicies(ctx, bucketName)
    }
    
    // ListPolicyDocs - lists all canned policy docs.
    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

    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.ListUserPoliciesAdminAction)
    	if objectAPI == nil {
    		return
    	}
    
    	bucket := mux.Vars(r)["bucket"]
    	policies, err := globalIAMSys.ListPolicies(ctx, bucket)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	newPolicies := make(map[string]policy.Policy)
    	for name, p := range policies {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
  3. cmd/iam-store.go

    	}
    
    	cache.iamPolicyDocsMap[name] = d
    	cache.updatedAt = time.Now()
    
    	return d.UpdateDate, nil
    }
    
    // ListPolicies - fetches all policies from storage and updates cache as well.
    // If bucketName is non-empty, returns policies matching the bucket.
    func (store *IAMStoreSys) ListPolicies(ctx context.Context, bucketName string) (map[string]policy.Policy, error) {
    	cache := store.lock()
    	defer store.unlock()
    
    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