Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for DescribePolicy (0.17 sec)

  1. internal/kms/policy-manager.go

    	"github.com/minio/kms-go/kes"
    )
    
    // PolicyManager is the generic interface that handles KMS policy] operations
    type PolicyManager interface {
    	// DescribePolicy describes a policy by returning its metadata.
    	// e.g. who created the policy at which point in time.
    	DescribePolicy(ctx context.Context, policy string) (*kes.PolicyInfo, error)
    
    	// GetPolicy gets a policy from KMS.
    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

    	return c.client.HMAC(context.Background(), keyID, msg)
    }
    
    // DescribePolicy describes a policy by returning its metadata.
    // e.g. who created the policy at which point in time.
    func (c *kesClient) DescribePolicy(ctx context.Context, policy string) (*kes.PolicyInfo, error) {
    	c.lock.RLock()
    	defer c.lock.RUnlock()
    
    	return c.client.DescribePolicy(ctx, policy)
    }
    
    // ListPolicies returns an iterator over all policy names.
    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/kms-handlers.go

    		return
    	}
    	manager, ok := GlobalKMS.(kms.PolicyManager)
    	if !ok {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrNotImplemented), r.URL)
    		return
    	}
    	policy, err := manager.DescribePolicy(ctx, r.Form.Get("policy"))
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    	p, err := json.Marshal(policy)
    	if err != nil {
    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