runner

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const GetFunctionRunsInternalServerErrorCode int = 500

GetFunctionRunsInternalServerErrorCode is the HTTP code returned for type GetFunctionRunsInternalServerError

View Source
const GetFunctionRunsNotFoundCode int = 404

GetFunctionRunsNotFoundCode is the HTTP code returned for type GetFunctionRunsNotFound

View Source
const GetFunctionRunsOKCode int = 200

GetFunctionRunsOKCode is the HTTP code returned for type GetFunctionRunsOK

View Source
const GetRunInternalServerErrorCode int = 500

GetRunInternalServerErrorCode is the HTTP code returned for type GetRunInternalServerError

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 GetRunsInternalServerErrorCode int = 500

GetRunsInternalServerErrorCode is the HTTP code returned for type GetRunsInternalServerError

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 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 RunFunctionInternalServerErrorCode int = 500

RunFunctionInternalServerErrorCode is the HTTP code returned for type RunFunctionInternalServerError

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 RunFunctionUnprocessableEntityCode int = 422

RunFunctionUnprocessableEntityCode is the HTTP code returned for type RunFunctionUnprocessableEntity

Variables

This section is empty.

Functions

This section is empty.

Types

type GetFunctionRuns

type GetFunctionRuns struct {
	Context *middleware.Context
	Handler GetFunctionRunsHandler
}

GetFunctionRuns swagger:route GET /{functionName}/runs Runner getFunctionRuns

Get function runs that are being executed

func NewGetFunctionRuns

func NewGetFunctionRuns(ctx *middleware.Context, handler GetFunctionRunsHandler) *GetFunctionRuns

NewGetFunctionRuns creates a new http.Handler for the get function runs operation

func (*GetFunctionRuns) ServeHTTP

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

type GetFunctionRunsHandler

type GetFunctionRunsHandler interface {
	Handle(GetFunctionRunsParams, interface{}) middleware.Responder
}

GetFunctionRunsHandler interface for that can handle valid get function runs params

type GetFunctionRunsHandlerFunc

type GetFunctionRunsHandlerFunc func(GetFunctionRunsParams, interface{}) middleware.Responder

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

func (GetFunctionRunsHandlerFunc) Handle

func (fn GetFunctionRunsHandlerFunc) Handle(params GetFunctionRunsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetFunctionRunsInternalServerError

type GetFunctionRunsInternalServerError struct {

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

GetFunctionRunsInternalServerError Internal error

swagger:response getFunctionRunsInternalServerError

func NewGetFunctionRunsInternalServerError

func NewGetFunctionRunsInternalServerError() *GetFunctionRunsInternalServerError

NewGetFunctionRunsInternalServerError creates GetFunctionRunsInternalServerError with default headers values

func (*GetFunctionRunsInternalServerError) SetPayload

func (o *GetFunctionRunsInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the get function runs internal server error response

func (*GetFunctionRunsInternalServerError) WithPayload

WithPayload adds the payload to the get function runs internal server error response

func (*GetFunctionRunsInternalServerError) WriteResponse

WriteResponse to the client

type GetFunctionRunsNotFound

type GetFunctionRunsNotFound struct {

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

GetFunctionRunsNotFound Function not found

swagger:response getFunctionRunsNotFound

func NewGetFunctionRunsNotFound

func NewGetFunctionRunsNotFound() *GetFunctionRunsNotFound

NewGetFunctionRunsNotFound creates GetFunctionRunsNotFound with default headers values

func (*GetFunctionRunsNotFound) SetPayload

func (o *GetFunctionRunsNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the get function runs not found response

func (*GetFunctionRunsNotFound) WithPayload

func (o *GetFunctionRunsNotFound) WithPayload(payload *models.Error) *GetFunctionRunsNotFound

WithPayload adds the payload to the get function runs not found response

func (*GetFunctionRunsNotFound) WriteResponse

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

WriteResponse to the client

type GetFunctionRunsOK

type GetFunctionRunsOK struct {

	/*
	  In: Body
	*/
	Payload models.GetFunctionRunsOKBody `json:"body,omitempty"`
}

GetFunctionRunsOK List of function runs

swagger:response getFunctionRunsOK

func NewGetFunctionRunsOK

func NewGetFunctionRunsOK() *GetFunctionRunsOK

NewGetFunctionRunsOK creates GetFunctionRunsOK with default headers values

func (*GetFunctionRunsOK) SetPayload

func (o *GetFunctionRunsOK) SetPayload(payload models.GetFunctionRunsOKBody)

SetPayload sets the payload to the get function runs o k response

func (*GetFunctionRunsOK) WithPayload

WithPayload adds the payload to the get function runs o k response

func (*GetFunctionRunsOK) WriteResponse

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

WriteResponse to the client

type GetFunctionRunsParams

type GetFunctionRunsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*Name of function to run
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	FunctionName string
}

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

swagger:parameters getFunctionRuns

func NewGetFunctionRunsParams

func NewGetFunctionRunsParams() GetFunctionRunsParams

NewGetFunctionRunsParams creates a new GetFunctionRunsParams object with the default values initialized.

func (*GetFunctionRunsParams) BindRequest

func (o *GetFunctionRunsParams) 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

type GetFunctionRunsURL

type GetFunctionRunsURL struct {
	FunctionName string
	// contains filtered or unexported fields
}

GetFunctionRunsURL generates an URL for the get function runs operation

func (*GetFunctionRunsURL) Build

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

Build a url path and query string

func (*GetFunctionRunsURL) BuildFull

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

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

func (*GetFunctionRunsURL) Must

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

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

func (*GetFunctionRunsURL) SetBasePath

func (o *GetFunctionRunsURL) 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 (*GetFunctionRunsURL) String

func (o *GetFunctionRunsURL) String() string

String returns the string representation of the path with query string

func (*GetFunctionRunsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetFunctionRunsURL) WithBasePath

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

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 GetRun

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

GetRun swagger:route GET /{functionName}/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 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 GetRunInternalServerError

type GetRunInternalServerError struct {

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

GetRunInternalServerError Internal error

swagger:response getRunInternalServerError

func NewGetRunInternalServerError

func NewGetRunInternalServerError() *GetRunInternalServerError

NewGetRunInternalServerError creates GetRunInternalServerError with default headers values

func (*GetRunInternalServerError) SetPayload

func (o *GetRunInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the get run internal server error response

func (*GetRunInternalServerError) WithPayload

WithPayload adds the payload to the get run internal server error response

func (*GetRunInternalServerError) WriteResponse

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

WriteResponse to the client

type GetRunNotFound

type GetRunNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.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 *models.Error)

SetPayload sets the payload to the get run not found response

func (*GetRunNotFound) WithPayload

func (o *GetRunNotFound) WithPayload(payload *models.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 *models.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 *models.Run)

SetPayload sets the payload to the get run o k response

func (*GetRunOK) WithPayload

func (o *GetRunOK) WithPayload(payload *models.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

	/*Name of function to retrieve a run for
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	FunctionName string
	/*name of run to retrieve
	  Required: true
	  In: path
	*/
	RunName strfmt.UUID
}

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 with the default values initialized.

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

type GetRunURL

type GetRunURL struct {
	FunctionName string
	RunName      strfmt.UUID
	// 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 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 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 GetRunsInternalServerError

type GetRunsInternalServerError struct {

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

GetRunsInternalServerError Internal error

swagger:response getRunsInternalServerError

func NewGetRunsInternalServerError

func NewGetRunsInternalServerError() *GetRunsInternalServerError

NewGetRunsInternalServerError creates GetRunsInternalServerError with default headers values

func (*GetRunsInternalServerError) SetPayload

func (o *GetRunsInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the get runs internal server error response

func (*GetRunsInternalServerError) WithPayload

WithPayload adds the payload to the get runs internal server error response

func (*GetRunsInternalServerError) WriteResponse

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

WriteResponse to the client

type GetRunsNotFound

type GetRunsNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.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 *models.Error)

SetPayload sets the payload to the get runs not found response

func (*GetRunsNotFound) WithPayload

func (o *GetRunsNotFound) WithPayload(payload *models.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 models.GetRunsOKBody `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 models.GetRunsOKBody)

SetPayload sets the payload to the get runs o k response

func (*GetRunsOK) WithPayload

func (o *GetRunsOK) WithPayload(payload models.GetRunsOKBody) *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
}

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 with the default values initialized.

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

type GetRunsURL

type GetRunsURL struct {
	// 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 RunFunction

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

RunFunction swagger:route POST /{functionName}/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 *models.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 *models.Run)

SetPayload sets the payload to the run function accepted response

func (*RunFunctionAccepted) WithPayload

func (o *RunFunctionAccepted) WithPayload(payload *models.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 *models.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 *models.Error)

SetPayload sets the payload to the run function bad gateway response

func (*RunFunctionBadGateway) WithPayload

func (o *RunFunctionBadGateway) WithPayload(payload *models.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 *models.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 *models.Error)

SetPayload sets the payload to the run function bad request response

func (*RunFunctionBadRequest) WithPayload

func (o *RunFunctionBadRequest) WithPayload(payload *models.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 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 RunFunctionInternalServerError

type RunFunctionInternalServerError struct {

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

RunFunctionInternalServerError Internal error

swagger:response runFunctionInternalServerError

func NewRunFunctionInternalServerError

func NewRunFunctionInternalServerError() *RunFunctionInternalServerError

NewRunFunctionInternalServerError creates RunFunctionInternalServerError with default headers values

func (*RunFunctionInternalServerError) SetPayload

func (o *RunFunctionInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the run function internal server error response

func (*RunFunctionInternalServerError) WithPayload

WithPayload adds the payload to the run function internal server error response

func (*RunFunctionInternalServerError) WriteResponse

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

WriteResponse to the client

type RunFunctionNotFound

type RunFunctionNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.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 *models.Error)

SetPayload sets the payload to the run function not found response

func (*RunFunctionNotFound) WithPayload

func (o *RunFunctionNotFound) WithPayload(payload *models.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 *models.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 *models.Run)

SetPayload sets the payload to the run function o k response

func (*RunFunctionOK) WithPayload

func (o *RunFunctionOK) WithPayload(payload *models.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

	/*
	  In: body
	*/
	Body *models.Run
	/*Name of function to run
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	FunctionName 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 with the default values initialized.

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

type RunFunctionURL

type RunFunctionURL struct {
	FunctionName 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 RunFunctionUnprocessableEntity

type RunFunctionUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *models.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 *models.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