verifiable

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2020 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation struct {
	// contains filtered or unexported fields
}

Operation contains basic common operations provided by controller REST API

func New

func New(p provider) (*Operation, error)

New returns new common operations rest client instance

func (*Operation) GeneratePresentation added in v0.1.3

func (o *Operation) GeneratePresentation(rw http.ResponseWriter, req *http.Request)

GeneratePresentation swagger:route POST /verifiable/presentation/generate verifiable generatePresentationReq

Generates the verifiable presentation from a verifiable credential.

Responses:

default: genericError
    200: presentationRes

func (*Operation) GeneratePresentationByID added in v0.1.3

func (o *Operation) GeneratePresentationByID(rw http.ResponseWriter, req *http.Request)

GeneratePresentationByID swagger:route POST /verifiable/presentation/generatebyid verifiable PresentationRequestByID model

Generates the verifiable presentation from a stored verifiable credential.

Responses:

default: genericError
    200: presentationRes

func (*Operation) GetCredential

func (o *Operation) GetCredential(rw http.ResponseWriter, req *http.Request)

GetCredential swagger:route GET /verifiable/credential/{id} verifiable getCredentialReq

Retrieves the verifiable credential.

Responses:

default: genericError
    200: credentialRes

func (*Operation) GetCredentialByName added in v0.1.3

func (o *Operation) GetCredentialByName(rw http.ResponseWriter, req *http.Request)

GetCredentialByName swagger:route GET /verifiable/credential/name/{name} verifiable getCredentialByNameReq

Retrieves the verifiable credential by name.

Responses:

default: genericError
    200: credentialRecord

func (*Operation) GetCredentials added in v0.1.3

func (o *Operation) GetCredentials(rw http.ResponseWriter, req *http.Request)

GetCredentials swagger:route GET /verifiable/credentials verifiable getCredentials

Retrieves the verifiable credentials.

Responses:

default: genericError
    200: credentialRecordResult

func (*Operation) GetPresentation added in v0.1.3

func (o *Operation) GetPresentation(rw http.ResponseWriter, req *http.Request)

GetPresentation swagger:route GET /verifiable/presentation/{id} verifiable getPresentationReq

Retrieves the verifiable presentation.

Responses:

default: genericError
    200: presentationRes

func (*Operation) GetPresentations added in v0.1.3

func (o *Operation) GetPresentations(rw http.ResponseWriter, req *http.Request)

GetPresentations swagger:route GET /verifiable/presentations verifiable

Retrieves the verifiable credentials.

Responses:

default: genericError
    200: presentationRecordResult

func (*Operation) GetRESTHandlers

func (o *Operation) GetRESTHandlers() []rest.Handler

GetRESTHandlers get all controller API handler available for this service

func (*Operation) SaveCredential

func (o *Operation) SaveCredential(rw http.ResponseWriter, req *http.Request)

SaveCredential swagger:route POST /verifiable/credential verifiable saveCredentialReq

Saves the verifiable credential.

Responses:

default: genericError
    200: emptyRes

func (*Operation) SavePresentation added in v0.1.3

func (o *Operation) SavePresentation(rw http.ResponseWriter, req *http.Request)

SavePresentation swagger:route POST /verifiable/presentation verifiable savePresentationReq

Saves the verifiable presentation.

Responses:

default: genericError
    200: emptyRes

func (*Operation) ValidateCredential

func (o *Operation) ValidateCredential(rw http.ResponseWriter, req *http.Request)

ValidateCredential swagger:route POST /verifiable/credential/validate verifiable validateCredentialReq

Validates the verifiable credential.

Responses:

default: genericError
    200: emptyRes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL