Documentation
¶
Index ¶
- Constants
- type AddImage
- type AddImageBadRequest
- type AddImageConflict
- type AddImageCreated
- type AddImageDefault
- func (o *AddImageDefault) SetPayload(payload *models.Error)
- func (o *AddImageDefault) SetStatusCode(code int)
- func (o *AddImageDefault) WithPayload(payload *models.Error) *AddImageDefault
- func (o *AddImageDefault) WithStatusCode(code int) *AddImageDefault
- func (o *AddImageDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AddImageHandler
- type AddImageHandlerFunc
- type AddImageParams
- type AddImageURL
- func (o *AddImageURL) Build() (*url.URL, error)
- func (o *AddImageURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddImageURL) Must(u *url.URL, err error) *url.URL
- func (o *AddImageURL) SetBasePath(bp string)
- func (o *AddImageURL) String() string
- func (o *AddImageURL) StringFull(scheme, host string) string
- func (o *AddImageURL) WithBasePath(bp string) *AddImageURL
- type DeleteImageByName
- type DeleteImageByNameBadRequest
- type DeleteImageByNameDefault
- func (o *DeleteImageByNameDefault) SetPayload(payload *models.Error)
- func (o *DeleteImageByNameDefault) SetStatusCode(code int)
- func (o *DeleteImageByNameDefault) WithPayload(payload *models.Error) *DeleteImageByNameDefault
- func (o *DeleteImageByNameDefault) WithStatusCode(code int) *DeleteImageByNameDefault
- func (o *DeleteImageByNameDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteImageByNameHandler
- type DeleteImageByNameHandlerFunc
- type DeleteImageByNameNotFound
- type DeleteImageByNameOK
- type DeleteImageByNameParams
- type DeleteImageByNameURL
- func (o *DeleteImageByNameURL) Build() (*url.URL, error)
- func (o *DeleteImageByNameURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteImageByNameURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteImageByNameURL) SetBasePath(bp string)
- func (o *DeleteImageByNameURL) String() string
- func (o *DeleteImageByNameURL) StringFull(scheme, host string) string
- func (o *DeleteImageByNameURL) WithBasePath(bp string) *DeleteImageByNameURL
- type GetImageByName
- type GetImageByNameBadRequest
- type GetImageByNameDefault
- func (o *GetImageByNameDefault) SetPayload(payload *models.Error)
- func (o *GetImageByNameDefault) SetStatusCode(code int)
- func (o *GetImageByNameDefault) WithPayload(payload *models.Error) *GetImageByNameDefault
- func (o *GetImageByNameDefault) WithStatusCode(code int) *GetImageByNameDefault
- func (o *GetImageByNameDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetImageByNameHandler
- type GetImageByNameHandlerFunc
- type GetImageByNameNotFound
- type GetImageByNameOK
- type GetImageByNameParams
- type GetImageByNameURL
- func (o *GetImageByNameURL) Build() (*url.URL, error)
- func (o *GetImageByNameURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetImageByNameURL) Must(u *url.URL, err error) *url.URL
- func (o *GetImageByNameURL) SetBasePath(bp string)
- func (o *GetImageByNameURL) String() string
- func (o *GetImageByNameURL) StringFull(scheme, host string) string
- func (o *GetImageByNameURL) WithBasePath(bp string) *GetImageByNameURL
- type GetImages
- type GetImagesBadRequest
- type GetImagesDefault
- func (o *GetImagesDefault) SetPayload(payload *models.Error)
- func (o *GetImagesDefault) SetStatusCode(code int)
- func (o *GetImagesDefault) WithPayload(payload *models.Error) *GetImagesDefault
- func (o *GetImagesDefault) WithStatusCode(code int) *GetImagesDefault
- func (o *GetImagesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetImagesHandler
- type GetImagesHandlerFunc
- type GetImagesOK
- type GetImagesParams
- type GetImagesURL
- func (o *GetImagesURL) Build() (*url.URL, error)
- func (o *GetImagesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetImagesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetImagesURL) SetBasePath(bp string)
- func (o *GetImagesURL) String() string
- func (o *GetImagesURL) StringFull(scheme, host string) string
- func (o *GetImagesURL) WithBasePath(bp string) *GetImagesURL
- type UpdateImageByName
- type UpdateImageByNameBadRequest
- type UpdateImageByNameDefault
- func (o *UpdateImageByNameDefault) SetPayload(payload *models.Error)
- func (o *UpdateImageByNameDefault) SetStatusCode(code int)
- func (o *UpdateImageByNameDefault) WithPayload(payload *models.Error) *UpdateImageByNameDefault
- func (o *UpdateImageByNameDefault) WithStatusCode(code int) *UpdateImageByNameDefault
- func (o *UpdateImageByNameDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateImageByNameHandler
- type UpdateImageByNameHandlerFunc
- type UpdateImageByNameNotFound
- type UpdateImageByNameOK
- type UpdateImageByNameParams
- type UpdateImageByNameURL
- func (o *UpdateImageByNameURL) Build() (*url.URL, error)
- func (o *UpdateImageByNameURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateImageByNameURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateImageByNameURL) SetBasePath(bp string)
- func (o *UpdateImageByNameURL) String() string
- func (o *UpdateImageByNameURL) StringFull(scheme, host string) string
- func (o *UpdateImageByNameURL) WithBasePath(bp string) *UpdateImageByNameURL
Constants ¶
const AddImageBadRequestCode int = 400
AddImageBadRequestCode is the HTTP code returned for type AddImageBadRequest
const AddImageConflictCode int = 409
AddImageConflictCode is the HTTP code returned for type AddImageConflict
const AddImageCreatedCode int = 201
AddImageCreatedCode is the HTTP code returned for type AddImageCreated
const DeleteImageByNameBadRequestCode int = 400
DeleteImageByNameBadRequestCode is the HTTP code returned for type DeleteImageByNameBadRequest
const DeleteImageByNameNotFoundCode int = 404
DeleteImageByNameNotFoundCode is the HTTP code returned for type DeleteImageByNameNotFound
const DeleteImageByNameOKCode int = 200
DeleteImageByNameOKCode is the HTTP code returned for type DeleteImageByNameOK
const GetImageByNameBadRequestCode int = 400
GetImageByNameBadRequestCode is the HTTP code returned for type GetImageByNameBadRequest
const GetImageByNameNotFoundCode int = 404
GetImageByNameNotFoundCode is the HTTP code returned for type GetImageByNameNotFound
const GetImageByNameOKCode int = 200
GetImageByNameOKCode is the HTTP code returned for type GetImageByNameOK
const GetImagesBadRequestCode int = 400
GetImagesBadRequestCode is the HTTP code returned for type GetImagesBadRequest
const GetImagesOKCode int = 200
GetImagesOKCode is the HTTP code returned for type GetImagesOK
const UpdateImageByNameBadRequestCode int = 400
UpdateImageByNameBadRequestCode is the HTTP code returned for type UpdateImageByNameBadRequest
const UpdateImageByNameNotFoundCode int = 404
UpdateImageByNameNotFoundCode is the HTTP code returned for type UpdateImageByNameNotFound
const UpdateImageByNameOKCode int = 200
UpdateImageByNameOKCode is the HTTP code returned for type UpdateImageByNameOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddImage ¶
type AddImage struct { Context *middleware.Context Handler AddImageHandler }
AddImage swagger:route POST /image image addImage
Add a new image
func NewAddImage ¶
func NewAddImage(ctx *middleware.Context, handler AddImageHandler) *AddImage
NewAddImage creates a new http.Handler for the add image operation
type AddImageBadRequest ¶
AddImageBadRequest Invalid input
swagger:response addImageBadRequest
func NewAddImageBadRequest ¶
func NewAddImageBadRequest() *AddImageBadRequest
NewAddImageBadRequest creates AddImageBadRequest with default headers values
func (*AddImageBadRequest) SetPayload ¶
func (o *AddImageBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the add image bad request response
func (*AddImageBadRequest) WithPayload ¶
func (o *AddImageBadRequest) WithPayload(payload *models.Error) *AddImageBadRequest
WithPayload adds the payload to the add image bad request response
func (*AddImageBadRequest) WriteResponse ¶
func (o *AddImageBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddImageConflict ¶ added in v0.1.13
AddImageConflict Already Exists
swagger:response addImageConflict
func NewAddImageConflict ¶ added in v0.1.13
func NewAddImageConflict() *AddImageConflict
NewAddImageConflict creates AddImageConflict with default headers values
func (*AddImageConflict) SetPayload ¶ added in v0.1.13
func (o *AddImageConflict) SetPayload(payload *models.Error)
SetPayload sets the payload to the add image conflict response
func (*AddImageConflict) WithPayload ¶ added in v0.1.13
func (o *AddImageConflict) WithPayload(payload *models.Error) *AddImageConflict
WithPayload adds the payload to the add image conflict response
func (*AddImageConflict) WriteResponse ¶ added in v0.1.13
func (o *AddImageConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddImageCreated ¶
AddImageCreated created
swagger:response addImageCreated
func NewAddImageCreated ¶
func NewAddImageCreated() *AddImageCreated
NewAddImageCreated creates AddImageCreated with default headers values
func (*AddImageCreated) SetPayload ¶
func (o *AddImageCreated) SetPayload(payload *models.Image)
SetPayload sets the payload to the add image created response
func (*AddImageCreated) WithPayload ¶
func (o *AddImageCreated) WithPayload(payload *models.Image) *AddImageCreated
WithPayload adds the payload to the add image created response
func (*AddImageCreated) WriteResponse ¶
func (o *AddImageCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddImageDefault ¶
type AddImageDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
AddImageDefault Generic error response
swagger:response addImageDefault
func NewAddImageDefault ¶
func NewAddImageDefault(code int) *AddImageDefault
NewAddImageDefault creates AddImageDefault with default headers values
func (*AddImageDefault) SetPayload ¶
func (o *AddImageDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the add image default response
func (*AddImageDefault) SetStatusCode ¶
func (o *AddImageDefault) SetStatusCode(code int)
SetStatusCode sets the status to the add image default response
func (*AddImageDefault) WithPayload ¶
func (o *AddImageDefault) WithPayload(payload *models.Error) *AddImageDefault
WithPayload adds the payload to the add image default response
func (*AddImageDefault) WithStatusCode ¶
func (o *AddImageDefault) WithStatusCode(code int) *AddImageDefault
WithStatusCode adds the status to the add image default response
func (*AddImageDefault) WriteResponse ¶
func (o *AddImageDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddImageHandler ¶
type AddImageHandler interface {
Handle(AddImageParams, interface{}) middleware.Responder
}
AddImageHandler interface for that can handle valid add image params
type AddImageHandlerFunc ¶
type AddImageHandlerFunc func(AddImageParams, interface{}) middleware.Responder
AddImageHandlerFunc turns a function with the right signature into a add image handler
func (AddImageHandlerFunc) Handle ¶
func (fn AddImageHandlerFunc) Handle(params AddImageParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type AddImageParams ¶
type AddImageParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Image object Required: true In: body */ Body *models.Image }
AddImageParams contains all the bound params for the add image operation typically these are obtained from a http.Request
swagger:parameters addImage
func NewAddImageParams ¶
func NewAddImageParams() AddImageParams
NewAddImageParams creates a new AddImageParams object no default values defined in spec.
func (*AddImageParams) BindRequest ¶
func (o *AddImageParams) 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 NewAddImageParams() beforehand.
type AddImageURL ¶
type AddImageURL struct {
// contains filtered or unexported fields
}
AddImageURL generates an URL for the add image operation
func (*AddImageURL) Build ¶
func (o *AddImageURL) Build() (*url.URL, error)
Build a url path and query string
func (*AddImageURL) BuildFull ¶
func (o *AddImageURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AddImageURL) SetBasePath ¶
func (o *AddImageURL) 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 (*AddImageURL) String ¶
func (o *AddImageURL) String() string
String returns the string representation of the path with query string
func (*AddImageURL) StringFull ¶
func (o *AddImageURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AddImageURL) WithBasePath ¶
func (o *AddImageURL) WithBasePath(bp string) *AddImageURL
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 DeleteImageByName ¶
type DeleteImageByName struct { Context *middleware.Context Handler DeleteImageByNameHandler }
DeleteImageByName swagger:route DELETE /image/{imageName} image deleteImageByName
Deletes an image
func NewDeleteImageByName ¶
func NewDeleteImageByName(ctx *middleware.Context, handler DeleteImageByNameHandler) *DeleteImageByName
NewDeleteImageByName creates a new http.Handler for the delete image by name operation
func (*DeleteImageByName) ServeHTTP ¶
func (o *DeleteImageByName) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteImageByNameBadRequest ¶
type DeleteImageByNameBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
DeleteImageByNameBadRequest Invalid ID supplied
swagger:response deleteImageByNameBadRequest
func NewDeleteImageByNameBadRequest ¶
func NewDeleteImageByNameBadRequest() *DeleteImageByNameBadRequest
NewDeleteImageByNameBadRequest creates DeleteImageByNameBadRequest with default headers values
func (*DeleteImageByNameBadRequest) SetPayload ¶
func (o *DeleteImageByNameBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete image by name bad request response
func (*DeleteImageByNameBadRequest) WithPayload ¶
func (o *DeleteImageByNameBadRequest) WithPayload(payload *models.Error) *DeleteImageByNameBadRequest
WithPayload adds the payload to the delete image by name bad request response
func (*DeleteImageByNameBadRequest) WriteResponse ¶
func (o *DeleteImageByNameBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteImageByNameDefault ¶
type DeleteImageByNameDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteImageByNameDefault Generic error response
swagger:response deleteImageByNameDefault
func NewDeleteImageByNameDefault ¶
func NewDeleteImageByNameDefault(code int) *DeleteImageByNameDefault
NewDeleteImageByNameDefault creates DeleteImageByNameDefault with default headers values
func (*DeleteImageByNameDefault) SetPayload ¶
func (o *DeleteImageByNameDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete image by name default response
func (*DeleteImageByNameDefault) SetStatusCode ¶
func (o *DeleteImageByNameDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete image by name default response
func (*DeleteImageByNameDefault) WithPayload ¶
func (o *DeleteImageByNameDefault) WithPayload(payload *models.Error) *DeleteImageByNameDefault
WithPayload adds the payload to the delete image by name default response
func (*DeleteImageByNameDefault) WithStatusCode ¶
func (o *DeleteImageByNameDefault) WithStatusCode(code int) *DeleteImageByNameDefault
WithStatusCode adds the status to the delete image by name default response
func (*DeleteImageByNameDefault) WriteResponse ¶
func (o *DeleteImageByNameDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteImageByNameHandler ¶
type DeleteImageByNameHandler interface {
Handle(DeleteImageByNameParams, interface{}) middleware.Responder
}
DeleteImageByNameHandler interface for that can handle valid delete image by name params
type DeleteImageByNameHandlerFunc ¶
type DeleteImageByNameHandlerFunc func(DeleteImageByNameParams, interface{}) middleware.Responder
DeleteImageByNameHandlerFunc turns a function with the right signature into a delete image by name handler
func (DeleteImageByNameHandlerFunc) Handle ¶
func (fn DeleteImageByNameHandlerFunc) Handle(params DeleteImageByNameParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteImageByNameNotFound ¶
type DeleteImageByNameNotFound struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
DeleteImageByNameNotFound Image not found
swagger:response deleteImageByNameNotFound
func NewDeleteImageByNameNotFound ¶
func NewDeleteImageByNameNotFound() *DeleteImageByNameNotFound
NewDeleteImageByNameNotFound creates DeleteImageByNameNotFound with default headers values
func (*DeleteImageByNameNotFound) SetPayload ¶
func (o *DeleteImageByNameNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete image by name not found response
func (*DeleteImageByNameNotFound) WithPayload ¶
func (o *DeleteImageByNameNotFound) WithPayload(payload *models.Error) *DeleteImageByNameNotFound
WithPayload adds the payload to the delete image by name not found response
func (*DeleteImageByNameNotFound) WriteResponse ¶
func (o *DeleteImageByNameNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteImageByNameOK ¶
DeleteImageByNameOK successful operation
swagger:response deleteImageByNameOK
func NewDeleteImageByNameOK ¶
func NewDeleteImageByNameOK() *DeleteImageByNameOK
NewDeleteImageByNameOK creates DeleteImageByNameOK with default headers values
func (*DeleteImageByNameOK) SetPayload ¶
func (o *DeleteImageByNameOK) SetPayload(payload *models.Image)
SetPayload sets the payload to the delete image by name o k response
func (*DeleteImageByNameOK) WithPayload ¶
func (o *DeleteImageByNameOK) WithPayload(payload *models.Image) *DeleteImageByNameOK
WithPayload adds the payload to the delete image by name o k response
func (*DeleteImageByNameOK) WriteResponse ¶
func (o *DeleteImageByNameOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteImageByNameParams ¶
type DeleteImageByNameParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Name of image to return Required: true Pattern: ^[\w\d\-]+$ In: path */ ImageName string /*Filter on image tags In: query Collection Format: multi */ Tags []string }
DeleteImageByNameParams contains all the bound params for the delete image by name operation typically these are obtained from a http.Request
swagger:parameters deleteImageByName
func NewDeleteImageByNameParams ¶
func NewDeleteImageByNameParams() DeleteImageByNameParams
NewDeleteImageByNameParams creates a new DeleteImageByNameParams object no default values defined in spec.
func (*DeleteImageByNameParams) BindRequest ¶
func (o *DeleteImageByNameParams) 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 NewDeleteImageByNameParams() beforehand.
type DeleteImageByNameURL ¶
type DeleteImageByNameURL struct { ImageName string Tags []string // contains filtered or unexported fields }
DeleteImageByNameURL generates an URL for the delete image by name operation
func (*DeleteImageByNameURL) Build ¶
func (o *DeleteImageByNameURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteImageByNameURL) BuildFull ¶
func (o *DeleteImageByNameURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteImageByNameURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteImageByNameURL) SetBasePath ¶
func (o *DeleteImageByNameURL) 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 (*DeleteImageByNameURL) String ¶
func (o *DeleteImageByNameURL) String() string
String returns the string representation of the path with query string
func (*DeleteImageByNameURL) StringFull ¶
func (o *DeleteImageByNameURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteImageByNameURL) WithBasePath ¶
func (o *DeleteImageByNameURL) WithBasePath(bp string) *DeleteImageByNameURL
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 GetImageByName ¶
type GetImageByName struct { Context *middleware.Context Handler GetImageByNameHandler }
GetImageByName swagger:route GET /image/{imageName} image getImageByName
Find image by ID ¶
Returns a single image
func NewGetImageByName ¶
func NewGetImageByName(ctx *middleware.Context, handler GetImageByNameHandler) *GetImageByName
NewGetImageByName creates a new http.Handler for the get image by name operation
func (*GetImageByName) ServeHTTP ¶
func (o *GetImageByName) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetImageByNameBadRequest ¶
type GetImageByNameBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetImageByNameBadRequest Invalid ID supplied
swagger:response getImageByNameBadRequest
func NewGetImageByNameBadRequest ¶
func NewGetImageByNameBadRequest() *GetImageByNameBadRequest
NewGetImageByNameBadRequest creates GetImageByNameBadRequest with default headers values
func (*GetImageByNameBadRequest) SetPayload ¶
func (o *GetImageByNameBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the get image by name bad request response
func (*GetImageByNameBadRequest) WithPayload ¶
func (o *GetImageByNameBadRequest) WithPayload(payload *models.Error) *GetImageByNameBadRequest
WithPayload adds the payload to the get image by name bad request response
func (*GetImageByNameBadRequest) WriteResponse ¶
func (o *GetImageByNameBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetImageByNameDefault ¶
type GetImageByNameDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetImageByNameDefault Generic error response
swagger:response getImageByNameDefault
func NewGetImageByNameDefault ¶
func NewGetImageByNameDefault(code int) *GetImageByNameDefault
NewGetImageByNameDefault creates GetImageByNameDefault with default headers values
func (*GetImageByNameDefault) SetPayload ¶
func (o *GetImageByNameDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get image by name default response
func (*GetImageByNameDefault) SetStatusCode ¶
func (o *GetImageByNameDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get image by name default response
func (*GetImageByNameDefault) WithPayload ¶
func (o *GetImageByNameDefault) WithPayload(payload *models.Error) *GetImageByNameDefault
WithPayload adds the payload to the get image by name default response
func (*GetImageByNameDefault) WithStatusCode ¶
func (o *GetImageByNameDefault) WithStatusCode(code int) *GetImageByNameDefault
WithStatusCode adds the status to the get image by name default response
func (*GetImageByNameDefault) WriteResponse ¶
func (o *GetImageByNameDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetImageByNameHandler ¶
type GetImageByNameHandler interface {
Handle(GetImageByNameParams, interface{}) middleware.Responder
}
GetImageByNameHandler interface for that can handle valid get image by name params
type GetImageByNameHandlerFunc ¶
type GetImageByNameHandlerFunc func(GetImageByNameParams, interface{}) middleware.Responder
GetImageByNameHandlerFunc turns a function with the right signature into a get image by name handler
func (GetImageByNameHandlerFunc) Handle ¶
func (fn GetImageByNameHandlerFunc) Handle(params GetImageByNameParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetImageByNameNotFound ¶
GetImageByNameNotFound Image not found
swagger:response getImageByNameNotFound
func NewGetImageByNameNotFound ¶
func NewGetImageByNameNotFound() *GetImageByNameNotFound
NewGetImageByNameNotFound creates GetImageByNameNotFound with default headers values
func (*GetImageByNameNotFound) SetPayload ¶
func (o *GetImageByNameNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get image by name not found response
func (*GetImageByNameNotFound) WithPayload ¶
func (o *GetImageByNameNotFound) WithPayload(payload *models.Error) *GetImageByNameNotFound
WithPayload adds the payload to the get image by name not found response
func (*GetImageByNameNotFound) WriteResponse ¶
func (o *GetImageByNameNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetImageByNameOK ¶
GetImageByNameOK successful operation
swagger:response getImageByNameOK
func NewGetImageByNameOK ¶
func NewGetImageByNameOK() *GetImageByNameOK
NewGetImageByNameOK creates GetImageByNameOK with default headers values
func (*GetImageByNameOK) SetPayload ¶
func (o *GetImageByNameOK) SetPayload(payload *models.Image)
SetPayload sets the payload to the get image by name o k response
func (*GetImageByNameOK) WithPayload ¶
func (o *GetImageByNameOK) WithPayload(payload *models.Image) *GetImageByNameOK
WithPayload adds the payload to the get image by name o k response
func (*GetImageByNameOK) WriteResponse ¶
func (o *GetImageByNameOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetImageByNameParams ¶
type GetImageByNameParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Name of image to return Required: true Pattern: ^[\w\d\-]+$ In: path */ ImageName string /*Filter on image tags In: query Collection Format: multi */ Tags []string }
GetImageByNameParams contains all the bound params for the get image by name operation typically these are obtained from a http.Request
swagger:parameters getImageByName
func NewGetImageByNameParams ¶
func NewGetImageByNameParams() GetImageByNameParams
NewGetImageByNameParams creates a new GetImageByNameParams object no default values defined in spec.
func (*GetImageByNameParams) BindRequest ¶
func (o *GetImageByNameParams) 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 NewGetImageByNameParams() beforehand.
type GetImageByNameURL ¶
type GetImageByNameURL struct { ImageName string Tags []string // contains filtered or unexported fields }
GetImageByNameURL generates an URL for the get image by name operation
func (*GetImageByNameURL) Build ¶
func (o *GetImageByNameURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetImageByNameURL) BuildFull ¶
func (o *GetImageByNameURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetImageByNameURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetImageByNameURL) SetBasePath ¶
func (o *GetImageByNameURL) 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 (*GetImageByNameURL) String ¶
func (o *GetImageByNameURL) String() string
String returns the string representation of the path with query string
func (*GetImageByNameURL) StringFull ¶
func (o *GetImageByNameURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetImageByNameURL) WithBasePath ¶
func (o *GetImageByNameURL) WithBasePath(bp string) *GetImageByNameURL
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 GetImages ¶
type GetImages struct { Context *middleware.Context Handler GetImagesHandler }
GetImages swagger:route GET /image image getImages
Get all images ¶
List all images
func NewGetImages ¶
func NewGetImages(ctx *middleware.Context, handler GetImagesHandler) *GetImages
NewGetImages creates a new http.Handler for the get images operation
type GetImagesBadRequest ¶ added in v0.1.13
GetImagesBadRequest Invalid input
swagger:response getImagesBadRequest
func NewGetImagesBadRequest ¶ added in v0.1.13
func NewGetImagesBadRequest() *GetImagesBadRequest
NewGetImagesBadRequest creates GetImagesBadRequest with default headers values
func (*GetImagesBadRequest) SetPayload ¶ added in v0.1.13
func (o *GetImagesBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the get images bad request response
func (*GetImagesBadRequest) WithPayload ¶ added in v0.1.13
func (o *GetImagesBadRequest) WithPayload(payload *models.Error) *GetImagesBadRequest
WithPayload adds the payload to the get images bad request response
func (*GetImagesBadRequest) WriteResponse ¶ added in v0.1.13
func (o *GetImagesBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetImagesDefault ¶
type GetImagesDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetImagesDefault Generic error response
swagger:response getImagesDefault
func NewGetImagesDefault ¶
func NewGetImagesDefault(code int) *GetImagesDefault
NewGetImagesDefault creates GetImagesDefault with default headers values
func (*GetImagesDefault) SetPayload ¶
func (o *GetImagesDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get images default response
func (*GetImagesDefault) SetStatusCode ¶
func (o *GetImagesDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get images default response
func (*GetImagesDefault) WithPayload ¶
func (o *GetImagesDefault) WithPayload(payload *models.Error) *GetImagesDefault
WithPayload adds the payload to the get images default response
func (*GetImagesDefault) WithStatusCode ¶
func (o *GetImagesDefault) WithStatusCode(code int) *GetImagesDefault
WithStatusCode adds the status to the get images default response
func (*GetImagesDefault) WriteResponse ¶
func (o *GetImagesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetImagesHandler ¶
type GetImagesHandler interface {
Handle(GetImagesParams, interface{}) middleware.Responder
}
GetImagesHandler interface for that can handle valid get images params
type GetImagesHandlerFunc ¶
type GetImagesHandlerFunc func(GetImagesParams, interface{}) middleware.Responder
GetImagesHandlerFunc turns a function with the right signature into a get images handler
func (GetImagesHandlerFunc) Handle ¶
func (fn GetImagesHandlerFunc) Handle(params GetImagesParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetImagesOK ¶
GetImagesOK successful operation
swagger:response getImagesOK
func NewGetImagesOK ¶
func NewGetImagesOK() *GetImagesOK
NewGetImagesOK creates GetImagesOK with default headers values
func (*GetImagesOK) SetPayload ¶
func (o *GetImagesOK) SetPayload(payload []*models.Image)
SetPayload sets the payload to the get images o k response
func (*GetImagesOK) WithPayload ¶
func (o *GetImagesOK) WithPayload(payload []*models.Image) *GetImagesOK
WithPayload adds the payload to the get images o k response
func (*GetImagesOK) WriteResponse ¶
func (o *GetImagesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetImagesParams ¶
type GetImagesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*image runtime language In: query */ Language *string /*Filter on image tags In: query Collection Format: multi */ Tags []string }
GetImagesParams contains all the bound params for the get images operation typically these are obtained from a http.Request
swagger:parameters getImages
func NewGetImagesParams ¶
func NewGetImagesParams() GetImagesParams
NewGetImagesParams creates a new GetImagesParams object no default values defined in spec.
func (*GetImagesParams) BindRequest ¶
func (o *GetImagesParams) 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 NewGetImagesParams() beforehand.
type GetImagesURL ¶
type GetImagesURL struct { Language *string Tags []string // contains filtered or unexported fields }
GetImagesURL generates an URL for the get images operation
func (*GetImagesURL) Build ¶
func (o *GetImagesURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetImagesURL) BuildFull ¶
func (o *GetImagesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetImagesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetImagesURL) SetBasePath ¶
func (o *GetImagesURL) 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 (*GetImagesURL) String ¶
func (o *GetImagesURL) String() string
String returns the string representation of the path with query string
func (*GetImagesURL) StringFull ¶
func (o *GetImagesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetImagesURL) WithBasePath ¶
func (o *GetImagesURL) WithBasePath(bp string) *GetImagesURL
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 UpdateImageByName ¶
type UpdateImageByName struct { Context *middleware.Context Handler UpdateImageByNameHandler }
UpdateImageByName swagger:route PUT /image/{imageName} image updateImageByName
Updates an image
func NewUpdateImageByName ¶
func NewUpdateImageByName(ctx *middleware.Context, handler UpdateImageByNameHandler) *UpdateImageByName
NewUpdateImageByName creates a new http.Handler for the update image by name operation
func (*UpdateImageByName) ServeHTTP ¶
func (o *UpdateImageByName) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateImageByNameBadRequest ¶
type UpdateImageByNameBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
UpdateImageByNameBadRequest Invalid input
swagger:response updateImageByNameBadRequest
func NewUpdateImageByNameBadRequest ¶
func NewUpdateImageByNameBadRequest() *UpdateImageByNameBadRequest
NewUpdateImageByNameBadRequest creates UpdateImageByNameBadRequest with default headers values
func (*UpdateImageByNameBadRequest) SetPayload ¶
func (o *UpdateImageByNameBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the update image by name bad request response
func (*UpdateImageByNameBadRequest) WithPayload ¶
func (o *UpdateImageByNameBadRequest) WithPayload(payload *models.Error) *UpdateImageByNameBadRequest
WithPayload adds the payload to the update image by name bad request response
func (*UpdateImageByNameBadRequest) WriteResponse ¶
func (o *UpdateImageByNameBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateImageByNameDefault ¶
type UpdateImageByNameDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
UpdateImageByNameDefault Generic error response
swagger:response updateImageByNameDefault
func NewUpdateImageByNameDefault ¶
func NewUpdateImageByNameDefault(code int) *UpdateImageByNameDefault
NewUpdateImageByNameDefault creates UpdateImageByNameDefault with default headers values
func (*UpdateImageByNameDefault) SetPayload ¶
func (o *UpdateImageByNameDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the update image by name default response
func (*UpdateImageByNameDefault) SetStatusCode ¶
func (o *UpdateImageByNameDefault) SetStatusCode(code int)
SetStatusCode sets the status to the update image by name default response
func (*UpdateImageByNameDefault) WithPayload ¶
func (o *UpdateImageByNameDefault) WithPayload(payload *models.Error) *UpdateImageByNameDefault
WithPayload adds the payload to the update image by name default response
func (*UpdateImageByNameDefault) WithStatusCode ¶
func (o *UpdateImageByNameDefault) WithStatusCode(code int) *UpdateImageByNameDefault
WithStatusCode adds the status to the update image by name default response
func (*UpdateImageByNameDefault) WriteResponse ¶
func (o *UpdateImageByNameDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateImageByNameHandler ¶
type UpdateImageByNameHandler interface {
Handle(UpdateImageByNameParams, interface{}) middleware.Responder
}
UpdateImageByNameHandler interface for that can handle valid update image by name params
type UpdateImageByNameHandlerFunc ¶
type UpdateImageByNameHandlerFunc func(UpdateImageByNameParams, interface{}) middleware.Responder
UpdateImageByNameHandlerFunc turns a function with the right signature into a update image by name handler
func (UpdateImageByNameHandlerFunc) Handle ¶
func (fn UpdateImageByNameHandlerFunc) Handle(params UpdateImageByNameParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type UpdateImageByNameNotFound ¶
type UpdateImageByNameNotFound struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
UpdateImageByNameNotFound Image not found
swagger:response updateImageByNameNotFound
func NewUpdateImageByNameNotFound ¶
func NewUpdateImageByNameNotFound() *UpdateImageByNameNotFound
NewUpdateImageByNameNotFound creates UpdateImageByNameNotFound with default headers values
func (*UpdateImageByNameNotFound) SetPayload ¶
func (o *UpdateImageByNameNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the update image by name not found response
func (*UpdateImageByNameNotFound) WithPayload ¶
func (o *UpdateImageByNameNotFound) WithPayload(payload *models.Error) *UpdateImageByNameNotFound
WithPayload adds the payload to the update image by name not found response
func (*UpdateImageByNameNotFound) WriteResponse ¶
func (o *UpdateImageByNameNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateImageByNameOK ¶
UpdateImageByNameOK updated
swagger:response updateImageByNameOK
func NewUpdateImageByNameOK ¶
func NewUpdateImageByNameOK() *UpdateImageByNameOK
NewUpdateImageByNameOK creates UpdateImageByNameOK with default headers values
func (*UpdateImageByNameOK) SetPayload ¶
func (o *UpdateImageByNameOK) SetPayload(payload *models.Image)
SetPayload sets the payload to the update image by name o k response
func (*UpdateImageByNameOK) WithPayload ¶
func (o *UpdateImageByNameOK) WithPayload(payload *models.Image) *UpdateImageByNameOK
WithPayload adds the payload to the update image by name o k response
func (*UpdateImageByNameOK) WriteResponse ¶
func (o *UpdateImageByNameOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateImageByNameParams ¶
type UpdateImageByNameParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body *models.Image /*Name of image to return Required: true Pattern: ^[\w\d\-]+$ In: path */ ImageName string /*Filter on image tags In: query Collection Format: multi */ Tags []string }
UpdateImageByNameParams contains all the bound params for the update image by name operation typically these are obtained from a http.Request
swagger:parameters updateImageByName
func NewUpdateImageByNameParams ¶
func NewUpdateImageByNameParams() UpdateImageByNameParams
NewUpdateImageByNameParams creates a new UpdateImageByNameParams object no default values defined in spec.
func (*UpdateImageByNameParams) BindRequest ¶
func (o *UpdateImageByNameParams) 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 NewUpdateImageByNameParams() beforehand.
type UpdateImageByNameURL ¶
type UpdateImageByNameURL struct { ImageName string Tags []string // contains filtered or unexported fields }
UpdateImageByNameURL generates an URL for the update image by name operation
func (*UpdateImageByNameURL) Build ¶
func (o *UpdateImageByNameURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateImageByNameURL) BuildFull ¶
func (o *UpdateImageByNameURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateImageByNameURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateImageByNameURL) SetBasePath ¶
func (o *UpdateImageByNameURL) 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 (*UpdateImageByNameURL) String ¶
func (o *UpdateImageByNameURL) String() string
String returns the string representation of the path with query string
func (*UpdateImageByNameURL) StringFull ¶
func (o *UpdateImageByNameURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateImageByNameURL) WithBasePath ¶
func (o *UpdateImageByNameURL) WithBasePath(bp string) *UpdateImageByNameURL
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_image.go
- add_image_parameters.go
- add_image_responses.go
- add_image_urlbuilder.go
- delete_image_by_name.go
- delete_image_by_name_parameters.go
- delete_image_by_name_responses.go
- delete_image_by_name_urlbuilder.go
- get_image_by_name.go
- get_image_by_name_parameters.go
- get_image_by_name_responses.go
- get_image_by_name_urlbuilder.go
- get_images.go
- get_images_parameters.go
- get_images_responses.go
- get_images_urlbuilder.go
- update_image_by_name.go
- update_image_by_name_parameters.go
- update_image_by_name_responses.go
- update_image_by_name_urlbuilder.go