outofband

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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperationID      = "/outofband"
	CreateRequest    = OperationID + "/create-request"
	CreateInvitation = OperationID + "/create-invitation"
	AcceptRequest    = OperationID + "/accept-request"
	AcceptInvitation = OperationID + "/accept-invitation"
	Actions          = OperationID + "/actions"
	ActionContinue   = OperationID + "/{piid}/action-continue"
	ActionStop       = OperationID + "/{piid}/action-stop"
)

constants for the OutOfBand protocol 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 outofband.

func New

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

New returns new outofband rest client protocol instance.

func (*Operation) AcceptInvitation

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

AcceptInvitation swagger:route POST /outofband/accept-invitation outofband outofbandAcceptInvitation

Accepts an invitation.

Responses:

default: genericError
    200: outofbandAcceptInvitationResponse

func (*Operation) AcceptRequest

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

AcceptRequest swagger:route POST /outofband/accept-request outofband outofbandAcceptRequest

Accepts a request.

Responses:

default: genericError
    200: outofbandAcceptRequestResponse

func (*Operation) ActionContinue

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

ActionContinue swagger:route POST /outofband/{piid}/action-continue outofband outofbandActionContinue

Allows continuing with the protocol after an action event was triggered.

Responses:

default: genericError
    200: outofbandActionContinueResponse

func (*Operation) ActionStop

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

ActionStop swagger:route POST /outofband/{piid}/action-stop outofband outofbandActionStop

Stops the protocol after an action event was triggered.

Responses:

default: genericError
    200: outofbandActionStopResponse

func (*Operation) Actions

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

Actions swagger:route GET /outofband/actions outofband outofbandActions

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

Responses:

default: genericError
    200: outofbandActionsResponse

func (*Operation) CreateInvitation

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

CreateInvitation swagger:route POST /outofband/create-invitation outofband outofbandCreateInvitation

Creates an invitation.

Responses:

default: genericError
    200: outofbandCreateInvitationResponse

func (*Operation) CreateRequest

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

CreateRequest swagger:route POST /outofband/create-request outofband outofbandCreateRequest

Creates a request.

Responses:

default: genericError
    200: outofbandCreateRequestResponse

func (*Operation) GetRESTHandlers

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

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

Jump to

Keyboard shortcuts

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