Documentation ¶
Index ¶
- Constants
- type CreateUserGarden
- type CreateUserGardenCreated
- func (o *CreateUserGardenCreated) SetPayload(payload *models.Garden)
- func (o *CreateUserGardenCreated) SetXRequestID(xRequestID string)
- func (o *CreateUserGardenCreated) WithPayload(payload *models.Garden) *CreateUserGardenCreated
- func (o *CreateUserGardenCreated) WithXRequestID(xRequestID string) *CreateUserGardenCreated
- func (o *CreateUserGardenCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateUserGardenDefault
- func (o *CreateUserGardenDefault) SetPayload(payload *models.ErrorResponse)
- func (o *CreateUserGardenDefault) SetStatusCode(code int)
- func (o *CreateUserGardenDefault) SetXRequestID(xRequestID string)
- func (o *CreateUserGardenDefault) WithPayload(payload *models.ErrorResponse) *CreateUserGardenDefault
- func (o *CreateUserGardenDefault) WithStatusCode(code int) *CreateUserGardenDefault
- func (o *CreateUserGardenDefault) WithXRequestID(xRequestID string) *CreateUserGardenDefault
- func (o *CreateUserGardenDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateUserGardenHandler
- type CreateUserGardenHandlerFunc
- type CreateUserGardenParams
- type CreateUserGardenURL
- func (o *CreateUserGardenURL) Build() (*url.URL, error)
- func (o *CreateUserGardenURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateUserGardenURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateUserGardenURL) SetBasePath(bp string)
- func (o *CreateUserGardenURL) String() string
- func (o *CreateUserGardenURL) StringFull(scheme, host string) string
- func (o *CreateUserGardenURL) WithBasePath(bp string) *CreateUserGardenURL
- type DeleteUserGarden
- type DeleteUserGardenDefault
- func (o *DeleteUserGardenDefault) SetPayload(payload *models.ErrorResponse)
- func (o *DeleteUserGardenDefault) SetStatusCode(code int)
- func (o *DeleteUserGardenDefault) SetXRequestID(xRequestID string)
- func (o *DeleteUserGardenDefault) WithPayload(payload *models.ErrorResponse) *DeleteUserGardenDefault
- func (o *DeleteUserGardenDefault) WithStatusCode(code int) *DeleteUserGardenDefault
- func (o *DeleteUserGardenDefault) WithXRequestID(xRequestID string) *DeleteUserGardenDefault
- func (o *DeleteUserGardenDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteUserGardenHandler
- type DeleteUserGardenHandlerFunc
- type DeleteUserGardenOK
- func (o *DeleteUserGardenOK) SetPayload(payload *models.Response)
- func (o *DeleteUserGardenOK) SetXRequestID(xRequestID string)
- func (o *DeleteUserGardenOK) WithPayload(payload *models.Response) *DeleteUserGardenOK
- func (o *DeleteUserGardenOK) WithXRequestID(xRequestID string) *DeleteUserGardenOK
- func (o *DeleteUserGardenOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteUserGardenParams
- type DeleteUserGardenURL
- func (o *DeleteUserGardenURL) Build() (*url.URL, error)
- func (o *DeleteUserGardenURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteUserGardenURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteUserGardenURL) SetBasePath(bp string)
- func (o *DeleteUserGardenURL) String() string
- func (o *DeleteUserGardenURL) StringFull(scheme, host string) string
- func (o *DeleteUserGardenURL) WithBasePath(bp string) *DeleteUserGardenURL
- type GetUserGardenByID
- type GetUserGardenByIDDefault
- func (o *GetUserGardenByIDDefault) SetPayload(payload *models.ErrorResponse)
- func (o *GetUserGardenByIDDefault) SetStatusCode(code int)
- func (o *GetUserGardenByIDDefault) SetXRequestID(xRequestID string)
- func (o *GetUserGardenByIDDefault) WithPayload(payload *models.ErrorResponse) *GetUserGardenByIDDefault
- func (o *GetUserGardenByIDDefault) WithStatusCode(code int) *GetUserGardenByIDDefault
- func (o *GetUserGardenByIDDefault) WithXRequestID(xRequestID string) *GetUserGardenByIDDefault
- func (o *GetUserGardenByIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetUserGardenByIDHandler
- type GetUserGardenByIDHandlerFunc
- type GetUserGardenByIDOK
- func (o *GetUserGardenByIDOK) SetPayload(payload *models.Garden)
- func (o *GetUserGardenByIDOK) SetXRequestID(xRequestID string)
- func (o *GetUserGardenByIDOK) WithPayload(payload *models.Garden) *GetUserGardenByIDOK
- func (o *GetUserGardenByIDOK) WithXRequestID(xRequestID string) *GetUserGardenByIDOK
- func (o *GetUserGardenByIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetUserGardenByIDParams
- type GetUserGardenByIDURL
- func (o *GetUserGardenByIDURL) Build() (*url.URL, error)
- func (o *GetUserGardenByIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetUserGardenByIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetUserGardenByIDURL) SetBasePath(bp string)
- func (o *GetUserGardenByIDURL) String() string
- func (o *GetUserGardenByIDURL) StringFull(scheme, host string) string
- func (o *GetUserGardenByIDURL) WithBasePath(bp string) *GetUserGardenByIDURL
- type GetUserGardens
- type GetUserGardensDefault
- func (o *GetUserGardensDefault) SetPayload(payload *models.ErrorResponse)
- func (o *GetUserGardensDefault) SetStatusCode(code int)
- func (o *GetUserGardensDefault) SetXRequestID(xRequestID string)
- func (o *GetUserGardensDefault) WithPayload(payload *models.ErrorResponse) *GetUserGardensDefault
- func (o *GetUserGardensDefault) WithStatusCode(code int) *GetUserGardensDefault
- func (o *GetUserGardensDefault) WithXRequestID(xRequestID string) *GetUserGardensDefault
- func (o *GetUserGardensDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetUserGardensHandler
- type GetUserGardensHandlerFunc
- type GetUserGardensOK
- func (o *GetUserGardensOK) SetPayload(payload *models.GardensResponse)
- func (o *GetUserGardensOK) SetXRequestID(xRequestID string)
- func (o *GetUserGardensOK) WithPayload(payload *models.GardensResponse) *GetUserGardensOK
- func (o *GetUserGardensOK) WithXRequestID(xRequestID string) *GetUserGardensOK
- func (o *GetUserGardensOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetUserGardensParams
- type GetUserGardensURL
- func (o *GetUserGardensURL) Build() (*url.URL, error)
- func (o *GetUserGardensURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetUserGardensURL) Must(u *url.URL, err error) *url.URL
- func (o *GetUserGardensURL) SetBasePath(bp string)
- func (o *GetUserGardensURL) String() string
- func (o *GetUserGardensURL) StringFull(scheme, host string) string
- func (o *GetUserGardensURL) WithBasePath(bp string) *GetUserGardensURL
Constants ¶
const CreateUserGardenCreatedCode int = 201
CreateUserGardenCreatedCode is the HTTP code returned for type CreateUserGardenCreated
const DeleteUserGardenOKCode int = 200
DeleteUserGardenOKCode is the HTTP code returned for type DeleteUserGardenOK
const GetUserGardenByIDOKCode int = 200
GetUserGardenByIDOKCode is the HTTP code returned for type GetUserGardenByIDOK
const GetUserGardensOKCode int = 200
GetUserGardensOKCode is the HTTP code returned for type GetUserGardensOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateUserGarden ¶
type CreateUserGarden struct { Context *middleware.Context Handler CreateUserGardenHandler }
CreateUserGarden swagger:route POST /api/v1/gardens gardens createUserGarden
Create new users's garden ¶
Creates new garden for user
func NewCreateUserGarden ¶
func NewCreateUserGarden(ctx *middleware.Context, handler CreateUserGardenHandler) *CreateUserGarden
NewCreateUserGarden creates a new http.Handler for the create user garden operation
func (*CreateUserGarden) ServeHTTP ¶
func (o *CreateUserGarden) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateUserGardenCreated ¶
type CreateUserGardenCreated struct { /*The request id this is a response to */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Garden `json:"body,omitempty"` }
CreateUserGardenCreated New garden with id
swagger:response createUserGardenCreated
func NewCreateUserGardenCreated ¶
func NewCreateUserGardenCreated() *CreateUserGardenCreated
NewCreateUserGardenCreated creates CreateUserGardenCreated with default headers values
func (*CreateUserGardenCreated) SetPayload ¶
func (o *CreateUserGardenCreated) SetPayload(payload *models.Garden)
SetPayload sets the payload to the create user garden created response
func (*CreateUserGardenCreated) SetXRequestID ¶
func (o *CreateUserGardenCreated) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the create user garden created response
func (*CreateUserGardenCreated) WithPayload ¶
func (o *CreateUserGardenCreated) WithPayload(payload *models.Garden) *CreateUserGardenCreated
WithPayload adds the payload to the create user garden created response
func (*CreateUserGardenCreated) WithXRequestID ¶
func (o *CreateUserGardenCreated) WithXRequestID(xRequestID string) *CreateUserGardenCreated
WithXRequestID adds the xRequestId to the create user garden created response
func (*CreateUserGardenCreated) WriteResponse ¶
func (o *CreateUserGardenCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateUserGardenDefault ¶
type CreateUserGardenDefault struct { /*The request id this is a response to */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` // contains filtered or unexported fields }
CreateUserGardenDefault unexpected error
swagger:response createUserGardenDefault
func NewCreateUserGardenDefault ¶
func NewCreateUserGardenDefault(code int) *CreateUserGardenDefault
NewCreateUserGardenDefault creates CreateUserGardenDefault with default headers values
func (*CreateUserGardenDefault) SetPayload ¶
func (o *CreateUserGardenDefault) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the create user garden default response
func (*CreateUserGardenDefault) SetStatusCode ¶
func (o *CreateUserGardenDefault) SetStatusCode(code int)
SetStatusCode sets the status to the create user garden default response
func (*CreateUserGardenDefault) SetXRequestID ¶
func (o *CreateUserGardenDefault) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the create user garden default response
func (*CreateUserGardenDefault) WithPayload ¶
func (o *CreateUserGardenDefault) WithPayload(payload *models.ErrorResponse) *CreateUserGardenDefault
WithPayload adds the payload to the create user garden default response
func (*CreateUserGardenDefault) WithStatusCode ¶
func (o *CreateUserGardenDefault) WithStatusCode(code int) *CreateUserGardenDefault
WithStatusCode adds the status to the create user garden default response
func (*CreateUserGardenDefault) WithXRequestID ¶
func (o *CreateUserGardenDefault) WithXRequestID(xRequestID string) *CreateUserGardenDefault
WithXRequestID adds the xRequestId to the create user garden default response
func (*CreateUserGardenDefault) WriteResponse ¶
func (o *CreateUserGardenDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateUserGardenHandler ¶
type CreateUserGardenHandler interface {
Handle(CreateUserGardenParams) middleware.Responder
}
CreateUserGardenHandler interface for that can handle valid create user garden params
type CreateUserGardenHandlerFunc ¶
type CreateUserGardenHandlerFunc func(CreateUserGardenParams) middleware.Responder
CreateUserGardenHandlerFunc turns a function with the right signature into a create user garden handler
func (CreateUserGardenHandlerFunc) Handle ¶
func (fn CreateUserGardenHandlerFunc) Handle(params CreateUserGardenParams) middleware.Responder
Handle executing the request and returning a response
type CreateUserGardenParams ¶
type CreateUserGardenParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*New garden parameters without id Required: true In: body */ Garden *models.Garden }
CreateUserGardenParams contains all the bound params for the create user garden operation typically these are obtained from a http.Request
swagger:parameters createUserGarden
func NewCreateUserGardenParams ¶
func NewCreateUserGardenParams() CreateUserGardenParams
NewCreateUserGardenParams creates a new CreateUserGardenParams object
There are no default values defined in the spec.
func (*CreateUserGardenParams) BindRequest ¶
func (o *CreateUserGardenParams) 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 NewCreateUserGardenParams() beforehand.
type CreateUserGardenURL ¶
type CreateUserGardenURL struct {
// contains filtered or unexported fields
}
CreateUserGardenURL generates an URL for the create user garden operation
func (*CreateUserGardenURL) Build ¶
func (o *CreateUserGardenURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateUserGardenURL) BuildFull ¶
func (o *CreateUserGardenURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateUserGardenURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateUserGardenURL) SetBasePath ¶
func (o *CreateUserGardenURL) 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 (*CreateUserGardenURL) String ¶
func (o *CreateUserGardenURL) String() string
String returns the string representation of the path with query string
func (*CreateUserGardenURL) StringFull ¶
func (o *CreateUserGardenURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateUserGardenURL) WithBasePath ¶
func (o *CreateUserGardenURL) WithBasePath(bp string) *CreateUserGardenURL
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 DeleteUserGarden ¶
type DeleteUserGarden struct { Context *middleware.Context Handler DeleteUserGardenHandler }
DeleteUserGarden swagger:route DELETE /api/v1/gardens/{garden_id} gardens deleteUserGarden
Delete garden ¶
Deletes user's garden, can only admin or owner
func NewDeleteUserGarden ¶
func NewDeleteUserGarden(ctx *middleware.Context, handler DeleteUserGardenHandler) *DeleteUserGarden
NewDeleteUserGarden creates a new http.Handler for the delete user garden operation
func (*DeleteUserGarden) ServeHTTP ¶
func (o *DeleteUserGarden) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteUserGardenDefault ¶
type DeleteUserGardenDefault struct { /*The request id this is a response to */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteUserGardenDefault unexpected error
swagger:response deleteUserGardenDefault
func NewDeleteUserGardenDefault ¶
func NewDeleteUserGardenDefault(code int) *DeleteUserGardenDefault
NewDeleteUserGardenDefault creates DeleteUserGardenDefault with default headers values
func (*DeleteUserGardenDefault) SetPayload ¶
func (o *DeleteUserGardenDefault) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the delete user garden default response
func (*DeleteUserGardenDefault) SetStatusCode ¶
func (o *DeleteUserGardenDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete user garden default response
func (*DeleteUserGardenDefault) SetXRequestID ¶
func (o *DeleteUserGardenDefault) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the delete user garden default response
func (*DeleteUserGardenDefault) WithPayload ¶
func (o *DeleteUserGardenDefault) WithPayload(payload *models.ErrorResponse) *DeleteUserGardenDefault
WithPayload adds the payload to the delete user garden default response
func (*DeleteUserGardenDefault) WithStatusCode ¶
func (o *DeleteUserGardenDefault) WithStatusCode(code int) *DeleteUserGardenDefault
WithStatusCode adds the status to the delete user garden default response
func (*DeleteUserGardenDefault) WithXRequestID ¶
func (o *DeleteUserGardenDefault) WithXRequestID(xRequestID string) *DeleteUserGardenDefault
WithXRequestID adds the xRequestId to the delete user garden default response
func (*DeleteUserGardenDefault) WriteResponse ¶
func (o *DeleteUserGardenDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteUserGardenHandler ¶
type DeleteUserGardenHandler interface {
Handle(DeleteUserGardenParams) middleware.Responder
}
DeleteUserGardenHandler interface for that can handle valid delete user garden params
type DeleteUserGardenHandlerFunc ¶
type DeleteUserGardenHandlerFunc func(DeleteUserGardenParams) middleware.Responder
DeleteUserGardenHandlerFunc turns a function with the right signature into a delete user garden handler
func (DeleteUserGardenHandlerFunc) Handle ¶
func (fn DeleteUserGardenHandlerFunc) Handle(params DeleteUserGardenParams) middleware.Responder
Handle executing the request and returning a response
type DeleteUserGardenOK ¶
type DeleteUserGardenOK struct { /*The request id this is a response to */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Response `json:"body,omitempty"` }
DeleteUserGardenOK Garden deleted
swagger:response deleteUserGardenOK
func NewDeleteUserGardenOK ¶
func NewDeleteUserGardenOK() *DeleteUserGardenOK
NewDeleteUserGardenOK creates DeleteUserGardenOK with default headers values
func (*DeleteUserGardenOK) SetPayload ¶
func (o *DeleteUserGardenOK) SetPayload(payload *models.Response)
SetPayload sets the payload to the delete user garden o k response
func (*DeleteUserGardenOK) SetXRequestID ¶
func (o *DeleteUserGardenOK) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the delete user garden o k response
func (*DeleteUserGardenOK) WithPayload ¶
func (o *DeleteUserGardenOK) WithPayload(payload *models.Response) *DeleteUserGardenOK
WithPayload adds the payload to the delete user garden o k response
func (*DeleteUserGardenOK) WithXRequestID ¶
func (o *DeleteUserGardenOK) WithXRequestID(xRequestID string) *DeleteUserGardenOK
WithXRequestID adds the xRequestId to the delete user garden o k response
func (*DeleteUserGardenOK) WriteResponse ¶
func (o *DeleteUserGardenOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteUserGardenParams ¶
type DeleteUserGardenParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Numeric ID of the user's garden to delete. Required: true In: path */ GardenID int64 }
DeleteUserGardenParams contains all the bound params for the delete user garden operation typically these are obtained from a http.Request
swagger:parameters deleteUserGarden
func NewDeleteUserGardenParams ¶
func NewDeleteUserGardenParams() DeleteUserGardenParams
NewDeleteUserGardenParams creates a new DeleteUserGardenParams object
There are no default values defined in the spec.
func (*DeleteUserGardenParams) BindRequest ¶
func (o *DeleteUserGardenParams) 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 NewDeleteUserGardenParams() beforehand.
type DeleteUserGardenURL ¶
type DeleteUserGardenURL struct { GardenID int64 // contains filtered or unexported fields }
DeleteUserGardenURL generates an URL for the delete user garden operation
func (*DeleteUserGardenURL) Build ¶
func (o *DeleteUserGardenURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteUserGardenURL) BuildFull ¶
func (o *DeleteUserGardenURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteUserGardenURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteUserGardenURL) SetBasePath ¶
func (o *DeleteUserGardenURL) 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 (*DeleteUserGardenURL) String ¶
func (o *DeleteUserGardenURL) String() string
String returns the string representation of the path with query string
func (*DeleteUserGardenURL) StringFull ¶
func (o *DeleteUserGardenURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteUserGardenURL) WithBasePath ¶
func (o *DeleteUserGardenURL) WithBasePath(bp string) *DeleteUserGardenURL
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 GetUserGardenByID ¶
type GetUserGardenByID struct { Context *middleware.Context Handler GetUserGardenByIDHandler }
GetUserGardenByID swagger:route GET /api/v1/gardens/{garden_id} gardens getUserGardenById
Get garden by id ¶
Shows users's garden by specified garden_id
func NewGetUserGardenByID ¶
func NewGetUserGardenByID(ctx *middleware.Context, handler GetUserGardenByIDHandler) *GetUserGardenByID
NewGetUserGardenByID creates a new http.Handler for the get user garden by ID operation
func (*GetUserGardenByID) ServeHTTP ¶
func (o *GetUserGardenByID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetUserGardenByIDDefault ¶
type GetUserGardenByIDDefault struct { /*The request id this is a response to */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` // contains filtered or unexported fields }
GetUserGardenByIDDefault unexpected error
swagger:response getUserGardenByIdDefault
func NewGetUserGardenByIDDefault ¶
func NewGetUserGardenByIDDefault(code int) *GetUserGardenByIDDefault
NewGetUserGardenByIDDefault creates GetUserGardenByIDDefault with default headers values
func (*GetUserGardenByIDDefault) SetPayload ¶
func (o *GetUserGardenByIDDefault) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get user garden by ID default response
func (*GetUserGardenByIDDefault) SetStatusCode ¶
func (o *GetUserGardenByIDDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get user garden by ID default response
func (*GetUserGardenByIDDefault) SetXRequestID ¶
func (o *GetUserGardenByIDDefault) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get user garden by ID default response
func (*GetUserGardenByIDDefault) WithPayload ¶
func (o *GetUserGardenByIDDefault) WithPayload(payload *models.ErrorResponse) *GetUserGardenByIDDefault
WithPayload adds the payload to the get user garden by ID default response
func (*GetUserGardenByIDDefault) WithStatusCode ¶
func (o *GetUserGardenByIDDefault) WithStatusCode(code int) *GetUserGardenByIDDefault
WithStatusCode adds the status to the get user garden by ID default response
func (*GetUserGardenByIDDefault) WithXRequestID ¶
func (o *GetUserGardenByIDDefault) WithXRequestID(xRequestID string) *GetUserGardenByIDDefault
WithXRequestID adds the xRequestId to the get user garden by ID default response
func (*GetUserGardenByIDDefault) WriteResponse ¶
func (o *GetUserGardenByIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserGardenByIDHandler ¶
type GetUserGardenByIDHandler interface {
Handle(GetUserGardenByIDParams) middleware.Responder
}
GetUserGardenByIDHandler interface for that can handle valid get user garden by ID params
type GetUserGardenByIDHandlerFunc ¶
type GetUserGardenByIDHandlerFunc func(GetUserGardenByIDParams) middleware.Responder
GetUserGardenByIDHandlerFunc turns a function with the right signature into a get user garden by ID handler
func (GetUserGardenByIDHandlerFunc) Handle ¶
func (fn GetUserGardenByIDHandlerFunc) Handle(params GetUserGardenByIDParams) middleware.Responder
Handle executing the request and returning a response
type GetUserGardenByIDOK ¶
type GetUserGardenByIDOK struct { /*The request id this is a response to */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Garden `json:"body,omitempty"` }
GetUserGardenByIDOK Exists garden
swagger:response getUserGardenByIdOK
func NewGetUserGardenByIDOK ¶
func NewGetUserGardenByIDOK() *GetUserGardenByIDOK
NewGetUserGardenByIDOK creates GetUserGardenByIDOK with default headers values
func (*GetUserGardenByIDOK) SetPayload ¶
func (o *GetUserGardenByIDOK) SetPayload(payload *models.Garden)
SetPayload sets the payload to the get user garden by Id o k response
func (*GetUserGardenByIDOK) SetXRequestID ¶
func (o *GetUserGardenByIDOK) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get user garden by Id o k response
func (*GetUserGardenByIDOK) WithPayload ¶
func (o *GetUserGardenByIDOK) WithPayload(payload *models.Garden) *GetUserGardenByIDOK
WithPayload adds the payload to the get user garden by Id o k response
func (*GetUserGardenByIDOK) WithXRequestID ¶
func (o *GetUserGardenByIDOK) WithXRequestID(xRequestID string) *GetUserGardenByIDOK
WithXRequestID adds the xRequestId to the get user garden by Id o k response
func (*GetUserGardenByIDOK) WriteResponse ¶
func (o *GetUserGardenByIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserGardenByIDParams ¶
type GetUserGardenByIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Numeric ID of the user's garden to get. Required: true In: path */ GardenID int64 }
GetUserGardenByIDParams contains all the bound params for the get user garden by ID operation typically these are obtained from a http.Request
swagger:parameters getUserGardenByID
func NewGetUserGardenByIDParams ¶
func NewGetUserGardenByIDParams() GetUserGardenByIDParams
NewGetUserGardenByIDParams creates a new GetUserGardenByIDParams object
There are no default values defined in the spec.
func (*GetUserGardenByIDParams) BindRequest ¶
func (o *GetUserGardenByIDParams) 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 NewGetUserGardenByIDParams() beforehand.
type GetUserGardenByIDURL ¶
type GetUserGardenByIDURL struct { GardenID int64 // contains filtered or unexported fields }
GetUserGardenByIDURL generates an URL for the get user garden by ID operation
func (*GetUserGardenByIDURL) Build ¶
func (o *GetUserGardenByIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetUserGardenByIDURL) BuildFull ¶
func (o *GetUserGardenByIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetUserGardenByIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetUserGardenByIDURL) SetBasePath ¶
func (o *GetUserGardenByIDURL) 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 (*GetUserGardenByIDURL) String ¶
func (o *GetUserGardenByIDURL) String() string
String returns the string representation of the path with query string
func (*GetUserGardenByIDURL) StringFull ¶
func (o *GetUserGardenByIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetUserGardenByIDURL) WithBasePath ¶
func (o *GetUserGardenByIDURL) WithBasePath(bp string) *GetUserGardenByIDURL
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 GetUserGardens ¶
type GetUserGardens struct { Context *middleware.Context Handler GetUserGardensHandler }
GetUserGardens swagger:route GET /api/v1/gardens gardens getUserGardens
Get list users's gardens ¶
Shows list users's gardens
func NewGetUserGardens ¶
func NewGetUserGardens(ctx *middleware.Context, handler GetUserGardensHandler) *GetUserGardens
NewGetUserGardens creates a new http.Handler for the get user gardens operation
func (*GetUserGardens) ServeHTTP ¶
func (o *GetUserGardens) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetUserGardensDefault ¶
type GetUserGardensDefault struct { /*The request id this is a response to */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` // contains filtered or unexported fields }
GetUserGardensDefault unexpected error
swagger:response getUserGardensDefault
func NewGetUserGardensDefault ¶
func NewGetUserGardensDefault(code int) *GetUserGardensDefault
NewGetUserGardensDefault creates GetUserGardensDefault with default headers values
func (*GetUserGardensDefault) SetPayload ¶
func (o *GetUserGardensDefault) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get user gardens default response
func (*GetUserGardensDefault) SetStatusCode ¶
func (o *GetUserGardensDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get user gardens default response
func (*GetUserGardensDefault) SetXRequestID ¶
func (o *GetUserGardensDefault) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get user gardens default response
func (*GetUserGardensDefault) WithPayload ¶
func (o *GetUserGardensDefault) WithPayload(payload *models.ErrorResponse) *GetUserGardensDefault
WithPayload adds the payload to the get user gardens default response
func (*GetUserGardensDefault) WithStatusCode ¶
func (o *GetUserGardensDefault) WithStatusCode(code int) *GetUserGardensDefault
WithStatusCode adds the status to the get user gardens default response
func (*GetUserGardensDefault) WithXRequestID ¶
func (o *GetUserGardensDefault) WithXRequestID(xRequestID string) *GetUserGardensDefault
WithXRequestID adds the xRequestId to the get user gardens default response
func (*GetUserGardensDefault) WriteResponse ¶
func (o *GetUserGardensDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserGardensHandler ¶
type GetUserGardensHandler interface {
Handle(GetUserGardensParams) middleware.Responder
}
GetUserGardensHandler interface for that can handle valid get user gardens params
type GetUserGardensHandlerFunc ¶
type GetUserGardensHandlerFunc func(GetUserGardensParams) middleware.Responder
GetUserGardensHandlerFunc turns a function with the right signature into a get user gardens handler
func (GetUserGardensHandlerFunc) Handle ¶
func (fn GetUserGardensHandlerFunc) Handle(params GetUserGardensParams) middleware.Responder
Handle executing the request and returning a response
type GetUserGardensOK ¶
type GetUserGardensOK struct { /*The request id this is a response to */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.GardensResponse `json:"body,omitempty"` }
GetUserGardensOK List of the gardens
swagger:response getUserGardensOK
func NewGetUserGardensOK ¶
func NewGetUserGardensOK() *GetUserGardensOK
NewGetUserGardensOK creates GetUserGardensOK with default headers values
func (*GetUserGardensOK) SetPayload ¶
func (o *GetUserGardensOK) SetPayload(payload *models.GardensResponse)
SetPayload sets the payload to the get user gardens o k response
func (*GetUserGardensOK) SetXRequestID ¶
func (o *GetUserGardensOK) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get user gardens o k response
func (*GetUserGardensOK) WithPayload ¶
func (o *GetUserGardensOK) WithPayload(payload *models.GardensResponse) *GetUserGardensOK
WithPayload adds the payload to the get user gardens o k response
func (*GetUserGardensOK) WithXRequestID ¶
func (o *GetUserGardensOK) WithXRequestID(xRequestID string) *GetUserGardensOK
WithXRequestID adds the xRequestId to the get user gardens o k response
func (*GetUserGardensOK) WriteResponse ¶
func (o *GetUserGardensOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserGardensParams ¶
type GetUserGardensParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The numbers of items to return. In: query */ Limit *int64 /*The number of items to skip before starting to collect the result set. In: query */ Offset *int64 }
GetUserGardensParams contains all the bound params for the get user gardens operation typically these are obtained from a http.Request
swagger:parameters getUserGardens
func NewGetUserGardensParams ¶
func NewGetUserGardensParams() GetUserGardensParams
NewGetUserGardensParams creates a new GetUserGardensParams object
There are no default values defined in the spec.
func (*GetUserGardensParams) BindRequest ¶
func (o *GetUserGardensParams) 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 NewGetUserGardensParams() beforehand.
type GetUserGardensURL ¶
type GetUserGardensURL struct { Limit *int64 Offset *int64 // contains filtered or unexported fields }
GetUserGardensURL generates an URL for the get user gardens operation
func (*GetUserGardensURL) Build ¶
func (o *GetUserGardensURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetUserGardensURL) BuildFull ¶
func (o *GetUserGardensURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetUserGardensURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetUserGardensURL) SetBasePath ¶
func (o *GetUserGardensURL) 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 (*GetUserGardensURL) String ¶
func (o *GetUserGardensURL) String() string
String returns the string representation of the path with query string
func (*GetUserGardensURL) StringFull ¶
func (o *GetUserGardensURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetUserGardensURL) WithBasePath ¶
func (o *GetUserGardensURL) WithBasePath(bp string) *GetUserGardensURL
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 ¶
- create_user_garden.go
- create_user_garden_parameters.go
- create_user_garden_responses.go
- create_user_garden_urlbuilder.go
- delete_user_garden.go
- delete_user_garden_parameters.go
- delete_user_garden_responses.go
- delete_user_garden_urlbuilder.go
- get_user_garden_by_id.go
- get_user_garden_by_id_parameters.go
- get_user_garden_by_id_responses.go
- get_user_garden_by_id_urlbuilder.go
- get_user_gardens.go
- get_user_gardens_parameters.go
- get_user_gardens_responses.go
- get_user_gardens_urlbuilder.go