store

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

Documentation

Index

Constants

View Source
const AddFunctionBadRequestCode int = 400

AddFunctionBadRequestCode is the HTTP code returned for type AddFunctionBadRequest

View Source
const AddFunctionConflictCode int = 409

AddFunctionConflictCode is the HTTP code returned for type AddFunctionConflict

View Source
const AddFunctionCreatedCode int = 201

AddFunctionCreatedCode is the HTTP code returned for type AddFunctionCreated

View Source
const AddFunctionForbiddenCode int = 403

AddFunctionForbiddenCode is the HTTP code returned for type AddFunctionForbidden

View Source
const AddFunctionUnauthorizedCode int = 401

AddFunctionUnauthorizedCode is the HTTP code returned for type AddFunctionUnauthorized

View Source
const DeleteFunctionBadRequestCode int = 400

DeleteFunctionBadRequestCode is the HTTP code returned for type DeleteFunctionBadRequest

View Source
const DeleteFunctionForbiddenCode int = 403

DeleteFunctionForbiddenCode is the HTTP code returned for type DeleteFunctionForbidden

View Source
const DeleteFunctionNotFoundCode int = 404

DeleteFunctionNotFoundCode is the HTTP code returned for type DeleteFunctionNotFound

View Source
const DeleteFunctionOKCode int = 200

DeleteFunctionOKCode is the HTTP code returned for type DeleteFunctionOK

View Source
const DeleteFunctionUnauthorizedCode int = 401

DeleteFunctionUnauthorizedCode is the HTTP code returned for type DeleteFunctionUnauthorized

View Source
const GetFunctionBadRequestCode int = 400

GetFunctionBadRequestCode is the HTTP code returned for type GetFunctionBadRequest

View Source
const GetFunctionForbiddenCode int = 403

GetFunctionForbiddenCode is the HTTP code returned for type GetFunctionForbidden

View Source
const GetFunctionNotFoundCode int = 404

GetFunctionNotFoundCode is the HTTP code returned for type GetFunctionNotFound

View Source
const GetFunctionOKCode int = 200

GetFunctionOKCode is the HTTP code returned for type GetFunctionOK

View Source
const GetFunctionUnauthorizedCode int = 401

GetFunctionUnauthorizedCode is the HTTP code returned for type GetFunctionUnauthorized

View Source
const GetFunctionsBadRequestCode int = 400

GetFunctionsBadRequestCode is the HTTP code returned for type GetFunctionsBadRequest

View Source
const GetFunctionsForbiddenCode int = 403

GetFunctionsForbiddenCode is the HTTP code returned for type GetFunctionsForbidden

View Source
const GetFunctionsOKCode int = 200

GetFunctionsOKCode is the HTTP code returned for type GetFunctionsOK

View Source
const GetFunctionsUnauthorizedCode int = 401

GetFunctionsUnauthorizedCode is the HTTP code returned for type GetFunctionsUnauthorized

View Source
const UpdateFunctionBadRequestCode int = 400

UpdateFunctionBadRequestCode is the HTTP code returned for type UpdateFunctionBadRequest

View Source
const UpdateFunctionForbiddenCode int = 403

UpdateFunctionForbiddenCode is the HTTP code returned for type UpdateFunctionForbidden

View Source
const UpdateFunctionNotFoundCode int = 404

UpdateFunctionNotFoundCode is the HTTP code returned for type UpdateFunctionNotFound

View Source
const UpdateFunctionOKCode int = 200

UpdateFunctionOKCode is the HTTP code returned for type UpdateFunctionOK

View Source
const UpdateFunctionUnauthorizedCode int = 401

UpdateFunctionUnauthorizedCode is the HTTP code returned for type UpdateFunctionUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type AddFunction

type AddFunction struct {
	Context *middleware.Context
	Handler AddFunctionHandler
}

AddFunction swagger:route POST /function Store addFunction

Add a new function

func NewAddFunction

func NewAddFunction(ctx *middleware.Context, handler AddFunctionHandler) *AddFunction

NewAddFunction creates a new http.Handler for the add function operation

func (*AddFunction) ServeHTTP

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

type AddFunctionBadRequest

type AddFunctionBadRequest struct {

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

AddFunctionBadRequest Invalid input

swagger:response addFunctionBadRequest

func NewAddFunctionBadRequest

func NewAddFunctionBadRequest() *AddFunctionBadRequest

NewAddFunctionBadRequest creates AddFunctionBadRequest with default headers values

func (*AddFunctionBadRequest) SetPayload

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

SetPayload sets the payload to the add function bad request response

func (*AddFunctionBadRequest) WithPayload

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

WithPayload adds the payload to the add function bad request response

func (*AddFunctionBadRequest) WriteResponse

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

WriteResponse to the client

type AddFunctionConflict added in v0.1.13

type AddFunctionConflict struct {

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

AddFunctionConflict Already Exists

swagger:response addFunctionConflict

func NewAddFunctionConflict added in v0.1.13

func NewAddFunctionConflict() *AddFunctionConflict

NewAddFunctionConflict creates AddFunctionConflict with default headers values

func (*AddFunctionConflict) SetPayload added in v0.1.13

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

SetPayload sets the payload to the add function conflict response

func (*AddFunctionConflict) WithPayload added in v0.1.13

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

WithPayload adds the payload to the add function conflict response

func (*AddFunctionConflict) WriteResponse added in v0.1.13

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

WriteResponse to the client

type AddFunctionCreated added in v0.1.13

type AddFunctionCreated struct {

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

AddFunctionCreated Function created

swagger:response addFunctionCreated

func NewAddFunctionCreated added in v0.1.13

func NewAddFunctionCreated() *AddFunctionCreated

NewAddFunctionCreated creates AddFunctionCreated with default headers values

func (*AddFunctionCreated) SetPayload added in v0.1.13

func (o *AddFunctionCreated) SetPayload(payload *v1.Function)

SetPayload sets the payload to the add function created response

func (*AddFunctionCreated) WithPayload added in v0.1.13

func (o *AddFunctionCreated) WithPayload(payload *v1.Function) *AddFunctionCreated

WithPayload adds the payload to the add function created response

func (*AddFunctionCreated) WriteResponse added in v0.1.13

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

WriteResponse to the client

type AddFunctionDefault added in v0.1.18

type AddFunctionDefault struct {

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

AddFunctionDefault Unknown error

swagger:response addFunctionDefault

func NewAddFunctionDefault added in v0.1.18

func NewAddFunctionDefault(code int) *AddFunctionDefault

NewAddFunctionDefault creates AddFunctionDefault with default headers values

func (*AddFunctionDefault) SetPayload added in v0.1.18

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

SetPayload sets the payload to the add function default response

func (*AddFunctionDefault) SetStatusCode added in v0.1.18

func (o *AddFunctionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the add function default response

func (*AddFunctionDefault) WithPayload added in v0.1.18

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

WithPayload adds the payload to the add function default response

func (*AddFunctionDefault) WithStatusCode added in v0.1.18

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

WithStatusCode adds the status to the add function default response

func (*AddFunctionDefault) WriteResponse added in v0.1.18

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

WriteResponse to the client

type AddFunctionForbidden added in v0.1.18

type AddFunctionForbidden struct {

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

AddFunctionForbidden access to this resource is forbidden

swagger:response addFunctionForbidden

func NewAddFunctionForbidden added in v0.1.18

func NewAddFunctionForbidden() *AddFunctionForbidden

NewAddFunctionForbidden creates AddFunctionForbidden with default headers values

func (*AddFunctionForbidden) SetPayload added in v0.1.18

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

SetPayload sets the payload to the add function forbidden response

func (*AddFunctionForbidden) WithPayload added in v0.1.18

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

WithPayload adds the payload to the add function forbidden response

func (*AddFunctionForbidden) WriteResponse added in v0.1.18

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

WriteResponse to the client

type AddFunctionHandler

type AddFunctionHandler interface {
	Handle(AddFunctionParams, interface{}) middleware.Responder
}

AddFunctionHandler interface for that can handle valid add function params

type AddFunctionHandlerFunc

type AddFunctionHandlerFunc func(AddFunctionParams, interface{}) middleware.Responder

AddFunctionHandlerFunc turns a function with the right signature into a add function handler

func (AddFunctionHandlerFunc) Handle

func (fn AddFunctionHandlerFunc) Handle(params AddFunctionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type AddFunctionParams

type AddFunctionParams struct {

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

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*function object
	  Required: true
	  In: body
	*/
	Body *v1.Function
}

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

swagger:parameters addFunction

func NewAddFunctionParams

func NewAddFunctionParams() AddFunctionParams

NewAddFunctionParams creates a new AddFunctionParams object no default values defined in spec.

func (*AddFunctionParams) BindRequest

func (o *AddFunctionParams) 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 NewAddFunctionParams() beforehand.

type AddFunctionURL

type AddFunctionURL struct {
	// contains filtered or unexported fields
}

AddFunctionURL generates an URL for the add function operation

func (*AddFunctionURL) Build

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

Build a url path and query string

func (*AddFunctionURL) BuildFull

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

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

func (*AddFunctionURL) Must

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

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

func (*AddFunctionURL) SetBasePath

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

func (o *AddFunctionURL) String() string

String returns the string representation of the path with query string

func (*AddFunctionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*AddFunctionURL) WithBasePath

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

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 AddFunctionUnauthorized

type AddFunctionUnauthorized struct {

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

AddFunctionUnauthorized Unauthorized Request

swagger:response addFunctionUnauthorized

func NewAddFunctionUnauthorized

func NewAddFunctionUnauthorized() *AddFunctionUnauthorized

NewAddFunctionUnauthorized creates AddFunctionUnauthorized with default headers values

func (*AddFunctionUnauthorized) SetPayload

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

SetPayload sets the payload to the add function unauthorized response

func (*AddFunctionUnauthorized) WithPayload

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

WithPayload adds the payload to the add function unauthorized response

func (*AddFunctionUnauthorized) WriteResponse

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

WriteResponse to the client

type DeleteFunction

type DeleteFunction struct {
	Context *middleware.Context
	Handler DeleteFunctionHandler
}

DeleteFunction swagger:route DELETE /function/{functionName} Store deleteFunction

Deletes a function

func NewDeleteFunction

func NewDeleteFunction(ctx *middleware.Context, handler DeleteFunctionHandler) *DeleteFunction

NewDeleteFunction creates a new http.Handler for the delete function operation

func (*DeleteFunction) ServeHTTP

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

type DeleteFunctionBadRequest

type DeleteFunctionBadRequest struct {

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

DeleteFunctionBadRequest Invalid Name supplied

swagger:response deleteFunctionBadRequest

func NewDeleteFunctionBadRequest

func NewDeleteFunctionBadRequest() *DeleteFunctionBadRequest

NewDeleteFunctionBadRequest creates DeleteFunctionBadRequest with default headers values

func (*DeleteFunctionBadRequest) SetPayload

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

SetPayload sets the payload to the delete function bad request response

func (*DeleteFunctionBadRequest) WithPayload

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

WithPayload adds the payload to the delete function bad request response

func (*DeleteFunctionBadRequest) WriteResponse

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

WriteResponse to the client

type DeleteFunctionDefault added in v0.1.18

type DeleteFunctionDefault struct {

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

DeleteFunctionDefault Unknown error

swagger:response deleteFunctionDefault

func NewDeleteFunctionDefault added in v0.1.18

func NewDeleteFunctionDefault(code int) *DeleteFunctionDefault

NewDeleteFunctionDefault creates DeleteFunctionDefault with default headers values

func (*DeleteFunctionDefault) SetPayload added in v0.1.18

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

SetPayload sets the payload to the delete function default response

func (*DeleteFunctionDefault) SetStatusCode added in v0.1.18

func (o *DeleteFunctionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete function default response

func (*DeleteFunctionDefault) WithPayload added in v0.1.18

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

WithPayload adds the payload to the delete function default response

func (*DeleteFunctionDefault) WithStatusCode added in v0.1.18

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

WithStatusCode adds the status to the delete function default response

func (*DeleteFunctionDefault) WriteResponse added in v0.1.18

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

WriteResponse to the client

type DeleteFunctionForbidden added in v0.1.18

type DeleteFunctionForbidden struct {

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

DeleteFunctionForbidden access to this resource is forbidden

swagger:response deleteFunctionForbidden

func NewDeleteFunctionForbidden added in v0.1.18

func NewDeleteFunctionForbidden() *DeleteFunctionForbidden

NewDeleteFunctionForbidden creates DeleteFunctionForbidden with default headers values

func (*DeleteFunctionForbidden) SetPayload added in v0.1.18

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

SetPayload sets the payload to the delete function forbidden response

func (*DeleteFunctionForbidden) WithPayload added in v0.1.18

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

WithPayload adds the payload to the delete function forbidden response

func (*DeleteFunctionForbidden) WriteResponse added in v0.1.18

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

WriteResponse to the client

type DeleteFunctionHandler

type DeleteFunctionHandler interface {
	Handle(DeleteFunctionParams, interface{}) middleware.Responder
}

DeleteFunctionHandler interface for that can handle valid delete function params

type DeleteFunctionHandlerFunc

type DeleteFunctionHandlerFunc func(DeleteFunctionParams, interface{}) middleware.Responder

DeleteFunctionHandlerFunc turns a function with the right signature into a delete function handler

func (DeleteFunctionHandlerFunc) Handle

func (fn DeleteFunctionHandlerFunc) Handle(params DeleteFunctionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteFunctionNotFound

type DeleteFunctionNotFound struct {

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

DeleteFunctionNotFound Function not found

swagger:response deleteFunctionNotFound

func NewDeleteFunctionNotFound

func NewDeleteFunctionNotFound() *DeleteFunctionNotFound

NewDeleteFunctionNotFound creates DeleteFunctionNotFound with default headers values

func (*DeleteFunctionNotFound) SetPayload

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

SetPayload sets the payload to the delete function not found response

func (*DeleteFunctionNotFound) WithPayload

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

WithPayload adds the payload to the delete function not found response

func (*DeleteFunctionNotFound) WriteResponse

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

WriteResponse to the client

type DeleteFunctionOK

type DeleteFunctionOK struct {

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

DeleteFunctionOK Successful operation

swagger:response deleteFunctionOK

func NewDeleteFunctionOK

func NewDeleteFunctionOK() *DeleteFunctionOK

NewDeleteFunctionOK creates DeleteFunctionOK with default headers values

func (*DeleteFunctionOK) SetPayload

func (o *DeleteFunctionOK) SetPayload(payload *v1.Function)

SetPayload sets the payload to the delete function o k response

func (*DeleteFunctionOK) WithPayload

func (o *DeleteFunctionOK) WithPayload(payload *v1.Function) *DeleteFunctionOK

WithPayload adds the payload to the delete function o k response

func (*DeleteFunctionOK) WriteResponse

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

WriteResponse to the client

type DeleteFunctionParams

type DeleteFunctionParams struct {

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

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*Name of function to work on
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	FunctionName string
	/*Filter based on tags
	  In: query
	  Collection Format: multi
	*/
	Tags []string
}

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

swagger:parameters deleteFunction

func NewDeleteFunctionParams

func NewDeleteFunctionParams() DeleteFunctionParams

NewDeleteFunctionParams creates a new DeleteFunctionParams object no default values defined in spec.

func (*DeleteFunctionParams) BindRequest

func (o *DeleteFunctionParams) 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 NewDeleteFunctionParams() beforehand.

type DeleteFunctionURL

type DeleteFunctionURL struct {
	FunctionName string

	Tags []string
	// contains filtered or unexported fields
}

DeleteFunctionURL generates an URL for the delete function operation

func (*DeleteFunctionURL) Build

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

Build a url path and query string

func (*DeleteFunctionURL) BuildFull

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

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

func (*DeleteFunctionURL) Must

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

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

func (*DeleteFunctionURL) SetBasePath

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

func (o *DeleteFunctionURL) String() string

String returns the string representation of the path with query string

func (*DeleteFunctionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteFunctionURL) WithBasePath

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

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 DeleteFunctionUnauthorized added in v0.1.18

type DeleteFunctionUnauthorized struct {

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

DeleteFunctionUnauthorized Unauthorized Request

swagger:response deleteFunctionUnauthorized

func NewDeleteFunctionUnauthorized added in v0.1.18

func NewDeleteFunctionUnauthorized() *DeleteFunctionUnauthorized

NewDeleteFunctionUnauthorized creates DeleteFunctionUnauthorized with default headers values

func (*DeleteFunctionUnauthorized) SetPayload added in v0.1.18

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

SetPayload sets the payload to the delete function unauthorized response

func (*DeleteFunctionUnauthorized) WithPayload added in v0.1.18

WithPayload adds the payload to the delete function unauthorized response

func (*DeleteFunctionUnauthorized) WriteResponse added in v0.1.18

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

WriteResponse to the client

type GetFunction

type GetFunction struct {
	Context *middleware.Context
	Handler GetFunctionHandler
}

GetFunction swagger:route GET /function/{functionName} Store getFunction

Find function by Name

Returns a single function

func NewGetFunction

func NewGetFunction(ctx *middleware.Context, handler GetFunctionHandler) *GetFunction

NewGetFunction creates a new http.Handler for the get function operation

func (*GetFunction) ServeHTTP

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

type GetFunctionBadRequest

type GetFunctionBadRequest struct {

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

GetFunctionBadRequest Invalid Name supplied

swagger:response getFunctionBadRequest

func NewGetFunctionBadRequest

func NewGetFunctionBadRequest() *GetFunctionBadRequest

NewGetFunctionBadRequest creates GetFunctionBadRequest with default headers values

func (*GetFunctionBadRequest) SetPayload

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

SetPayload sets the payload to the get function bad request response

func (*GetFunctionBadRequest) WithPayload

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

WithPayload adds the payload to the get function bad request response

func (*GetFunctionBadRequest) WriteResponse

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

WriteResponse to the client

type GetFunctionDefault added in v0.1.18

type GetFunctionDefault struct {

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

GetFunctionDefault Unknown error

swagger:response getFunctionDefault

func NewGetFunctionDefault added in v0.1.18

func NewGetFunctionDefault(code int) *GetFunctionDefault

NewGetFunctionDefault creates GetFunctionDefault with default headers values

func (*GetFunctionDefault) SetPayload added in v0.1.18

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

SetPayload sets the payload to the get function default response

func (*GetFunctionDefault) SetStatusCode added in v0.1.18

func (o *GetFunctionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get function default response

func (*GetFunctionDefault) WithPayload added in v0.1.18

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

WithPayload adds the payload to the get function default response

func (*GetFunctionDefault) WithStatusCode added in v0.1.18

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

WithStatusCode adds the status to the get function default response

func (*GetFunctionDefault) WriteResponse added in v0.1.18

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

WriteResponse to the client

type GetFunctionForbidden added in v0.1.18

type GetFunctionForbidden struct {

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

GetFunctionForbidden access to this resource is forbidden

swagger:response getFunctionForbidden

func NewGetFunctionForbidden added in v0.1.18

func NewGetFunctionForbidden() *GetFunctionForbidden

NewGetFunctionForbidden creates GetFunctionForbidden with default headers values

func (*GetFunctionForbidden) SetPayload added in v0.1.18

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

SetPayload sets the payload to the get function forbidden response

func (*GetFunctionForbidden) WithPayload added in v0.1.18

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

WithPayload adds the payload to the get function forbidden response

func (*GetFunctionForbidden) WriteResponse added in v0.1.18

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

WriteResponse to the client

type GetFunctionHandler

type GetFunctionHandler interface {
	Handle(GetFunctionParams, interface{}) middleware.Responder
}

GetFunctionHandler interface for that can handle valid get function params

type GetFunctionHandlerFunc

type GetFunctionHandlerFunc func(GetFunctionParams, interface{}) middleware.Responder

GetFunctionHandlerFunc turns a function with the right signature into a get function handler

func (GetFunctionHandlerFunc) Handle

func (fn GetFunctionHandlerFunc) Handle(params GetFunctionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetFunctionNotFound

type GetFunctionNotFound struct {

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

GetFunctionNotFound Function not found

swagger:response getFunctionNotFound

func NewGetFunctionNotFound

func NewGetFunctionNotFound() *GetFunctionNotFound

NewGetFunctionNotFound creates GetFunctionNotFound with default headers values

func (*GetFunctionNotFound) SetPayload

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

SetPayload sets the payload to the get function not found response

func (*GetFunctionNotFound) WithPayload

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

WithPayload adds the payload to the get function not found response

func (*GetFunctionNotFound) WriteResponse

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

WriteResponse to the client

type GetFunctionOK

type GetFunctionOK struct {

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

GetFunctionOK Successful operation

swagger:response getFunctionOK

func NewGetFunctionOK

func NewGetFunctionOK() *GetFunctionOK

NewGetFunctionOK creates GetFunctionOK with default headers values

func (*GetFunctionOK) SetPayload

func (o *GetFunctionOK) SetPayload(payload *v1.Function)

SetPayload sets the payload to the get function o k response

func (*GetFunctionOK) WithPayload

func (o *GetFunctionOK) WithPayload(payload *v1.Function) *GetFunctionOK

WithPayload adds the payload to the get function o k response

func (*GetFunctionOK) WriteResponse

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

WriteResponse to the client

type GetFunctionParams

type GetFunctionParams struct {

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

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*Name of function to work on
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	FunctionName string
	/*Filter based on tags
	  In: query
	  Collection Format: multi
	*/
	Tags []string
}

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

swagger:parameters getFunction

func NewGetFunctionParams

func NewGetFunctionParams() GetFunctionParams

NewGetFunctionParams creates a new GetFunctionParams object no default values defined in spec.

func (*GetFunctionParams) BindRequest

func (o *GetFunctionParams) 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 NewGetFunctionParams() beforehand.

type GetFunctionURL

type GetFunctionURL struct {
	FunctionName string

	Tags []string
	// contains filtered or unexported fields
}

GetFunctionURL generates an URL for the get function operation

func (*GetFunctionURL) Build

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

Build a url path and query string

func (*GetFunctionURL) BuildFull

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

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

func (*GetFunctionURL) Must

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

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

func (*GetFunctionURL) SetBasePath

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

func (o *GetFunctionURL) String() string

String returns the string representation of the path with query string

func (*GetFunctionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetFunctionURL) WithBasePath

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

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 GetFunctionUnauthorized added in v0.1.18

type GetFunctionUnauthorized struct {

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

GetFunctionUnauthorized Unauthorized Request

swagger:response getFunctionUnauthorized

func NewGetFunctionUnauthorized added in v0.1.18

func NewGetFunctionUnauthorized() *GetFunctionUnauthorized

NewGetFunctionUnauthorized creates GetFunctionUnauthorized with default headers values

func (*GetFunctionUnauthorized) SetPayload added in v0.1.18

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

SetPayload sets the payload to the get function unauthorized response

func (*GetFunctionUnauthorized) WithPayload added in v0.1.18

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

WithPayload adds the payload to the get function unauthorized response

func (*GetFunctionUnauthorized) WriteResponse added in v0.1.18

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

WriteResponse to the client

type GetFunctions

type GetFunctions struct {
	Context *middleware.Context
	Handler GetFunctionsHandler
}

GetFunctions swagger:route GET /function Store getFunctions

List all existing functions

func NewGetFunctions

func NewGetFunctions(ctx *middleware.Context, handler GetFunctionsHandler) *GetFunctions

NewGetFunctions creates a new http.Handler for the get functions operation

func (*GetFunctions) ServeHTTP

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

type GetFunctionsBadRequest added in v0.1.13

type GetFunctionsBadRequest struct {

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

GetFunctionsBadRequest Invalid input

swagger:response getFunctionsBadRequest

func NewGetFunctionsBadRequest added in v0.1.13

func NewGetFunctionsBadRequest() *GetFunctionsBadRequest

NewGetFunctionsBadRequest creates GetFunctionsBadRequest with default headers values

func (*GetFunctionsBadRequest) SetPayload added in v0.1.13

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

SetPayload sets the payload to the get functions bad request response

func (*GetFunctionsBadRequest) WithPayload added in v0.1.13

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

WithPayload adds the payload to the get functions bad request response

func (*GetFunctionsBadRequest) WriteResponse added in v0.1.13

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

WriteResponse to the client

type GetFunctionsDefault

type GetFunctionsDefault struct {

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

GetFunctionsDefault Unknown error

swagger:response getFunctionsDefault

func NewGetFunctionsDefault

func NewGetFunctionsDefault(code int) *GetFunctionsDefault

NewGetFunctionsDefault creates GetFunctionsDefault with default headers values

func (*GetFunctionsDefault) SetPayload

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

SetPayload sets the payload to the get functions default response

func (*GetFunctionsDefault) SetStatusCode

func (o *GetFunctionsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get functions default response

func (*GetFunctionsDefault) WithPayload

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

WithPayload adds the payload to the get functions default response

func (*GetFunctionsDefault) WithStatusCode

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

WithStatusCode adds the status to the get functions default response

func (*GetFunctionsDefault) WriteResponse

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

WriteResponse to the client

type GetFunctionsForbidden added in v0.1.18

type GetFunctionsForbidden struct {

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

GetFunctionsForbidden access to this resource is forbidden

swagger:response getFunctionsForbidden

func NewGetFunctionsForbidden added in v0.1.18

func NewGetFunctionsForbidden() *GetFunctionsForbidden

NewGetFunctionsForbidden creates GetFunctionsForbidden with default headers values

func (*GetFunctionsForbidden) SetPayload added in v0.1.18

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

SetPayload sets the payload to the get functions forbidden response

func (*GetFunctionsForbidden) WithPayload added in v0.1.18

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

WithPayload adds the payload to the get functions forbidden response

func (*GetFunctionsForbidden) WriteResponse added in v0.1.18

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

WriteResponse to the client

type GetFunctionsHandler

type GetFunctionsHandler interface {
	Handle(GetFunctionsParams, interface{}) middleware.Responder
}

GetFunctionsHandler interface for that can handle valid get functions params

type GetFunctionsHandlerFunc

type GetFunctionsHandlerFunc func(GetFunctionsParams, interface{}) middleware.Responder

GetFunctionsHandlerFunc turns a function with the right signature into a get functions handler

func (GetFunctionsHandlerFunc) Handle

func (fn GetFunctionsHandlerFunc) Handle(params GetFunctionsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetFunctionsOK

type GetFunctionsOK struct {

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

GetFunctionsOK Successful operation

swagger:response getFunctionsOK

func NewGetFunctionsOK

func NewGetFunctionsOK() *GetFunctionsOK

NewGetFunctionsOK creates GetFunctionsOK with default headers values

func (*GetFunctionsOK) SetPayload

func (o *GetFunctionsOK) SetPayload(payload []*v1.Function)

SetPayload sets the payload to the get functions o k response

func (*GetFunctionsOK) WithPayload

func (o *GetFunctionsOK) WithPayload(payload []*v1.Function) *GetFunctionsOK

WithPayload adds the payload to the get functions o k response

func (*GetFunctionsOK) WriteResponse

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

WriteResponse to the client

type GetFunctionsParams

type GetFunctionsParams struct {

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

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*Function state
	  In: query
	*/
	State *string
	/*Filter based on tags
	  In: query
	  Collection Format: multi
	*/
	Tags []string
}

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

swagger:parameters getFunctions

func NewGetFunctionsParams

func NewGetFunctionsParams() GetFunctionsParams

NewGetFunctionsParams creates a new GetFunctionsParams object no default values defined in spec.

func (*GetFunctionsParams) BindRequest

func (o *GetFunctionsParams) 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 NewGetFunctionsParams() beforehand.

type GetFunctionsURL

type GetFunctionsURL struct {
	State *string
	Tags  []string
	// contains filtered or unexported fields
}

GetFunctionsURL generates an URL for the get functions operation

func (*GetFunctionsURL) Build

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

Build a url path and query string

func (*GetFunctionsURL) BuildFull

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

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

func (*GetFunctionsURL) Must

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

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

func (*GetFunctionsURL) SetBasePath

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

func (o *GetFunctionsURL) String() string

String returns the string representation of the path with query string

func (*GetFunctionsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetFunctionsURL) WithBasePath

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

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 GetFunctionsUnauthorized added in v0.1.18

type GetFunctionsUnauthorized struct {

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

GetFunctionsUnauthorized Unauthorized Request

swagger:response getFunctionsUnauthorized

func NewGetFunctionsUnauthorized added in v0.1.18

func NewGetFunctionsUnauthorized() *GetFunctionsUnauthorized

NewGetFunctionsUnauthorized creates GetFunctionsUnauthorized with default headers values

func (*GetFunctionsUnauthorized) SetPayload added in v0.1.18

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

SetPayload sets the payload to the get functions unauthorized response

func (*GetFunctionsUnauthorized) WithPayload added in v0.1.18

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

WithPayload adds the payload to the get functions unauthorized response

func (*GetFunctionsUnauthorized) WriteResponse added in v0.1.18

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

WriteResponse to the client

type UpdateFunction

type UpdateFunction struct {
	Context *middleware.Context
	Handler UpdateFunctionHandler
}

UpdateFunction swagger:route PUT /function/{functionName} Store updateFunction

Update a function

func NewUpdateFunction

func NewUpdateFunction(ctx *middleware.Context, handler UpdateFunctionHandler) *UpdateFunction

NewUpdateFunction creates a new http.Handler for the update function operation

func (*UpdateFunction) ServeHTTP

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

type UpdateFunctionBadRequest

type UpdateFunctionBadRequest struct {

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

UpdateFunctionBadRequest Invalid input

swagger:response updateFunctionBadRequest

func NewUpdateFunctionBadRequest

func NewUpdateFunctionBadRequest() *UpdateFunctionBadRequest

NewUpdateFunctionBadRequest creates UpdateFunctionBadRequest with default headers values

func (*UpdateFunctionBadRequest) SetPayload

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

SetPayload sets the payload to the update function bad request response

func (*UpdateFunctionBadRequest) WithPayload

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

WithPayload adds the payload to the update function bad request response

func (*UpdateFunctionBadRequest) WriteResponse

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

WriteResponse to the client

type UpdateFunctionDefault added in v0.1.18

type UpdateFunctionDefault struct {

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

UpdateFunctionDefault Unknown error

swagger:response updateFunctionDefault

func NewUpdateFunctionDefault added in v0.1.18

func NewUpdateFunctionDefault(code int) *UpdateFunctionDefault

NewUpdateFunctionDefault creates UpdateFunctionDefault with default headers values

func (*UpdateFunctionDefault) SetPayload added in v0.1.18

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

SetPayload sets the payload to the update function default response

func (*UpdateFunctionDefault) SetStatusCode added in v0.1.18

func (o *UpdateFunctionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update function default response

func (*UpdateFunctionDefault) WithPayload added in v0.1.18

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

WithPayload adds the payload to the update function default response

func (*UpdateFunctionDefault) WithStatusCode added in v0.1.18

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

WithStatusCode adds the status to the update function default response

func (*UpdateFunctionDefault) WriteResponse added in v0.1.18

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

WriteResponse to the client

type UpdateFunctionForbidden added in v0.1.18

type UpdateFunctionForbidden struct {

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

UpdateFunctionForbidden access to this resource is forbidden

swagger:response updateFunctionForbidden

func NewUpdateFunctionForbidden added in v0.1.18

func NewUpdateFunctionForbidden() *UpdateFunctionForbidden

NewUpdateFunctionForbidden creates UpdateFunctionForbidden with default headers values

func (*UpdateFunctionForbidden) SetPayload added in v0.1.18

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

SetPayload sets the payload to the update function forbidden response

func (*UpdateFunctionForbidden) WithPayload added in v0.1.18

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

WithPayload adds the payload to the update function forbidden response

func (*UpdateFunctionForbidden) WriteResponse added in v0.1.18

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

WriteResponse to the client

type UpdateFunctionHandler

type UpdateFunctionHandler interface {
	Handle(UpdateFunctionParams, interface{}) middleware.Responder
}

UpdateFunctionHandler interface for that can handle valid update function params

type UpdateFunctionHandlerFunc

type UpdateFunctionHandlerFunc func(UpdateFunctionParams, interface{}) middleware.Responder

UpdateFunctionHandlerFunc turns a function with the right signature into a update function handler

func (UpdateFunctionHandlerFunc) Handle

func (fn UpdateFunctionHandlerFunc) Handle(params UpdateFunctionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UpdateFunctionNotFound

type UpdateFunctionNotFound struct {

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

UpdateFunctionNotFound Function not found

swagger:response updateFunctionNotFound

func NewUpdateFunctionNotFound

func NewUpdateFunctionNotFound() *UpdateFunctionNotFound

NewUpdateFunctionNotFound creates UpdateFunctionNotFound with default headers values

func (*UpdateFunctionNotFound) SetPayload

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

SetPayload sets the payload to the update function not found response

func (*UpdateFunctionNotFound) WithPayload

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

WithPayload adds the payload to the update function not found response

func (*UpdateFunctionNotFound) WriteResponse

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

WriteResponse to the client

type UpdateFunctionOK

type UpdateFunctionOK struct {

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

UpdateFunctionOK Successful update

swagger:response updateFunctionOK

func NewUpdateFunctionOK

func NewUpdateFunctionOK() *UpdateFunctionOK

NewUpdateFunctionOK creates UpdateFunctionOK with default headers values

func (*UpdateFunctionOK) SetPayload

func (o *UpdateFunctionOK) SetPayload(payload *v1.Function)

SetPayload sets the payload to the update function o k response

func (*UpdateFunctionOK) WithPayload

func (o *UpdateFunctionOK) WithPayload(payload *v1.Function) *UpdateFunctionOK

WithPayload adds the payload to the update function o k response

func (*UpdateFunctionOK) WriteResponse

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

WriteResponse to the client

type UpdateFunctionParams

type UpdateFunctionParams struct {

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

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*function object
	  Required: true
	  In: body
	*/
	Body *v1.Function
	/*Name of function to work on
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	FunctionName string
	/*Filter based on tags
	  In: query
	  Collection Format: multi
	*/
	Tags []string
}

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

swagger:parameters updateFunction

func NewUpdateFunctionParams

func NewUpdateFunctionParams() UpdateFunctionParams

NewUpdateFunctionParams creates a new UpdateFunctionParams object no default values defined in spec.

func (*UpdateFunctionParams) BindRequest

func (o *UpdateFunctionParams) 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 NewUpdateFunctionParams() beforehand.

type UpdateFunctionURL

type UpdateFunctionURL struct {
	FunctionName string

	Tags []string
	// contains filtered or unexported fields
}

UpdateFunctionURL generates an URL for the update function operation

func (*UpdateFunctionURL) Build

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

Build a url path and query string

func (*UpdateFunctionURL) BuildFull

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

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

func (*UpdateFunctionURL) Must

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

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

func (*UpdateFunctionURL) SetBasePath

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

func (o *UpdateFunctionURL) String() string

String returns the string representation of the path with query string

func (*UpdateFunctionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateFunctionURL) WithBasePath

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

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 UpdateFunctionUnauthorized added in v0.1.18

type UpdateFunctionUnauthorized struct {

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

UpdateFunctionUnauthorized Unauthorized Request

swagger:response updateFunctionUnauthorized

func NewUpdateFunctionUnauthorized added in v0.1.18

func NewUpdateFunctionUnauthorized() *UpdateFunctionUnauthorized

NewUpdateFunctionUnauthorized creates UpdateFunctionUnauthorized with default headers values

func (*UpdateFunctionUnauthorized) SetPayload added in v0.1.18

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

SetPayload sets the payload to the update function unauthorized response

func (*UpdateFunctionUnauthorized) WithPayload added in v0.1.18

WithPayload adds the payload to the update function unauthorized response

func (*UpdateFunctionUnauthorized) WriteResponse added in v0.1.18

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