Documentation ¶
Index ¶
- Constants
- type Operation
- func (c *Operation) AcceptCredential(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) AcceptOffer(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) AcceptProblemReport(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) AcceptProposal(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) AcceptRequest(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) Actions(rw http.ResponseWriter, _ *http.Request)
- func (c *Operation) DeclineCredential(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) DeclineOffer(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) DeclineProposal(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) DeclineRequest(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) GetRESTHandlers() []rest.Handler
- func (c *Operation) NegotiateProposal(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) SendOffer(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) SendProposal(rw http.ResponseWriter, req *http.Request)
- func (c *Operation) SendRequest(rw http.ResponseWriter, req *http.Request)
Constants ¶
const ( OperationID = "/issuecredential" OperationIDV3 = OperationID + "/v3" Actions = OperationID + "/actions" SendOffer = OperationID + "/send-offer" SendOfferV3 = OperationIDV3 + "/send-offer" SendProposal = OperationID + "/send-proposal" SendProposalV3 = OperationIDV3 + "/send-proposal" SendRequest = OperationID + "/send-request" SendRequestV3 = OperationIDV3 + "/send-request" AcceptProposal = OperationID + "/{piid}/accept-proposal" AcceptProposalV3 = OperationIDV3 + "/{piid}/accept-proposal" DeclineProposal = OperationID + "/{piid}/decline-proposal" AcceptOffer = OperationID + "/{piid}/accept-offer" DeclineOffer = OperationID + "/{piid}/decline-offer" NegotiateProposal = OperationID + "/{piid}/negotiate-proposal" NegotiateProposalV3 = OperationIDV3 + "/{piid}/negotiate-proposal" AcceptRequest = OperationID + "/{piid}/accept-request" AcceptRequestV3 = OperationIDV3 + "/{piid}/accept-request" DeclineRequest = OperationID + "/{piid}/decline-request" AcceptCredential = OperationID + "/{piid}/accept-credential" DeclineCredential = OperationID + "/{piid}/decline-credential" AcceptProblemReport = OperationID + "/{piid}/accept-problem-report" )
constants for issue credential endpoints.
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 issue credential.
func New ¶
func New(ctx issuecredential.Provider, notifier command.Notifier, enableRFC0593 rfc0593.Provider) (*Operation, error)
New returns new issue credential rest client protocol instance.
func (*Operation) AcceptCredential ¶
func (c *Operation) AcceptCredential(rw http.ResponseWriter, req *http.Request)
AcceptCredential swagger:route POST /issuecredential/{piid}/accept-credential issue-credential issueCredentialAcceptCredential
Accepts a credential.
Responses:
default: genericError 200: issueCredentialAcceptCredentialResponse
func (*Operation) AcceptOffer ¶
func (c *Operation) AcceptOffer(rw http.ResponseWriter, req *http.Request)
AcceptOffer swagger:route POST /issuecredential/{piid}/accept-offer issue-credential issueCredentialAcceptOffer
Accepts an offer.
Responses:
default: genericError 200: issueCredentialAcceptOfferResponse
func (*Operation) AcceptProblemReport ¶
func (c *Operation) AcceptProblemReport(rw http.ResponseWriter, req *http.Request)
AcceptProblemReport swagger:route POST /issuecredential/{piid}/accept-problem-report issue-credential issueCredentialAcceptProblemReport
Accepts a problem report.
Responses:
default: genericError 200: issueCredentialAcceptProblemReportResponse
func (*Operation) AcceptProposal ¶
func (c *Operation) AcceptProposal(rw http.ResponseWriter, req *http.Request)
AcceptProposal swagger:route POST /issuecredential/{piid}/accept-proposal issue-credential issueCredentialAcceptProposal
Accepts a proposal.
Responses:
default: genericError 200: issueCredentialAcceptProposalResponse
func (*Operation) AcceptRequest ¶
func (c *Operation) AcceptRequest(rw http.ResponseWriter, req *http.Request)
AcceptRequest swagger:route POST /issuecredential/{piid}/accept-request issue-credential issueCredentialAcceptRequest
Accepts a request.
Responses:
default: genericError 200: issueCredentialAcceptRequestResponse
func (*Operation) Actions ¶
func (c *Operation) Actions(rw http.ResponseWriter, _ *http.Request)
Actions swagger:route GET /issuecredential/actions issue-credential issueCredentialActions
Returns pending actions that have not yet to be executed or cancelled.
Responses:
default: genericError 200: issueCredentialActionsResponse
func (*Operation) DeclineCredential ¶
func (c *Operation) DeclineCredential(rw http.ResponseWriter, req *http.Request)
DeclineCredential swagger:route POST /issuecredential/{piid}/decline-credential issue-credential issueCredentialDeclineCredential
Declines a credential.
Responses:
default: genericError 200: issueCredentialDeclineCredentialResponse
func (*Operation) DeclineOffer ¶
func (c *Operation) DeclineOffer(rw http.ResponseWriter, req *http.Request)
DeclineOffer swagger:route POST /issuecredential/{piid}/decline-offer issue-credential issueCredentialDeclineOffer
Declines an offer.
Responses:
default: genericError 200: issueCredentialDeclineOfferResponse
func (*Operation) DeclineProposal ¶
func (c *Operation) DeclineProposal(rw http.ResponseWriter, req *http.Request)
DeclineProposal swagger:route POST /issuecredential/{piid}/decline-proposal issue-credential issueCredentialDeclineProposal
Declines a proposal.
Responses:
default: genericError 200: issueCredentialDeclineProposalResponse
func (*Operation) DeclineRequest ¶
func (c *Operation) DeclineRequest(rw http.ResponseWriter, req *http.Request)
DeclineRequest swagger:route POST /issuecredential/{piid}/decline-request issue-credential issueCredentialDeclineRequest
Declines a request.
Responses:
default: genericError 200: issueCredentialDeclineRequestResponse
func (*Operation) GetRESTHandlers ¶
GetRESTHandlers get all controller API handler available for this protocol service.
func (*Operation) NegotiateProposal ¶
func (c *Operation) NegotiateProposal(rw http.ResponseWriter, req *http.Request)
NegotiateProposal swagger:route POST /issuecredential/{piid}/negotiate-proposal issue-credential issueCredentialNegotiateProposal
Is used when the Holder wants to negotiate about an offer he received.
Responses:
default: genericError 200: issueCredentialNegotiateProposalResponse
func (*Operation) SendOffer ¶
func (c *Operation) SendOffer(rw http.ResponseWriter, req *http.Request)
SendOffer swagger:route POST /issuecredential/send-offer issue-credential issueCredentialSendOffer
Sends an offer.
Responses:
default: genericError 200: issueCredentialSendOfferResponse
func (*Operation) SendProposal ¶
func (c *Operation) SendProposal(rw http.ResponseWriter, req *http.Request)
SendProposal swagger:route POST /issuecredential/send-proposal issue-credential issueCredentialSendProposal
Sends a proposal.
Responses:
default: genericError 200: issueCredentialSendProposalResponse
func (*Operation) SendRequest ¶
func (c *Operation) SendRequest(rw http.ResponseWriter, req *http.Request)
SendRequest swagger:route POST /issuecredential/send-request issue-credential issueCredentialSendRequest
Sends a request.
Responses:
default: genericError 200: issueCredentialSendRequestResponse