Documentation ¶
Index ¶
- Constants
- type DeleteImage
- type DeleteImageBody
- type DeleteImageDefault
- func (o *DeleteImageDefault) SetPayload(payload *models.Error)
- func (o *DeleteImageDefault) SetStatusCode(code int)
- func (o *DeleteImageDefault) WithPayload(payload *models.Error) *DeleteImageDefault
- func (o *DeleteImageDefault) WithStatusCode(code int) *DeleteImageDefault
- func (o *DeleteImageDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteImageHandler
- type DeleteImageHandlerFunc
- type DeleteImageNoContent
- type DeleteImageParams
- type DeleteImageURL
- func (o *DeleteImageURL) Build() (*url.URL, error)
- func (o *DeleteImageURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteImageURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteImageURL) SetBasePath(bp string)
- func (o *DeleteImageURL) String() string
- func (o *DeleteImageURL) StringFull(scheme, host string) string
- func (o *DeleteImageURL) WithBasePath(bp string) *DeleteImageURL
- type GetImages
- 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 PostNewImage
- type PostNewImageBody
- type PostNewImageCreated
- type PostNewImageDefault
- func (o *PostNewImageDefault) SetPayload(payload *models.Error)
- func (o *PostNewImageDefault) SetStatusCode(code int)
- func (o *PostNewImageDefault) WithPayload(payload *models.Error) *PostNewImageDefault
- func (o *PostNewImageDefault) WithStatusCode(code int) *PostNewImageDefault
- func (o *PostNewImageDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostNewImageHandler
- type PostNewImageHandlerFunc
- type PostNewImageParams
- type PostNewImageURL
- func (o *PostNewImageURL) Build() (*url.URL, error)
- func (o *PostNewImageURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostNewImageURL) Must(u *url.URL, err error) *url.URL
- func (o *PostNewImageURL) SetBasePath(bp string)
- func (o *PostNewImageURL) String() string
- func (o *PostNewImageURL) StringFull(scheme, host string) string
- func (o *PostNewImageURL) WithBasePath(bp string) *PostNewImageURL
Constants ¶
const DeleteImageNoContentCode int = 204
DeleteImageNoContentCode is the HTTP code returned for type DeleteImageNoContent
const GetImagesOKCode int = 200
GetImagesOKCode is the HTTP code returned for type GetImagesOK
const PostNewImageCreatedCode int = 201
PostNewImageCreatedCode is the HTTP code returned for type PostNewImageCreated
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteImage ¶
type DeleteImage struct { Context *middleware.Context Handler DeleteImageHandler }
DeleteImage swagger:route DELETE /images image deleteImage
delete a specified local image
func NewDeleteImage ¶
func NewDeleteImage(ctx *middleware.Context, handler DeleteImageHandler) *DeleteImage
NewDeleteImage creates a new http.Handler for the delete image operation
func (*DeleteImage) ServeHTTP ¶
func (o *DeleteImage) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteImageBody ¶
type DeleteImageBody struct { // Docker image name // Required: true Image *string `json:"image"` }
DeleteImageBody ImageName
swagger:model DeleteImageBody
func (*DeleteImageBody) MarshalBinary ¶
func (o *DeleteImageBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteImageBody) UnmarshalBinary ¶
func (o *DeleteImageBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteImageDefault ¶
type DeleteImageDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteImageDefault Unexpected error
swagger:response deleteImageDefault
func NewDeleteImageDefault ¶
func NewDeleteImageDefault(code int) *DeleteImageDefault
NewDeleteImageDefault creates DeleteImageDefault with default headers values
func (*DeleteImageDefault) SetPayload ¶
func (o *DeleteImageDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete image default response
func (*DeleteImageDefault) SetStatusCode ¶
func (o *DeleteImageDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete image default response
func (*DeleteImageDefault) WithPayload ¶
func (o *DeleteImageDefault) WithPayload(payload *models.Error) *DeleteImageDefault
WithPayload adds the payload to the delete image default response
func (*DeleteImageDefault) WithStatusCode ¶
func (o *DeleteImageDefault) WithStatusCode(code int) *DeleteImageDefault
WithStatusCode adds the status to the delete image default response
func (*DeleteImageDefault) WriteResponse ¶
func (o *DeleteImageDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteImageHandler ¶
type DeleteImageHandler interface {
Handle(DeleteImageParams) middleware.Responder
}
DeleteImageHandler interface for that can handle valid delete image params
type DeleteImageHandlerFunc ¶
type DeleteImageHandlerFunc func(DeleteImageParams) middleware.Responder
DeleteImageHandlerFunc turns a function with the right signature into a delete image handler
func (DeleteImageHandlerFunc) Handle ¶
func (fn DeleteImageHandlerFunc) Handle(params DeleteImageParams) middleware.Responder
Handle executing the request and returning a response
type DeleteImageNoContent ¶
type DeleteImageNoContent struct { }
DeleteImageNoContent OK
swagger:response deleteImageNoContent
func NewDeleteImageNoContent ¶
func NewDeleteImageNoContent() *DeleteImageNoContent
NewDeleteImageNoContent creates DeleteImageNoContent with default headers values
func (*DeleteImageNoContent) WriteResponse ¶
func (o *DeleteImageNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteImageParams ¶
type DeleteImageParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body DeleteImageBody }
DeleteImageParams contains all the bound params for the delete image operation typically these are obtained from a http.Request
swagger:parameters deleteImage
func NewDeleteImageParams ¶
func NewDeleteImageParams() DeleteImageParams
NewDeleteImageParams creates a new DeleteImageParams object no default values defined in spec.
func (*DeleteImageParams) BindRequest ¶
func (o *DeleteImageParams) 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 NewDeleteImageParams() beforehand.
type DeleteImageURL ¶
type DeleteImageURL struct {
// contains filtered or unexported fields
}
DeleteImageURL generates an URL for the delete image operation
func (*DeleteImageURL) Build ¶
func (o *DeleteImageURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteImageURL) BuildFull ¶
func (o *DeleteImageURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteImageURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteImageURL) SetBasePath ¶
func (o *DeleteImageURL) 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 (*DeleteImageURL) String ¶
func (o *DeleteImageURL) String() string
String returns the string representation of the path with query string
func (*DeleteImageURL) StringFull ¶
func (o *DeleteImageURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteImageURL) WithBasePath ¶
func (o *DeleteImageURL) WithBasePath(bp string) *DeleteImageURL
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 /images image getImages
returns local images
func NewGetImages ¶
func NewGetImages(ctx *middleware.Context, handler GetImagesHandler) *GetImages
NewGetImages creates a new http.Handler for the get images operation
type GetImagesDefault ¶
type GetImagesDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetImagesDefault Unexpected error
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) middleware.Responder
}
GetImagesHandler interface for that can handle valid get images params
type GetImagesHandlerFunc ¶
type GetImagesHandlerFunc func(GetImagesParams) middleware.Responder
GetImagesHandlerFunc turns a function with the right signature into a get images handler
func (GetImagesHandlerFunc) Handle ¶
func (fn GetImagesHandlerFunc) Handle(params GetImagesParams) middleware.Responder
Handle executing the request and returning a response
type GetImagesOK ¶
GetImagesOK OK
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 ¶
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 {
// 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 PostNewImage ¶
type PostNewImage struct { Context *middleware.Context Handler PostNewImageHandler }
PostNewImage swagger:route POST /images image postNewImage
pull a specified image from Docker registry
func NewPostNewImage ¶
func NewPostNewImage(ctx *middleware.Context, handler PostNewImageHandler) *PostNewImage
NewPostNewImage creates a new http.Handler for the post new image operation
func (*PostNewImage) ServeHTTP ¶
func (o *PostNewImage) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostNewImageBody ¶
type PostNewImageBody struct { // Docker image name // Required: true Image *string `json:"image"` }
PostNewImageBody ImageName
swagger:model PostNewImageBody
func (*PostNewImageBody) MarshalBinary ¶
func (o *PostNewImageBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PostNewImageBody) UnmarshalBinary ¶
func (o *PostNewImageBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PostNewImageCreated ¶
type PostNewImageCreated struct { }
PostNewImageCreated OK
swagger:response postNewImageCreated
func NewPostNewImageCreated ¶
func NewPostNewImageCreated() *PostNewImageCreated
NewPostNewImageCreated creates PostNewImageCreated with default headers values
func (*PostNewImageCreated) WriteResponse ¶
func (o *PostNewImageCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostNewImageDefault ¶
type PostNewImageDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
PostNewImageDefault Unexpected error
swagger:response postNewImageDefault
func NewPostNewImageDefault ¶
func NewPostNewImageDefault(code int) *PostNewImageDefault
NewPostNewImageDefault creates PostNewImageDefault with default headers values
func (*PostNewImageDefault) SetPayload ¶
func (o *PostNewImageDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the post new image default response
func (*PostNewImageDefault) SetStatusCode ¶
func (o *PostNewImageDefault) SetStatusCode(code int)
SetStatusCode sets the status to the post new image default response
func (*PostNewImageDefault) WithPayload ¶
func (o *PostNewImageDefault) WithPayload(payload *models.Error) *PostNewImageDefault
WithPayload adds the payload to the post new image default response
func (*PostNewImageDefault) WithStatusCode ¶
func (o *PostNewImageDefault) WithStatusCode(code int) *PostNewImageDefault
WithStatusCode adds the status to the post new image default response
func (*PostNewImageDefault) WriteResponse ¶
func (o *PostNewImageDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostNewImageHandler ¶
type PostNewImageHandler interface {
Handle(PostNewImageParams) middleware.Responder
}
PostNewImageHandler interface for that can handle valid post new image params
type PostNewImageHandlerFunc ¶
type PostNewImageHandlerFunc func(PostNewImageParams) middleware.Responder
PostNewImageHandlerFunc turns a function with the right signature into a post new image handler
func (PostNewImageHandlerFunc) Handle ¶
func (fn PostNewImageHandlerFunc) Handle(params PostNewImageParams) middleware.Responder
Handle executing the request and returning a response
type PostNewImageParams ¶
type PostNewImageParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body PostNewImageBody }
PostNewImageParams contains all the bound params for the post new image operation typically these are obtained from a http.Request
swagger:parameters postNewImage
func NewPostNewImageParams ¶
func NewPostNewImageParams() PostNewImageParams
NewPostNewImageParams creates a new PostNewImageParams object no default values defined in spec.
func (*PostNewImageParams) BindRequest ¶
func (o *PostNewImageParams) 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 NewPostNewImageParams() beforehand.
type PostNewImageURL ¶
type PostNewImageURL struct {
// contains filtered or unexported fields
}
PostNewImageURL generates an URL for the post new image operation
func (*PostNewImageURL) Build ¶
func (o *PostNewImageURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostNewImageURL) BuildFull ¶
func (o *PostNewImageURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostNewImageURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostNewImageURL) SetBasePath ¶
func (o *PostNewImageURL) 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 (*PostNewImageURL) String ¶
func (o *PostNewImageURL) String() string
String returns the string representation of the path with query string
func (*PostNewImageURL) StringFull ¶
func (o *PostNewImageURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostNewImageURL) WithBasePath ¶
func (o *PostNewImageURL) WithBasePath(bp string) *PostNewImageURL
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