Documentation
¶
Overview ¶
Package vdr provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT.
Index ¶
- Constants
- func NewAddVerificationMethodRequest(server string, id string, body AddVerificationMethodJSONRequestBody) (*http.Request, error)
- func NewAddVerificationMethodRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateDIDRequest(server string, body CreateDIDJSONRequestBody) (*http.Request, error)
- func NewCreateDIDRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateServiceRequest(server string, id string, body CreateServiceJSONRequestBody) (*http.Request, error)
- func NewCreateServiceRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeactivateRequest(server string, id string) (*http.Request, error)
- func NewDeleteServiceRequest(server string, id string, serviceId string) (*http.Request, error)
- func NewFindServicesRequest(server string, id string, params *FindServicesParams) (*http.Request, error)
- func NewGetRootWebDIDRequest(server string) (*http.Request, error)
- func NewGetTenantWebDIDRequest(server string, id string) (*http.Request, error)
- func NewListSubjectsRequest(server string) (*http.Request, error)
- func NewResolveDIDRequest(server string, did string) (*http.Request, error)
- func NewSubjectDIDsRequest(server string, id string) (*http.Request, error)
- func NewUpdateServiceRequest(server string, id string, serviceId string, body UpdateServiceJSONRequestBody) (*http.Request, error)
- func NewUpdateServiceRequestWithBody(server string, id string, serviceId string, contentType string, body io.Reader) (*http.Request, error)
- type AddVerificationMethodJSONRequestBody
- type AddVerificationMethodResponse
- type Client
- func (c *Client) AddVerificationMethod(ctx context.Context, id string, body AddVerificationMethodJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddVerificationMethodWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateDID(ctx context.Context, body CreateDIDJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateDIDWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateService(ctx context.Context, id string, body CreateServiceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateServiceWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Deactivate(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteService(ctx context.Context, id string, serviceId string, ...) (*http.Response, error)
- func (c *Client) FindServices(ctx context.Context, id string, params *FindServicesParams, ...) (*http.Response, error)
- func (c *Client) GetRootWebDID(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTenantWebDID(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListSubjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ResolveDID(ctx context.Context, did string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SubjectDIDs(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateService(ctx context.Context, id string, serviceId string, ...) (*http.Response, error)
- func (c *Client) UpdateServiceWithBody(ctx context.Context, id string, serviceId string, contentType string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AddVerificationMethodWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*AddVerificationMethodResponse, error)
- func (c *ClientWithResponses) AddVerificationMethodWithResponse(ctx context.Context, id string, body AddVerificationMethodJSONRequestBody, ...) (*AddVerificationMethodResponse, error)
- func (c *ClientWithResponses) CreateDIDWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateDIDResponse, error)
- func (c *ClientWithResponses) CreateDIDWithResponse(ctx context.Context, body CreateDIDJSONRequestBody, ...) (*CreateDIDResponse, error)
- func (c *ClientWithResponses) CreateServiceWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*CreateServiceResponse, error)
- func (c *ClientWithResponses) CreateServiceWithResponse(ctx context.Context, id string, body CreateServiceJSONRequestBody, ...) (*CreateServiceResponse, error)
- func (c *ClientWithResponses) DeactivateWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeactivateResponse, error)
- func (c *ClientWithResponses) DeleteServiceWithResponse(ctx context.Context, id string, serviceId string, ...) (*DeleteServiceResponse, error)
- func (c *ClientWithResponses) FindServicesWithResponse(ctx context.Context, id string, params *FindServicesParams, ...) (*FindServicesResponse, error)
- func (c *ClientWithResponses) GetRootWebDIDWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetRootWebDIDResponse, error)
- func (c *ClientWithResponses) GetTenantWebDIDWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetTenantWebDIDResponse, error)
- func (c *ClientWithResponses) ListSubjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSubjectsResponse, error)
- func (c *ClientWithResponses) ResolveDIDWithResponse(ctx context.Context, did string, reqEditors ...RequestEditorFn) (*ResolveDIDResponse, error)
- func (c *ClientWithResponses) SubjectDIDsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SubjectDIDsResponse, error)
- func (c *ClientWithResponses) UpdateServiceWithBodyWithResponse(ctx context.Context, id string, serviceId string, contentType string, ...) (*UpdateServiceResponse, error)
- func (c *ClientWithResponses) UpdateServiceWithResponse(ctx context.Context, id string, serviceId string, ...) (*UpdateServiceResponse, error)
- type ClientWithResponsesInterface
- type CreateDIDJSONRequestBody
- type CreateDIDOptions
- type CreateDIDResponse
- type CreateServiceJSONRequestBody
- type CreateServiceResponse
- type DIDDocument
- type DIDDocumentMetadata
- type DIDResolutionResult
- type DeactivateResponse
- type DeleteServiceResponse
- type FindServicesParams
- type FindServicesParamsEndpointType
- type FindServicesResponse
- type GetRootWebDIDResponse
- type GetTenantWebDIDResponse
- type HttpRequestDoer
- type KeyCreationOptions
- type ListSubjectsResponse
- type RequestEditorFn
- type ResolveDIDResponse
- type Service
- type SubjectCreationResult
- type SubjectDIDsResponse
- type UpdateServiceJSONRequestBody
- type UpdateServiceResponse
- type VerificationMethod
Constants ¶
const (
JwtBearerAuthScopes = "jwtBearerAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewAddVerificationMethodRequest ¶
func NewAddVerificationMethodRequest(server string, id string, body AddVerificationMethodJSONRequestBody) (*http.Request, error)
NewAddVerificationMethodRequest calls the generic AddVerificationMethod builder with application/json body
func NewAddVerificationMethodRequestWithBody ¶
func NewAddVerificationMethodRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewAddVerificationMethodRequestWithBody generates requests for AddVerificationMethod with any type of body
func NewCreateDIDRequest ¶
func NewCreateDIDRequest(server string, body CreateDIDJSONRequestBody) (*http.Request, error)
NewCreateDIDRequest calls the generic CreateDID builder with application/json body
func NewCreateDIDRequestWithBody ¶
func NewCreateDIDRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateDIDRequestWithBody generates requests for CreateDID with any type of body
func NewCreateServiceRequest ¶
func NewCreateServiceRequest(server string, id string, body CreateServiceJSONRequestBody) (*http.Request, error)
NewCreateServiceRequest calls the generic CreateService builder with application/json body
func NewCreateServiceRequestWithBody ¶
func NewCreateServiceRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewCreateServiceRequestWithBody generates requests for CreateService with any type of body
func NewDeactivateRequest ¶
NewDeactivateRequest generates requests for Deactivate
func NewDeleteServiceRequest ¶
NewDeleteServiceRequest generates requests for DeleteService
func NewFindServicesRequest ¶
func NewFindServicesRequest(server string, id string, params *FindServicesParams) (*http.Request, error)
NewFindServicesRequest generates requests for FindServices
func NewGetRootWebDIDRequest ¶
NewGetRootWebDIDRequest generates requests for GetRootWebDID
func NewGetTenantWebDIDRequest ¶
NewGetTenantWebDIDRequest generates requests for GetTenantWebDID
func NewListSubjectsRequest ¶
NewListSubjectsRequest generates requests for ListSubjects
func NewResolveDIDRequest ¶
NewResolveDIDRequest generates requests for ResolveDID
func NewSubjectDIDsRequest ¶
NewSubjectDIDsRequest generates requests for SubjectDIDs
func NewUpdateServiceRequest ¶
func NewUpdateServiceRequest(server string, id string, serviceId string, body UpdateServiceJSONRequestBody) (*http.Request, error)
NewUpdateServiceRequest calls the generic UpdateService builder with application/json body
Types ¶
type AddVerificationMethodJSONRequestBody ¶
type AddVerificationMethodJSONRequestBody = KeyCreationOptions
AddVerificationMethodJSONRequestBody defines body for AddVerificationMethod for application/json ContentType.
type AddVerificationMethodResponse ¶
type AddVerificationMethodResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]VerificationMethod
ApplicationproblemJSONDefault *struct {
// Detail A human-readable explanation specific to this occurrence of the problem.
Detail string `json:"detail"`
// Status HTTP statuscode
Status float32 `json:"status"`
// Title A short, human-readable summary of the problem type.
Title string `json:"title"`
}
}
func ParseAddVerificationMethodResponse ¶
func ParseAddVerificationMethodResponse(rsp *http.Response) (*AddVerificationMethodResponse, error)
ParseAddVerificationMethodResponse parses an HTTP response from a AddVerificationMethodWithResponse call
func (AddVerificationMethodResponse) Status ¶
func (r AddVerificationMethodResponse) Status() string
Status returns HTTPResponse.Status
func (AddVerificationMethodResponse) StatusCode ¶
func (r AddVerificationMethodResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) AddVerificationMethod ¶
func (c *Client) AddVerificationMethod(ctx context.Context, id string, body AddVerificationMethodJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddVerificationMethodWithBody ¶
func (*Client) CreateDID ¶
func (c *Client) CreateDID(ctx context.Context, body CreateDIDJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateDIDWithBody ¶
func (*Client) CreateService ¶
func (c *Client) CreateService(ctx context.Context, id string, body CreateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateServiceWithBody ¶
func (*Client) Deactivate ¶
func (*Client) DeleteService ¶
func (*Client) FindServices ¶
func (c *Client) FindServices(ctx context.Context, id string, params *FindServicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetRootWebDID ¶
func (*Client) GetTenantWebDID ¶
func (*Client) ListSubjects ¶
func (*Client) ResolveDID ¶
func (*Client) SubjectDIDs ¶
func (*Client) UpdateService ¶
func (c *Client) UpdateService(ctx context.Context, id string, serviceId string, body UpdateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// GetRootWebDID request
GetRootWebDID(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTenantWebDID request
GetTenantWebDID(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResolveDID request
ResolveDID(ctx context.Context, did string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSubjects request
ListSubjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateDIDWithBody request with any body
CreateDIDWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateDID(ctx context.Context, body CreateDIDJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// Deactivate request
Deactivate(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// SubjectDIDs request
SubjectDIDs(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// FindServices request
FindServices(ctx context.Context, id string, params *FindServicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateServiceWithBody request with any body
CreateServiceWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateService(ctx context.Context, id string, body CreateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteService request
DeleteService(ctx context.Context, id string, serviceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateServiceWithBody request with any body
UpdateServiceWithBody(ctx context.Context, id string, serviceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateService(ctx context.Context, id string, serviceId string, body UpdateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddVerificationMethodWithBody request with any body
AddVerificationMethodWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddVerificationMethod(ctx context.Context, id string, body AddVerificationMethodJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) AddVerificationMethodWithBodyWithResponse ¶
func (c *ClientWithResponses) AddVerificationMethodWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddVerificationMethodResponse, error)
AddVerificationMethodWithBodyWithResponse request with arbitrary body returning *AddVerificationMethodResponse
func (*ClientWithResponses) AddVerificationMethodWithResponse ¶
func (c *ClientWithResponses) AddVerificationMethodWithResponse(ctx context.Context, id string, body AddVerificationMethodJSONRequestBody, reqEditors ...RequestEditorFn) (*AddVerificationMethodResponse, error)
func (*ClientWithResponses) CreateDIDWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateDIDWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDIDResponse, error)
CreateDIDWithBodyWithResponse request with arbitrary body returning *CreateDIDResponse
func (*ClientWithResponses) CreateDIDWithResponse ¶
func (c *ClientWithResponses) CreateDIDWithResponse(ctx context.Context, body CreateDIDJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDIDResponse, error)
func (*ClientWithResponses) CreateServiceWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateServiceWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceResponse, error)
CreateServiceWithBodyWithResponse request with arbitrary body returning *CreateServiceResponse
func (*ClientWithResponses) CreateServiceWithResponse ¶
func (c *ClientWithResponses) CreateServiceWithResponse(ctx context.Context, id string, body CreateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceResponse, error)
func (*ClientWithResponses) DeactivateWithResponse ¶
func (c *ClientWithResponses) DeactivateWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeactivateResponse, error)
DeactivateWithResponse request returning *DeactivateResponse
func (*ClientWithResponses) DeleteServiceWithResponse ¶
func (c *ClientWithResponses) DeleteServiceWithResponse(ctx context.Context, id string, serviceId string, reqEditors ...RequestEditorFn) (*DeleteServiceResponse, error)
DeleteServiceWithResponse request returning *DeleteServiceResponse
func (*ClientWithResponses) FindServicesWithResponse ¶
func (c *ClientWithResponses) FindServicesWithResponse(ctx context.Context, id string, params *FindServicesParams, reqEditors ...RequestEditorFn) (*FindServicesResponse, error)
FindServicesWithResponse request returning *FindServicesResponse
func (*ClientWithResponses) GetRootWebDIDWithResponse ¶
func (c *ClientWithResponses) GetRootWebDIDWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetRootWebDIDResponse, error)
GetRootWebDIDWithResponse request returning *GetRootWebDIDResponse
func (*ClientWithResponses) GetTenantWebDIDWithResponse ¶
func (c *ClientWithResponses) GetTenantWebDIDWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetTenantWebDIDResponse, error)
GetTenantWebDIDWithResponse request returning *GetTenantWebDIDResponse
func (*ClientWithResponses) ListSubjectsWithResponse ¶
func (c *ClientWithResponses) ListSubjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSubjectsResponse, error)
ListSubjectsWithResponse request returning *ListSubjectsResponse
func (*ClientWithResponses) ResolveDIDWithResponse ¶
func (c *ClientWithResponses) ResolveDIDWithResponse(ctx context.Context, did string, reqEditors ...RequestEditorFn) (*ResolveDIDResponse, error)
ResolveDIDWithResponse request returning *ResolveDIDResponse
func (*ClientWithResponses) SubjectDIDsWithResponse ¶
func (c *ClientWithResponses) SubjectDIDsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SubjectDIDsResponse, error)
SubjectDIDsWithResponse request returning *SubjectDIDsResponse
func (*ClientWithResponses) UpdateServiceWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateServiceWithBodyWithResponse(ctx context.Context, id string, serviceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateServiceResponse, error)
UpdateServiceWithBodyWithResponse request with arbitrary body returning *UpdateServiceResponse
func (*ClientWithResponses) UpdateServiceWithResponse ¶
func (c *ClientWithResponses) UpdateServiceWithResponse(ctx context.Context, id string, serviceId string, body UpdateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateServiceResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetRootWebDIDWithResponse request
GetRootWebDIDWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetRootWebDIDResponse, error)
// GetTenantWebDIDWithResponse request
GetTenantWebDIDWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetTenantWebDIDResponse, error)
// ResolveDIDWithResponse request
ResolveDIDWithResponse(ctx context.Context, did string, reqEditors ...RequestEditorFn) (*ResolveDIDResponse, error)
// ListSubjectsWithResponse request
ListSubjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSubjectsResponse, error)
// CreateDIDWithBodyWithResponse request with any body
CreateDIDWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDIDResponse, error)
CreateDIDWithResponse(ctx context.Context, body CreateDIDJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDIDResponse, error)
// DeactivateWithResponse request
DeactivateWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeactivateResponse, error)
// SubjectDIDsWithResponse request
SubjectDIDsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SubjectDIDsResponse, error)
// FindServicesWithResponse request
FindServicesWithResponse(ctx context.Context, id string, params *FindServicesParams, reqEditors ...RequestEditorFn) (*FindServicesResponse, error)
// CreateServiceWithBodyWithResponse request with any body
CreateServiceWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceResponse, error)
CreateServiceWithResponse(ctx context.Context, id string, body CreateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceResponse, error)
// DeleteServiceWithResponse request
DeleteServiceWithResponse(ctx context.Context, id string, serviceId string, reqEditors ...RequestEditorFn) (*DeleteServiceResponse, error)
// UpdateServiceWithBodyWithResponse request with any body
UpdateServiceWithBodyWithResponse(ctx context.Context, id string, serviceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateServiceResponse, error)
UpdateServiceWithResponse(ctx context.Context, id string, serviceId string, body UpdateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateServiceResponse, error)
// AddVerificationMethodWithBodyWithResponse request with any body
AddVerificationMethodWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddVerificationMethodResponse, error)
AddVerificationMethodWithResponse(ctx context.Context, id string, body AddVerificationMethodJSONRequestBody, reqEditors ...RequestEditorFn) (*AddVerificationMethodResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateDIDJSONRequestBody ¶
type CreateDIDJSONRequestBody = CreateDIDOptions
CreateDIDJSONRequestBody defines body for CreateDID for application/json ContentType.
type CreateDIDOptions ¶
type CreateDIDOptions struct {
// Keys Options for the key creation.
Keys *KeyCreationOptions `json:"keys,omitempty"`
// Subject controls the DID subject to which all created DIDs are bound. If not given, a uuid is generated and returned.
Subject *string `json:"subject,omitempty"`
}
CreateDIDOptions Options for the DID creation.
type CreateDIDResponse ¶
type CreateDIDResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SubjectCreationResult
ApplicationproblemJSONDefault *struct {
// Detail A human-readable explanation specific to this occurrence of the problem.
Detail string `json:"detail"`
// Status HTTP statuscode
Status float32 `json:"status"`
// Title A short, human-readable summary of the problem type.
Title string `json:"title"`
}
}
func ParseCreateDIDResponse ¶
func ParseCreateDIDResponse(rsp *http.Response) (*CreateDIDResponse, error)
ParseCreateDIDResponse parses an HTTP response from a CreateDIDWithResponse call
func (CreateDIDResponse) Status ¶
func (r CreateDIDResponse) Status() string
Status returns HTTPResponse.Status
func (CreateDIDResponse) StatusCode ¶
func (r CreateDIDResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateServiceJSONRequestBody ¶
type CreateServiceJSONRequestBody = Service
CreateServiceJSONRequestBody defines body for CreateService for application/json ContentType.
type CreateServiceResponse ¶
type CreateServiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Service
ApplicationproblemJSONDefault *struct {
// Detail A human-readable explanation specific to this occurrence of the problem.
Detail string `json:"detail"`
// Status HTTP statuscode
Status float32 `json:"status"`
// Title A short, human-readable summary of the problem type.
Title string `json:"title"`
}
}
func ParseCreateServiceResponse ¶
func ParseCreateServiceResponse(rsp *http.Response) (*CreateServiceResponse, error)
ParseCreateServiceResponse parses an HTTP response from a CreateServiceWithResponse call
func (CreateServiceResponse) Status ¶
func (r CreateServiceResponse) Status() string
Status returns HTTPResponse.Status
func (CreateServiceResponse) StatusCode ¶
func (r CreateServiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DIDDocument ¶
type DIDDocument = externalRef0.DIDDocument
DIDDocument A DID document according to the W3C spec following the Nuts Method rules as defined in [Nuts RFC006]
type DIDDocumentMetadata ¶
type DIDDocumentMetadata = externalRef0.DIDDocumentMetadata
DIDDocumentMetadata The DID document metadata.
type DIDResolutionResult ¶
type DIDResolutionResult struct {
// Document A DID document according to the W3C spec following the Nuts Method rules as defined in [Nuts RFC006]
Document DIDDocument `json:"document"`
// DocumentMetadata The DID document metadata.
DocumentMetadata DIDDocumentMetadata `json:"documentMetadata"`
}
DIDResolutionResult defines model for DIDResolutionResult.
type DeactivateResponse ¶
type DeactivateResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSONDefault *struct {
// Detail A human-readable explanation specific to this occurrence of the problem.
Detail string `json:"detail"`
// Status HTTP statuscode
Status float32 `json:"status"`
// Title A short, human-readable summary of the problem type.
Title string `json:"title"`
}
}
func ParseDeactivateResponse ¶
func ParseDeactivateResponse(rsp *http.Response) (*DeactivateResponse, error)
ParseDeactivateResponse parses an HTTP response from a DeactivateWithResponse call
func (DeactivateResponse) Status ¶
func (r DeactivateResponse) Status() string
Status returns HTTPResponse.Status
func (DeactivateResponse) StatusCode ¶
func (r DeactivateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteServiceResponse ¶
type DeleteServiceResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSONDefault *struct {
// Detail A human-readable explanation specific to this occurrence of the problem.
Detail string `json:"detail"`
// Status HTTP statuscode
Status float32 `json:"status"`
// Title A short, human-readable summary of the problem type.
Title string `json:"title"`
}
}
func ParseDeleteServiceResponse ¶
func ParseDeleteServiceResponse(rsp *http.Response) (*DeleteServiceResponse, error)
ParseDeleteServiceResponse parses an HTTP response from a DeleteServiceWithResponse call
func (DeleteServiceResponse) Status ¶
func (r DeleteServiceResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteServiceResponse) StatusCode ¶
func (r DeleteServiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type FindServicesParams ¶
type FindServicesParams struct {
// Type Type of the service to filter for. If specified, only services with the given service type are returned.
Type *string `form:"type,omitempty" json:"type,omitempty"`
// EndpointType The data type of the service endpoint to filter for. If specified, only services with the given endpoint type are returned.
// Endpoint types as mapped as follows:
//
// - string: serviceEndpoint contains a JSON string
// - array: serviceEndpoint contains a JSON array
// - object: serviceEndpoint contains a JSON object (key-value map)
//
// If not specified, services are not filtered on their endpoint data type.
EndpointType *FindServicesParamsEndpointType `form:"endpointType,omitempty" json:"endpointType,omitempty"`
}
FindServicesParams defines parameters for FindServices.
type FindServicesParamsEndpointType ¶
type FindServicesParamsEndpointType string
FindServicesParamsEndpointType defines parameters for FindServices.
const ( Array FindServicesParamsEndpointType = "array" Object FindServicesParamsEndpointType = "object" String FindServicesParamsEndpointType = "string" )
Defines values for FindServicesParamsEndpointType.
type FindServicesResponse ¶
type FindServicesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Service
ApplicationproblemJSONDefault *struct {
// Detail A human-readable explanation specific to this occurrence of the problem.
Detail string `json:"detail"`
// Status HTTP statuscode
Status float32 `json:"status"`
// Title A short, human-readable summary of the problem type.
Title string `json:"title"`
}
}
func ParseFindServicesResponse ¶
func ParseFindServicesResponse(rsp *http.Response) (*FindServicesResponse, error)
ParseFindServicesResponse parses an HTTP response from a FindServicesWithResponse call
func (FindServicesResponse) Status ¶
func (r FindServicesResponse) Status() string
Status returns HTTPResponse.Status
func (FindServicesResponse) StatusCode ¶
func (r FindServicesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetRootWebDIDResponse ¶
type GetRootWebDIDResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DIDDocument
}
func ParseGetRootWebDIDResponse ¶
func ParseGetRootWebDIDResponse(rsp *http.Response) (*GetRootWebDIDResponse, error)
ParseGetRootWebDIDResponse parses an HTTP response from a GetRootWebDIDWithResponse call
func (GetRootWebDIDResponse) Status ¶
func (r GetRootWebDIDResponse) Status() string
Status returns HTTPResponse.Status
func (GetRootWebDIDResponse) StatusCode ¶
func (r GetRootWebDIDResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTenantWebDIDResponse ¶
type GetTenantWebDIDResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DIDDocument
}
func ParseGetTenantWebDIDResponse ¶
func ParseGetTenantWebDIDResponse(rsp *http.Response) (*GetTenantWebDIDResponse, error)
ParseGetTenantWebDIDResponse parses an HTTP response from a GetTenantWebDIDWithResponse call
func (GetTenantWebDIDResponse) Status ¶
func (r GetTenantWebDIDResponse) Status() string
Status returns HTTPResponse.Status
func (GetTenantWebDIDResponse) StatusCode ¶
func (r GetTenantWebDIDResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type KeyCreationOptions ¶
type KeyCreationOptions struct {
// AssertionKey If true, an EC keypair is generated and added to the DID Document as a assertion, authentication, capability invocation and capability delegation method.
AssertionKey bool `json:"assertionKey"`
// EncryptionKey If true, an RSA keypair is generated and added to the DID Document as a key agreement method.
EncryptionKey bool `json:"encryptionKey"`
}
KeyCreationOptions Options for the key creation.
type ListSubjectsResponse ¶
type ListSubjectsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *map[string][]string
ApplicationproblemJSONDefault *struct {
// Detail A human-readable explanation specific to this occurrence of the problem.
Detail string `json:"detail"`
// Status HTTP statuscode
Status float32 `json:"status"`
// Title A short, human-readable summary of the problem type.
Title string `json:"title"`
}
}
func ParseListSubjectsResponse ¶
func ParseListSubjectsResponse(rsp *http.Response) (*ListSubjectsResponse, error)
ParseListSubjectsResponse parses an HTTP response from a ListSubjectsWithResponse call
func (ListSubjectsResponse) Status ¶
func (r ListSubjectsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSubjectsResponse) StatusCode ¶
func (r ListSubjectsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ResolveDIDResponse ¶
type ResolveDIDResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DIDResolutionResult
ApplicationproblemJSONDefault *struct {
// Detail A human-readable explanation specific to this occurrence of the problem.
Detail string `json:"detail"`
// Status HTTP statuscode
Status float32 `json:"status"`
// Title A short, human-readable summary of the problem type.
Title string `json:"title"`
}
}
func ParseResolveDIDResponse ¶
func ParseResolveDIDResponse(rsp *http.Response) (*ResolveDIDResponse, error)
ParseResolveDIDResponse parses an HTTP response from a ResolveDIDWithResponse call
func (ResolveDIDResponse) Status ¶
func (r ResolveDIDResponse) Status() string
Status returns HTTPResponse.Status
func (ResolveDIDResponse) StatusCode ¶
func (r ResolveDIDResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SubjectCreationResult ¶
type SubjectCreationResult struct {
Documents []DIDDocument `json:"documents"`
// Subject The subject of the created DID Documents.
Subject string `json:"subject"`
}
SubjectCreationResult Result of a DID creation request. Contains the subject and any created DID Documents.
type SubjectDIDsResponse ¶
type SubjectDIDsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]string
ApplicationproblemJSONDefault *struct {
// Detail A human-readable explanation specific to this occurrence of the problem.
Detail string `json:"detail"`
// Status HTTP statuscode
Status float32 `json:"status"`
// Title A short, human-readable summary of the problem type.
Title string `json:"title"`
}
}
func ParseSubjectDIDsResponse ¶
func ParseSubjectDIDsResponse(rsp *http.Response) (*SubjectDIDsResponse, error)
ParseSubjectDIDsResponse parses an HTTP response from a SubjectDIDsWithResponse call
func (SubjectDIDsResponse) Status ¶
func (r SubjectDIDsResponse) Status() string
Status returns HTTPResponse.Status
func (SubjectDIDsResponse) StatusCode ¶
func (r SubjectDIDsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateServiceJSONRequestBody ¶
type UpdateServiceJSONRequestBody = Service
UpdateServiceJSONRequestBody defines body for UpdateService for application/json ContentType.
type UpdateServiceResponse ¶
type UpdateServiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Service
ApplicationproblemJSONDefault *struct {
// Detail A human-readable explanation specific to this occurrence of the problem.
Detail string `json:"detail"`
// Status HTTP statuscode
Status float32 `json:"status"`
// Title A short, human-readable summary of the problem type.
Title string `json:"title"`
}
}
func ParseUpdateServiceResponse ¶
func ParseUpdateServiceResponse(rsp *http.Response) (*UpdateServiceResponse, error)
ParseUpdateServiceResponse parses an HTTP response from a UpdateServiceWithResponse call
func (UpdateServiceResponse) Status ¶
func (r UpdateServiceResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateServiceResponse) StatusCode ¶
func (r UpdateServiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VerificationMethod ¶
type VerificationMethod = externalRef0.VerificationMethod
VerificationMethod A public key in JWK form.