verifiable

package
v0.1.3-0...-617a0de Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

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

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

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

GeneratePresentationByID swagger:route GET /verifiable/credential/{id}/presentation verifiable presentationByIDReq

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

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

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) 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) 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