Documentation ¶
Index ¶
- Constants
- type GetRun
- type GetRunBadRequest
- type GetRunDefault
- func (o *GetRunDefault) SetPayload(payload *v1.Error)
- func (o *GetRunDefault) SetStatusCode(code int)
- func (o *GetRunDefault) WithPayload(payload *v1.Error) *GetRunDefault
- func (o *GetRunDefault) WithStatusCode(code int) *GetRunDefault
- func (o *GetRunDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRunForbidden
- type GetRunHandler
- type GetRunHandlerFunc
- type GetRunNotFound
- type GetRunOK
- type GetRunParams
- type GetRunURL
- func (o *GetRunURL) Build() (*url.URL, error)
- func (o *GetRunURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetRunURL) Must(u *url.URL, err error) *url.URL
- func (o *GetRunURL) SetBasePath(bp string)
- func (o *GetRunURL) String() string
- func (o *GetRunURL) StringFull(scheme, host string) string
- func (o *GetRunURL) WithBasePath(bp string) *GetRunURL
- type GetRunUnauthorized
- type GetRuns
- type GetRunsBadRequest
- type GetRunsDefault
- func (o *GetRunsDefault) SetPayload(payload *v1.Error)
- func (o *GetRunsDefault) SetStatusCode(code int)
- func (o *GetRunsDefault) WithPayload(payload *v1.Error) *GetRunsDefault
- func (o *GetRunsDefault) WithStatusCode(code int) *GetRunsDefault
- func (o *GetRunsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRunsForbidden
- type GetRunsHandler
- type GetRunsHandlerFunc
- type GetRunsNotFound
- type GetRunsOK
- type GetRunsParams
- type GetRunsURL
- func (o *GetRunsURL) Build() (*url.URL, error)
- func (o *GetRunsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetRunsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetRunsURL) SetBasePath(bp string)
- func (o *GetRunsURL) String() string
- func (o *GetRunsURL) StringFull(scheme, host string) string
- func (o *GetRunsURL) WithBasePath(bp string) *GetRunsURL
- type GetRunsUnauthorized
- type RunFunction
- type RunFunctionAccepted
- type RunFunctionBadGateway
- type RunFunctionBadRequest
- type RunFunctionDefault
- func (o *RunFunctionDefault) SetPayload(payload *v1.Error)
- func (o *RunFunctionDefault) SetStatusCode(code int)
- func (o *RunFunctionDefault) WithPayload(payload *v1.Error) *RunFunctionDefault
- func (o *RunFunctionDefault) WithStatusCode(code int) *RunFunctionDefault
- func (o *RunFunctionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RunFunctionForbidden
- type RunFunctionHandler
- type RunFunctionHandlerFunc
- type RunFunctionNotFound
- type RunFunctionOK
- type RunFunctionParams
- type RunFunctionURL
- func (o *RunFunctionURL) Build() (*url.URL, error)
- func (o *RunFunctionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RunFunctionURL) Must(u *url.URL, err error) *url.URL
- func (o *RunFunctionURL) SetBasePath(bp string)
- func (o *RunFunctionURL) String() string
- func (o *RunFunctionURL) StringFull(scheme, host string) string
- func (o *RunFunctionURL) WithBasePath(bp string) *RunFunctionURL
- type RunFunctionUnauthorized
- type RunFunctionUnprocessableEntity
Constants ¶
const GetRunBadRequestCode int = 400
GetRunBadRequestCode is the HTTP code returned for type GetRunBadRequest
const GetRunForbiddenCode int = 403
GetRunForbiddenCode is the HTTP code returned for type GetRunForbidden
const GetRunNotFoundCode int = 404
GetRunNotFoundCode is the HTTP code returned for type GetRunNotFound
const GetRunOKCode int = 200
GetRunOKCode is the HTTP code returned for type GetRunOK
GetRunUnauthorizedCode is the HTTP code returned for type GetRunUnauthorized
const GetRunsBadRequestCode int = 400
GetRunsBadRequestCode is the HTTP code returned for type GetRunsBadRequest
const GetRunsForbiddenCode int = 403
GetRunsForbiddenCode is the HTTP code returned for type GetRunsForbidden
const GetRunsNotFoundCode int = 404
GetRunsNotFoundCode is the HTTP code returned for type GetRunsNotFound
const GetRunsOKCode int = 200
GetRunsOKCode is the HTTP code returned for type GetRunsOK
GetRunsUnauthorizedCode is the HTTP code returned for type GetRunsUnauthorized
const RunFunctionAcceptedCode int = 202
RunFunctionAcceptedCode is the HTTP code returned for type RunFunctionAccepted
const RunFunctionBadGatewayCode int = 502
RunFunctionBadGatewayCode is the HTTP code returned for type RunFunctionBadGateway
const RunFunctionBadRequestCode int = 400
RunFunctionBadRequestCode is the HTTP code returned for type RunFunctionBadRequest
const RunFunctionForbiddenCode int = 403
RunFunctionForbiddenCode is the HTTP code returned for type RunFunctionForbidden
const RunFunctionNotFoundCode int = 404
RunFunctionNotFoundCode is the HTTP code returned for type RunFunctionNotFound
const RunFunctionOKCode int = 200
RunFunctionOKCode is the HTTP code returned for type RunFunctionOK
RunFunctionUnauthorizedCode is the HTTP code returned for type RunFunctionUnauthorized
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
type GetRunBadRequest ¶ added in v0.1.13
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
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 ¶
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 ¶
GetRunOK Function Run
swagger:response getRunOK
func NewGetRunOK ¶
func NewGetRunOK() *GetRunOK
NewGetRunOK creates GetRunOK with default headers values
func (*GetRunOK) SetPayload ¶
SetPayload sets the payload to the get run o k response
func (*GetRunOK) WithPayload ¶
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) SetBasePath ¶
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) StringFull ¶
StringFull returns the string representation of a complete url
func (*GetRunURL) WithBasePath ¶
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
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
type GetRunsBadRequest ¶ added in v0.1.13
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
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 ¶
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 ¶
GetRunsOK List of function runs
swagger:response getRunsOK
func NewGetRunsOK ¶
func NewGetRunsOK() *GetRunsOK
NewGetRunsOK creates GetRunsOK with default headers values
func (*GetRunsOK) SetPayload ¶
SetPayload sets the payload to the get runs o k response
func (*GetRunsOK) WithPayload ¶
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) 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
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 ¶
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 ¶
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 ¶
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
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 ¶
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 ¶
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 ¶
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
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 ¶
func (o *RunFunctionUnprocessableEntity) WithPayload(payload *v1.Error) *RunFunctionUnprocessableEntity
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