Versions in this module Expand all Collapse all v6 v6.2.13 Sep 22, 2026 v6.2.12 Sep 21, 2026 Changes in this version + const StorageType + func NewAPIClient(config Config) (spi.Storage, error) + func NewDeleteSecretRequest(server string, key Key) (*http.Request, error) + func NewHealthCheckRequest(server string) (*http.Request, error) + func NewListKeysRequest(server string) (*http.Request, error) + func NewLookupSecretRequest(server string, key Key) (*http.Request, error) + func NewStoreSecretRequest(server string, key Key, body StoreSecretJSONRequestBody) (*http.Request, error) + func NewStoreSecretRequestWithBody(server string, key Key, contentType string, body io.Reader) (*http.Request, error) + type APIClient struct + func (c APIClient) CheckHealth() map[string]core.Health + func (c APIClient) DeletePrivateKey(ctx context.Context, keyName string) error + func (c APIClient) GetPrivateKey(ctx context.Context, keyName string, _ string) (crypto.Signer, error) + func (c APIClient) ListPrivateKeys(ctx context.Context) []spi.KeyNameVersion + func (c APIClient) Name() string + func (c APIClient) NewPrivateKey(ctx context.Context, keyName string) (crypto.PublicKey, string, error) + func (c APIClient) PrivateKeyExists(ctx context.Context, keyName string, _ string) (bool, error) + func (c APIClient) SavePrivateKey(ctx context.Context, kid string, key crypto.PrivateKey) error + type Client struct + Client HttpRequestDoer + RequestEditors []RequestEditorFn + Server string + func NewClient(server string, opts ...ClientOption) (*Client, error) + func (c *Client) DeleteSecret(ctx context.Context, key Key, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) ListKeys(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) LookupSecret(ctx context.Context, key Key, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) StoreSecret(ctx context.Context, key Key, body StoreSecretJSONRequestBody, ...) (*http.Response, error) + func (c *Client) StoreSecretWithBody(ctx context.Context, key Key, contentType string, body io.Reader, ...) (*http.Response, error) + type ClientInterface interface + DeleteSecret func(ctx context.Context, key Key, reqEditors ...RequestEditorFn) (*http.Response, error) + HealthCheck func(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + ListKeys func(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + LookupSecret func(ctx context.Context, key Key, reqEditors ...RequestEditorFn) (*http.Response, error) + StoreSecret func(ctx context.Context, key Key, body StoreSecretJSONRequestBody, ...) (*http.Response, error) + StoreSecretWithBody func(ctx context.Context, key Key, contentType string, body io.Reader, ...) (*http.Response, error) + type ClientOption func(*Client) error + func WithBaseURL(baseURL string) ClientOption + func WithHTTPClient(doer HttpRequestDoer) ClientOption + func WithRequestEditorFn(fn RequestEditorFn) ClientOption + type ClientWithResponses struct + func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) + func (c *ClientWithResponses) DeleteSecretWithResponse(ctx context.Context, key Key, reqEditors ...RequestEditorFn) (*DeleteSecretResponse, error) + func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error) + func (c *ClientWithResponses) ListKeysWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListKeysResponse, error) + func (c *ClientWithResponses) LookupSecretWithResponse(ctx context.Context, key Key, reqEditors ...RequestEditorFn) (*LookupSecretResponse, error) + func (c *ClientWithResponses) StoreSecretWithBodyWithResponse(ctx context.Context, key Key, contentType string, body io.Reader, ...) (*StoreSecretResponse, error) + func (c *ClientWithResponses) StoreSecretWithResponse(ctx context.Context, key Key, body StoreSecretJSONRequestBody, ...) (*StoreSecretResponse, error) + type ClientWithResponsesInterface interface + DeleteSecretWithResponse func(ctx context.Context, key Key, reqEditors ...RequestEditorFn) (*DeleteSecretResponse, error) + HealthCheckWithResponse func(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error) + ListKeysWithResponse func(ctx context.Context, reqEditors ...RequestEditorFn) (*ListKeysResponse, error) + LookupSecretWithResponse func(ctx context.Context, key Key, reqEditors ...RequestEditorFn) (*LookupSecretResponse, error) + StoreSecretWithBodyWithResponse func(ctx context.Context, key Key, contentType string, body io.Reader, ...) (*StoreSecretResponse, error) + StoreSecretWithResponse func(ctx context.Context, key Key, body StoreSecretJSONRequestBody, ...) (*StoreSecretResponse, error) + type Config struct + Address string + Timeout time.Duration + type DeleteSecretResponse struct + Body []byte + HTTPResponse *http.Response + JSON404 *ErrorResponse + JSON500 *ErrorResponse + func ParseDeleteSecretResponse(rsp *http.Response) (*DeleteSecretResponse, error) + func (r DeleteSecretResponse) Status() string + func (r DeleteSecretResponse) StatusCode() int + type ErrorResponse struct + Backend string + Detail string + Status int + Title string + type HealthCheckResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *ServiceStatus + JSON503 *ServiceStatus + func ParseHealthCheckResponse(rsp *http.Response) (*HealthCheckResponse, error) + func (r HealthCheckResponse) Status() string + func (r HealthCheckResponse) StatusCode() int + type HttpRequestDoer interface + Do func(req *http.Request) (*http.Response, error) + type Key = string + type KeyList = []Key + type ListKeysResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *KeyList + JSON500 *ErrorResponse + func ParseListKeysResponse(rsp *http.Response) (*ListKeysResponse, error) + func (r ListKeysResponse) Status() string + func (r ListKeysResponse) StatusCode() int + type LookupSecretResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *SecretResponse + JSON404 *ErrorResponse + JSON500 *ErrorResponse + func ParseLookupSecretResponse(rsp *http.Response) (*LookupSecretResponse, error) + func (r LookupSecretResponse) Status() string + func (r LookupSecretResponse) StatusCode() int + type RequestEditorFn func(ctx context.Context, req *http.Request) error + type Secret = string + type SecretResponse struct + Secret Secret + type ServiceStatus struct + Details *string + Status ServiceStatusStatus + type ServiceStatusStatus string + const Fail + const Pass + const Warn + type StoreSecretJSONRequestBody = StoreSecretRequest + type StoreSecretRequest struct + Secret Secret + type StoreSecretResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *SecretResponse + JSON400 *ErrorResponse + JSON409 *ErrorResponse + JSON500 *ErrorResponse + func ParseStoreSecretResponse(rsp *http.Response) (*StoreSecretResponse, error) + func (r StoreSecretResponse) Status() string + func (r StoreSecretResponse) StatusCode() int Other modules containing this package github.com/nuts-foundation/nuts-node/v5