Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for errListingKeysFailed (0.12 sec)

  1. internal/kms/errors.go

    	return Error{
    		Code:    http.StatusInternalServerError,
    		APICode: "kms:KeyDeletionFailed",
    		Err:     "failed to delete KMS key",
    		Cause:   err,
    	}
    }
    
    func errListingKeysFailed(err error) Error {
    	return Error{
    		Code:    http.StatusInternalServerError,
    		APICode: "kms:KeyListingFailed",
    		Err:     "failed to list keys at the KMS",
    		Cause:   err,
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 16 14:03:03 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. internal/kms/kms.go

    	resp, err := c.client.ListKeys(ctx, &kms.ListRequest{
    		Enclave:    c.enclave,
    		Prefix:     req.Prefix,
    		ContinueAt: req.ContinueAt,
    		Limit:      req.Limit,
    	})
    	if err != nil {
    		return nil, "", errListingKeysFailed(err)
    	}
    
    	keyInfos := make([]madmin.KMSKeyInfo, len(resp.Items))
    	for i, v := range resp.Items {
    		keyInfos[i].Name = v.Name
    		keyInfos[i].CreatedAt = v.CreatedAt
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top