presentproof

package
v0.1.6-0...-5c25bcb Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperationID                  = "/presentproof"
	Actions                      = OperationID + "/actions"
	SendRequestPresentation      = OperationID + "/send-request-presentation"
	SendProposePresentation      = OperationID + "/send-propose-presentation"
	AcceptRequestPresentation    = OperationID + "/{piid}/accept-request-presentation"
	NegotiateRequestPresentation = OperationID + "/{piid}/negotiate-request-presentation"
	DeclineRequestPresentation   = OperationID + "/{piid}/decline-request-presentation"
	AcceptProposePresentation    = OperationID + "/{piid}/accept-propose-presentation"
	DeclineProposePresentation   = OperationID + "/{piid}/decline-propose-presentation"
	AcceptPresentation           = OperationID + "/{piid}/accept-presentation"
	DeclinePresentation          = OperationID + "/{piid}/decline-presentation"
	AcceptProblemReport          = OperationID + "/{piid}/accept-problem-report"
)

constants for PresentProof operations.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

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

Operation is controller REST service controller for present proof.

func New

func New(ctx client.Provider, notifier command.Notifier) (*Operation, error)

New returns new present proof rest client protocol instance.

func (*Operation) AcceptPresentation

func (c *Operation) AcceptPresentation(rw http.ResponseWriter, req *http.Request)

AcceptPresentation swagger:route POST /presentproof/{piid}/accept-presentation present-proof presentProofAcceptPresentation

Accepts a presentation.

Responses:

default: genericError
    200: presentProofAcceptPresentationResponse

func (*Operation) AcceptProblemReport

func (c *Operation) AcceptProblemReport(rw http.ResponseWriter, req *http.Request)

AcceptProblemReport swagger:route POST /presentproof/{piid}/accept-problem-report present-proof presentProofAcceptProblemReport

Accepts a problem report.

Responses:

default: genericError
    200: presentProofAcceptProblemReportResponse

func (*Operation) AcceptProposePresentation

func (c *Operation) AcceptProposePresentation(rw http.ResponseWriter, req *http.Request)

AcceptProposePresentation swagger:route POST /presentproof/{piid}/accept-propose-presentation present-proof presentProofAcceptProposePresentation

Accepts a propose presentation.

Responses:

default: genericError
    200: presentProofAcceptProposePresentationResponse

func (*Operation) AcceptRequestPresentation

func (c *Operation) AcceptRequestPresentation(rw http.ResponseWriter, req *http.Request)

AcceptRequestPresentation swagger:route POST /presentproof/{piid}/accept-request-presentation present-proof presentProofAcceptRequestPresentation

Accepts a request presentation.

Responses:

default: genericError
    200: presentProofAcceptRequestPresentationResponse

func (*Operation) Actions

func (c *Operation) Actions(rw http.ResponseWriter, _ *http.Request)

Actions swagger:route GET /presentproof/actions present-proof presentProofActions

Returns pending actions that have not yet to be executed or cancelled.

Responses:

default: genericError
    200: presentProofActionsResponse

func (*Operation) DeclinePresentation

func (c *Operation) DeclinePresentation(rw http.ResponseWriter, req *http.Request)

DeclinePresentation swagger:route POST /presentproof/{piid}/decline-presentation present-proof presentProofDeclinePresentation

Declines a presentation.

Responses:

default: genericError
    200: presentProofDeclinePresentationResponse

func (*Operation) DeclineProposePresentation

func (c *Operation) DeclineProposePresentation(rw http.ResponseWriter, req *http.Request)

DeclineProposePresentation swagger:route POST /presentproof/{piid}/decline-propose-presentation present-proof presentProofDeclineProposePresentation

Declines a propose presentation.

Responses:

default: genericError
    200: presentProofDeclineProposePresentationResponse

func (*Operation) DeclineRequestPresentation

func (c *Operation) DeclineRequestPresentation(rw http.ResponseWriter, req *http.Request)

DeclineRequestPresentation swagger:route POST /presentproof/{piid}/decline-request-presentation present-proof presentProofDeclineRequestPresentation

Declines a request presentation.

Responses:

default: genericError
    200: presentProofDeclineRequestPresentationResponse

func (*Operation) GetRESTHandlers

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

GetRESTHandlers get all controller API handler available for this protocol service.

func (*Operation) NegotiateRequestPresentation

func (c *Operation) NegotiateRequestPresentation(rw http.ResponseWriter, req *http.Request)

NegotiateRequestPresentation swagger:route POST /presentproof/{piid}/negotiate-request-presentation present-proof presentProofNegotiateRequestPresentation

Is used by the Prover to counter a presentation request they received with a proposal.

Responses:

default: genericError
    200: presentProofNegotiateRequestPresentationResponse

func (*Operation) SendProposePresentation

func (c *Operation) SendProposePresentation(rw http.ResponseWriter, req *http.Request)

SendProposePresentation swagger:route POST /presentproof/send-propose-presentation present-proof presentProofSendProposePresentation

Sends a propose presentation.

Responses:

default: genericError
    200: presentProofSendProposePresentationResponse

func (*Operation) SendRequestPresentation

func (c *Operation) SendRequestPresentation(rw http.ResponseWriter, req *http.Request)

SendRequestPresentation swagger:route POST /presentproof/send-request-presentation present-proof presentProofSendRequestPresentation

Sends a request presentation.

Responses:

default: genericError
    200: presentProofSendRequestPresentationResponse

Jump to

Keyboard shortcuts

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