Documentation
¶
Overview ¶
Package v2 provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 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 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 NewCreateSubjectRequest(server string, body CreateSubjectJSONRequestBody) (*http.Request, error)
- func NewCreateSubjectRequestWithBody(server 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)
- func RegisterHandlers(router EchoRouter, si ServerInterface)
- func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
- type AddVerificationMethod200JSONResponse
- type AddVerificationMethodJSONRequestBody
- type AddVerificationMethodRequestObject
- type AddVerificationMethodResponse
- type AddVerificationMethodResponseObject
- type AddVerificationMethoddefaultApplicationProblemPlusJSONResponse
- 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) 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) CreateSubject(ctx context.Context, body CreateSubjectJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateSubjectWithBody(ctx context.Context, 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) 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) CreateSubjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSubjectResponse, error)
- func (c *ClientWithResponses) CreateSubjectWithResponse(ctx context.Context, body CreateSubjectJSONRequestBody, ...) (*CreateSubjectResponse, 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 CreateService200JSONResponse
- type CreateServiceJSONRequestBody
- type CreateServiceRequestObject
- type CreateServiceResponse
- type CreateServiceResponseObject
- type CreateServicedefaultApplicationProblemPlusJSONResponse
- type CreateSubject200JSONResponse
- type CreateSubjectJSONRequestBody
- type CreateSubjectOptions
- type CreateSubjectRequestObject
- type CreateSubjectResponse
- type CreateSubjectResponseObject
- type CreateSubjectdefaultApplicationProblemPlusJSONResponse
- type DIDDocument
- type DIDDocumentMetadata
- type DIDResolutionResult
- type Deactivate204Response
- type DeactivateRequestObject
- type DeactivateResponse
- type DeactivateResponseObject
- type DeactivatedefaultApplicationProblemPlusJSONResponse
- type DeleteService204Response
- type DeleteServiceRequestObject
- type DeleteServiceResponse
- type DeleteServiceResponseObject
- type DeleteServicedefaultApplicationProblemPlusJSONResponse
- type EchoRouter
- type FindServices200JSONResponse
- type FindServicesParams
- type FindServicesParamsEndpointType
- type FindServicesRequestObject
- type FindServicesResponse
- type FindServicesResponseObject
- type FindServicesdefaultApplicationProblemPlusJSONResponse
- type GetRootWebDID200JSONResponse
- type GetRootWebDID404Response
- type GetRootWebDIDRequestObject
- type GetRootWebDIDResponse
- type GetRootWebDIDResponseObject
- type GetTenantWebDID200JSONResponse
- type GetTenantWebDID404Response
- type GetTenantWebDIDRequestObject
- type GetTenantWebDIDResponse
- type GetTenantWebDIDResponseObject
- type HTTPClient
- type HttpRequestDoer
- type KeyCreationOptions
- type ListSubjects200JSONResponse
- type ListSubjectsRequestObject
- type ListSubjectsResponse
- type ListSubjectsResponseObject
- type ListSubjectsdefaultApplicationProblemPlusJSONResponse
- type RequestEditorFn
- type ResolveDID200JSONResponse
- type ResolveDIDRequestObject
- type ResolveDIDResponse
- type ResolveDIDResponseObject
- type ResolveDIDdefaultApplicationProblemPlusJSONResponse
- type ServerInterface
- type ServerInterfaceWrapper
- func (w *ServerInterfaceWrapper) AddVerificationMethod(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreateService(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreateSubject(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) Deactivate(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteService(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) FindServices(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetRootWebDID(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetTenantWebDID(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListSubjects(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ResolveDID(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) SubjectDIDs(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateService(ctx echo.Context) error
- type Service
- type ServiceRequest
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type SubjectCreationResult
- type SubjectDIDs200JSONResponse
- type SubjectDIDsRequestObject
- type SubjectDIDsResponse
- type SubjectDIDsResponseObject
- type SubjectDIDsdefaultApplicationProblemPlusJSONResponse
- type UpdateService200JSONResponse
- type UpdateServiceJSONRequestBody
- type UpdateServiceRequestObject
- type UpdateServiceResponse
- type UpdateServiceResponseObject
- type UpdateServicedefaultApplicationProblemPlusJSONResponse
- type VerificationMethod
- type Wrapper
- func (w *Wrapper) AddVerificationMethod(ctx context.Context, request AddVerificationMethodRequestObject) (AddVerificationMethodResponseObject, error)
- func (w *Wrapper) CreateService(ctx context.Context, request CreateServiceRequestObject) (CreateServiceResponseObject, error)
- func (w *Wrapper) CreateSubject(ctx context.Context, request CreateSubjectRequestObject) (CreateSubjectResponseObject, error)
- func (w *Wrapper) Deactivate(ctx context.Context, request DeactivateRequestObject) (DeactivateResponseObject, error)
- func (w *Wrapper) DeleteService(ctx context.Context, request DeleteServiceRequestObject) (DeleteServiceResponseObject, error)
- func (w *Wrapper) FindServices(ctx context.Context, request FindServicesRequestObject) (FindServicesResponseObject, error)
- func (r Wrapper) GetRootWebDID(ctx context.Context, _ GetRootWebDIDRequestObject) (GetRootWebDIDResponseObject, error)
- func (r Wrapper) GetTenantWebDID(ctx context.Context, request GetTenantWebDIDRequestObject) (GetTenantWebDIDResponseObject, error)
- func (w *Wrapper) ListSubjects(ctx context.Context, _ ListSubjectsRequestObject) (ListSubjectsResponseObject, error)
- func (w *Wrapper) ResolveDID(_ context.Context, request ResolveDIDRequestObject) (ResolveDIDResponseObject, error)
- func (w *Wrapper) ResolveStatusCode(err error) int
- func (w *Wrapper) Routes(router core.EchoRouter)
- func (w *Wrapper) SubjectDIDs(ctx context.Context, request SubjectDIDsRequestObject) (SubjectDIDsResponseObject, error)
- func (w *Wrapper) UpdateService(ctx context.Context, request UpdateServiceRequestObject) (UpdateServiceResponseObject, error)
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 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 NewCreateSubjectRequest ¶
func NewCreateSubjectRequest(server string, body CreateSubjectJSONRequestBody) (*http.Request, error)
NewCreateSubjectRequest calls the generic CreateSubject builder with application/json body
func NewCreateSubjectRequestWithBody ¶
func NewCreateSubjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateSubjectRequestWithBody generates requests for CreateSubject 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
func NewUpdateServiceRequestWithBody ¶
func NewUpdateServiceRequestWithBody(server string, id string, serviceId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateServiceRequestWithBody generates requests for UpdateService with any type of body
func RegisterHandlers ¶
func RegisterHandlers(router EchoRouter, si ServerInterface)
RegisterHandlers adds each server route to the EchoRouter.
func RegisterHandlersWithBaseURL ¶
func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.
Types ¶
type AddVerificationMethod200JSONResponse ¶
type AddVerificationMethod200JSONResponse []VerificationMethod
func (AddVerificationMethod200JSONResponse) VisitAddVerificationMethodResponse ¶
func (response AddVerificationMethod200JSONResponse) VisitAddVerificationMethodResponse(w http.ResponseWriter) error
type AddVerificationMethodJSONRequestBody ¶
type AddVerificationMethodJSONRequestBody = KeyCreationOptions
AddVerificationMethodJSONRequestBody defines body for AddVerificationMethod for application/json ContentType.
type AddVerificationMethodRequestObject ¶
type AddVerificationMethodRequestObject struct {
Id string `json:"id"`
Body *AddVerificationMethodJSONRequestBody
}
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 AddVerificationMethodResponseObject ¶
type AddVerificationMethodResponseObject interface {
VisitAddVerificationMethodResponse(w http.ResponseWriter) error
}
type AddVerificationMethoddefaultApplicationProblemPlusJSONResponse ¶
type AddVerificationMethoddefaultApplicationProblemPlusJSONResponse struct {
Body 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"`
}
StatusCode int
}
func (AddVerificationMethoddefaultApplicationProblemPlusJSONResponse) VisitAddVerificationMethodResponse ¶
func (response AddVerificationMethoddefaultApplicationProblemPlusJSONResponse) VisitAddVerificationMethodResponse(w http.ResponseWriter) error
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) CreateService ¶
func (c *Client) CreateService(ctx context.Context, id string, body CreateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateServiceWithBody ¶
func (*Client) CreateSubject ¶
func (c *Client) CreateSubject(ctx context.Context, body CreateSubjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSubjectWithBody ¶
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)
// CreateSubjectWithBody request with any body
CreateSubjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSubject(ctx context.Context, body CreateSubjectJSONRequestBody, 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) 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) CreateSubjectWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSubjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubjectResponse, error)
CreateSubjectWithBodyWithResponse request with arbitrary body returning *CreateSubjectResponse
func (*ClientWithResponses) CreateSubjectWithResponse ¶
func (c *ClientWithResponses) CreateSubjectWithResponse(ctx context.Context, body CreateSubjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubjectResponse, 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)
// CreateSubjectWithBodyWithResponse request with any body
CreateSubjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubjectResponse, error)
CreateSubjectWithResponse(ctx context.Context, body CreateSubjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubjectResponse, 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 CreateService200JSONResponse ¶
type CreateService200JSONResponse []Service
func (CreateService200JSONResponse) VisitCreateServiceResponse ¶
func (response CreateService200JSONResponse) VisitCreateServiceResponse(w http.ResponseWriter) error
type CreateServiceJSONRequestBody ¶
type CreateServiceJSONRequestBody = ServiceRequest
CreateServiceJSONRequestBody defines body for CreateService for application/json ContentType.
type CreateServiceRequestObject ¶
type CreateServiceRequestObject struct {
Id string `json:"id"`
Body *CreateServiceJSONRequestBody
}
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 CreateServiceResponseObject ¶
type CreateServiceResponseObject interface {
VisitCreateServiceResponse(w http.ResponseWriter) error
}
type CreateServicedefaultApplicationProblemPlusJSONResponse ¶
type CreateServicedefaultApplicationProblemPlusJSONResponse struct {
Body 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"`
}
StatusCode int
}
func (CreateServicedefaultApplicationProblemPlusJSONResponse) VisitCreateServiceResponse ¶
func (response CreateServicedefaultApplicationProblemPlusJSONResponse) VisitCreateServiceResponse(w http.ResponseWriter) error
type CreateSubject200JSONResponse ¶
type CreateSubject200JSONResponse SubjectCreationResult
func (CreateSubject200JSONResponse) VisitCreateSubjectResponse ¶
func (response CreateSubject200JSONResponse) VisitCreateSubjectResponse(w http.ResponseWriter) error
type CreateSubjectJSONRequestBody ¶
type CreateSubjectJSONRequestBody = CreateSubjectOptions
CreateSubjectJSONRequestBody defines body for CreateSubject for application/json ContentType.
type CreateSubjectOptions ¶
type CreateSubjectOptions 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.
// The subject must follow the pattern [a-zA-Z0-9._-]+
Subject *string `json:"subject,omitempty"`
}
CreateSubjectOptions Options for the subject creation.
type CreateSubjectRequestObject ¶
type CreateSubjectRequestObject struct {
Body *CreateSubjectJSONRequestBody
}
type CreateSubjectResponse ¶
type CreateSubjectResponse 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 ParseCreateSubjectResponse ¶
func ParseCreateSubjectResponse(rsp *http.Response) (*CreateSubjectResponse, error)
ParseCreateSubjectResponse parses an HTTP response from a CreateSubjectWithResponse call
func (CreateSubjectResponse) Status ¶
func (r CreateSubjectResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSubjectResponse) StatusCode ¶
func (r CreateSubjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSubjectResponseObject ¶
type CreateSubjectResponseObject interface {
VisitCreateSubjectResponse(w http.ResponseWriter) error
}
type CreateSubjectdefaultApplicationProblemPlusJSONResponse ¶
type CreateSubjectdefaultApplicationProblemPlusJSONResponse struct {
Body 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"`
}
StatusCode int
}
func (CreateSubjectdefaultApplicationProblemPlusJSONResponse) VisitCreateSubjectResponse ¶
func (response CreateSubjectdefaultApplicationProblemPlusJSONResponse) VisitCreateSubjectResponse(w http.ResponseWriter) error
type DIDDocumentMetadata ¶
type DIDDocumentMetadata = resolver.DocumentMetadata
DIDDocumentMetadata is an alias
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 Deactivate204Response ¶
type Deactivate204Response struct {
}
func (Deactivate204Response) VisitDeactivateResponse ¶
func (response Deactivate204Response) VisitDeactivateResponse(w http.ResponseWriter) error
type DeactivateRequestObject ¶
type DeactivateRequestObject struct {
Id string `json:"id"`
}
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 DeactivateResponseObject ¶
type DeactivateResponseObject interface {
VisitDeactivateResponse(w http.ResponseWriter) error
}
type DeactivatedefaultApplicationProblemPlusJSONResponse ¶
type DeactivatedefaultApplicationProblemPlusJSONResponse struct {
Body 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"`
}
StatusCode int
}
func (DeactivatedefaultApplicationProblemPlusJSONResponse) VisitDeactivateResponse ¶
func (response DeactivatedefaultApplicationProblemPlusJSONResponse) VisitDeactivateResponse(w http.ResponseWriter) error
type DeleteService204Response ¶
type DeleteService204Response struct {
}
func (DeleteService204Response) VisitDeleteServiceResponse ¶
func (response DeleteService204Response) VisitDeleteServiceResponse(w http.ResponseWriter) error
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 DeleteServiceResponseObject ¶
type DeleteServiceResponseObject interface {
VisitDeleteServiceResponse(w http.ResponseWriter) error
}
type DeleteServicedefaultApplicationProblemPlusJSONResponse ¶
type DeleteServicedefaultApplicationProblemPlusJSONResponse struct {
Body 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"`
}
StatusCode int
}
func (DeleteServicedefaultApplicationProblemPlusJSONResponse) VisitDeleteServiceResponse ¶
func (response DeleteServicedefaultApplicationProblemPlusJSONResponse) VisitDeleteServiceResponse(w http.ResponseWriter) error
type EchoRouter ¶
type EchoRouter interface {
CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
}
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
type FindServices200JSONResponse ¶
type FindServices200JSONResponse []Service
func (FindServices200JSONResponse) VisitFindServicesResponse ¶
func (response FindServices200JSONResponse) VisitFindServicesResponse(w http.ResponseWriter) error
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 FindServicesRequestObject ¶
type FindServicesRequestObject struct {
Id string `json:"id"`
Params FindServicesParams
}
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 FindServicesResponseObject ¶
type FindServicesResponseObject interface {
VisitFindServicesResponse(w http.ResponseWriter) error
}
type FindServicesdefaultApplicationProblemPlusJSONResponse ¶
type FindServicesdefaultApplicationProblemPlusJSONResponse struct {
Body 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"`
}
StatusCode int
}
func (FindServicesdefaultApplicationProblemPlusJSONResponse) VisitFindServicesResponse ¶
func (response FindServicesdefaultApplicationProblemPlusJSONResponse) VisitFindServicesResponse(w http.ResponseWriter) error
type GetRootWebDID200JSONResponse ¶
type GetRootWebDID200JSONResponse DIDDocument
func (GetRootWebDID200JSONResponse) VisitGetRootWebDIDResponse ¶
func (response GetRootWebDID200JSONResponse) VisitGetRootWebDIDResponse(w http.ResponseWriter) error
type GetRootWebDID404Response ¶
type GetRootWebDID404Response struct {
}
func (GetRootWebDID404Response) VisitGetRootWebDIDResponse ¶
func (response GetRootWebDID404Response) VisitGetRootWebDIDResponse(w http.ResponseWriter) error
type GetRootWebDIDRequestObject ¶
type GetRootWebDIDRequestObject struct {
}
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 GetRootWebDIDResponseObject ¶
type GetRootWebDIDResponseObject interface {
VisitGetRootWebDIDResponse(w http.ResponseWriter) error
}
type GetTenantWebDID200JSONResponse ¶
type GetTenantWebDID200JSONResponse DIDDocument
func (GetTenantWebDID200JSONResponse) VisitGetTenantWebDIDResponse ¶
func (response GetTenantWebDID200JSONResponse) VisitGetTenantWebDIDResponse(w http.ResponseWriter) error
type GetTenantWebDID404Response ¶
type GetTenantWebDID404Response struct {
}
func (GetTenantWebDID404Response) VisitGetTenantWebDIDResponse ¶
func (response GetTenantWebDID404Response) VisitGetTenantWebDIDResponse(w http.ResponseWriter) error
type GetTenantWebDIDRequestObject ¶
type GetTenantWebDIDRequestObject struct {
Id string `json:"id"`
}
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 GetTenantWebDIDResponseObject ¶
type GetTenantWebDIDResponseObject interface {
VisitGetTenantWebDIDResponse(w http.ResponseWriter) error
}
type HTTPClient ¶
type HTTPClient struct {
core.ClientConfig
TokenGenerator core.AuthorizationTokenGenerator
}
HTTPClient holds the server address and other basic settings for the http client
func (HTTPClient) Create ¶
func (hb HTTPClient) Create(options CreateSubjectOptions) (string, []did.Document, error)
Create calls the server and creates a new DID Document It does not parse a custom id but depends on the server to generate one
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 Documents 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 Documents as a key agreement method.
EncryptionKey bool `json:"encryptionKey"`
}
KeyCreationOptions Options for the key creation.
type ListSubjects200JSONResponse ¶
func (ListSubjects200JSONResponse) VisitListSubjectsResponse ¶
func (response ListSubjects200JSONResponse) VisitListSubjectsResponse(w http.ResponseWriter) error
type ListSubjectsRequestObject ¶
type ListSubjectsRequestObject struct {
}
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 ListSubjectsResponseObject ¶
type ListSubjectsResponseObject interface {
VisitListSubjectsResponse(w http.ResponseWriter) error
}
type ListSubjectsdefaultApplicationProblemPlusJSONResponse ¶
type ListSubjectsdefaultApplicationProblemPlusJSONResponse struct {
Body 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"`
}
StatusCode int
}
func (ListSubjectsdefaultApplicationProblemPlusJSONResponse) VisitListSubjectsResponse ¶
func (response ListSubjectsdefaultApplicationProblemPlusJSONResponse) VisitListSubjectsResponse(w http.ResponseWriter) error
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ResolveDID200JSONResponse ¶
type ResolveDID200JSONResponse DIDResolutionResult
func (ResolveDID200JSONResponse) VisitResolveDIDResponse ¶
func (response ResolveDID200JSONResponse) VisitResolveDIDResponse(w http.ResponseWriter) error
type ResolveDIDRequestObject ¶
type ResolveDIDRequestObject struct {
Did string `json:"did"`
}
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 ResolveDIDResponseObject ¶
type ResolveDIDResponseObject interface {
VisitResolveDIDResponse(w http.ResponseWriter) error
}
type ResolveDIDdefaultApplicationProblemPlusJSONResponse ¶
type ResolveDIDdefaultApplicationProblemPlusJSONResponse struct {
Body 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"`
}
StatusCode int
}
func (ResolveDIDdefaultApplicationProblemPlusJSONResponse) VisitResolveDIDResponse ¶
func (response ResolveDIDdefaultApplicationProblemPlusJSONResponse) VisitResolveDIDResponse(w http.ResponseWriter) error
type ServerInterface ¶
type ServerInterface interface {
// Returns the root did:web DID of this domain.
// (GET /.well-known/did.json)
GetRootWebDID(ctx echo.Context) error
// Returns the did:web DID for the specified tenant.
// (GET /iam/{id}/did.json)
GetTenantWebDID(ctx echo.Context, id string) error
// Resolves a DID document
// (GET /internal/vdr/v2/did/{did})
ResolveDID(ctx echo.Context, did string) error
// Lists all subjects and their DIDs.
// (GET /internal/vdr/v2/subject)
ListSubjects(ctx echo.Context) error
// Creates new DID Documents for a subject.
// (POST /internal/vdr/v2/subject)
CreateSubject(ctx echo.Context) error
// Deactivate all DID Documents for a subject.
// (DELETE /internal/vdr/v2/subject/{id})
Deactivate(ctx echo.Context, id string) error
// Lists all DIDs for a subject
// (GET /internal/vdr/v2/subject/{id})
SubjectDIDs(ctx echo.Context, id string) error
// Find services of a subject
// (GET /internal/vdr/v2/subject/{id}/service)
FindServices(ctx echo.Context, id string, params FindServicesParams) error
// Adds a service to DID documents of a subject.
// (POST /internal/vdr/v2/subject/{id}/service)
CreateService(ctx echo.Context, id string) error
// Delete a specific service from the subject
// (DELETE /internal/vdr/v2/subject/{id}/service/{serviceId})
DeleteService(ctx echo.Context, id string, serviceId string) error
// Updates a service for the subject
// (POST /internal/vdr/v2/subject/{id}/service/{serviceId})
UpdateService(ctx echo.Context, id string, serviceId string) error
// Creates and adds one or more verificationMethods to each DID document in the subject.
// (POST /internal/vdr/v2/subject/{id}/verificationmethod)
AddVerificationMethod(ctx echo.Context, id string) error
}
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
}
ServerInterfaceWrapper converts echo contexts to parameters.
func (*ServerInterfaceWrapper) AddVerificationMethod ¶
func (w *ServerInterfaceWrapper) AddVerificationMethod(ctx echo.Context) error
AddVerificationMethod converts echo context to params.
func (*ServerInterfaceWrapper) CreateService ¶
func (w *ServerInterfaceWrapper) CreateService(ctx echo.Context) error
CreateService converts echo context to params.
func (*ServerInterfaceWrapper) CreateSubject ¶
func (w *ServerInterfaceWrapper) CreateSubject(ctx echo.Context) error
CreateSubject converts echo context to params.
func (*ServerInterfaceWrapper) Deactivate ¶
func (w *ServerInterfaceWrapper) Deactivate(ctx echo.Context) error
Deactivate converts echo context to params.
func (*ServerInterfaceWrapper) DeleteService ¶
func (w *ServerInterfaceWrapper) DeleteService(ctx echo.Context) error
DeleteService converts echo context to params.
func (*ServerInterfaceWrapper) FindServices ¶
func (w *ServerInterfaceWrapper) FindServices(ctx echo.Context) error
FindServices converts echo context to params.
func (*ServerInterfaceWrapper) GetRootWebDID ¶
func (w *ServerInterfaceWrapper) GetRootWebDID(ctx echo.Context) error
GetRootWebDID converts echo context to params.
func (*ServerInterfaceWrapper) GetTenantWebDID ¶
func (w *ServerInterfaceWrapper) GetTenantWebDID(ctx echo.Context) error
GetTenantWebDID converts echo context to params.
func (*ServerInterfaceWrapper) ListSubjects ¶
func (w *ServerInterfaceWrapper) ListSubjects(ctx echo.Context) error
ListSubjects converts echo context to params.
func (*ServerInterfaceWrapper) ResolveDID ¶
func (w *ServerInterfaceWrapper) ResolveDID(ctx echo.Context) error
ResolveDID converts echo context to params.
func (*ServerInterfaceWrapper) SubjectDIDs ¶
func (w *ServerInterfaceWrapper) SubjectDIDs(ctx echo.Context) error
SubjectDIDs converts echo context to params.
func (*ServerInterfaceWrapper) UpdateService ¶
func (w *ServerInterfaceWrapper) UpdateService(ctx echo.Context) error
UpdateService converts echo context to params.
type ServiceRequest ¶
ServiceRequest API definition does not contain an ID, but we alias did.Service here for simplicity
type StrictHandlerFunc ¶
type StrictHandlerFunc = strictecho.StrictEchoHandlerFunc
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc = strictecho.StrictEchoMiddlewareFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// Returns the root did:web DID of this domain.
// (GET /.well-known/did.json)
GetRootWebDID(ctx context.Context, request GetRootWebDIDRequestObject) (GetRootWebDIDResponseObject, error)
// Returns the did:web DID for the specified tenant.
// (GET /iam/{id}/did.json)
GetTenantWebDID(ctx context.Context, request GetTenantWebDIDRequestObject) (GetTenantWebDIDResponseObject, error)
// Resolves a DID document
// (GET /internal/vdr/v2/did/{did})
ResolveDID(ctx context.Context, request ResolveDIDRequestObject) (ResolveDIDResponseObject, error)
// Lists all subjects and their DIDs.
// (GET /internal/vdr/v2/subject)
ListSubjects(ctx context.Context, request ListSubjectsRequestObject) (ListSubjectsResponseObject, error)
// Creates new DID Documents for a subject.
// (POST /internal/vdr/v2/subject)
CreateSubject(ctx context.Context, request CreateSubjectRequestObject) (CreateSubjectResponseObject, error)
// Deactivate all DID Documents for a subject.
// (DELETE /internal/vdr/v2/subject/{id})
Deactivate(ctx context.Context, request DeactivateRequestObject) (DeactivateResponseObject, error)
// Lists all DIDs for a subject
// (GET /internal/vdr/v2/subject/{id})
SubjectDIDs(ctx context.Context, request SubjectDIDsRequestObject) (SubjectDIDsResponseObject, error)
// Find services of a subject
// (GET /internal/vdr/v2/subject/{id}/service)
FindServices(ctx context.Context, request FindServicesRequestObject) (FindServicesResponseObject, error)
// Adds a service to DID documents of a subject.
// (POST /internal/vdr/v2/subject/{id}/service)
CreateService(ctx context.Context, request CreateServiceRequestObject) (CreateServiceResponseObject, error)
// Delete a specific service from the subject
// (DELETE /internal/vdr/v2/subject/{id}/service/{serviceId})
DeleteService(ctx context.Context, request DeleteServiceRequestObject) (DeleteServiceResponseObject, error)
// Updates a service for the subject
// (POST /internal/vdr/v2/subject/{id}/service/{serviceId})
UpdateService(ctx context.Context, request UpdateServiceRequestObject) (UpdateServiceResponseObject, error)
// Creates and adds one or more verificationMethods to each DID document in the subject.
// (POST /internal/vdr/v2/subject/{id}/verificationmethod)
AddVerificationMethod(ctx context.Context, request AddVerificationMethodRequestObject) (AddVerificationMethodResponseObject, error)
}
StrictServerInterface represents all server handlers.
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 subject creation request. Contains the subject and any created DID Documents.
type SubjectDIDs200JSONResponse ¶
type SubjectDIDs200JSONResponse []string
func (SubjectDIDs200JSONResponse) VisitSubjectDIDsResponse ¶
func (response SubjectDIDs200JSONResponse) VisitSubjectDIDsResponse(w http.ResponseWriter) error
type SubjectDIDsRequestObject ¶
type SubjectDIDsRequestObject struct {
Id string `json:"id"`
}
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 SubjectDIDsResponseObject ¶
type SubjectDIDsResponseObject interface {
VisitSubjectDIDsResponse(w http.ResponseWriter) error
}
type SubjectDIDsdefaultApplicationProblemPlusJSONResponse ¶
type SubjectDIDsdefaultApplicationProblemPlusJSONResponse struct {
Body 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"`
}
StatusCode int
}
func (SubjectDIDsdefaultApplicationProblemPlusJSONResponse) VisitSubjectDIDsResponse ¶
func (response SubjectDIDsdefaultApplicationProblemPlusJSONResponse) VisitSubjectDIDsResponse(w http.ResponseWriter) error
type UpdateService200JSONResponse ¶
type UpdateService200JSONResponse []Service
func (UpdateService200JSONResponse) VisitUpdateServiceResponse ¶
func (response UpdateService200JSONResponse) VisitUpdateServiceResponse(w http.ResponseWriter) error
type UpdateServiceJSONRequestBody ¶
type UpdateServiceJSONRequestBody = ServiceRequest
UpdateServiceJSONRequestBody defines body for UpdateService for application/json ContentType.
type UpdateServiceRequestObject ¶
type UpdateServiceRequestObject struct {
Id string `json:"id"`
ServiceId string `json:"serviceId"`
Body *UpdateServiceJSONRequestBody
}
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 UpdateServiceResponseObject ¶
type UpdateServiceResponseObject interface {
VisitUpdateServiceResponse(w http.ResponseWriter) error
}
type UpdateServicedefaultApplicationProblemPlusJSONResponse ¶
type UpdateServicedefaultApplicationProblemPlusJSONResponse struct {
Body 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"`
}
StatusCode int
}
func (UpdateServicedefaultApplicationProblemPlusJSONResponse) VisitUpdateServiceResponse ¶
func (response UpdateServicedefaultApplicationProblemPlusJSONResponse) VisitUpdateServiceResponse(w http.ResponseWriter) error
type VerificationMethod ¶
type VerificationMethod = did.VerificationMethod
VerificationMethod is an alias
type Wrapper ¶
type Wrapper struct {
VDR vdr.VDR
SubjectManager didsubject.Manager
}
Wrapper is needed to connect the implementation to the echo ServiceWrapper
func (*Wrapper) AddVerificationMethod ¶
func (w *Wrapper) AddVerificationMethod(ctx context.Context, request AddVerificationMethodRequestObject) (AddVerificationMethodResponseObject, error)
func (*Wrapper) CreateService ¶
func (w *Wrapper) CreateService(ctx context.Context, request CreateServiceRequestObject) (CreateServiceResponseObject, error)
func (*Wrapper) CreateSubject ¶
func (w *Wrapper) CreateSubject(ctx context.Context, request CreateSubjectRequestObject) (CreateSubjectResponseObject, error)
func (*Wrapper) Deactivate ¶
func (w *Wrapper) Deactivate(ctx context.Context, request DeactivateRequestObject) (DeactivateResponseObject, error)
func (*Wrapper) DeleteService ¶
func (w *Wrapper) DeleteService(ctx context.Context, request DeleteServiceRequestObject) (DeleteServiceResponseObject, error)
func (*Wrapper) FindServices ¶
func (w *Wrapper) FindServices(ctx context.Context, request FindServicesRequestObject) (FindServicesResponseObject, error)
func (Wrapper) GetRootWebDID ¶
func (r Wrapper) GetRootWebDID(ctx context.Context, _ GetRootWebDIDRequestObject) (GetRootWebDIDResponseObject, error)
func (Wrapper) GetTenantWebDID ¶
func (r Wrapper) GetTenantWebDID(ctx context.Context, request GetTenantWebDIDRequestObject) (GetTenantWebDIDResponseObject, error)
func (*Wrapper) ListSubjects ¶
func (w *Wrapper) ListSubjects(ctx context.Context, _ ListSubjectsRequestObject) (ListSubjectsResponseObject, error)
func (*Wrapper) ResolveDID ¶
func (w *Wrapper) ResolveDID(_ context.Context, request ResolveDIDRequestObject) (ResolveDIDResponseObject, error)
func (*Wrapper) ResolveStatusCode ¶
ResolveStatusCode maps errors returned by this API to specific HTTP status codes.
func (*Wrapper) Routes ¶
func (w *Wrapper) Routes(router core.EchoRouter)
func (*Wrapper) SubjectDIDs ¶
func (w *Wrapper) SubjectDIDs(ctx context.Context, request SubjectDIDsRequestObject) (SubjectDIDsResponseObject, error)
func (*Wrapper) UpdateService ¶
func (w *Wrapper) UpdateService(ctx context.Context, request UpdateServiceRequestObject) (UpdateServiceResponseObject, error)