Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ListPolicies (0.19 sec)

  1. internal/kms/policy-manager.go

    	DescribePolicy(ctx context.Context, policy string) (*kes.PolicyInfo, error)
    
    	// GetPolicy gets a policy from KMS.
    	GetPolicy(ctx context.Context, policy string) (*kes.Policy, error)
    
    	// ListPolicies lists all policies.
    	ListPolicies(ctx context.Context) (*kes.ListIter[string], error)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  2. internal/kms/kes.go

    	defer c.lock.RUnlock()
    
    	return c.client.DescribePolicy(ctx, policy)
    }
    
    // ListPolicies returns an iterator over all policy names.
    func (c *kesClient) ListPolicies(ctx context.Context) (*kes.ListIter[string], error) {
    	c.lock.RLock()
    	defer c.lock.RUnlock()
    
    	return &kes.ListIter[string]{
    		NextFunc: c.client.ListPolicies,
    	}, nil
    }
    
    // GetPolicy gets a policy from KMS.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Apr 16 15:43:39 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  3. 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 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 77.3K bytes
    - Viewed (0)
  4. 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()
    
    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)
  5. 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.
    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)
  6. cmd/kms-handlers.go

    		return
    	}
    	manager, ok := GlobalKMS.(kms.PolicyManager)
    	if !ok {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrNotImplemented), r.URL)
    		return
    	}
    	policies, err := manager.ListPolicies(ctx)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	pattern := r.Form.Get("pattern")
    	if !strings.Contains(pattern, "*") {
    		pattern += "*"
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 20.7K bytes
    - Viewed (0)
Back to top