Documentation ¶
Index ¶
- Constants
- type AddResource
- type AddResourceDefault
- func (o *AddResourceDefault) SetPayload(payload *models.Error)
- func (o *AddResourceDefault) SetStatusCode(code int)
- func (o *AddResourceDefault) WithPayload(payload *models.Error) *AddResourceDefault
- func (o *AddResourceDefault) WithStatusCode(code int) *AddResourceDefault
- func (o *AddResourceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AddResourceHandler
- type AddResourceHandlerFunc
- type AddResourceNotFound
- type AddResourceOK
- type AddResourceParams
- type AddResourceURL
- func (o *AddResourceURL) Build() (*url.URL, error)
- func (o *AddResourceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddResourceURL) Must(u *url.URL, err error) *url.URL
- func (o *AddResourceURL) SetBasePath(bp string)
- func (o *AddResourceURL) String() string
- func (o *AddResourceURL) StringFull(scheme, host string) string
- func (o *AddResourceURL) WithBasePath(bp string) *AddResourceURL
- type DeleteResource
- type DeleteResourceDefault
- func (o *DeleteResourceDefault) SetPayload(payload *models.Error)
- func (o *DeleteResourceDefault) SetStatusCode(code int)
- func (o *DeleteResourceDefault) WithPayload(payload *models.Error) *DeleteResourceDefault
- func (o *DeleteResourceDefault) WithStatusCode(code int) *DeleteResourceDefault
- func (o *DeleteResourceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteResourceHandler
- type DeleteResourceHandlerFunc
- type DeleteResourceNotFound
- type DeleteResourceOK
- type DeleteResourceParams
- type DeleteResourceURL
- func (o *DeleteResourceURL) Build() (*url.URL, error)
- func (o *DeleteResourceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteResourceURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteResourceURL) SetBasePath(bp string)
- func (o *DeleteResourceURL) String() string
- func (o *DeleteResourceURL) StringFull(scheme, host string) string
- func (o *DeleteResourceURL) WithBasePath(bp string) *DeleteResourceURL
- type GetResourceByID
- type GetResourceByIDDefault
- func (o *GetResourceByIDDefault) SetPayload(payload *models.Error)
- func (o *GetResourceByIDDefault) SetStatusCode(code int)
- func (o *GetResourceByIDDefault) WithPayload(payload *models.Error) *GetResourceByIDDefault
- func (o *GetResourceByIDDefault) WithStatusCode(code int) *GetResourceByIDDefault
- func (o *GetResourceByIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetResourceByIDHandler
- type GetResourceByIDHandlerFunc
- type GetResourceByIDNotFound
- type GetResourceByIDOK
- type GetResourceByIDParams
- type GetResourceByIDURL
- func (o *GetResourceByIDURL) Build() (*url.URL, error)
- func (o *GetResourceByIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetResourceByIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetResourceByIDURL) SetBasePath(bp string)
- func (o *GetResourceByIDURL) String() string
- func (o *GetResourceByIDURL) StringFull(scheme, host string) string
- func (o *GetResourceByIDURL) WithBasePath(bp string) *GetResourceByIDURL
- type UpdateResource
- type UpdateResourceDefault
- func (o *UpdateResourceDefault) SetPayload(payload *models.Error)
- func (o *UpdateResourceDefault) SetStatusCode(code int)
- func (o *UpdateResourceDefault) WithPayload(payload *models.Error) *UpdateResourceDefault
- func (o *UpdateResourceDefault) WithStatusCode(code int) *UpdateResourceDefault
- func (o *UpdateResourceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateResourceHandler
- type UpdateResourceHandlerFunc
- type UpdateResourceNotFound
- type UpdateResourceOK
- type UpdateResourceParams
- type UpdateResourceURL
- func (o *UpdateResourceURL) Build() (*url.URL, error)
- func (o *UpdateResourceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateResourceURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateResourceURL) SetBasePath(bp string)
- func (o *UpdateResourceURL) String() string
- func (o *UpdateResourceURL) StringFull(scheme, host string) string
- func (o *UpdateResourceURL) WithBasePath(bp string) *UpdateResourceURL
Constants ¶
const AddResourceNotFoundCode int = 404
AddResourceNotFoundCode is the HTTP code returned for type AddResourceNotFound
const AddResourceOKCode int = 200
AddResourceOKCode is the HTTP code returned for type AddResourceOK
const DeleteResourceNotFoundCode int = 404
DeleteResourceNotFoundCode is the HTTP code returned for type DeleteResourceNotFound
const DeleteResourceOKCode int = 200
DeleteResourceOKCode is the HTTP code returned for type DeleteResourceOK
const GetResourceByIDNotFoundCode int = 404
GetResourceByIDNotFoundCode is the HTTP code returned for type GetResourceByIDNotFound
const GetResourceByIDOKCode int = 200
GetResourceByIDOKCode is the HTTP code returned for type GetResourceByIDOK
const UpdateResourceNotFoundCode int = 404
UpdateResourceNotFoundCode is the HTTP code returned for type UpdateResourceNotFound
const UpdateResourceOKCode int = 200
UpdateResourceOKCode is the HTTP code returned for type UpdateResourceOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddResource ¶
type AddResource struct { Context *middleware.Context Handler AddResourceHandler }
AddResource swagger:route POST /resource/ resource addResource
Add Resource details by Id ¶
Get a particular resource by Id
func NewAddResource ¶
func NewAddResource(ctx *middleware.Context, handler AddResourceHandler) *AddResource
NewAddResource creates a new http.Handler for the add resource operation
func (*AddResource) ServeHTTP ¶
func (o *AddResource) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AddResourceDefault ¶
type AddResourceDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
AddResourceDefault Unexpected error
swagger:response addResourceDefault
func NewAddResourceDefault ¶
func NewAddResourceDefault(code int) *AddResourceDefault
NewAddResourceDefault creates AddResourceDefault with default headers values
func (*AddResourceDefault) SetPayload ¶
func (o *AddResourceDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the add resource default response
func (*AddResourceDefault) SetStatusCode ¶
func (o *AddResourceDefault) SetStatusCode(code int)
SetStatusCode sets the status to the add resource default response
func (*AddResourceDefault) WithPayload ¶
func (o *AddResourceDefault) WithPayload(payload *models.Error) *AddResourceDefault
WithPayload adds the payload to the add resource default response
func (*AddResourceDefault) WithStatusCode ¶
func (o *AddResourceDefault) WithStatusCode(code int) *AddResourceDefault
WithStatusCode adds the status to the add resource default response
func (*AddResourceDefault) WriteResponse ¶
func (o *AddResourceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddResourceHandler ¶
type AddResourceHandler interface {
Handle(AddResourceParams, interface{}) middleware.Responder
}
AddResourceHandler interface for that can handle valid add resource params
type AddResourceHandlerFunc ¶
type AddResourceHandlerFunc func(AddResourceParams, interface{}) middleware.Responder
AddResourceHandlerFunc turns a function with the right signature into a add resource handler
func (AddResourceHandlerFunc) Handle ¶
func (fn AddResourceHandlerFunc) Handle(params AddResourceParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type AddResourceNotFound ¶
type AddResourceNotFound struct { }
AddResourceNotFound Resource not found
swagger:response addResourceNotFound
func NewAddResourceNotFound ¶
func NewAddResourceNotFound() *AddResourceNotFound
NewAddResourceNotFound creates AddResourceNotFound with default headers values
func (*AddResourceNotFound) WriteResponse ¶
func (o *AddResourceNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddResourceOK ¶
AddResourceOK Successful operation
swagger:response addResourceOK
func NewAddResourceOK ¶
func NewAddResourceOK() *AddResourceOK
NewAddResourceOK creates AddResourceOK with default headers values
func (*AddResourceOK) SetPayload ¶
func (o *AddResourceOK) SetPayload(payload *models.Resource)
SetPayload sets the payload to the add resource o k response
func (*AddResourceOK) WithPayload ¶
func (o *AddResourceOK) WithPayload(payload *models.Resource) *AddResourceOK
WithPayload adds the payload to the add resource o k response
func (*AddResourceOK) WriteResponse ¶
func (o *AddResourceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddResourceParams ¶
type AddResourceParams struct { // HTTP Request Object HTTPRequest *http.Request /* Required: true In: body */ Resource *models.Resource }
AddResourceParams contains all the bound params for the add resource operation typically these are obtained from a http.Request
swagger:parameters addResource
func NewAddResourceParams ¶
func NewAddResourceParams() AddResourceParams
NewAddResourceParams creates a new AddResourceParams object with the default values initialized.
func (*AddResourceParams) BindRequest ¶
func (o *AddResourceParams) 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 AddResourceURL ¶
type AddResourceURL struct {
// contains filtered or unexported fields
}
AddResourceURL generates an URL for the add resource operation
func (*AddResourceURL) Build ¶
func (o *AddResourceURL) Build() (*url.URL, error)
Build a url path and query string
func (*AddResourceURL) BuildFull ¶
func (o *AddResourceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AddResourceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AddResourceURL) SetBasePath ¶
func (o *AddResourceURL) 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 (*AddResourceURL) String ¶
func (o *AddResourceURL) String() string
String returns the string representation of the path with query string
func (*AddResourceURL) StringFull ¶
func (o *AddResourceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AddResourceURL) WithBasePath ¶
func (o *AddResourceURL) WithBasePath(bp string) *AddResourceURL
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 DeleteResource ¶
type DeleteResource struct { Context *middleware.Context Handler DeleteResourceHandler }
DeleteResource swagger:route DELETE /resource/ resource deleteResource
Delete Resource details by Id ¶
Get a particular resource by Id
func NewDeleteResource ¶
func NewDeleteResource(ctx *middleware.Context, handler DeleteResourceHandler) *DeleteResource
NewDeleteResource creates a new http.Handler for the delete resource operation
func (*DeleteResource) ServeHTTP ¶
func (o *DeleteResource) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteResourceDefault ¶
type DeleteResourceDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteResourceDefault Unexpected error
swagger:response deleteResourceDefault
func NewDeleteResourceDefault ¶
func NewDeleteResourceDefault(code int) *DeleteResourceDefault
NewDeleteResourceDefault creates DeleteResourceDefault with default headers values
func (*DeleteResourceDefault) SetPayload ¶
func (o *DeleteResourceDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete resource default response
func (*DeleteResourceDefault) SetStatusCode ¶
func (o *DeleteResourceDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete resource default response
func (*DeleteResourceDefault) WithPayload ¶
func (o *DeleteResourceDefault) WithPayload(payload *models.Error) *DeleteResourceDefault
WithPayload adds the payload to the delete resource default response
func (*DeleteResourceDefault) WithStatusCode ¶
func (o *DeleteResourceDefault) WithStatusCode(code int) *DeleteResourceDefault
WithStatusCode adds the status to the delete resource default response
func (*DeleteResourceDefault) WriteResponse ¶
func (o *DeleteResourceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteResourceHandler ¶
type DeleteResourceHandler interface {
Handle(DeleteResourceParams, interface{}) middleware.Responder
}
DeleteResourceHandler interface for that can handle valid delete resource params
type DeleteResourceHandlerFunc ¶
type DeleteResourceHandlerFunc func(DeleteResourceParams, interface{}) middleware.Responder
DeleteResourceHandlerFunc turns a function with the right signature into a delete resource handler
func (DeleteResourceHandlerFunc) Handle ¶
func (fn DeleteResourceHandlerFunc) Handle(params DeleteResourceParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteResourceNotFound ¶
type DeleteResourceNotFound struct { }
DeleteResourceNotFound Resource not found
swagger:response deleteResourceNotFound
func NewDeleteResourceNotFound ¶
func NewDeleteResourceNotFound() *DeleteResourceNotFound
NewDeleteResourceNotFound creates DeleteResourceNotFound with default headers values
func (*DeleteResourceNotFound) WriteResponse ¶
func (o *DeleteResourceNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteResourceOK ¶
DeleteResourceOK Successful operation
swagger:response deleteResourceOK
func NewDeleteResourceOK ¶
func NewDeleteResourceOK() *DeleteResourceOK
NewDeleteResourceOK creates DeleteResourceOK with default headers values
func (*DeleteResourceOK) SetPayload ¶
func (o *DeleteResourceOK) SetPayload(payload *models.Resource)
SetPayload sets the payload to the delete resource o k response
func (*DeleteResourceOK) WithPayload ¶
func (o *DeleteResourceOK) WithPayload(payload *models.Resource) *DeleteResourceOK
WithPayload adds the payload to the delete resource o k response
func (*DeleteResourceOK) WriteResponse ¶
func (o *DeleteResourceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteResourceParams ¶
type DeleteResourceParams struct { // HTTP Request Object HTTPRequest *http.Request /* Required: true In: body */ Resource *models.Resource }
DeleteResourceParams contains all the bound params for the delete resource operation typically these are obtained from a http.Request
swagger:parameters deleteResource
func NewDeleteResourceParams ¶
func NewDeleteResourceParams() DeleteResourceParams
NewDeleteResourceParams creates a new DeleteResourceParams object with the default values initialized.
func (*DeleteResourceParams) BindRequest ¶
func (o *DeleteResourceParams) 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 DeleteResourceURL ¶
type DeleteResourceURL struct {
// contains filtered or unexported fields
}
DeleteResourceURL generates an URL for the delete resource operation
func (*DeleteResourceURL) Build ¶
func (o *DeleteResourceURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteResourceURL) BuildFull ¶
func (o *DeleteResourceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteResourceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteResourceURL) SetBasePath ¶
func (o *DeleteResourceURL) 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 (*DeleteResourceURL) String ¶
func (o *DeleteResourceURL) String() string
String returns the string representation of the path with query string
func (*DeleteResourceURL) StringFull ¶
func (o *DeleteResourceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteResourceURL) WithBasePath ¶
func (o *DeleteResourceURL) WithBasePath(bp string) *DeleteResourceURL
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 GetResourceByID ¶
type GetResourceByID struct { Context *middleware.Context Handler GetResourceByIDHandler }
GetResourceByID swagger:route GET /resource/{id} resource getResourceById
Get Resource details by Id ¶
Get a particular resource by Id
func NewGetResourceByID ¶
func NewGetResourceByID(ctx *middleware.Context, handler GetResourceByIDHandler) *GetResourceByID
NewGetResourceByID creates a new http.Handler for the get resource by Id operation
func (*GetResourceByID) ServeHTTP ¶
func (o *GetResourceByID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetResourceByIDDefault ¶
type GetResourceByIDDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetResourceByIDDefault Unexpected error
swagger:response getResourceByIdDefault
func NewGetResourceByIDDefault ¶
func NewGetResourceByIDDefault(code int) *GetResourceByIDDefault
NewGetResourceByIDDefault creates GetResourceByIDDefault with default headers values
func (*GetResourceByIDDefault) SetPayload ¶
func (o *GetResourceByIDDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get resource by Id default response
func (*GetResourceByIDDefault) SetStatusCode ¶
func (o *GetResourceByIDDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get resource by Id default response
func (*GetResourceByIDDefault) WithPayload ¶
func (o *GetResourceByIDDefault) WithPayload(payload *models.Error) *GetResourceByIDDefault
WithPayload adds the payload to the get resource by Id default response
func (*GetResourceByIDDefault) WithStatusCode ¶
func (o *GetResourceByIDDefault) WithStatusCode(code int) *GetResourceByIDDefault
WithStatusCode adds the status to the get resource by Id default response
func (*GetResourceByIDDefault) WriteResponse ¶
func (o *GetResourceByIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetResourceByIDHandler ¶
type GetResourceByIDHandler interface {
Handle(GetResourceByIDParams, interface{}) middleware.Responder
}
GetResourceByIDHandler interface for that can handle valid get resource by Id params
type GetResourceByIDHandlerFunc ¶
type GetResourceByIDHandlerFunc func(GetResourceByIDParams, interface{}) middleware.Responder
GetResourceByIDHandlerFunc turns a function with the right signature into a get resource by Id handler
func (GetResourceByIDHandlerFunc) Handle ¶
func (fn GetResourceByIDHandlerFunc) Handle(params GetResourceByIDParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetResourceByIDNotFound ¶
type GetResourceByIDNotFound struct { }
GetResourceByIDNotFound Resource not found
swagger:response getResourceByIdNotFound
func NewGetResourceByIDNotFound ¶
func NewGetResourceByIDNotFound() *GetResourceByIDNotFound
NewGetResourceByIDNotFound creates GetResourceByIDNotFound with default headers values
func (*GetResourceByIDNotFound) WriteResponse ¶
func (o *GetResourceByIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetResourceByIDOK ¶
GetResourceByIDOK Successful operation
swagger:response getResourceByIdOK
func NewGetResourceByIDOK ¶
func NewGetResourceByIDOK() *GetResourceByIDOK
NewGetResourceByIDOK creates GetResourceByIDOK with default headers values
func (*GetResourceByIDOK) SetPayload ¶
func (o *GetResourceByIDOK) SetPayload(payload *models.Resource)
SetPayload sets the payload to the get resource by Id o k response
func (*GetResourceByIDOK) WithPayload ¶
func (o *GetResourceByIDOK) WithPayload(payload *models.Resource) *GetResourceByIDOK
WithPayload adds the payload to the get resource by Id o k response
func (*GetResourceByIDOK) WriteResponse ¶
func (o *GetResourceByIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetResourceByIDParams ¶
type GetResourceByIDParams struct { // HTTP Request Object HTTPRequest *http.Request /*Login ID to get Required: true In: path */ ID string }
GetResourceByIDParams contains all the bound params for the get resource by Id operation typically these are obtained from a http.Request
swagger:parameters getResourceById
func NewGetResourceByIDParams ¶
func NewGetResourceByIDParams() GetResourceByIDParams
NewGetResourceByIDParams creates a new GetResourceByIDParams object with the default values initialized.
func (*GetResourceByIDParams) BindRequest ¶
func (o *GetResourceByIDParams) 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 GetResourceByIDURL ¶
type GetResourceByIDURL struct { ID string // contains filtered or unexported fields }
GetResourceByIDURL generates an URL for the get resource by Id operation
func (*GetResourceByIDURL) Build ¶
func (o *GetResourceByIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetResourceByIDURL) BuildFull ¶
func (o *GetResourceByIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetResourceByIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetResourceByIDURL) SetBasePath ¶
func (o *GetResourceByIDURL) 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 (*GetResourceByIDURL) String ¶
func (o *GetResourceByIDURL) String() string
String returns the string representation of the path with query string
func (*GetResourceByIDURL) StringFull ¶
func (o *GetResourceByIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetResourceByIDURL) WithBasePath ¶
func (o *GetResourceByIDURL) WithBasePath(bp string) *GetResourceByIDURL
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 UpdateResource ¶
type UpdateResource struct { Context *middleware.Context Handler UpdateResourceHandler }
UpdateResource swagger:route PUT /resource/ resource updateResource
Update Resource details by Id ¶
Get a particular resource by Id
func NewUpdateResource ¶
func NewUpdateResource(ctx *middleware.Context, handler UpdateResourceHandler) *UpdateResource
NewUpdateResource creates a new http.Handler for the update resource operation
func (*UpdateResource) ServeHTTP ¶
func (o *UpdateResource) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateResourceDefault ¶
type UpdateResourceDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
UpdateResourceDefault Unexpected error
swagger:response updateResourceDefault
func NewUpdateResourceDefault ¶
func NewUpdateResourceDefault(code int) *UpdateResourceDefault
NewUpdateResourceDefault creates UpdateResourceDefault with default headers values
func (*UpdateResourceDefault) SetPayload ¶
func (o *UpdateResourceDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the update resource default response
func (*UpdateResourceDefault) SetStatusCode ¶
func (o *UpdateResourceDefault) SetStatusCode(code int)
SetStatusCode sets the status to the update resource default response
func (*UpdateResourceDefault) WithPayload ¶
func (o *UpdateResourceDefault) WithPayload(payload *models.Error) *UpdateResourceDefault
WithPayload adds the payload to the update resource default response
func (*UpdateResourceDefault) WithStatusCode ¶
func (o *UpdateResourceDefault) WithStatusCode(code int) *UpdateResourceDefault
WithStatusCode adds the status to the update resource default response
func (*UpdateResourceDefault) WriteResponse ¶
func (o *UpdateResourceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateResourceHandler ¶
type UpdateResourceHandler interface {
Handle(UpdateResourceParams, interface{}) middleware.Responder
}
UpdateResourceHandler interface for that can handle valid update resource params
type UpdateResourceHandlerFunc ¶
type UpdateResourceHandlerFunc func(UpdateResourceParams, interface{}) middleware.Responder
UpdateResourceHandlerFunc turns a function with the right signature into a update resource handler
func (UpdateResourceHandlerFunc) Handle ¶
func (fn UpdateResourceHandlerFunc) Handle(params UpdateResourceParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type UpdateResourceNotFound ¶
type UpdateResourceNotFound struct { }
UpdateResourceNotFound Resource not found
swagger:response updateResourceNotFound
func NewUpdateResourceNotFound ¶
func NewUpdateResourceNotFound() *UpdateResourceNotFound
NewUpdateResourceNotFound creates UpdateResourceNotFound with default headers values
func (*UpdateResourceNotFound) WriteResponse ¶
func (o *UpdateResourceNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateResourceOK ¶
UpdateResourceOK Successful operation
swagger:response updateResourceOK
func NewUpdateResourceOK ¶
func NewUpdateResourceOK() *UpdateResourceOK
NewUpdateResourceOK creates UpdateResourceOK with default headers values
func (*UpdateResourceOK) SetPayload ¶
func (o *UpdateResourceOK) SetPayload(payload *models.Resource)
SetPayload sets the payload to the update resource o k response
func (*UpdateResourceOK) WithPayload ¶
func (o *UpdateResourceOK) WithPayload(payload *models.Resource) *UpdateResourceOK
WithPayload adds the payload to the update resource o k response
func (*UpdateResourceOK) WriteResponse ¶
func (o *UpdateResourceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateResourceParams ¶
type UpdateResourceParams struct { // HTTP Request Object HTTPRequest *http.Request /*resource Required: true In: body */ Resource *models.Resource }
UpdateResourceParams contains all the bound params for the update resource operation typically these are obtained from a http.Request
swagger:parameters updateResource
func NewUpdateResourceParams ¶
func NewUpdateResourceParams() UpdateResourceParams
NewUpdateResourceParams creates a new UpdateResourceParams object with the default values initialized.
func (*UpdateResourceParams) BindRequest ¶
func (o *UpdateResourceParams) 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 UpdateResourceURL ¶
type UpdateResourceURL struct {
// contains filtered or unexported fields
}
UpdateResourceURL generates an URL for the update resource operation
func (*UpdateResourceURL) Build ¶
func (o *UpdateResourceURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateResourceURL) BuildFull ¶
func (o *UpdateResourceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateResourceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateResourceURL) SetBasePath ¶
func (o *UpdateResourceURL) 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 (*UpdateResourceURL) String ¶
func (o *UpdateResourceURL) String() string
String returns the string representation of the path with query string
func (*UpdateResourceURL) StringFull ¶
func (o *UpdateResourceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateResourceURL) WithBasePath ¶
func (o *UpdateResourceURL) WithBasePath(bp string) *UpdateResourceURL
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_resource.go
- add_resource_parameters.go
- add_resource_responses.go
- add_resource_urlbuilder.go
- delete_resource.go
- delete_resource_parameters.go
- delete_resource_responses.go
- delete_resource_urlbuilder.go
- get_resource_by_id.go
- get_resource_by_id_parameters.go
- get_resource_by_id_responses.go
- get_resource_by_id_urlbuilder.go
- update_resource.go
- update_resource_parameters.go
- update_resource_responses.go
- update_resource_urlbuilder.go