Documentation ¶
Index ¶
- Constants
- type AddFunction
- type AddFunctionBadRequest
- type AddFunctionHandler
- type AddFunctionHandlerFunc
- type AddFunctionInternalServerError
- type AddFunctionOK
- type AddFunctionParams
- type AddFunctionURL
- func (o *AddFunctionURL) Build() (*url.URL, error)
- func (o *AddFunctionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddFunctionURL) Must(u *url.URL, err error) *url.URL
- func (o *AddFunctionURL) SetBasePath(bp string)
- func (o *AddFunctionURL) String() string
- func (o *AddFunctionURL) StringFull(scheme, host string) string
- func (o *AddFunctionURL) WithBasePath(bp string) *AddFunctionURL
- type AddFunctionUnauthorized
- type DeleteFunction
- type DeleteFunctionBadRequest
- type DeleteFunctionHandler
- type DeleteFunctionHandlerFunc
- type DeleteFunctionInternalServerError
- func (o *DeleteFunctionInternalServerError) SetPayload(payload *models.Error)
- func (o *DeleteFunctionInternalServerError) WithPayload(payload *models.Error) *DeleteFunctionInternalServerError
- func (o *DeleteFunctionInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteFunctionNotFound
- type DeleteFunctionOK
- type DeleteFunctionParams
- type DeleteFunctionURL
- func (o *DeleteFunctionURL) Build() (*url.URL, error)
- func (o *DeleteFunctionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteFunctionURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteFunctionURL) SetBasePath(bp string)
- func (o *DeleteFunctionURL) String() string
- func (o *DeleteFunctionURL) StringFull(scheme, host string) string
- func (o *DeleteFunctionURL) WithBasePath(bp string) *DeleteFunctionURL
- type GetFunction
- type GetFunctionBadRequest
- type GetFunctionHandler
- type GetFunctionHandlerFunc
- type GetFunctionInternalServerError
- type GetFunctionNotFound
- type GetFunctionOK
- type GetFunctionParams
- type GetFunctionURL
- func (o *GetFunctionURL) Build() (*url.URL, error)
- func (o *GetFunctionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetFunctionURL) Must(u *url.URL, err error) *url.URL
- func (o *GetFunctionURL) SetBasePath(bp string)
- func (o *GetFunctionURL) String() string
- func (o *GetFunctionURL) StringFull(scheme, host string) string
- func (o *GetFunctionURL) WithBasePath(bp string) *GetFunctionURL
- type GetFunctions
- type GetFunctionsDefault
- func (o *GetFunctionsDefault) SetPayload(payload *models.Error)
- func (o *GetFunctionsDefault) SetStatusCode(code int)
- func (o *GetFunctionsDefault) WithPayload(payload *models.Error) *GetFunctionsDefault
- func (o *GetFunctionsDefault) WithStatusCode(code int) *GetFunctionsDefault
- func (o *GetFunctionsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetFunctionsHandler
- type GetFunctionsHandlerFunc
- type GetFunctionsInternalServerError
- type GetFunctionsOK
- type GetFunctionsParams
- type GetFunctionsURL
- func (o *GetFunctionsURL) Build() (*url.URL, error)
- func (o *GetFunctionsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetFunctionsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetFunctionsURL) SetBasePath(bp string)
- func (o *GetFunctionsURL) String() string
- func (o *GetFunctionsURL) StringFull(scheme, host string) string
- func (o *GetFunctionsURL) WithBasePath(bp string) *GetFunctionsURL
- type UpdateFunction
- type UpdateFunctionBadRequest
- type UpdateFunctionHandler
- type UpdateFunctionHandlerFunc
- type UpdateFunctionInternalServerError
- func (o *UpdateFunctionInternalServerError) SetPayload(payload *models.Error)
- func (o *UpdateFunctionInternalServerError) WithPayload(payload *models.Error) *UpdateFunctionInternalServerError
- func (o *UpdateFunctionInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateFunctionNotFound
- type UpdateFunctionOK
- type UpdateFunctionParams
- type UpdateFunctionURL
- func (o *UpdateFunctionURL) Build() (*url.URL, error)
- func (o *UpdateFunctionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateFunctionURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateFunctionURL) SetBasePath(bp string)
- func (o *UpdateFunctionURL) String() string
- func (o *UpdateFunctionURL) StringFull(scheme, host string) string
- func (o *UpdateFunctionURL) WithBasePath(bp string) *UpdateFunctionURL
Constants ¶
const AddFunctionBadRequestCode int = 400
AddFunctionBadRequestCode is the HTTP code returned for type AddFunctionBadRequest
const AddFunctionInternalServerErrorCode int = 500
AddFunctionInternalServerErrorCode is the HTTP code returned for type AddFunctionInternalServerError
const AddFunctionOKCode int = 200
AddFunctionOKCode is the HTTP code returned for type AddFunctionOK
AddFunctionUnauthorizedCode is the HTTP code returned for type AddFunctionUnauthorized
const DeleteFunctionBadRequestCode int = 400
DeleteFunctionBadRequestCode is the HTTP code returned for type DeleteFunctionBadRequest
const DeleteFunctionInternalServerErrorCode int = 500
DeleteFunctionInternalServerErrorCode is the HTTP code returned for type DeleteFunctionInternalServerError
const DeleteFunctionNotFoundCode int = 404
DeleteFunctionNotFoundCode is the HTTP code returned for type DeleteFunctionNotFound
const DeleteFunctionOKCode int = 200
DeleteFunctionOKCode is the HTTP code returned for type DeleteFunctionOK
const GetFunctionBadRequestCode int = 400
GetFunctionBadRequestCode is the HTTP code returned for type GetFunctionBadRequest
const GetFunctionInternalServerErrorCode int = 500
GetFunctionInternalServerErrorCode is the HTTP code returned for type GetFunctionInternalServerError
const GetFunctionNotFoundCode int = 404
GetFunctionNotFoundCode is the HTTP code returned for type GetFunctionNotFound
const GetFunctionOKCode int = 200
GetFunctionOKCode is the HTTP code returned for type GetFunctionOK
const GetFunctionsInternalServerErrorCode int = 500
GetFunctionsInternalServerErrorCode is the HTTP code returned for type GetFunctionsInternalServerError
const GetFunctionsOKCode int = 200
GetFunctionsOKCode is the HTTP code returned for type GetFunctionsOK
const UpdateFunctionBadRequestCode int = 400
UpdateFunctionBadRequestCode is the HTTP code returned for type UpdateFunctionBadRequest
const UpdateFunctionInternalServerErrorCode int = 500
UpdateFunctionInternalServerErrorCode is the HTTP code returned for type UpdateFunctionInternalServerError
const UpdateFunctionNotFoundCode int = 404
UpdateFunctionNotFoundCode is the HTTP code returned for type UpdateFunctionNotFound
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 ¶
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 ¶
func (o *AddFunctionInternalServerError) WithPayload(payload *models.Error) *AddFunctionInternalServerError
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 ¶
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 ¶
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 ¶
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 ¶
func (o *DeleteFunctionBadRequest) WithPayload(payload *models.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 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 ¶
func (o *DeleteFunctionInternalServerError) WithPayload(payload *models.Error) *DeleteFunctionInternalServerError
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (o *GetFunctionInternalServerError) WithPayload(payload *models.Error) *GetFunctionInternalServerError
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 ¶
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 ¶
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 ¶
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 ¶
func (o *GetFunctionsInternalServerError) WithPayload(payload *models.Error) *GetFunctionsInternalServerError
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 ¶
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 ¶
func (o *UpdateFunctionBadRequest) WithPayload(payload *models.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 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 ¶
func (o *UpdateFunctionInternalServerError) WithPayload(payload *models.Error) *UpdateFunctionInternalServerError
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 ¶
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 ¶
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 ¶
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
Source Files ¶
- add_function.go
- add_function_parameters.go
- add_function_responses.go
- add_function_urlbuilder.go
- delete_function.go
- delete_function_parameters.go
- delete_function_responses.go
- delete_function_urlbuilder.go
- get_function.go
- get_function_parameters.go
- get_function_responses.go
- get_function_urlbuilder.go
- get_functions.go
- get_functions_parameters.go
- get_functions_responses.go
- get_functions_urlbuilder.go
- update_function.go
- update_function_parameters.go
- update_function_responses.go
- update_function_urlbuilder.go