Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ListKeys (0.08 sec)

  1. internal/kms/kms.go

    	k.updateMetrics(err, time.Since(start))
    
    	return err
    }
    
    // ListKeys returns a list of keys with metadata and a potential
    // next name from where to continue a subsequent listing.
    func (k *KMS) ListKeys(ctx context.Context, req *ListRequest) ([]madmin.KMSKeyInfo, string, error) {
    	if req.Prefix == "*" {
    		req.Prefix = ""
    	}
    	return k.conn.ListKeys(ctx, req)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. internal/kms/stub.go

    func (s StubKMS) Status(context.Context) (map[string]madmin.ItemState, error) {
    	return map[string]madmin.ItemState{
    		"127.0.0.1": madmin.ItemOnline,
    	}, nil
    }
    
    // ListKeys returns a list of keys with metadata.
    func (s StubKMS) ListKeys(ctx context.Context, req *ListRequest) ([]madmin.KMSKeyInfo, string, error) {
    	matches := []madmin.KMSKeyInfo{}
    	if req.Prefix == "" {
    		req.Prefix = "*"
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. internal/kms/secret-key.go

    func (secretKey) Status(context.Context) (map[string]madmin.ItemState, error) {
    	return map[string]madmin.ItemState{
    		"127.0.0.1": madmin.ItemOnline,
    	}, nil
    }
    
    // ListKeys returns a list of keys with metadata. The builtin KMS consists of just a single key.
    func (s secretKey) ListKeys(ctx context.Context, req *ListRequest) ([]madmin.KMSKeyInfo, string, error) {
    	if strings.HasPrefix(s.keyID, req.Prefix) && strings.HasPrefix(s.keyID, req.ContinueAt) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  4. internal/kms/kes.go

    		} else {
    			status[r.Endpoint] = madmin.ItemOffline
    		}
    	}
    	return status, nil
    }
    
    func (c *kesConn) ListKeys(ctx context.Context, req *ListRequest) ([]madmin.KMSKeyInfo, string, error) {
    	names, continueAt, err := c.client.ListKeys(ctx, req.Prefix, req.Limit)
    	if err != nil {
    		return nil, "", err
    	}
    	keyInfos := make([]madmin.KMSKeyInfo, len(names))
    	for i := range names {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. cmd/kms-handlers.go

    	if objectAPI == nil {
    		return
    	}
    
    	if GlobalKMS == nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrKMSNotConfigured), r.URL)
    		return
    	}
    	allKeys, _, err := GlobalKMS.ListKeys(ctx, &kms.ListRequest{
    		Prefix: r.Form.Get("pattern"),
    	})
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  6. internal/kms/conn.go

    	Status(context.Context) (map[string]madmin.ItemState, error)
    
    	// CreateKey creates a new key at the KMS with the given key ID.
    	CreateKey(context.Context, *CreateKeyRequest) error
    
    	ListKeys(context.Context, *ListRequest) ([]madmin.KMSKeyInfo, string, error)
    
    	// GenerateKey generates a new data encryption key using the
    	// key referenced by the key ID.
    	//
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top