runner

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const GetRunBadRequestCode int = 400

GetRunBadRequestCode is the HTTP code returned for type GetRunBadRequest

View Source
const GetRunForbiddenCode int = 403

GetRunForbiddenCode is the HTTP code returned for type GetRunForbidden

View Source
const GetRunNotFoundCode int = 404

GetRunNotFoundCode is the HTTP code returned for type GetRunNotFound

View Source
const GetRunOKCode int = 200

GetRunOKCode is the HTTP code returned for type GetRunOK

View Source
const GetRunUnauthorizedCode int = 401

GetRunUnauthorizedCode is the HTTP code returned for type GetRunUnauthorized

View Source
const GetRunsBadRequestCode int = 400

GetRunsBadRequestCode is the HTTP code returned for type GetRunsBadRequest

View Source
const GetRunsForbiddenCode int = 403

GetRunsForbiddenCode is the HTTP code returned for type GetRunsForbidden

View Source
const GetRunsNotFoundCode int = 404

GetRunsNotFoundCode is the HTTP code returned for type GetRunsNotFound

View Source
const GetRunsOKCode int = 200

GetRunsOKCode is the HTTP code returned for type GetRunsOK

View Source
const GetRunsUnauthorizedCode int = 401

GetRunsUnauthorizedCode is the HTTP code returned for type GetRunsUnauthorized

View Source
const RunFunctionAcceptedCode int = 202

RunFunctionAcceptedCode is the HTTP code returned for type RunFunctionAccepted

View Source
const RunFunctionBadGatewayCode int = 502

RunFunctionBadGatewayCode is the HTTP code returned for type RunFunctionBadGateway

View Source
const RunFunctionBadRequestCode int = 400

RunFunctionBadRequestCode is the HTTP code returned for type RunFunctionBadRequest

View Source
const RunFunctionForbiddenCode int = 403

RunFunctionForbiddenCode is the HTTP code returned for type RunFunctionForbidden

View Source
const RunFunctionNotFoundCode int = 404

RunFunctionNotFoundCode is the HTTP code returned for type RunFunctionNotFound

View Source
const RunFunctionOKCode int = 200

RunFunctionOKCode is the HTTP code returned for type RunFunctionOK

View Source
const RunFunctionUnauthorizedCode int = 401

RunFunctionUnauthorizedCode is the HTTP code returned for type RunFunctionUnauthorized

View Source
const RunFunctionUnprocessableEntityCode int = 422

RunFunctionUnprocessableEntityCode is the HTTP code returned for type RunFunctionUnprocessableEntity

Variables

This section is empty.

Functions

This section is empty.

Types

type GetRun

type GetRun struct {
	Context *middleware.Context
	Handler GetRunHandler
}

GetRun swagger:route GET /runs/{runName} Runner getRun

Get function run by its name

func NewGetRun

func NewGetRun(ctx *middleware.Context, handler GetRunHandler) *GetRun

NewGetRun creates a new http.Handler for the get run operation

func (*GetRun) ServeHTTP

func (o *GetRun) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetRunBadRequest added in v0.1.13

type GetRunBadRequest struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetRunBadRequest Bad Request

swagger:response getRunBadRequest

func NewGetRunBadRequest added in v0.1.13

func NewGetRunBadRequest() *GetRunBadRequest

NewGetRunBadRequest creates GetRunBadRequest with default headers values

func (*GetRunBadRequest) SetPayload added in v0.1.13

func (o *GetRunBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get run bad request response

func (*GetRunBadRequest) WithPayload added in v0.1.13

func (o *GetRunBadRequest) WithPayload(payload *v1.Error) *GetRunBadRequest

WithPayload adds the payload to the get run bad request response

func (*GetRunBadRequest) WriteResponse added in v0.1.13

func (o *GetRunBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRunDefault added in v0.1.18

type GetRunDefault struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetRunDefault Unknown error

swagger:response getRunDefault

func NewGetRunDefault added in v0.1.18

func NewGetRunDefault(code int) *GetRunDefault

NewGetRunDefault creates GetRunDefault with default headers values

func (*GetRunDefault) SetPayload added in v0.1.18

func (o *GetRunDefault) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get run default response

func (*GetRunDefault) SetStatusCode added in v0.1.18

func (o *GetRunDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get run default response

func (*GetRunDefault) WithPayload added in v0.1.18

func (o *GetRunDefault) WithPayload(payload *v1.Error) *GetRunDefault

WithPayload adds the payload to the get run default response

func (*GetRunDefault) WithStatusCode added in v0.1.18

func (o *GetRunDefault) WithStatusCode(code int) *GetRunDefault

WithStatusCode adds the status to the get run default response

func (*GetRunDefault) WriteResponse added in v0.1.18

func (o *GetRunDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRunForbidden added in v0.1.18

type GetRunForbidden struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetRunForbidden access to this resource is forbidden

swagger:response getRunForbidden

func NewGetRunForbidden added in v0.1.18

func NewGetRunForbidden() *GetRunForbidden

NewGetRunForbidden creates GetRunForbidden with default headers values

func (*GetRunForbidden) SetPayload added in v0.1.18

func (o *GetRunForbidden) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get run forbidden response

func (*GetRunForbidden) WithPayload added in v0.1.18

func (o *GetRunForbidden) WithPayload(payload *v1.Error) *GetRunForbidden

WithPayload adds the payload to the get run forbidden response

func (*GetRunForbidden) WriteResponse added in v0.1.18

func (o *GetRunForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRunHandler

type GetRunHandler interface {
	Handle(GetRunParams, interface{}) middleware.Responder
}

GetRunHandler interface for that can handle valid get run params

type GetRunHandlerFunc

type GetRunHandlerFunc func(GetRunParams, interface{}) middleware.Responder

GetRunHandlerFunc turns a function with the right signature into a get run handler

func (GetRunHandlerFunc) Handle

func (fn GetRunHandlerFunc) Handle(params GetRunParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetRunNotFound

type GetRunNotFound struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetRunNotFound Function or Run not found

swagger:response getRunNotFound

func NewGetRunNotFound

func NewGetRunNotFound() *GetRunNotFound

NewGetRunNotFound creates GetRunNotFound with default headers values

func (*GetRunNotFound) SetPayload

func (o *GetRunNotFound) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get run not found response

func (*GetRunNotFound) WithPayload

func (o *GetRunNotFound) WithPayload(payload *v1.Error) *GetRunNotFound

WithPayload adds the payload to the get run not found response

func (*GetRunNotFound) WriteResponse

func (o *GetRunNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRunOK

type GetRunOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Run `json:"body,omitempty"`
}

GetRunOK Function Run

swagger:response getRunOK

func NewGetRunOK

func NewGetRunOK() *GetRunOK

NewGetRunOK creates GetRunOK with default headers values

func (*GetRunOK) SetPayload

func (o *GetRunOK) SetPayload(payload *v1.Run)

SetPayload sets the payload to the get run o k response

func (*GetRunOK) WithPayload

func (o *GetRunOK) WithPayload(payload *v1.Run) *GetRunOK

WithPayload adds the payload to the get run o k response

func (*GetRunOK) WriteResponse

func (o *GetRunOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRunParams

type GetRunParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*Name of function to retreive a run for
	  Pattern: ^[\w\d\-]+$
	  In: query
	*/
	FunctionName *string
	/*name of run to retrieve
	  Required: true
	  In: path
	*/
	RunName strfmt.UUID
	/*Retreive runs modified since given Unix time
	  In: query
	*/
	Since *int64
	/*Filter based on tags
	  In: query
	  Collection Format: multi
	*/
	Tags []string
}

GetRunParams contains all the bound params for the get run operation typically these are obtained from a http.Request

swagger:parameters getRun

func NewGetRunParams

func NewGetRunParams() GetRunParams

NewGetRunParams creates a new GetRunParams object no default values defined in spec.

func (*GetRunParams) BindRequest

func (o *GetRunParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetRunParams() beforehand.

type GetRunURL

type GetRunURL struct {
	RunName strfmt.UUID

	FunctionName *string
	Since        *int64
	Tags         []string
	// contains filtered or unexported fields
}

GetRunURL generates an URL for the get run operation

func (*GetRunURL) Build

func (o *GetRunURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetRunURL) BuildFull

func (o *GetRunURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetRunURL) Must

func (o *GetRunURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetRunURL) SetBasePath

func (o *GetRunURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetRunURL) String

func (o *GetRunURL) String() string

String returns the string representation of the path with query string

func (*GetRunURL) StringFull

func (o *GetRunURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetRunURL) WithBasePath

func (o *GetRunURL) WithBasePath(bp string) *GetRunURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetRunUnauthorized added in v0.1.18

type GetRunUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetRunUnauthorized Unauthorized Request

swagger:response getRunUnauthorized

func NewGetRunUnauthorized added in v0.1.18

func NewGetRunUnauthorized() *GetRunUnauthorized

NewGetRunUnauthorized creates GetRunUnauthorized with default headers values

func (*GetRunUnauthorized) SetPayload added in v0.1.18

func (o *GetRunUnauthorized) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get run unauthorized response

func (*GetRunUnauthorized) WithPayload added in v0.1.18

func (o *GetRunUnauthorized) WithPayload(payload *v1.Error) *GetRunUnauthorized

WithPayload adds the payload to the get run unauthorized response

func (*GetRunUnauthorized) WriteResponse added in v0.1.18

func (o *GetRunUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRuns

type GetRuns struct {
	Context *middleware.Context
	Handler GetRunsHandler
}

GetRuns swagger:route GET /runs Runner getRuns

Get function runs that are being executed

func NewGetRuns

func NewGetRuns(ctx *middleware.Context, handler GetRunsHandler) *GetRuns

NewGetRuns creates a new http.Handler for the get runs operation

func (*GetRuns) ServeHTTP

func (o *GetRuns) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetRunsBadRequest added in v0.1.13

type GetRunsBadRequest struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetRunsBadRequest Invalid input

swagger:response getRunsBadRequest

func NewGetRunsBadRequest added in v0.1.13

func NewGetRunsBadRequest() *GetRunsBadRequest

NewGetRunsBadRequest creates GetRunsBadRequest with default headers values

func (*GetRunsBadRequest) SetPayload added in v0.1.13

func (o *GetRunsBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get runs bad request response

func (*GetRunsBadRequest) WithPayload added in v0.1.13

func (o *GetRunsBadRequest) WithPayload(payload *v1.Error) *GetRunsBadRequest

WithPayload adds the payload to the get runs bad request response

func (*GetRunsBadRequest) WriteResponse added in v0.1.13

func (o *GetRunsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRunsDefault added in v0.1.18

type GetRunsDefault struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetRunsDefault Unknown error

swagger:response getRunsDefault

func NewGetRunsDefault added in v0.1.18

func NewGetRunsDefault(code int) *GetRunsDefault

NewGetRunsDefault creates GetRunsDefault with default headers values

func (*GetRunsDefault) SetPayload added in v0.1.18

func (o *GetRunsDefault) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get runs default response

func (*GetRunsDefault) SetStatusCode added in v0.1.18

func (o *GetRunsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get runs default response

func (*GetRunsDefault) WithPayload added in v0.1.18

func (o *GetRunsDefault) WithPayload(payload *v1.Error) *GetRunsDefault

WithPayload adds the payload to the get runs default response

func (*GetRunsDefault) WithStatusCode added in v0.1.18

func (o *GetRunsDefault) WithStatusCode(code int) *GetRunsDefault

WithStatusCode adds the status to the get runs default response

func (*GetRunsDefault) WriteResponse added in v0.1.18

func (o *GetRunsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRunsForbidden added in v0.1.18

type GetRunsForbidden struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetRunsForbidden access to this resource is forbidden

swagger:response getRunsForbidden

func NewGetRunsForbidden added in v0.1.18

func NewGetRunsForbidden() *GetRunsForbidden

NewGetRunsForbidden creates GetRunsForbidden with default headers values

func (*GetRunsForbidden) SetPayload added in v0.1.18

func (o *GetRunsForbidden) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get runs forbidden response

func (*GetRunsForbidden) WithPayload added in v0.1.18

func (o *GetRunsForbidden) WithPayload(payload *v1.Error) *GetRunsForbidden

WithPayload adds the payload to the get runs forbidden response

func (*GetRunsForbidden) WriteResponse added in v0.1.18

func (o *GetRunsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRunsHandler

type GetRunsHandler interface {
	Handle(GetRunsParams, interface{}) middleware.Responder
}

GetRunsHandler interface for that can handle valid get runs params

type GetRunsHandlerFunc

type GetRunsHandlerFunc func(GetRunsParams, interface{}) middleware.Responder

GetRunsHandlerFunc turns a function with the right signature into a get runs handler

func (GetRunsHandlerFunc) Handle

func (fn GetRunsHandlerFunc) Handle(params GetRunsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetRunsNotFound

type GetRunsNotFound struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetRunsNotFound Function not found

swagger:response getRunsNotFound

func NewGetRunsNotFound

func NewGetRunsNotFound() *GetRunsNotFound

NewGetRunsNotFound creates GetRunsNotFound with default headers values

func (*GetRunsNotFound) SetPayload

func (o *GetRunsNotFound) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get runs not found response

func (*GetRunsNotFound) WithPayload

func (o *GetRunsNotFound) WithPayload(payload *v1.Error) *GetRunsNotFound

WithPayload adds the payload to the get runs not found response

func (*GetRunsNotFound) WriteResponse

func (o *GetRunsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRunsOK

type GetRunsOK struct {

	/*
	  In: Body
	*/
	Payload []*v1.Run `json:"body,omitempty"`
}

GetRunsOK List of function runs

swagger:response getRunsOK

func NewGetRunsOK

func NewGetRunsOK() *GetRunsOK

NewGetRunsOK creates GetRunsOK with default headers values

func (*GetRunsOK) SetPayload

func (o *GetRunsOK) SetPayload(payload []*v1.Run)

SetPayload sets the payload to the get runs o k response

func (*GetRunsOK) WithPayload

func (o *GetRunsOK) WithPayload(payload []*v1.Run) *GetRunsOK

WithPayload adds the payload to the get runs o k response

func (*GetRunsOK) WriteResponse

func (o *GetRunsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRunsParams

type GetRunsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*Name of function to run or retreive runs for
	  Pattern: ^[\w\d\-]+$
	  In: query
	*/
	FunctionName *string
	/*Retreive runs modified since given Unix time
	  In: query
	*/
	Since *int64
	/*Filter based on tags
	  In: query
	  Collection Format: multi
	*/
	Tags []string
}

GetRunsParams contains all the bound params for the get runs operation typically these are obtained from a http.Request

swagger:parameters getRuns

func NewGetRunsParams

func NewGetRunsParams() GetRunsParams

NewGetRunsParams creates a new GetRunsParams object no default values defined in spec.

func (*GetRunsParams) BindRequest

func (o *GetRunsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetRunsParams() beforehand.

type GetRunsURL

type GetRunsURL struct {
	FunctionName *string
	Since        *int64
	Tags         []string
	// contains filtered or unexported fields
}

GetRunsURL generates an URL for the get runs operation

func (*GetRunsURL) Build

func (o *GetRunsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetRunsURL) BuildFull

func (o *GetRunsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetRunsURL) Must

func (o *GetRunsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetRunsURL) SetBasePath

func (o *GetRunsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetRunsURL) String

func (o *GetRunsURL) String() string

String returns the string representation of the path with query string

func (*GetRunsURL) StringFull

func (o *GetRunsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetRunsURL) WithBasePath

func (o *GetRunsURL) WithBasePath(bp string) *GetRunsURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetRunsUnauthorized added in v0.1.18

type GetRunsUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetRunsUnauthorized Unauthorized Request

swagger:response getRunsUnauthorized

func NewGetRunsUnauthorized added in v0.1.18

func NewGetRunsUnauthorized() *GetRunsUnauthorized

NewGetRunsUnauthorized creates GetRunsUnauthorized with default headers values

func (*GetRunsUnauthorized) SetPayload added in v0.1.18

func (o *GetRunsUnauthorized) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get runs unauthorized response

func (*GetRunsUnauthorized) WithPayload added in v0.1.18

func (o *GetRunsUnauthorized) WithPayload(payload *v1.Error) *GetRunsUnauthorized

WithPayload adds the payload to the get runs unauthorized response

func (*GetRunsUnauthorized) WriteResponse added in v0.1.18

func (o *GetRunsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RunFunction

type RunFunction struct {
	Context *middleware.Context
	Handler RunFunctionHandler
}

RunFunction swagger:route POST /runs Runner runFunction

Run a function

func NewRunFunction

func NewRunFunction(ctx *middleware.Context, handler RunFunctionHandler) *RunFunction

NewRunFunction creates a new http.Handler for the run function operation

func (*RunFunction) ServeHTTP

func (o *RunFunction) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type RunFunctionAccepted

type RunFunctionAccepted struct {

	/*
	  In: Body
	*/
	Payload *v1.Run `json:"body,omitempty"`
}

RunFunctionAccepted Execution started (non-blocking call)

swagger:response runFunctionAccepted

func NewRunFunctionAccepted

func NewRunFunctionAccepted() *RunFunctionAccepted

NewRunFunctionAccepted creates RunFunctionAccepted with default headers values

func (*RunFunctionAccepted) SetPayload

func (o *RunFunctionAccepted) SetPayload(payload *v1.Run)

SetPayload sets the payload to the run function accepted response

func (*RunFunctionAccepted) WithPayload

func (o *RunFunctionAccepted) WithPayload(payload *v1.Run) *RunFunctionAccepted

WithPayload adds the payload to the run function accepted response

func (*RunFunctionAccepted) WriteResponse

func (o *RunFunctionAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RunFunctionBadGateway

type RunFunctionBadGateway struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

RunFunctionBadGateway Function error occurred (blocking call)

swagger:response runFunctionBadGateway

func NewRunFunctionBadGateway

func NewRunFunctionBadGateway() *RunFunctionBadGateway

NewRunFunctionBadGateway creates RunFunctionBadGateway with default headers values

func (*RunFunctionBadGateway) SetPayload

func (o *RunFunctionBadGateway) SetPayload(payload *v1.Error)

SetPayload sets the payload to the run function bad gateway response

func (*RunFunctionBadGateway) WithPayload

func (o *RunFunctionBadGateway) WithPayload(payload *v1.Error) *RunFunctionBadGateway

WithPayload adds the payload to the run function bad gateway response

func (*RunFunctionBadGateway) WriteResponse

func (o *RunFunctionBadGateway) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RunFunctionBadRequest

type RunFunctionBadRequest struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

RunFunctionBadRequest User error

swagger:response runFunctionBadRequest

func NewRunFunctionBadRequest

func NewRunFunctionBadRequest() *RunFunctionBadRequest

NewRunFunctionBadRequest creates RunFunctionBadRequest with default headers values

func (*RunFunctionBadRequest) SetPayload

func (o *RunFunctionBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the run function bad request response

func (*RunFunctionBadRequest) WithPayload

func (o *RunFunctionBadRequest) WithPayload(payload *v1.Error) *RunFunctionBadRequest

WithPayload adds the payload to the run function bad request response

func (*RunFunctionBadRequest) WriteResponse

func (o *RunFunctionBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RunFunctionDefault added in v0.1.18

type RunFunctionDefault struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

RunFunctionDefault Unknown error

swagger:response runFunctionDefault

func NewRunFunctionDefault added in v0.1.18

func NewRunFunctionDefault(code int) *RunFunctionDefault

NewRunFunctionDefault creates RunFunctionDefault with default headers values

func (*RunFunctionDefault) SetPayload added in v0.1.18

func (o *RunFunctionDefault) SetPayload(payload *v1.Error)

SetPayload sets the payload to the run function default response

func (*RunFunctionDefault) SetStatusCode added in v0.1.18

func (o *RunFunctionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the run function default response

func (*RunFunctionDefault) WithPayload added in v0.1.18

func (o *RunFunctionDefault) WithPayload(payload *v1.Error) *RunFunctionDefault

WithPayload adds the payload to the run function default response

func (*RunFunctionDefault) WithStatusCode added in v0.1.18

func (o *RunFunctionDefault) WithStatusCode(code int) *RunFunctionDefault

WithStatusCode adds the status to the run function default response

func (*RunFunctionDefault) WriteResponse added in v0.1.18

func (o *RunFunctionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RunFunctionForbidden added in v0.1.18

type RunFunctionForbidden struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

RunFunctionForbidden access to this resource is forbidden

swagger:response runFunctionForbidden

func NewRunFunctionForbidden added in v0.1.18

func NewRunFunctionForbidden() *RunFunctionForbidden

NewRunFunctionForbidden creates RunFunctionForbidden with default headers values

func (*RunFunctionForbidden) SetPayload added in v0.1.18

func (o *RunFunctionForbidden) SetPayload(payload *v1.Error)

SetPayload sets the payload to the run function forbidden response

func (*RunFunctionForbidden) WithPayload added in v0.1.18

func (o *RunFunctionForbidden) WithPayload(payload *v1.Error) *RunFunctionForbidden

WithPayload adds the payload to the run function forbidden response

func (*RunFunctionForbidden) WriteResponse added in v0.1.18

func (o *RunFunctionForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RunFunctionHandler

type RunFunctionHandler interface {
	Handle(RunFunctionParams, interface{}) middleware.Responder
}

RunFunctionHandler interface for that can handle valid run function params

type RunFunctionHandlerFunc

type RunFunctionHandlerFunc func(RunFunctionParams, interface{}) middleware.Responder

RunFunctionHandlerFunc turns a function with the right signature into a run function handler

func (RunFunctionHandlerFunc) Handle

func (fn RunFunctionHandlerFunc) Handle(params RunFunctionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type RunFunctionNotFound

type RunFunctionNotFound struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

RunFunctionNotFound Function not found

swagger:response runFunctionNotFound

func NewRunFunctionNotFound

func NewRunFunctionNotFound() *RunFunctionNotFound

NewRunFunctionNotFound creates RunFunctionNotFound with default headers values

func (*RunFunctionNotFound) SetPayload

func (o *RunFunctionNotFound) SetPayload(payload *v1.Error)

SetPayload sets the payload to the run function not found response

func (*RunFunctionNotFound) WithPayload

func (o *RunFunctionNotFound) WithPayload(payload *v1.Error) *RunFunctionNotFound

WithPayload adds the payload to the run function not found response

func (*RunFunctionNotFound) WriteResponse

func (o *RunFunctionNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RunFunctionOK

type RunFunctionOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Run `json:"body,omitempty"`
}

RunFunctionOK Successful execution (blocking call)

swagger:response runFunctionOK

func NewRunFunctionOK

func NewRunFunctionOK() *RunFunctionOK

NewRunFunctionOK creates RunFunctionOK with default headers values

func (*RunFunctionOK) SetPayload

func (o *RunFunctionOK) SetPayload(payload *v1.Run)

SetPayload sets the payload to the run function o k response

func (*RunFunctionOK) WithPayload

func (o *RunFunctionOK) WithPayload(payload *v1.Run) *RunFunctionOK

WithPayload adds the payload to the run function o k response

func (*RunFunctionOK) WriteResponse

func (o *RunFunctionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RunFunctionParams

type RunFunctionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*
	  In: body
	*/
	Body *v1.Run
	/*Name of function to run or retreive runs for
	  Pattern: ^[\w\d\-]+$
	  In: query
	*/
	FunctionName *string
	/*Filter based on tags
	  In: query
	  Collection Format: multi
	*/
	Tags []string
}

RunFunctionParams contains all the bound params for the run function operation typically these are obtained from a http.Request

swagger:parameters runFunction

func NewRunFunctionParams

func NewRunFunctionParams() RunFunctionParams

NewRunFunctionParams creates a new RunFunctionParams object no default values defined in spec.

func (*RunFunctionParams) BindRequest

func (o *RunFunctionParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewRunFunctionParams() beforehand.

type RunFunctionURL

type RunFunctionURL struct {
	FunctionName *string
	Tags         []string
	// contains filtered or unexported fields
}

RunFunctionURL generates an URL for the run function operation

func (*RunFunctionURL) Build

func (o *RunFunctionURL) Build() (*url.URL, error)

Build a url path and query string

func (*RunFunctionURL) BuildFull

func (o *RunFunctionURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*RunFunctionURL) Must

func (o *RunFunctionURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*RunFunctionURL) SetBasePath

func (o *RunFunctionURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*RunFunctionURL) String

func (o *RunFunctionURL) String() string

String returns the string representation of the path with query string

func (*RunFunctionURL) StringFull

func (o *RunFunctionURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*RunFunctionURL) WithBasePath

func (o *RunFunctionURL) WithBasePath(bp string) *RunFunctionURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type RunFunctionUnauthorized added in v0.1.18

type RunFunctionUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

RunFunctionUnauthorized Unauthorized Request

swagger:response runFunctionUnauthorized

func NewRunFunctionUnauthorized added in v0.1.18

func NewRunFunctionUnauthorized() *RunFunctionUnauthorized

NewRunFunctionUnauthorized creates RunFunctionUnauthorized with default headers values

func (*RunFunctionUnauthorized) SetPayload added in v0.1.18

func (o *RunFunctionUnauthorized) SetPayload(payload *v1.Error)

SetPayload sets the payload to the run function unauthorized response

func (*RunFunctionUnauthorized) WithPayload added in v0.1.18

func (o *RunFunctionUnauthorized) WithPayload(payload *v1.Error) *RunFunctionUnauthorized

WithPayload adds the payload to the run function unauthorized response

func (*RunFunctionUnauthorized) WriteResponse added in v0.1.18

func (o *RunFunctionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RunFunctionUnprocessableEntity

type RunFunctionUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

RunFunctionUnprocessableEntity Input object validation failed

swagger:response runFunctionUnprocessableEntity

func NewRunFunctionUnprocessableEntity

func NewRunFunctionUnprocessableEntity() *RunFunctionUnprocessableEntity

NewRunFunctionUnprocessableEntity creates RunFunctionUnprocessableEntity with default headers values

func (*RunFunctionUnprocessableEntity) SetPayload

func (o *RunFunctionUnprocessableEntity) SetPayload(payload *v1.Error)

SetPayload sets the payload to the run function unprocessable entity response

func (*RunFunctionUnprocessableEntity) WithPayload

WithPayload adds the payload to the run function unprocessable entity response

func (*RunFunctionUnprocessableEntity) WriteResponse

func (o *RunFunctionUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

Jump to

Keyboard shortcuts

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