package
0.16.0
Repository: https://github.com/nuts-foundation/nuts-crypto.git
Documentation: pkg.go.dev

# Functions

Creates a new Client, with reasonable defaults.
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling.
NewDecryptRequest calls the generic Decrypt builder with application/json body.
NewDecryptRequestWithBody generates requests for Decrypt with any type of body.
NewEncryptRequest calls the generic Encrypt builder with application/json body.
NewEncryptRequestWithBody generates requests for Encrypt with any type of body.
NewExternalIdRequest calls the generic ExternalId builder with application/json body.
NewExternalIdRequestWithBody generates requests for ExternalId with any type of body.
NewGenerateKeyPairRequest generates requests for GenerateKeyPair.
NewGenerateVendorCACSRRequest generates requests for GenerateVendorCACSR.
NewPublicKeyRequest generates requests for PublicKey.
NewSelfSignVendorCACertificateRequest generates requests for SelfSignVendorCACertificate.
NewSignJwtRequest calls the generic SignJwt builder with application/json body.
NewSignJwtRequestWithBody generates requests for SignJwt with any type of body.
NewSignRequest calls the generic Sign builder with application/json body.
NewSignRequestWithBody generates requests for Sign with any type of body.
NewSignTLSCertificateRequestWithBody generates requests for SignTLSCertificate with any type of body.
NewVerifyRequest calls the generic Verify builder with application/json body.
NewVerifyRequestWithBody generates requests for Verify with any type of body.
ParseDecryptResponse parses an HTTP response from a DecryptWithResponse call.
ParseEncryptResponse parses an HTTP response from a EncryptWithResponse call.
ParseExternalIdResponse parses an HTTP response from a ExternalIdWithResponse call.
ParseGenerateKeyPairResponse parses an HTTP response from a GenerateKeyPairWithResponse call.
ParseGenerateVendorCACSRResponse parses an HTTP response from a GenerateVendorCACSRWithResponse call.
ParsePublicKeyResponse parses an HTTP response from a PublicKeyWithResponse call.
ParseSelfSignVendorCACertificateResponse parses an HTTP response from a SelfSignVendorCACertificateWithResponse call.
ParseSignJwtResponse parses an HTTP response from a SignJwtWithResponse call.
ParseSignResponse parses an HTTP response from a SignWithResponse call.
ParseSignTLSCertificateResponse parses an HTTP response from a SignTLSCertificateWithResponse call.
ParseVerifyResponse parses an HTTP response from a VerifyWithResponse call.
RegisterHandlers adds each server route to the EchoRouter.
Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.
WithBaseURL overrides the baseURL.
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client.
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request.

# Variables

ErrNotImplemented indicates that this client API call is not implemented.

# Structs

Client which conforms to the OpenAPI3 specification for this service.
ClientWithResponses builds on ClientInterface to offer response payloads.
DecryptRequest defines model for DecryptRequest.
No description provided by the author
EncryptedData defines model for EncryptedData.
EncryptRequest defines model for EncryptRequest.
EncryptRequestSubject defines model for EncryptRequestSubject.
No description provided by the author
EncryptResponseEntry defines model for EncryptResponseEntry.
ExternalIdRequest defines model for ExternalIdRequest.
No description provided by the author
GenerateKeyPairParams defines parameters for GenerateKeyPair.
No description provided by the author
GenerateVendorCACSRParams defines parameters for GenerateVendorCACSR.
No description provided by the author
HttpClient holds the server address and other basic settings for the http client.
No description provided by the author
SelfSignVendorCACertificateParams defines parameters for SelfSignVendorCACertificate.
No description provided by the author
ServerInterfaceWrapper converts echo contexts to parameters.
SignJwtRequest defines model for SignJwtRequest.
No description provided by the author
SignRequest defines model for SignRequest.
No description provided by the author
No description provided by the author
Verification defines model for Verification.
VerifyRequest defines model for VerifyRequest.
No description provided by the author
Wrapper implements the generated interface from oapi-codegen.

# Interfaces

The interface specification for the client above.
ClientWithResponsesInterface is the interface specification for the client with responses above.
This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration.
Doer performs HTTP requests.
ServerInterface represents all server handlers.

# Type aliases

ClientOption allows setting custom parameters during construction.
DecryptJSONBody defines parameters for Decrypt.
DecryptRequestBody defines body for Decrypt for application/json ContentType.
EncryptJSONBody defines parameters for Encrypt.
EncryptRequestBody defines body for Encrypt for application/json ContentType.
ExternalId defines model for ExternalId.
ExternalIdJSONBody defines parameters for ExternalId.
ExternalIdRequestBody defines body for ExternalId for application/json ContentType.
Identifier defines model for Identifier.
JWK defines model for JWK.
PlainText defines model for PlainText.
PublicKey defines model for PublicKey.
RequestEditorFn is the function signature for the RequestEditor callback function.
Signature defines model for Signature.
SignJSONBody defines parameters for Sign.
SignRequestBody defines body for Sign for application/json ContentType.
SignJwtJSONBody defines parameters for SignJwt.
SignJwtRequestBody defines body for SignJwt for application/json ContentType.
VerifyJSONBody defines parameters for Verify.
VerifyRequestBody defines body for Verify for application/json ContentType.