store

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: 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 AddFunctionInternalServerErrorCode int = 500

AddFunctionInternalServerErrorCode is the HTTP code returned for type AddFunctionInternalServerError

View Source
const AddFunctionOKCode int = 200

AddFunctionOKCode is the HTTP code returned for type AddFunctionOK

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

DeleteFunctionInternalServerErrorCode is the HTTP code returned for type DeleteFunctionInternalServerError

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 GetFunctionBadRequestCode int = 400

GetFunctionBadRequestCode is the HTTP code returned for type GetFunctionBadRequest

View Source
const GetFunctionInternalServerErrorCode int = 500

GetFunctionInternalServerErrorCode is the HTTP code returned for type GetFunctionInternalServerError

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

GetFunctionsInternalServerErrorCode is the HTTP code returned for type GetFunctionsInternalServerError

View Source
const GetFunctionsOKCode int = 200

GetFunctionsOKCode is the HTTP code returned for type GetFunctionsOK

View Source
const UpdateFunctionBadRequestCode int = 400

UpdateFunctionBadRequestCode is the HTTP code returned for type UpdateFunctionBadRequest

View Source
const UpdateFunctionInternalServerErrorCode int = 500

UpdateFunctionInternalServerErrorCode is the HTTP code returned for type UpdateFunctionInternalServerError

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

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 / 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 *models.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 *models.Error)

SetPayload sets the payload to the add function bad request response

func (*AddFunctionBadRequest) WithPayload

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

type AddFunctionInternalServerError struct {

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

AddFunctionInternalServerError Internal error

swagger:response addFunctionInternalServerError

func NewAddFunctionInternalServerError

func NewAddFunctionInternalServerError() *AddFunctionInternalServerError

NewAddFunctionInternalServerError creates AddFunctionInternalServerError with default headers values

func (*AddFunctionInternalServerError) SetPayload

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

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

func (*AddFunctionInternalServerError) WithPayload

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

func (*AddFunctionInternalServerError) WriteResponse

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

WriteResponse to the client

type AddFunctionOK

type AddFunctionOK struct {

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

AddFunctionOK Function created

swagger:response addFunctionOK

func NewAddFunctionOK

func NewAddFunctionOK() *AddFunctionOK

NewAddFunctionOK creates AddFunctionOK with default headers values

func (*AddFunctionOK) SetPayload

func (o *AddFunctionOK) SetPayload(payload *models.Function)

SetPayload sets the payload to the add function o k response

func (*AddFunctionOK) WithPayload

func (o *AddFunctionOK) WithPayload(payload *models.Function) *AddFunctionOK

WithPayload adds the payload to the add function o k response

func (*AddFunctionOK) WriteResponse

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

WriteResponse to the client

type AddFunctionParams

type AddFunctionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*function object
	  Required: true
	  In: body
	*/
	Body *models.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 with the default values initialized.

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

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 *models.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 *models.Error)

SetPayload sets the payload to the add function unauthorized response

func (*AddFunctionUnauthorized) WithPayload

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

SetPayload sets the payload to the delete function bad request response

func (*DeleteFunctionBadRequest) WithPayload

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 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 DeleteFunctionInternalServerError

type DeleteFunctionInternalServerError struct {

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

DeleteFunctionInternalServerError Internal error

swagger:response deleteFunctionInternalServerError

func NewDeleteFunctionInternalServerError

func NewDeleteFunctionInternalServerError() *DeleteFunctionInternalServerError

NewDeleteFunctionInternalServerError creates DeleteFunctionInternalServerError with default headers values

func (*DeleteFunctionInternalServerError) SetPayload

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

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

func (*DeleteFunctionInternalServerError) WithPayload

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

func (*DeleteFunctionInternalServerError) WriteResponse

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

WriteResponse to the client

type DeleteFunctionNotFound

type DeleteFunctionNotFound struct {

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

SetPayload sets the payload to the delete function not found response

func (*DeleteFunctionNotFound) WithPayload

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

SetPayload sets the payload to the delete function o k response

func (*DeleteFunctionOK) WithPayload

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

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

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

type DeleteFunctionURL

type DeleteFunctionURL struct {
	FunctionName 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 GetFunction

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

GetFunction swagger:route GET /{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 *models.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 *models.Error)

SetPayload sets the payload to the get function bad request response

func (*GetFunctionBadRequest) WithPayload

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

type GetFunctionInternalServerError struct {

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

GetFunctionInternalServerError Internal error

swagger:response getFunctionInternalServerError

func NewGetFunctionInternalServerError

func NewGetFunctionInternalServerError() *GetFunctionInternalServerError

NewGetFunctionInternalServerError creates GetFunctionInternalServerError with default headers values

func (*GetFunctionInternalServerError) SetPayload

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

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

func (*GetFunctionInternalServerError) WithPayload

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

func (*GetFunctionInternalServerError) WriteResponse

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

WriteResponse to the client

type GetFunctionNotFound

type GetFunctionNotFound struct {

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

SetPayload sets the payload to the get function not found response

func (*GetFunctionNotFound) WithPayload

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

SetPayload sets the payload to the get function o k response

func (*GetFunctionOK) WithPayload

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

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

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

type GetFunctionURL

type GetFunctionURL struct {
	FunctionName 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 GetFunctions

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

GetFunctions swagger:route GET / 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 GetFunctionsDefault

type GetFunctionsDefault struct {

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

GetFunctionsDefault Custom 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 *models.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 *models.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 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 GetFunctionsInternalServerError

type GetFunctionsInternalServerError struct {

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

GetFunctionsInternalServerError Internal error

swagger:response getFunctionsInternalServerError

func NewGetFunctionsInternalServerError

func NewGetFunctionsInternalServerError() *GetFunctionsInternalServerError

NewGetFunctionsInternalServerError creates GetFunctionsInternalServerError with default headers values

func (*GetFunctionsInternalServerError) SetPayload

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

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

func (*GetFunctionsInternalServerError) WithPayload

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

func (*GetFunctionsInternalServerError) WriteResponse

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

WriteResponse to the client

type GetFunctionsOK

type GetFunctionsOK struct {

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

SetPayload sets the payload to the get functions o k response

func (*GetFunctionsOK) WithPayload

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

	/*Function state
	  In: query
	*/
	State *string
	/*Filter on function 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 with the default values initialized.

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

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 UpdateFunction

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

UpdateFunction swagger:route PUT /{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 *models.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 *models.Error)

SetPayload sets the payload to the update function bad request response

func (*UpdateFunctionBadRequest) WithPayload

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 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 UpdateFunctionInternalServerError

type UpdateFunctionInternalServerError struct {

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

UpdateFunctionInternalServerError Internal error

swagger:response updateFunctionInternalServerError

func NewUpdateFunctionInternalServerError

func NewUpdateFunctionInternalServerError() *UpdateFunctionInternalServerError

NewUpdateFunctionInternalServerError creates UpdateFunctionInternalServerError with default headers values

func (*UpdateFunctionInternalServerError) SetPayload

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

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

func (*UpdateFunctionInternalServerError) WithPayload

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

func (*UpdateFunctionInternalServerError) WriteResponse

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

WriteResponse to the client

type UpdateFunctionNotFound

type UpdateFunctionNotFound struct {

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

SetPayload sets the payload to the update function not found response

func (*UpdateFunctionNotFound) WithPayload

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

SetPayload sets the payload to the update function o k response

func (*UpdateFunctionOK) WithPayload

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

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

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

type UpdateFunctionURL

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

Jump to

Keyboard shortcuts

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