Documentation ¶
Index ¶
- Constants
- type BuildPrune
- type BuildPruneHandler
- type BuildPruneHandlerFunc
- type BuildPruneInternalServerError
- func (o *BuildPruneInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *BuildPruneInternalServerError) WithPayload(payload *models.ErrorResponse) *BuildPruneInternalServerError
- func (o *BuildPruneInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type BuildPruneOK
- type BuildPruneOKBody
- type BuildPruneParams
- type BuildPruneURL
- func (o *BuildPruneURL) Build() (*url.URL, error)
- func (o *BuildPruneURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *BuildPruneURL) Must(u *url.URL, err error) *url.URL
- func (o *BuildPruneURL) SetBasePath(bp string)
- func (o *BuildPruneURL) String() string
- func (o *BuildPruneURL) StringFull(scheme, host string) string
- func (o *BuildPruneURL) WithBasePath(bp string) *BuildPruneURL
- type HistoryResponseItem
- type ImageBuild
- type ImageBuildBadRequest
- type ImageBuildHandler
- type ImageBuildHandlerFunc
- type ImageBuildInternalServerError
- func (o *ImageBuildInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *ImageBuildInternalServerError) WithPayload(payload *models.ErrorResponse) *ImageBuildInternalServerError
- func (o *ImageBuildInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ImageBuildOK
- type ImageBuildParams
- type ImageBuildURL
- func (o *ImageBuildURL) Build() (*url.URL, error)
- func (o *ImageBuildURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ImageBuildURL) Must(u *url.URL, err error) *url.URL
- func (o *ImageBuildURL) SetBasePath(bp string)
- func (o *ImageBuildURL) String() string
- func (o *ImageBuildURL) StringFull(scheme, host string) string
- func (o *ImageBuildURL) WithBasePath(bp string) *ImageBuildURL
- type ImageCommit
- type ImageCommitCreated
- type ImageCommitHandler
- type ImageCommitHandlerFunc
- type ImageCommitInternalServerError
- func (o *ImageCommitInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *ImageCommitInternalServerError) WithPayload(payload *models.ErrorResponse) *ImageCommitInternalServerError
- func (o *ImageCommitInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ImageCommitNotFound
- type ImageCommitParams
- type ImageCommitURL
- func (o *ImageCommitURL) Build() (*url.URL, error)
- func (o *ImageCommitURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ImageCommitURL) Must(u *url.URL, err error) *url.URL
- func (o *ImageCommitURL) SetBasePath(bp string)
- func (o *ImageCommitURL) String() string
- func (o *ImageCommitURL) StringFull(scheme, host string) string
- func (o *ImageCommitURL) WithBasePath(bp string) *ImageCommitURL
- type ImageCreate
- type ImageCreateHandler
- type ImageCreateHandlerFunc
- type ImageCreateInternalServerError
- func (o *ImageCreateInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *ImageCreateInternalServerError) WithPayload(payload *models.ErrorResponse) *ImageCreateInternalServerError
- func (o *ImageCreateInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ImageCreateNotFound
- type ImageCreateOK
- type ImageCreateParams
- type ImageCreateURL
- func (o *ImageCreateURL) Build() (*url.URL, error)
- func (o *ImageCreateURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ImageCreateURL) Must(u *url.URL, err error) *url.URL
- func (o *ImageCreateURL) SetBasePath(bp string)
- func (o *ImageCreateURL) String() string
- func (o *ImageCreateURL) StringFull(scheme, host string) string
- func (o *ImageCreateURL) WithBasePath(bp string) *ImageCreateURL
- type ImageDelete
- type ImageDeleteConflict
- type ImageDeleteHandler
- type ImageDeleteHandlerFunc
- type ImageDeleteInternalServerError
- func (o *ImageDeleteInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *ImageDeleteInternalServerError) WithPayload(payload *models.ErrorResponse) *ImageDeleteInternalServerError
- func (o *ImageDeleteInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ImageDeleteNotFound
- type ImageDeleteOK
- type ImageDeleteParams
- type ImageDeleteURL
- func (o *ImageDeleteURL) Build() (*url.URL, error)
- func (o *ImageDeleteURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ImageDeleteURL) Must(u *url.URL, err error) *url.URL
- func (o *ImageDeleteURL) SetBasePath(bp string)
- func (o *ImageDeleteURL) String() string
- func (o *ImageDeleteURL) StringFull(scheme, host string) string
- func (o *ImageDeleteURL) WithBasePath(bp string) *ImageDeleteURL
- type ImageGet
- type ImageGetAll
- type ImageGetAllHandler
- type ImageGetAllHandlerFunc
- type ImageGetAllInternalServerError
- func (o *ImageGetAllInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *ImageGetAllInternalServerError) WithPayload(payload *models.ErrorResponse) *ImageGetAllInternalServerError
- func (o *ImageGetAllInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ImageGetAllOK
- type ImageGetAllParams
- type ImageGetAllURL
- func (o *ImageGetAllURL) Build() (*url.URL, error)
- func (o *ImageGetAllURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ImageGetAllURL) Must(u *url.URL, err error) *url.URL
- func (o *ImageGetAllURL) SetBasePath(bp string)
- func (o *ImageGetAllURL) String() string
- func (o *ImageGetAllURL) StringFull(scheme, host string) string
- func (o *ImageGetAllURL) WithBasePath(bp string) *ImageGetAllURL
- type ImageGetHandler
- type ImageGetHandlerFunc
- type ImageGetInternalServerError
- type ImageGetOK
- type ImageGetParams
- type ImageGetURL
- func (o *ImageGetURL) Build() (*url.URL, error)
- func (o *ImageGetURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ImageGetURL) Must(u *url.URL, err error) *url.URL
- func (o *ImageGetURL) SetBasePath(bp string)
- func (o *ImageGetURL) String() string
- func (o *ImageGetURL) StringFull(scheme, host string) string
- func (o *ImageGetURL) WithBasePath(bp string) *ImageGetURL
- type ImageHistory
- type ImageHistoryHandler
- type ImageHistoryHandlerFunc
- type ImageHistoryInternalServerError
- func (o *ImageHistoryInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *ImageHistoryInternalServerError) WithPayload(payload *models.ErrorResponse) *ImageHistoryInternalServerError
- func (o *ImageHistoryInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ImageHistoryNotFound
- type ImageHistoryOK
- type ImageHistoryParams
- type ImageHistoryURL
- func (o *ImageHistoryURL) Build() (*url.URL, error)
- func (o *ImageHistoryURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ImageHistoryURL) Must(u *url.URL, err error) *url.URL
- func (o *ImageHistoryURL) SetBasePath(bp string)
- func (o *ImageHistoryURL) String() string
- func (o *ImageHistoryURL) StringFull(scheme, host string) string
- func (o *ImageHistoryURL) WithBasePath(bp string) *ImageHistoryURL
- type ImageInspect
- type ImageInspectHandler
- type ImageInspectHandlerFunc
- type ImageInspectInternalServerError
- func (o *ImageInspectInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *ImageInspectInternalServerError) WithPayload(payload *models.ErrorResponse) *ImageInspectInternalServerError
- func (o *ImageInspectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ImageInspectNotFound
- type ImageInspectOK
- type ImageInspectParams
- type ImageInspectURL
- func (o *ImageInspectURL) Build() (*url.URL, error)
- func (o *ImageInspectURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ImageInspectURL) Must(u *url.URL, err error) *url.URL
- func (o *ImageInspectURL) SetBasePath(bp string)
- func (o *ImageInspectURL) String() string
- func (o *ImageInspectURL) StringFull(scheme, host string) string
- func (o *ImageInspectURL) WithBasePath(bp string) *ImageInspectURL
- type ImageList
- type ImageListHandler
- type ImageListHandlerFunc
- type ImageListInternalServerError
- type ImageListOK
- type ImageListParams
- type ImageListURL
- func (o *ImageListURL) Build() (*url.URL, error)
- func (o *ImageListURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ImageListURL) Must(u *url.URL, err error) *url.URL
- func (o *ImageListURL) SetBasePath(bp string)
- func (o *ImageListURL) String() string
- func (o *ImageListURL) StringFull(scheme, host string) string
- func (o *ImageListURL) WithBasePath(bp string) *ImageListURL
- type ImageLoad
- type ImageLoadHandler
- type ImageLoadHandlerFunc
- type ImageLoadInternalServerError
- type ImageLoadOK
- type ImageLoadParams
- type ImageLoadURL
- func (o *ImageLoadURL) Build() (*url.URL, error)
- func (o *ImageLoadURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ImageLoadURL) Must(u *url.URL, err error) *url.URL
- func (o *ImageLoadURL) SetBasePath(bp string)
- func (o *ImageLoadURL) String() string
- func (o *ImageLoadURL) StringFull(scheme, host string) string
- func (o *ImageLoadURL) WithBasePath(bp string) *ImageLoadURL
- type ImagePrune
- type ImagePruneHandler
- type ImagePruneHandlerFunc
- type ImagePruneInternalServerError
- func (o *ImagePruneInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *ImagePruneInternalServerError) WithPayload(payload *models.ErrorResponse) *ImagePruneInternalServerError
- func (o *ImagePruneInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ImagePruneOK
- type ImagePruneOKBody
- type ImagePruneParams
- type ImagePruneURL
- func (o *ImagePruneURL) Build() (*url.URL, error)
- func (o *ImagePruneURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ImagePruneURL) Must(u *url.URL, err error) *url.URL
- func (o *ImagePruneURL) SetBasePath(bp string)
- func (o *ImagePruneURL) String() string
- func (o *ImagePruneURL) StringFull(scheme, host string) string
- func (o *ImagePruneURL) WithBasePath(bp string) *ImagePruneURL
- type ImagePush
- type ImagePushHandler
- type ImagePushHandlerFunc
- type ImagePushInternalServerError
- type ImagePushNotFound
- type ImagePushOK
- type ImagePushParams
- type ImagePushURL
- func (o *ImagePushURL) Build() (*url.URL, error)
- func (o *ImagePushURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ImagePushURL) Must(u *url.URL, err error) *url.URL
- func (o *ImagePushURL) SetBasePath(bp string)
- func (o *ImagePushURL) String() string
- func (o *ImagePushURL) StringFull(scheme, host string) string
- func (o *ImagePushURL) WithBasePath(bp string) *ImagePushURL
- type ImageSearch
- type ImageSearchHandler
- type ImageSearchHandlerFunc
- type ImageSearchInternalServerError
- func (o *ImageSearchInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *ImageSearchInternalServerError) WithPayload(payload *models.ErrorResponse) *ImageSearchInternalServerError
- func (o *ImageSearchInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ImageSearchOK
- type ImageSearchOKBodyItems0
- func (o *ImageSearchOKBodyItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ImageSearchOKBodyItems0) MarshalBinary() ([]byte, error)
- func (o *ImageSearchOKBodyItems0) UnmarshalBinary(b []byte) error
- func (o *ImageSearchOKBodyItems0) Validate(formats strfmt.Registry) error
- type ImageSearchParams
- type ImageSearchURL
- func (o *ImageSearchURL) Build() (*url.URL, error)
- func (o *ImageSearchURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ImageSearchURL) Must(u *url.URL, err error) *url.URL
- func (o *ImageSearchURL) SetBasePath(bp string)
- func (o *ImageSearchURL) String() string
- func (o *ImageSearchURL) StringFull(scheme, host string) string
- func (o *ImageSearchURL) WithBasePath(bp string) *ImageSearchURL
- type ImageTag
- type ImageTagBadRequest
- type ImageTagConflict
- type ImageTagCreated
- type ImageTagHandler
- type ImageTagHandlerFunc
- type ImageTagInternalServerError
- type ImageTagNotFound
- type ImageTagParams
- type ImageTagURL
- func (o *ImageTagURL) Build() (*url.URL, error)
- func (o *ImageTagURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ImageTagURL) Must(u *url.URL, err error) *url.URL
- func (o *ImageTagURL) SetBasePath(bp string)
- func (o *ImageTagURL) String() string
- func (o *ImageTagURL) StringFull(scheme, host string) string
- func (o *ImageTagURL) WithBasePath(bp string) *ImageTagURL
Constants ¶
const BuildPruneInternalServerErrorCode int = 500
BuildPruneInternalServerErrorCode is the HTTP code returned for type BuildPruneInternalServerError
const BuildPruneOKCode int = 200
BuildPruneOKCode is the HTTP code returned for type BuildPruneOK
const ImageBuildBadRequestCode int = 400
ImageBuildBadRequestCode is the HTTP code returned for type ImageBuildBadRequest
const ImageBuildInternalServerErrorCode int = 500
ImageBuildInternalServerErrorCode is the HTTP code returned for type ImageBuildInternalServerError
const ImageBuildOKCode int = 200
ImageBuildOKCode is the HTTP code returned for type ImageBuildOK
const ImageCommitCreatedCode int = 201
ImageCommitCreatedCode is the HTTP code returned for type ImageCommitCreated
const ImageCommitInternalServerErrorCode int = 500
ImageCommitInternalServerErrorCode is the HTTP code returned for type ImageCommitInternalServerError
const ImageCommitNotFoundCode int = 404
ImageCommitNotFoundCode is the HTTP code returned for type ImageCommitNotFound
const ImageCreateInternalServerErrorCode int = 500
ImageCreateInternalServerErrorCode is the HTTP code returned for type ImageCreateInternalServerError
const ImageCreateNotFoundCode int = 404
ImageCreateNotFoundCode is the HTTP code returned for type ImageCreateNotFound
const ImageCreateOKCode int = 200
ImageCreateOKCode is the HTTP code returned for type ImageCreateOK
const ImageDeleteConflictCode int = 409
ImageDeleteConflictCode is the HTTP code returned for type ImageDeleteConflict
const ImageDeleteInternalServerErrorCode int = 500
ImageDeleteInternalServerErrorCode is the HTTP code returned for type ImageDeleteInternalServerError
const ImageDeleteNotFoundCode int = 404
ImageDeleteNotFoundCode is the HTTP code returned for type ImageDeleteNotFound
const ImageDeleteOKCode int = 200
ImageDeleteOKCode is the HTTP code returned for type ImageDeleteOK
const ImageGetAllInternalServerErrorCode int = 500
ImageGetAllInternalServerErrorCode is the HTTP code returned for type ImageGetAllInternalServerError
const ImageGetAllOKCode int = 200
ImageGetAllOKCode is the HTTP code returned for type ImageGetAllOK
const ImageGetInternalServerErrorCode int = 500
ImageGetInternalServerErrorCode is the HTTP code returned for type ImageGetInternalServerError
const ImageGetOKCode int = 200
ImageGetOKCode is the HTTP code returned for type ImageGetOK
const ImageHistoryInternalServerErrorCode int = 500
ImageHistoryInternalServerErrorCode is the HTTP code returned for type ImageHistoryInternalServerError
const ImageHistoryNotFoundCode int = 404
ImageHistoryNotFoundCode is the HTTP code returned for type ImageHistoryNotFound
const ImageHistoryOKCode int = 200
ImageHistoryOKCode is the HTTP code returned for type ImageHistoryOK
const ImageInspectInternalServerErrorCode int = 500
ImageInspectInternalServerErrorCode is the HTTP code returned for type ImageInspectInternalServerError
const ImageInspectNotFoundCode int = 404
ImageInspectNotFoundCode is the HTTP code returned for type ImageInspectNotFound
const ImageInspectOKCode int = 200
ImageInspectOKCode is the HTTP code returned for type ImageInspectOK
const ImageListInternalServerErrorCode int = 500
ImageListInternalServerErrorCode is the HTTP code returned for type ImageListInternalServerError
const ImageListOKCode int = 200
ImageListOKCode is the HTTP code returned for type ImageListOK
const ImageLoadInternalServerErrorCode int = 500
ImageLoadInternalServerErrorCode is the HTTP code returned for type ImageLoadInternalServerError
const ImageLoadOKCode int = 200
ImageLoadOKCode is the HTTP code returned for type ImageLoadOK
const ImagePruneInternalServerErrorCode int = 500
ImagePruneInternalServerErrorCode is the HTTP code returned for type ImagePruneInternalServerError
const ImagePruneOKCode int = 200
ImagePruneOKCode is the HTTP code returned for type ImagePruneOK
const ImagePushInternalServerErrorCode int = 500
ImagePushInternalServerErrorCode is the HTTP code returned for type ImagePushInternalServerError
const ImagePushNotFoundCode int = 404
ImagePushNotFoundCode is the HTTP code returned for type ImagePushNotFound
const ImagePushOKCode int = 200
ImagePushOKCode is the HTTP code returned for type ImagePushOK
const ImageSearchInternalServerErrorCode int = 500
ImageSearchInternalServerErrorCode is the HTTP code returned for type ImageSearchInternalServerError
const ImageSearchOKCode int = 200
ImageSearchOKCode is the HTTP code returned for type ImageSearchOK
const ImageTagBadRequestCode int = 400
ImageTagBadRequestCode is the HTTP code returned for type ImageTagBadRequest
const ImageTagConflictCode int = 409
ImageTagConflictCode is the HTTP code returned for type ImageTagConflict
const ImageTagCreatedCode int = 201
ImageTagCreatedCode is the HTTP code returned for type ImageTagCreated
const ImageTagInternalServerErrorCode int = 500
ImageTagInternalServerErrorCode is the HTTP code returned for type ImageTagInternalServerError
const ImageTagNotFoundCode int = 404
ImageTagNotFoundCode is the HTTP code returned for type ImageTagNotFound
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildPrune ¶
type BuildPrune struct { Context *middleware.Context Handler BuildPruneHandler }
BuildPrune swagger:route POST /build/prune Image buildPrune
Delete builder cache
func NewBuildPrune ¶
func NewBuildPrune(ctx *middleware.Context, handler BuildPruneHandler) *BuildPrune
NewBuildPrune creates a new http.Handler for the build prune operation
func (*BuildPrune) ServeHTTP ¶
func (o *BuildPrune) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type BuildPruneHandler ¶
type BuildPruneHandler interface {
Handle(BuildPruneParams) middleware.Responder
}
BuildPruneHandler interface for that can handle valid build prune params
type BuildPruneHandlerFunc ¶
type BuildPruneHandlerFunc func(BuildPruneParams) middleware.Responder
BuildPruneHandlerFunc turns a function with the right signature into a build prune handler
func (BuildPruneHandlerFunc) Handle ¶
func (fn BuildPruneHandlerFunc) Handle(params BuildPruneParams) middleware.Responder
Handle executing the request and returning a response
type BuildPruneInternalServerError ¶
type BuildPruneInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
BuildPruneInternalServerError Server error
swagger:response buildPruneInternalServerError
func NewBuildPruneInternalServerError ¶
func NewBuildPruneInternalServerError() *BuildPruneInternalServerError
NewBuildPruneInternalServerError creates BuildPruneInternalServerError with default headers values
func (*BuildPruneInternalServerError) SetPayload ¶
func (o *BuildPruneInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the build prune internal server error response
func (*BuildPruneInternalServerError) WithPayload ¶
func (o *BuildPruneInternalServerError) WithPayload(payload *models.ErrorResponse) *BuildPruneInternalServerError
WithPayload adds the payload to the build prune internal server error response
func (*BuildPruneInternalServerError) WriteResponse ¶
func (o *BuildPruneInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BuildPruneOK ¶
type BuildPruneOK struct { /* In: Body */ Payload *BuildPruneOKBody `json:"body,omitempty"` }
BuildPruneOK No error
swagger:response buildPruneOK
func NewBuildPruneOK ¶
func NewBuildPruneOK() *BuildPruneOK
NewBuildPruneOK creates BuildPruneOK with default headers values
func (*BuildPruneOK) SetPayload ¶
func (o *BuildPruneOK) SetPayload(payload *BuildPruneOKBody)
SetPayload sets the payload to the build prune o k response
func (*BuildPruneOK) WithPayload ¶
func (o *BuildPruneOK) WithPayload(payload *BuildPruneOKBody) *BuildPruneOK
WithPayload adds the payload to the build prune o k response
func (*BuildPruneOK) WriteResponse ¶
func (o *BuildPruneOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BuildPruneOKBody ¶
type BuildPruneOKBody struct { // caches deleted CachesDeleted []string `json:"CachesDeleted"` // Disk space reclaimed in bytes SpaceReclaimed int64 `json:"SpaceReclaimed,omitempty"` }
BuildPruneOKBody BuildPruneResponse
swagger:model BuildPruneOKBody
func (*BuildPruneOKBody) ContextValidate ¶
ContextValidate validates this build prune o k body based on context it is used
func (*BuildPruneOKBody) MarshalBinary ¶
func (o *BuildPruneOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BuildPruneOKBody) UnmarshalBinary ¶
func (o *BuildPruneOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type BuildPruneParams ¶
type BuildPruneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Remove all types of build cache In: query */ All *bool /*A JSON encoded value of the filters (a `map[string][]string`) to process on the list of build cache objects. Available filters: - `until=<duration>`: duration relative to daemon's time, during which build cache was not used, in Go's duration format (e.g., '24h') - `id=<id>` - `parent=<id>` - `type=<string>` - `description=<string>` - `inuse` - `shared` - `private` In: query */ Filters *string /*Amount of disk space in bytes to keep for cache In: query */ KeepStorage *int64 }
BuildPruneParams contains all the bound params for the build prune operation typically these are obtained from a http.Request
swagger:parameters BuildPrune
func NewBuildPruneParams ¶
func NewBuildPruneParams() BuildPruneParams
NewBuildPruneParams creates a new BuildPruneParams object
There are no default values defined in the spec.
func (*BuildPruneParams) BindRequest ¶
func (o *BuildPruneParams) 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 NewBuildPruneParams() beforehand.
type BuildPruneURL ¶
type BuildPruneURL struct { All *bool Filters *string KeepStorage *int64 // contains filtered or unexported fields }
BuildPruneURL generates an URL for the build prune operation
func (*BuildPruneURL) Build ¶
func (o *BuildPruneURL) Build() (*url.URL, error)
Build a url path and query string
func (*BuildPruneURL) BuildFull ¶
func (o *BuildPruneURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*BuildPruneURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*BuildPruneURL) SetBasePath ¶
func (o *BuildPruneURL) 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 (*BuildPruneURL) String ¶
func (o *BuildPruneURL) String() string
String returns the string representation of the path with query string
func (*BuildPruneURL) StringFull ¶
func (o *BuildPruneURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*BuildPruneURL) WithBasePath ¶
func (o *BuildPruneURL) WithBasePath(bp string) *BuildPruneURL
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 HistoryResponseItem ¶
type HistoryResponseItem struct { // comment // Required: true Comment string `json:"Comment"` // created // Required: true Created int64 `json:"Created"` // created by // Required: true CreatedBy string `json:"CreatedBy"` // Id // Required: true ID string `json:"Id"` // size // Required: true Size int64 `json:"Size"` // tags // Required: true Tags []string `json:"Tags"` }
HistoryResponseItem HistoryResponseItem
individual image layer information in response to ImageHistory operation
swagger:model HistoryResponseItem
func (*HistoryResponseItem) ContextValidate ¶
ContextValidate validates this history response item based on context it is used
func (*HistoryResponseItem) MarshalBinary ¶
func (o *HistoryResponseItem) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HistoryResponseItem) UnmarshalBinary ¶
func (o *HistoryResponseItem) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ImageBuild ¶
type ImageBuild struct { Context *middleware.Context Handler ImageBuildHandler }
ImageBuild swagger:route POST /build Image imageBuild
Build an image ¶
Build an image from a tar archive with a `Dockerfile` in it.
The `Dockerfile` specifies how the image is built from the tar archive. It is typically in the archive's root, but can be at a different path or have a different name by specifying the `dockerfile` parameter. [See the `Dockerfile` reference for more information](/engine/reference/builder/).
The Docker daemon performs a preliminary validation of the `Dockerfile` before starting the build, and returns an error if the syntax is incorrect. After that, each instruction is run one-by-one until the ID of the new image is output.
The build is canceled if the client drops the connection by quitting or being killed.
func NewImageBuild ¶
func NewImageBuild(ctx *middleware.Context, handler ImageBuildHandler) *ImageBuild
NewImageBuild creates a new http.Handler for the image build operation
func (*ImageBuild) ServeHTTP ¶
func (o *ImageBuild) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ImageBuildBadRequest ¶
type ImageBuildBadRequest struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImageBuildBadRequest Bad parameter
swagger:response imageBuildBadRequest
func NewImageBuildBadRequest ¶
func NewImageBuildBadRequest() *ImageBuildBadRequest
NewImageBuildBadRequest creates ImageBuildBadRequest with default headers values
func (*ImageBuildBadRequest) SetPayload ¶
func (o *ImageBuildBadRequest) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image build bad request response
func (*ImageBuildBadRequest) WithPayload ¶
func (o *ImageBuildBadRequest) WithPayload(payload *models.ErrorResponse) *ImageBuildBadRequest
WithPayload adds the payload to the image build bad request response
func (*ImageBuildBadRequest) WriteResponse ¶
func (o *ImageBuildBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageBuildHandler ¶
type ImageBuildHandler interface {
Handle(ImageBuildParams) middleware.Responder
}
ImageBuildHandler interface for that can handle valid image build params
type ImageBuildHandlerFunc ¶
type ImageBuildHandlerFunc func(ImageBuildParams) middleware.Responder
ImageBuildHandlerFunc turns a function with the right signature into a image build handler
func (ImageBuildHandlerFunc) Handle ¶
func (fn ImageBuildHandlerFunc) Handle(params ImageBuildParams) middleware.Responder
Handle executing the request and returning a response
type ImageBuildInternalServerError ¶
type ImageBuildInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImageBuildInternalServerError server error
swagger:response imageBuildInternalServerError
func NewImageBuildInternalServerError ¶
func NewImageBuildInternalServerError() *ImageBuildInternalServerError
NewImageBuildInternalServerError creates ImageBuildInternalServerError with default headers values
func (*ImageBuildInternalServerError) SetPayload ¶
func (o *ImageBuildInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image build internal server error response
func (*ImageBuildInternalServerError) WithPayload ¶
func (o *ImageBuildInternalServerError) WithPayload(payload *models.ErrorResponse) *ImageBuildInternalServerError
WithPayload adds the payload to the image build internal server error response
func (*ImageBuildInternalServerError) WriteResponse ¶
func (o *ImageBuildInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageBuildOK ¶
type ImageBuildOK struct { }
ImageBuildOK no error
swagger:response imageBuildOK
func NewImageBuildOK ¶
func NewImageBuildOK() *ImageBuildOK
NewImageBuildOK creates ImageBuildOK with default headers values
func (*ImageBuildOK) WriteResponse ¶
func (o *ImageBuildOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageBuildParams ¶
type ImageBuildParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: header Default: "application/x-tar" */ ContentType *string /*This is a base64-encoded JSON object with auth configurations for multiple registries that a build may refer to. The key is a registry URL, and the value is an auth configuration object, [as described in the authentication section](#section/Authentication). For example: “` { "docker.example.com": { "username": "janedoe", "password": "hunter2" }, "https://index.docker.io/v1/": { "username": "mobydock", "password": "conta1n3rize14" } } “` Only the registry domain name (and port if not the default 443) are required. However, for legacy reasons, the Docker Hub registry must be specified with both a `https://` prefix and a `/v1/` suffix even though Docker will prefer to use the v2 registry API. In: header */ XRegistryConfig *string /*JSON map of string pairs for build-time variables. Users pass these values at build-time. Docker uses the buildargs as the environment context for commands run via the `Dockerfile` RUN instruction, or for variable expansion in other `Dockerfile` instructions. This is not meant for passing secret values. For example, the build arg `FOO=bar` would become `{"FOO":"bar"}` in JSON. This would result in the query parameter `buildargs={"FOO":"bar"}`. Note that `{"FOO":"bar"}` should be URI component encoded. [Read more about the buildargs instruction.](/engine/reference/builder/#arg) In: query */ Buildargs *string /*JSON array of images used for build cache resolution. In: query */ Cachefrom *string /*The length of a CPU period in microseconds. In: query */ Cpuperiod *int64 /*Microseconds of CPU time that the container can get in a CPU period. In: query */ Cpuquota *int64 /*CPUs in which to allow execution (e.g., `0-3`, `0,1`). In: query */ Cpusetcpus *string Cpushares *int64 /*Path within the build context to the `Dockerfile`. This is ignored if `remote` is specified and points to an external `Dockerfile`. In: query Default: "Dockerfile" */ Dockerfile *string /*Extra hosts to add to /etc/hosts In: query */ Extrahosts *string /*Always remove intermediate containers, even upon failure. In: query Default: false */ Forcerm *bool /*A tar archive compressed with one of the following algorithms: identity (no compression), gzip, bzip2, xz. In: body */ InputStream io.ReadCloser /*Arbitrary key/value labels to set on the image, as a JSON map of string pairs. In: query */ Labels *string /*Set memory limit for build. In: query */ Memory *int64 /*Total memory (memory + swap). Set as `-1` to disable swap. In: query */ Memswap *int64 /*Sets the networking mode for the run commands during build. Supported standard values are: `bridge`, `host`, `none`, and `container:<name|id>`. Any other value is taken as a custom network's name or ID to which this container should connect to. In: query */ Networkmode *string /*Do not use the cache when building the image. In: query Default: false */ Nocache *bool /*BuildKit output configuration In: query Default: "" */ Outputs *string /*Platform in the format os[/arch[/variant]] In: query Default: "" */ Platform *string /*Attempt to pull the image even if an older image exists locally. In: query */ Pull *string /*Suppress verbose build output. In: query Default: false */ Q *bool /*A Git repository URI or HTTP/HTTPS context URI. If the URI points to a single text file, the file’s contents are placed into a file called `Dockerfile` and the image is built from that file. If the URI points to a tarball, the file is downloaded by the daemon and the contents therein used as the context for the build. If the URI points to a tarball and the `dockerfile` parameter is also specified, there must be a file with the corresponding path inside the tarball. In: query */ Remote *string /*Remove intermediate containers after a successful build. In: query Default: true */ Rm *bool /*Size of `/dev/shm` in bytes. The size must be greater than 0. If omitted the system uses 64MB. In: query */ Shmsize *int64 /*Squash the resulting images layers into a single layer. *(Experimental release only.)* In: query */ Squash *bool /*A name and optional tag to apply to the image in the `name:tag` format. If you omit the tag the default `latest` value is assumed. You can provide several `t` parameters. In: query */ T *string /*Target build stage In: query Default: "" */ Target *string }
ImageBuildParams contains all the bound params for the image build operation typically these are obtained from a http.Request
swagger:parameters ImageBuild
func NewImageBuildParams ¶
func NewImageBuildParams() ImageBuildParams
NewImageBuildParams creates a new ImageBuildParams object with the default values initialized.
func (*ImageBuildParams) BindRequest ¶
func (o *ImageBuildParams) 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 NewImageBuildParams() beforehand.
type ImageBuildURL ¶
type ImageBuildURL struct { Buildargs *string Cachefrom *string Cpuperiod *int64 Cpuquota *int64 Cpusetcpus *string Dockerfile *string Extrahosts *string Forcerm *bool Labels *string Memory *int64 Memswap *int64 Networkmode *string Nocache *bool Outputs *string Platform *string Pull *string Q *bool Remote *string Rm *bool Shmsize *int64 Squash *bool T *string Target *string // contains filtered or unexported fields }
ImageBuildURL generates an URL for the image build operation
func (*ImageBuildURL) Build ¶
func (o *ImageBuildURL) Build() (*url.URL, error)
Build a url path and query string
func (*ImageBuildURL) BuildFull ¶
func (o *ImageBuildURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ImageBuildURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ImageBuildURL) SetBasePath ¶
func (o *ImageBuildURL) 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 (*ImageBuildURL) String ¶
func (o *ImageBuildURL) String() string
String returns the string representation of the path with query string
func (*ImageBuildURL) StringFull ¶
func (o *ImageBuildURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ImageBuildURL) WithBasePath ¶
func (o *ImageBuildURL) WithBasePath(bp string) *ImageBuildURL
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 ImageCommit ¶
type ImageCommit struct { Context *middleware.Context Handler ImageCommitHandler }
ImageCommit swagger:route POST /commit Image imageCommit
Create a new image from a container
func NewImageCommit ¶
func NewImageCommit(ctx *middleware.Context, handler ImageCommitHandler) *ImageCommit
NewImageCommit creates a new http.Handler for the image commit operation
func (*ImageCommit) ServeHTTP ¶
func (o *ImageCommit) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ImageCommitCreated ¶
type ImageCommitCreated struct { /* In: Body */ Payload *models.IDResponse `json:"body,omitempty"` }
ImageCommitCreated no error
swagger:response imageCommitCreated
func NewImageCommitCreated ¶
func NewImageCommitCreated() *ImageCommitCreated
NewImageCommitCreated creates ImageCommitCreated with default headers values
func (*ImageCommitCreated) SetPayload ¶
func (o *ImageCommitCreated) SetPayload(payload *models.IDResponse)
SetPayload sets the payload to the image commit created response
func (*ImageCommitCreated) WithPayload ¶
func (o *ImageCommitCreated) WithPayload(payload *models.IDResponse) *ImageCommitCreated
WithPayload adds the payload to the image commit created response
func (*ImageCommitCreated) WriteResponse ¶
func (o *ImageCommitCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageCommitHandler ¶
type ImageCommitHandler interface {
Handle(ImageCommitParams) middleware.Responder
}
ImageCommitHandler interface for that can handle valid image commit params
type ImageCommitHandlerFunc ¶
type ImageCommitHandlerFunc func(ImageCommitParams) middleware.Responder
ImageCommitHandlerFunc turns a function with the right signature into a image commit handler
func (ImageCommitHandlerFunc) Handle ¶
func (fn ImageCommitHandlerFunc) Handle(params ImageCommitParams) middleware.Responder
Handle executing the request and returning a response
type ImageCommitInternalServerError ¶
type ImageCommitInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImageCommitInternalServerError server error
swagger:response imageCommitInternalServerError
func NewImageCommitInternalServerError ¶
func NewImageCommitInternalServerError() *ImageCommitInternalServerError
NewImageCommitInternalServerError creates ImageCommitInternalServerError with default headers values
func (*ImageCommitInternalServerError) SetPayload ¶
func (o *ImageCommitInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image commit internal server error response
func (*ImageCommitInternalServerError) WithPayload ¶
func (o *ImageCommitInternalServerError) WithPayload(payload *models.ErrorResponse) *ImageCommitInternalServerError
WithPayload adds the payload to the image commit internal server error response
func (*ImageCommitInternalServerError) WriteResponse ¶
func (o *ImageCommitInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageCommitNotFound ¶
type ImageCommitNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImageCommitNotFound no such container
swagger:response imageCommitNotFound
func NewImageCommitNotFound ¶
func NewImageCommitNotFound() *ImageCommitNotFound
NewImageCommitNotFound creates ImageCommitNotFound with default headers values
func (*ImageCommitNotFound) SetPayload ¶
func (o *ImageCommitNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image commit not found response
func (*ImageCommitNotFound) WithPayload ¶
func (o *ImageCommitNotFound) WithPayload(payload *models.ErrorResponse) *ImageCommitNotFound
WithPayload adds the payload to the image commit not found response
func (*ImageCommitNotFound) WriteResponse ¶
func (o *ImageCommitNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageCommitParams ¶
type ImageCommitParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Author of the image (e.g., `John Hannibal Smith <hannibal@a-team.com>`) In: query */ Author *string /*`Dockerfile` instructions to apply while committing In: query */ Changes *string /*Commit message In: query */ Comment *string /*The ID or name of the container to commit In: query */ Container *string /*The container configuration In: body */ ContainerConfig *models.ContainerConfig /*Whether to pause the container before committing In: query Default: true */ Pause *bool /*Repository name for the created image In: query */ Repo *string /*Tag name for the create image In: query */ Tag *string }
ImageCommitParams contains all the bound params for the image commit operation typically these are obtained from a http.Request
swagger:parameters ImageCommit
func NewImageCommitParams ¶
func NewImageCommitParams() ImageCommitParams
NewImageCommitParams creates a new ImageCommitParams object with the default values initialized.
func (*ImageCommitParams) BindRequest ¶
func (o *ImageCommitParams) 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 NewImageCommitParams() beforehand.
type ImageCommitURL ¶
type ImageCommitURL struct { Author *string Changes *string Comment *string Container *string Pause *bool Repo *string Tag *string // contains filtered or unexported fields }
ImageCommitURL generates an URL for the image commit operation
func (*ImageCommitURL) Build ¶
func (o *ImageCommitURL) Build() (*url.URL, error)
Build a url path and query string
func (*ImageCommitURL) BuildFull ¶
func (o *ImageCommitURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ImageCommitURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ImageCommitURL) SetBasePath ¶
func (o *ImageCommitURL) 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 (*ImageCommitURL) String ¶
func (o *ImageCommitURL) String() string
String returns the string representation of the path with query string
func (*ImageCommitURL) StringFull ¶
func (o *ImageCommitURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ImageCommitURL) WithBasePath ¶
func (o *ImageCommitURL) WithBasePath(bp string) *ImageCommitURL
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 ImageCreate ¶
type ImageCreate struct { Context *middleware.Context Handler ImageCreateHandler }
ImageCreate swagger:route POST /images/create Image imageCreate
Create an image ¶
Create an image by either pulling it from a registry or importing it.
func NewImageCreate ¶
func NewImageCreate(ctx *middleware.Context, handler ImageCreateHandler) *ImageCreate
NewImageCreate creates a new http.Handler for the image create operation
func (*ImageCreate) ServeHTTP ¶
func (o *ImageCreate) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ImageCreateHandler ¶
type ImageCreateHandler interface {
Handle(ImageCreateParams) middleware.Responder
}
ImageCreateHandler interface for that can handle valid image create params
type ImageCreateHandlerFunc ¶
type ImageCreateHandlerFunc func(ImageCreateParams) middleware.Responder
ImageCreateHandlerFunc turns a function with the right signature into a image create handler
func (ImageCreateHandlerFunc) Handle ¶
func (fn ImageCreateHandlerFunc) Handle(params ImageCreateParams) middleware.Responder
Handle executing the request and returning a response
type ImageCreateInternalServerError ¶
type ImageCreateInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImageCreateInternalServerError server error
swagger:response imageCreateInternalServerError
func NewImageCreateInternalServerError ¶
func NewImageCreateInternalServerError() *ImageCreateInternalServerError
NewImageCreateInternalServerError creates ImageCreateInternalServerError with default headers values
func (*ImageCreateInternalServerError) SetPayload ¶
func (o *ImageCreateInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image create internal server error response
func (*ImageCreateInternalServerError) WithPayload ¶
func (o *ImageCreateInternalServerError) WithPayload(payload *models.ErrorResponse) *ImageCreateInternalServerError
WithPayload adds the payload to the image create internal server error response
func (*ImageCreateInternalServerError) WriteResponse ¶
func (o *ImageCreateInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageCreateNotFound ¶
type ImageCreateNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImageCreateNotFound repository does not exist or no read access
swagger:response imageCreateNotFound
func NewImageCreateNotFound ¶
func NewImageCreateNotFound() *ImageCreateNotFound
NewImageCreateNotFound creates ImageCreateNotFound with default headers values
func (*ImageCreateNotFound) SetPayload ¶
func (o *ImageCreateNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image create not found response
func (*ImageCreateNotFound) WithPayload ¶
func (o *ImageCreateNotFound) WithPayload(payload *models.ErrorResponse) *ImageCreateNotFound
WithPayload adds the payload to the image create not found response
func (*ImageCreateNotFound) WriteResponse ¶
func (o *ImageCreateNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageCreateOK ¶
type ImageCreateOK struct { }
ImageCreateOK no error
swagger:response imageCreateOK
func NewImageCreateOK ¶
func NewImageCreateOK() *ImageCreateOK
NewImageCreateOK creates ImageCreateOK with default headers values
func (*ImageCreateOK) WriteResponse ¶
func (o *ImageCreateOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageCreateParams ¶
type ImageCreateParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*A base64url-encoded auth configuration. Refer to the [authentication section](#section/Authentication) for details. In: header */ XRegistryAuth *string /*Name of the image to pull. The name may include a tag or digest. This parameter may only be used when pulling an image. The pull is cancelled if the HTTP connection is closed. In: query */ FromImage *string /*Source to import. The value may be a URL from which the image can be retrieved or `-` to read the image from the request body. This parameter may only be used when importing an image. In: query */ FromSrc *string /*Image content if the value `-` has been specified in fromSrc query parameter In: body */ InputImage string /*Set commit message for imported image. In: query */ Message *string /*Platform in the format os[/arch[/variant]] In: query Default: "" */ Platform *string /*Repository name given to an image when it is imported. The repo may include a tag. This parameter may only be used when importing an image. In: query */ Repo *string /*Tag or digest. If empty when pulling an image, this causes all tags for the given image to be pulled. In: query */ Tag *string }
ImageCreateParams contains all the bound params for the image create operation typically these are obtained from a http.Request
swagger:parameters ImageCreate
func NewImageCreateParams ¶
func NewImageCreateParams() ImageCreateParams
NewImageCreateParams creates a new ImageCreateParams object with the default values initialized.
func (*ImageCreateParams) BindRequest ¶
func (o *ImageCreateParams) 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 NewImageCreateParams() beforehand.
type ImageCreateURL ¶
type ImageCreateURL struct { FromImage *string FromSrc *string Message *string Platform *string Repo *string Tag *string // contains filtered or unexported fields }
ImageCreateURL generates an URL for the image create operation
func (*ImageCreateURL) Build ¶
func (o *ImageCreateURL) Build() (*url.URL, error)
Build a url path and query string
func (*ImageCreateURL) BuildFull ¶
func (o *ImageCreateURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ImageCreateURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ImageCreateURL) SetBasePath ¶
func (o *ImageCreateURL) 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 (*ImageCreateURL) String ¶
func (o *ImageCreateURL) String() string
String returns the string representation of the path with query string
func (*ImageCreateURL) StringFull ¶
func (o *ImageCreateURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ImageCreateURL) WithBasePath ¶
func (o *ImageCreateURL) WithBasePath(bp string) *ImageCreateURL
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 ImageDelete ¶
type ImageDelete struct { Context *middleware.Context Handler ImageDeleteHandler }
ImageDelete swagger:route DELETE /images/{name} Image imageDelete
Remove an image ¶
Remove an image, along with any untagged parent images that were referenced by that image.
Images can't be removed if they have descendant images, are being used by a running container or are being used by a build.
func NewImageDelete ¶
func NewImageDelete(ctx *middleware.Context, handler ImageDeleteHandler) *ImageDelete
NewImageDelete creates a new http.Handler for the image delete operation
func (*ImageDelete) ServeHTTP ¶
func (o *ImageDelete) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ImageDeleteConflict ¶
type ImageDeleteConflict struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImageDeleteConflict Conflict
swagger:response imageDeleteConflict
func NewImageDeleteConflict ¶
func NewImageDeleteConflict() *ImageDeleteConflict
NewImageDeleteConflict creates ImageDeleteConflict with default headers values
func (*ImageDeleteConflict) SetPayload ¶
func (o *ImageDeleteConflict) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image delete conflict response
func (*ImageDeleteConflict) WithPayload ¶
func (o *ImageDeleteConflict) WithPayload(payload *models.ErrorResponse) *ImageDeleteConflict
WithPayload adds the payload to the image delete conflict response
func (*ImageDeleteConflict) WriteResponse ¶
func (o *ImageDeleteConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageDeleteHandler ¶
type ImageDeleteHandler interface {
Handle(ImageDeleteParams) middleware.Responder
}
ImageDeleteHandler interface for that can handle valid image delete params
type ImageDeleteHandlerFunc ¶
type ImageDeleteHandlerFunc func(ImageDeleteParams) middleware.Responder
ImageDeleteHandlerFunc turns a function with the right signature into a image delete handler
func (ImageDeleteHandlerFunc) Handle ¶
func (fn ImageDeleteHandlerFunc) Handle(params ImageDeleteParams) middleware.Responder
Handle executing the request and returning a response
type ImageDeleteInternalServerError ¶
type ImageDeleteInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImageDeleteInternalServerError Server error
swagger:response imageDeleteInternalServerError
func NewImageDeleteInternalServerError ¶
func NewImageDeleteInternalServerError() *ImageDeleteInternalServerError
NewImageDeleteInternalServerError creates ImageDeleteInternalServerError with default headers values
func (*ImageDeleteInternalServerError) SetPayload ¶
func (o *ImageDeleteInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image delete internal server error response
func (*ImageDeleteInternalServerError) WithPayload ¶
func (o *ImageDeleteInternalServerError) WithPayload(payload *models.ErrorResponse) *ImageDeleteInternalServerError
WithPayload adds the payload to the image delete internal server error response
func (*ImageDeleteInternalServerError) WriteResponse ¶
func (o *ImageDeleteInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageDeleteNotFound ¶
type ImageDeleteNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImageDeleteNotFound No such image
swagger:response imageDeleteNotFound
func NewImageDeleteNotFound ¶
func NewImageDeleteNotFound() *ImageDeleteNotFound
NewImageDeleteNotFound creates ImageDeleteNotFound with default headers values
func (*ImageDeleteNotFound) SetPayload ¶
func (o *ImageDeleteNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image delete not found response
func (*ImageDeleteNotFound) WithPayload ¶
func (o *ImageDeleteNotFound) WithPayload(payload *models.ErrorResponse) *ImageDeleteNotFound
WithPayload adds the payload to the image delete not found response
func (*ImageDeleteNotFound) WriteResponse ¶
func (o *ImageDeleteNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageDeleteOK ¶
type ImageDeleteOK struct { /* In: Body */ Payload []*models.ImageDeleteResponseItem `json:"body,omitempty"` }
ImageDeleteOK The image was deleted successfully
swagger:response imageDeleteOK
func NewImageDeleteOK ¶
func NewImageDeleteOK() *ImageDeleteOK
NewImageDeleteOK creates ImageDeleteOK with default headers values
func (*ImageDeleteOK) SetPayload ¶
func (o *ImageDeleteOK) SetPayload(payload []*models.ImageDeleteResponseItem)
SetPayload sets the payload to the image delete o k response
func (*ImageDeleteOK) WithPayload ¶
func (o *ImageDeleteOK) WithPayload(payload []*models.ImageDeleteResponseItem) *ImageDeleteOK
WithPayload adds the payload to the image delete o k response
func (*ImageDeleteOK) WriteResponse ¶
func (o *ImageDeleteOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageDeleteParams ¶
type ImageDeleteParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Remove the image even if it is being used by stopped containers or has other tags In: query Default: false */ Force *bool /*Image name or ID Required: true In: path */ Name string /*Do not delete untagged parent images In: query Default: false */ Noprune *bool }
ImageDeleteParams contains all the bound params for the image delete operation typically these are obtained from a http.Request
swagger:parameters ImageDelete
func NewImageDeleteParams ¶
func NewImageDeleteParams() ImageDeleteParams
NewImageDeleteParams creates a new ImageDeleteParams object with the default values initialized.
func (*ImageDeleteParams) BindRequest ¶
func (o *ImageDeleteParams) 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 NewImageDeleteParams() beforehand.
type ImageDeleteURL ¶
type ImageDeleteURL struct { Name string Force *bool Noprune *bool // contains filtered or unexported fields }
ImageDeleteURL generates an URL for the image delete operation
func (*ImageDeleteURL) Build ¶
func (o *ImageDeleteURL) Build() (*url.URL, error)
Build a url path and query string
func (*ImageDeleteURL) BuildFull ¶
func (o *ImageDeleteURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ImageDeleteURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ImageDeleteURL) SetBasePath ¶
func (o *ImageDeleteURL) 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 (*ImageDeleteURL) String ¶
func (o *ImageDeleteURL) String() string
String returns the string representation of the path with query string
func (*ImageDeleteURL) StringFull ¶
func (o *ImageDeleteURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ImageDeleteURL) WithBasePath ¶
func (o *ImageDeleteURL) WithBasePath(bp string) *ImageDeleteURL
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 ImageGet ¶
type ImageGet struct { Context *middleware.Context Handler ImageGetHandler }
ImageGet swagger:route GET /images/{name}/get Image imageGet
Export an image ¶
Get a tarball containing all images and metadata for a repository.
If `name` is a specific name and tag (e.g. `ubuntu:latest`), then only that image (and its parents) are returned. If `name` is an image ID, similarly only that image (and its parents) are returned, but with the exclusion of the `repositories` file in the tarball, as there were no image names referenced.
### Image tarball format
An image tarball contains one directory per image layer (named using its long ID), each containing these files:
- `VERSION`: currently `1.0` - the file format version - `json`: detailed layer information, similar to `docker inspect layer_id` - `layer.tar`: A tarfile containing the filesystem changes in this layer
The `layer.tar` file contains `aufs` style `.wh..wh.aufs` files and directories for storing attribute changes and deletions.
If the tarball defines a repository, the tarball should also include a `repositories` file at the root that contains a list of repository and tag names mapped to layer IDs.
```json
{ "hello-world": { "latest": "565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1" } }
```
func NewImageGet ¶
func NewImageGet(ctx *middleware.Context, handler ImageGetHandler) *ImageGet
NewImageGet creates a new http.Handler for the image get operation
type ImageGetAll ¶
type ImageGetAll struct { Context *middleware.Context Handler ImageGetAllHandler }
ImageGetAll swagger:route GET /images/get Image imageGetAll
Export several images ¶
Get a tarball containing all images and metadata for several image repositories.
For each value of the `names` parameter: if it is a specific name and tag (e.g. `ubuntu:latest`), then only that image (and its parents) are returned; if it is an image ID, similarly only that image (and its parents) are returned and there would be no names referenced in the 'repositories' file for this image ID.
For details on the format, see the [export image endpoint](#operation/ImageGet).
func NewImageGetAll ¶
func NewImageGetAll(ctx *middleware.Context, handler ImageGetAllHandler) *ImageGetAll
NewImageGetAll creates a new http.Handler for the image get all operation
func (*ImageGetAll) ServeHTTP ¶
func (o *ImageGetAll) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ImageGetAllHandler ¶
type ImageGetAllHandler interface {
Handle(ImageGetAllParams) middleware.Responder
}
ImageGetAllHandler interface for that can handle valid image get all params
type ImageGetAllHandlerFunc ¶
type ImageGetAllHandlerFunc func(ImageGetAllParams) middleware.Responder
ImageGetAllHandlerFunc turns a function with the right signature into a image get all handler
func (ImageGetAllHandlerFunc) Handle ¶
func (fn ImageGetAllHandlerFunc) Handle(params ImageGetAllParams) middleware.Responder
Handle executing the request and returning a response
type ImageGetAllInternalServerError ¶
type ImageGetAllInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImageGetAllInternalServerError server error
swagger:response imageGetAllInternalServerError
func NewImageGetAllInternalServerError ¶
func NewImageGetAllInternalServerError() *ImageGetAllInternalServerError
NewImageGetAllInternalServerError creates ImageGetAllInternalServerError with default headers values
func (*ImageGetAllInternalServerError) SetPayload ¶
func (o *ImageGetAllInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image get all internal server error response
func (*ImageGetAllInternalServerError) WithPayload ¶
func (o *ImageGetAllInternalServerError) WithPayload(payload *models.ErrorResponse) *ImageGetAllInternalServerError
WithPayload adds the payload to the image get all internal server error response
func (*ImageGetAllInternalServerError) WriteResponse ¶
func (o *ImageGetAllInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageGetAllOK ¶
type ImageGetAllOK struct { /* In: Body */ Payload io.ReadCloser `json:"body,omitempty"` }
ImageGetAllOK no error
swagger:response imageGetAllOK
func NewImageGetAllOK ¶
func NewImageGetAllOK() *ImageGetAllOK
NewImageGetAllOK creates ImageGetAllOK with default headers values
func (*ImageGetAllOK) SetPayload ¶
func (o *ImageGetAllOK) SetPayload(payload io.ReadCloser)
SetPayload sets the payload to the image get all o k response
func (*ImageGetAllOK) WithPayload ¶
func (o *ImageGetAllOK) WithPayload(payload io.ReadCloser) *ImageGetAllOK
WithPayload adds the payload to the image get all o k response
func (*ImageGetAllOK) WriteResponse ¶
func (o *ImageGetAllOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageGetAllParams ¶
type ImageGetAllParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Image names to filter by In: query */ Names []string }
ImageGetAllParams contains all the bound params for the image get all operation typically these are obtained from a http.Request
swagger:parameters ImageGetAll
func NewImageGetAllParams ¶
func NewImageGetAllParams() ImageGetAllParams
NewImageGetAllParams creates a new ImageGetAllParams object
There are no default values defined in the spec.
func (*ImageGetAllParams) BindRequest ¶
func (o *ImageGetAllParams) 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 NewImageGetAllParams() beforehand.
type ImageGetAllURL ¶
type ImageGetAllURL struct { Names []string // contains filtered or unexported fields }
ImageGetAllURL generates an URL for the image get all operation
func (*ImageGetAllURL) Build ¶
func (o *ImageGetAllURL) Build() (*url.URL, error)
Build a url path and query string
func (*ImageGetAllURL) BuildFull ¶
func (o *ImageGetAllURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ImageGetAllURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ImageGetAllURL) SetBasePath ¶
func (o *ImageGetAllURL) 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 (*ImageGetAllURL) String ¶
func (o *ImageGetAllURL) String() string
String returns the string representation of the path with query string
func (*ImageGetAllURL) StringFull ¶
func (o *ImageGetAllURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ImageGetAllURL) WithBasePath ¶
func (o *ImageGetAllURL) WithBasePath(bp string) *ImageGetAllURL
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 ImageGetHandler ¶
type ImageGetHandler interface {
Handle(ImageGetParams) middleware.Responder
}
ImageGetHandler interface for that can handle valid image get params
type ImageGetHandlerFunc ¶
type ImageGetHandlerFunc func(ImageGetParams) middleware.Responder
ImageGetHandlerFunc turns a function with the right signature into a image get handler
func (ImageGetHandlerFunc) Handle ¶
func (fn ImageGetHandlerFunc) Handle(params ImageGetParams) middleware.Responder
Handle executing the request and returning a response
type ImageGetInternalServerError ¶
type ImageGetInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImageGetInternalServerError server error
swagger:response imageGetInternalServerError
func NewImageGetInternalServerError ¶
func NewImageGetInternalServerError() *ImageGetInternalServerError
NewImageGetInternalServerError creates ImageGetInternalServerError with default headers values
func (*ImageGetInternalServerError) SetPayload ¶
func (o *ImageGetInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image get internal server error response
func (*ImageGetInternalServerError) WithPayload ¶
func (o *ImageGetInternalServerError) WithPayload(payload *models.ErrorResponse) *ImageGetInternalServerError
WithPayload adds the payload to the image get internal server error response
func (*ImageGetInternalServerError) WriteResponse ¶
func (o *ImageGetInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageGetOK ¶
type ImageGetOK struct { /* In: Body */ Payload io.ReadCloser `json:"body,omitempty"` }
ImageGetOK no error
swagger:response imageGetOK
func NewImageGetOK ¶
func NewImageGetOK() *ImageGetOK
NewImageGetOK creates ImageGetOK with default headers values
func (*ImageGetOK) SetPayload ¶
func (o *ImageGetOK) SetPayload(payload io.ReadCloser)
SetPayload sets the payload to the image get o k response
func (*ImageGetOK) WithPayload ¶
func (o *ImageGetOK) WithPayload(payload io.ReadCloser) *ImageGetOK
WithPayload adds the payload to the image get o k response
func (*ImageGetOK) WriteResponse ¶
func (o *ImageGetOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageGetParams ¶
type ImageGetParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Image name or ID Required: true In: path */ Name string }
ImageGetParams contains all the bound params for the image get operation typically these are obtained from a http.Request
swagger:parameters ImageGet
func NewImageGetParams ¶
func NewImageGetParams() ImageGetParams
NewImageGetParams creates a new ImageGetParams object
There are no default values defined in the spec.
func (*ImageGetParams) BindRequest ¶
func (o *ImageGetParams) 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 NewImageGetParams() beforehand.
type ImageGetURL ¶
type ImageGetURL struct { Name string // contains filtered or unexported fields }
ImageGetURL generates an URL for the image get operation
func (*ImageGetURL) Build ¶
func (o *ImageGetURL) Build() (*url.URL, error)
Build a url path and query string
func (*ImageGetURL) BuildFull ¶
func (o *ImageGetURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ImageGetURL) SetBasePath ¶
func (o *ImageGetURL) 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 (*ImageGetURL) String ¶
func (o *ImageGetURL) String() string
String returns the string representation of the path with query string
func (*ImageGetURL) StringFull ¶
func (o *ImageGetURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ImageGetURL) WithBasePath ¶
func (o *ImageGetURL) WithBasePath(bp string) *ImageGetURL
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 ImageHistory ¶
type ImageHistory struct { Context *middleware.Context Handler ImageHistoryHandler }
ImageHistory swagger:route GET /images/{name}/history Image imageHistory
Get the history of an image ¶
Return parent layers of an image.
func NewImageHistory ¶
func NewImageHistory(ctx *middleware.Context, handler ImageHistoryHandler) *ImageHistory
NewImageHistory creates a new http.Handler for the image history operation
func (*ImageHistory) ServeHTTP ¶
func (o *ImageHistory) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ImageHistoryHandler ¶
type ImageHistoryHandler interface {
Handle(ImageHistoryParams) middleware.Responder
}
ImageHistoryHandler interface for that can handle valid image history params
type ImageHistoryHandlerFunc ¶
type ImageHistoryHandlerFunc func(ImageHistoryParams) middleware.Responder
ImageHistoryHandlerFunc turns a function with the right signature into a image history handler
func (ImageHistoryHandlerFunc) Handle ¶
func (fn ImageHistoryHandlerFunc) Handle(params ImageHistoryParams) middleware.Responder
Handle executing the request and returning a response
type ImageHistoryInternalServerError ¶
type ImageHistoryInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImageHistoryInternalServerError Server error
swagger:response imageHistoryInternalServerError
func NewImageHistoryInternalServerError ¶
func NewImageHistoryInternalServerError() *ImageHistoryInternalServerError
NewImageHistoryInternalServerError creates ImageHistoryInternalServerError with default headers values
func (*ImageHistoryInternalServerError) SetPayload ¶
func (o *ImageHistoryInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image history internal server error response
func (*ImageHistoryInternalServerError) WithPayload ¶
func (o *ImageHistoryInternalServerError) WithPayload(payload *models.ErrorResponse) *ImageHistoryInternalServerError
WithPayload adds the payload to the image history internal server error response
func (*ImageHistoryInternalServerError) WriteResponse ¶
func (o *ImageHistoryInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageHistoryNotFound ¶
type ImageHistoryNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImageHistoryNotFound No such image
swagger:response imageHistoryNotFound
func NewImageHistoryNotFound ¶
func NewImageHistoryNotFound() *ImageHistoryNotFound
NewImageHistoryNotFound creates ImageHistoryNotFound with default headers values
func (*ImageHistoryNotFound) SetPayload ¶
func (o *ImageHistoryNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image history not found response
func (*ImageHistoryNotFound) WithPayload ¶
func (o *ImageHistoryNotFound) WithPayload(payload *models.ErrorResponse) *ImageHistoryNotFound
WithPayload adds the payload to the image history not found response
func (*ImageHistoryNotFound) WriteResponse ¶
func (o *ImageHistoryNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageHistoryOK ¶
type ImageHistoryOK struct { /* In: Body */ Payload []*HistoryResponseItem `json:"body,omitempty"` }
ImageHistoryOK List of image layers
swagger:response imageHistoryOK
func NewImageHistoryOK ¶
func NewImageHistoryOK() *ImageHistoryOK
NewImageHistoryOK creates ImageHistoryOK with default headers values
func (*ImageHistoryOK) SetPayload ¶
func (o *ImageHistoryOK) SetPayload(payload []*HistoryResponseItem)
SetPayload sets the payload to the image history o k response
func (*ImageHistoryOK) WithPayload ¶
func (o *ImageHistoryOK) WithPayload(payload []*HistoryResponseItem) *ImageHistoryOK
WithPayload adds the payload to the image history o k response
func (*ImageHistoryOK) WriteResponse ¶
func (o *ImageHistoryOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageHistoryParams ¶
type ImageHistoryParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Image name or ID Required: true In: path */ Name string }
ImageHistoryParams contains all the bound params for the image history operation typically these are obtained from a http.Request
swagger:parameters ImageHistory
func NewImageHistoryParams ¶
func NewImageHistoryParams() ImageHistoryParams
NewImageHistoryParams creates a new ImageHistoryParams object
There are no default values defined in the spec.
func (*ImageHistoryParams) BindRequest ¶
func (o *ImageHistoryParams) 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 NewImageHistoryParams() beforehand.
type ImageHistoryURL ¶
type ImageHistoryURL struct { Name string // contains filtered or unexported fields }
ImageHistoryURL generates an URL for the image history operation
func (*ImageHistoryURL) Build ¶
func (o *ImageHistoryURL) Build() (*url.URL, error)
Build a url path and query string
func (*ImageHistoryURL) BuildFull ¶
func (o *ImageHistoryURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ImageHistoryURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ImageHistoryURL) SetBasePath ¶
func (o *ImageHistoryURL) 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 (*ImageHistoryURL) String ¶
func (o *ImageHistoryURL) String() string
String returns the string representation of the path with query string
func (*ImageHistoryURL) StringFull ¶
func (o *ImageHistoryURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ImageHistoryURL) WithBasePath ¶
func (o *ImageHistoryURL) WithBasePath(bp string) *ImageHistoryURL
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 ImageInspect ¶
type ImageInspect struct { Context *middleware.Context Handler ImageInspectHandler }
ImageInspect swagger:route GET /images/{name}/json Image imageInspect
Inspect an image ¶
Return low-level information about an image.
func NewImageInspect ¶
func NewImageInspect(ctx *middleware.Context, handler ImageInspectHandler) *ImageInspect
NewImageInspect creates a new http.Handler for the image inspect operation
func (*ImageInspect) ServeHTTP ¶
func (o *ImageInspect) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ImageInspectHandler ¶
type ImageInspectHandler interface {
Handle(ImageInspectParams) middleware.Responder
}
ImageInspectHandler interface for that can handle valid image inspect params
type ImageInspectHandlerFunc ¶
type ImageInspectHandlerFunc func(ImageInspectParams) middleware.Responder
ImageInspectHandlerFunc turns a function with the right signature into a image inspect handler
func (ImageInspectHandlerFunc) Handle ¶
func (fn ImageInspectHandlerFunc) Handle(params ImageInspectParams) middleware.Responder
Handle executing the request and returning a response
type ImageInspectInternalServerError ¶
type ImageInspectInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImageInspectInternalServerError Server error
swagger:response imageInspectInternalServerError
func NewImageInspectInternalServerError ¶
func NewImageInspectInternalServerError() *ImageInspectInternalServerError
NewImageInspectInternalServerError creates ImageInspectInternalServerError with default headers values
func (*ImageInspectInternalServerError) SetPayload ¶
func (o *ImageInspectInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image inspect internal server error response
func (*ImageInspectInternalServerError) WithPayload ¶
func (o *ImageInspectInternalServerError) WithPayload(payload *models.ErrorResponse) *ImageInspectInternalServerError
WithPayload adds the payload to the image inspect internal server error response
func (*ImageInspectInternalServerError) WriteResponse ¶
func (o *ImageInspectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageInspectNotFound ¶
type ImageInspectNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImageInspectNotFound No such image
swagger:response imageInspectNotFound
func NewImageInspectNotFound ¶
func NewImageInspectNotFound() *ImageInspectNotFound
NewImageInspectNotFound creates ImageInspectNotFound with default headers values
func (*ImageInspectNotFound) SetPayload ¶
func (o *ImageInspectNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image inspect not found response
func (*ImageInspectNotFound) WithPayload ¶
func (o *ImageInspectNotFound) WithPayload(payload *models.ErrorResponse) *ImageInspectNotFound
WithPayload adds the payload to the image inspect not found response
func (*ImageInspectNotFound) WriteResponse ¶
func (o *ImageInspectNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageInspectOK ¶
ImageInspectOK No error
swagger:response imageInspectOK
func NewImageInspectOK ¶
func NewImageInspectOK() *ImageInspectOK
NewImageInspectOK creates ImageInspectOK with default headers values
func (*ImageInspectOK) SetPayload ¶
func (o *ImageInspectOK) SetPayload(payload *models.Image)
SetPayload sets the payload to the image inspect o k response
func (*ImageInspectOK) WithPayload ¶
func (o *ImageInspectOK) WithPayload(payload *models.Image) *ImageInspectOK
WithPayload adds the payload to the image inspect o k response
func (*ImageInspectOK) WriteResponse ¶
func (o *ImageInspectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageInspectParams ¶
type ImageInspectParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Image name or id Required: true In: path */ Name string }
ImageInspectParams contains all the bound params for the image inspect operation typically these are obtained from a http.Request
swagger:parameters ImageInspect
func NewImageInspectParams ¶
func NewImageInspectParams() ImageInspectParams
NewImageInspectParams creates a new ImageInspectParams object
There are no default values defined in the spec.
func (*ImageInspectParams) BindRequest ¶
func (o *ImageInspectParams) 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 NewImageInspectParams() beforehand.
type ImageInspectURL ¶
type ImageInspectURL struct { Name string // contains filtered or unexported fields }
ImageInspectURL generates an URL for the image inspect operation
func (*ImageInspectURL) Build ¶
func (o *ImageInspectURL) Build() (*url.URL, error)
Build a url path and query string
func (*ImageInspectURL) BuildFull ¶
func (o *ImageInspectURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ImageInspectURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ImageInspectURL) SetBasePath ¶
func (o *ImageInspectURL) 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 (*ImageInspectURL) String ¶
func (o *ImageInspectURL) String() string
String returns the string representation of the path with query string
func (*ImageInspectURL) StringFull ¶
func (o *ImageInspectURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ImageInspectURL) WithBasePath ¶
func (o *ImageInspectURL) WithBasePath(bp string) *ImageInspectURL
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 ImageList ¶
type ImageList struct { Context *middleware.Context Handler ImageListHandler }
ImageList swagger:route GET /images/json Image imageList
List Images ¶
Returns a list of images on the server. Note that it uses a different, smaller representation of an image than inspecting a single image.
func NewImageList ¶
func NewImageList(ctx *middleware.Context, handler ImageListHandler) *ImageList
NewImageList creates a new http.Handler for the image list operation
type ImageListHandler ¶
type ImageListHandler interface {
Handle(ImageListParams) middleware.Responder
}
ImageListHandler interface for that can handle valid image list params
type ImageListHandlerFunc ¶
type ImageListHandlerFunc func(ImageListParams) middleware.Responder
ImageListHandlerFunc turns a function with the right signature into a image list handler
func (ImageListHandlerFunc) Handle ¶
func (fn ImageListHandlerFunc) Handle(params ImageListParams) middleware.Responder
Handle executing the request and returning a response
type ImageListInternalServerError ¶
type ImageListInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImageListInternalServerError server error
swagger:response imageListInternalServerError
func NewImageListInternalServerError ¶
func NewImageListInternalServerError() *ImageListInternalServerError
NewImageListInternalServerError creates ImageListInternalServerError with default headers values
func (*ImageListInternalServerError) SetPayload ¶
func (o *ImageListInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image list internal server error response
func (*ImageListInternalServerError) WithPayload ¶
func (o *ImageListInternalServerError) WithPayload(payload *models.ErrorResponse) *ImageListInternalServerError
WithPayload adds the payload to the image list internal server error response
func (*ImageListInternalServerError) WriteResponse ¶
func (o *ImageListInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageListOK ¶
type ImageListOK struct { /* In: Body */ Payload []*models.ImageSummary `json:"body,omitempty"` }
ImageListOK Summary image data for the images matching the query
swagger:response imageListOK
func NewImageListOK ¶
func NewImageListOK() *ImageListOK
NewImageListOK creates ImageListOK with default headers values
func (*ImageListOK) SetPayload ¶
func (o *ImageListOK) SetPayload(payload []*models.ImageSummary)
SetPayload sets the payload to the image list o k response
func (*ImageListOK) WithPayload ¶
func (o *ImageListOK) WithPayload(payload []*models.ImageSummary) *ImageListOK
WithPayload adds the payload to the image list o k response
func (*ImageListOK) WriteResponse ¶
func (o *ImageListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageListParams ¶
type ImageListParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Show all images. Only images from a final layer (no children) are shown by default. In: query Default: false */ All *bool /*Show digest information as a `RepoDigests` field on each image. In: query Default: false */ Digests *bool /*A JSON encoded value of the filters (a `map[string][]string`) to process on the images list. Available filters: - `before`=(`<image-name>[:<tag>]`, `<image id>` or `<image@digest>`) - `dangling=true` - `label=key` or `label="key=value"` of an image label - `reference`=(`<image-name>[:<tag>]`) - `since`=(`<image-name>[:<tag>]`, `<image id>` or `<image@digest>`) In: query */ Filters *string }
ImageListParams contains all the bound params for the image list operation typically these are obtained from a http.Request
swagger:parameters ImageList
func NewImageListParams ¶
func NewImageListParams() ImageListParams
NewImageListParams creates a new ImageListParams object with the default values initialized.
func (*ImageListParams) BindRequest ¶
func (o *ImageListParams) 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 NewImageListParams() beforehand.
type ImageListURL ¶
type ImageListURL struct { All *bool Digests *bool Filters *string // contains filtered or unexported fields }
ImageListURL generates an URL for the image list operation
func (*ImageListURL) Build ¶
func (o *ImageListURL) Build() (*url.URL, error)
Build a url path and query string
func (*ImageListURL) BuildFull ¶
func (o *ImageListURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ImageListURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ImageListURL) SetBasePath ¶
func (o *ImageListURL) 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 (*ImageListURL) String ¶
func (o *ImageListURL) String() string
String returns the string representation of the path with query string
func (*ImageListURL) StringFull ¶
func (o *ImageListURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ImageListURL) WithBasePath ¶
func (o *ImageListURL) WithBasePath(bp string) *ImageListURL
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 ImageLoad ¶
type ImageLoad struct { Context *middleware.Context Handler ImageLoadHandler }
ImageLoad swagger:route POST /images/load Image imageLoad
Import images ¶
Load a set of images and tags into a repository.
For details on the format, see the [export image endpoint](#operation/ImageGet).
func NewImageLoad ¶
func NewImageLoad(ctx *middleware.Context, handler ImageLoadHandler) *ImageLoad
NewImageLoad creates a new http.Handler for the image load operation
type ImageLoadHandler ¶
type ImageLoadHandler interface {
Handle(ImageLoadParams) middleware.Responder
}
ImageLoadHandler interface for that can handle valid image load params
type ImageLoadHandlerFunc ¶
type ImageLoadHandlerFunc func(ImageLoadParams) middleware.Responder
ImageLoadHandlerFunc turns a function with the right signature into a image load handler
func (ImageLoadHandlerFunc) Handle ¶
func (fn ImageLoadHandlerFunc) Handle(params ImageLoadParams) middleware.Responder
Handle executing the request and returning a response
type ImageLoadInternalServerError ¶
type ImageLoadInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImageLoadInternalServerError server error
swagger:response imageLoadInternalServerError
func NewImageLoadInternalServerError ¶
func NewImageLoadInternalServerError() *ImageLoadInternalServerError
NewImageLoadInternalServerError creates ImageLoadInternalServerError with default headers values
func (*ImageLoadInternalServerError) SetPayload ¶
func (o *ImageLoadInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image load internal server error response
func (*ImageLoadInternalServerError) WithPayload ¶
func (o *ImageLoadInternalServerError) WithPayload(payload *models.ErrorResponse) *ImageLoadInternalServerError
WithPayload adds the payload to the image load internal server error response
func (*ImageLoadInternalServerError) WriteResponse ¶
func (o *ImageLoadInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageLoadOK ¶
type ImageLoadOK struct { }
ImageLoadOK no error
swagger:response imageLoadOK
func NewImageLoadOK ¶
func NewImageLoadOK() *ImageLoadOK
NewImageLoadOK creates ImageLoadOK with default headers values
func (*ImageLoadOK) WriteResponse ¶
func (o *ImageLoadOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageLoadParams ¶
type ImageLoadParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Tar archive containing images In: body */ ImagesTarball io.ReadCloser /*Suppress progress details during load. In: query Default: false */ Quiet *bool }
ImageLoadParams contains all the bound params for the image load operation typically these are obtained from a http.Request
swagger:parameters ImageLoad
func NewImageLoadParams ¶
func NewImageLoadParams() ImageLoadParams
NewImageLoadParams creates a new ImageLoadParams object with the default values initialized.
func (*ImageLoadParams) BindRequest ¶
func (o *ImageLoadParams) 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 NewImageLoadParams() beforehand.
type ImageLoadURL ¶
type ImageLoadURL struct { Quiet *bool // contains filtered or unexported fields }
ImageLoadURL generates an URL for the image load operation
func (*ImageLoadURL) Build ¶
func (o *ImageLoadURL) Build() (*url.URL, error)
Build a url path and query string
func (*ImageLoadURL) BuildFull ¶
func (o *ImageLoadURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ImageLoadURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ImageLoadURL) SetBasePath ¶
func (o *ImageLoadURL) 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 (*ImageLoadURL) String ¶
func (o *ImageLoadURL) String() string
String returns the string representation of the path with query string
func (*ImageLoadURL) StringFull ¶
func (o *ImageLoadURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ImageLoadURL) WithBasePath ¶
func (o *ImageLoadURL) WithBasePath(bp string) *ImageLoadURL
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 ImagePrune ¶
type ImagePrune struct { Context *middleware.Context Handler ImagePruneHandler }
ImagePrune swagger:route POST /images/prune Image imagePrune
Delete unused images
func NewImagePrune ¶
func NewImagePrune(ctx *middleware.Context, handler ImagePruneHandler) *ImagePrune
NewImagePrune creates a new http.Handler for the image prune operation
func (*ImagePrune) ServeHTTP ¶
func (o *ImagePrune) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ImagePruneHandler ¶
type ImagePruneHandler interface {
Handle(ImagePruneParams) middleware.Responder
}
ImagePruneHandler interface for that can handle valid image prune params
type ImagePruneHandlerFunc ¶
type ImagePruneHandlerFunc func(ImagePruneParams) middleware.Responder
ImagePruneHandlerFunc turns a function with the right signature into a image prune handler
func (ImagePruneHandlerFunc) Handle ¶
func (fn ImagePruneHandlerFunc) Handle(params ImagePruneParams) middleware.Responder
Handle executing the request and returning a response
type ImagePruneInternalServerError ¶
type ImagePruneInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImagePruneInternalServerError Server error
swagger:response imagePruneInternalServerError
func NewImagePruneInternalServerError ¶
func NewImagePruneInternalServerError() *ImagePruneInternalServerError
NewImagePruneInternalServerError creates ImagePruneInternalServerError with default headers values
func (*ImagePruneInternalServerError) SetPayload ¶
func (o *ImagePruneInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image prune internal server error response
func (*ImagePruneInternalServerError) WithPayload ¶
func (o *ImagePruneInternalServerError) WithPayload(payload *models.ErrorResponse) *ImagePruneInternalServerError
WithPayload adds the payload to the image prune internal server error response
func (*ImagePruneInternalServerError) WriteResponse ¶
func (o *ImagePruneInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImagePruneOK ¶
type ImagePruneOK struct { /* In: Body */ Payload *ImagePruneOKBody `json:"body,omitempty"` }
ImagePruneOK No error
swagger:response imagePruneOK
func NewImagePruneOK ¶
func NewImagePruneOK() *ImagePruneOK
NewImagePruneOK creates ImagePruneOK with default headers values
func (*ImagePruneOK) SetPayload ¶
func (o *ImagePruneOK) SetPayload(payload *ImagePruneOKBody)
SetPayload sets the payload to the image prune o k response
func (*ImagePruneOK) WithPayload ¶
func (o *ImagePruneOK) WithPayload(payload *ImagePruneOKBody) *ImagePruneOK
WithPayload adds the payload to the image prune o k response
func (*ImagePruneOK) WriteResponse ¶
func (o *ImagePruneOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImagePruneOKBody ¶
type ImagePruneOKBody struct { // Images that were deleted ImagesDeleted []*models.ImageDeleteResponseItem `json:"ImagesDeleted"` // Disk space reclaimed in bytes SpaceReclaimed int64 `json:"SpaceReclaimed,omitempty"` }
ImagePruneOKBody ImagePruneResponse
swagger:model ImagePruneOKBody
func (*ImagePruneOKBody) ContextValidate ¶
ContextValidate validate this image prune o k body based on the context it is used
func (*ImagePruneOKBody) MarshalBinary ¶
func (o *ImagePruneOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ImagePruneOKBody) UnmarshalBinary ¶
func (o *ImagePruneOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ImagePruneParams ¶
type ImagePruneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Filters to process on the prune list, encoded as JSON (a `map[string][]string`). Available filters: - `dangling=<boolean>` When set to `true` (or `1`), prune only unused *and* untagged images. When set to `false` (or `0`), all unused images are pruned. - `until=<string>` Prune images created before this timestamp. The `<timestamp>` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time. - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) Prune images with (or without, in case `label!=...` is used) the specified labels. In: query */ Filters *string }
ImagePruneParams contains all the bound params for the image prune operation typically these are obtained from a http.Request
swagger:parameters ImagePrune
func NewImagePruneParams ¶
func NewImagePruneParams() ImagePruneParams
NewImagePruneParams creates a new ImagePruneParams object
There are no default values defined in the spec.
func (*ImagePruneParams) BindRequest ¶
func (o *ImagePruneParams) 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 NewImagePruneParams() beforehand.
type ImagePruneURL ¶
type ImagePruneURL struct { Filters *string // contains filtered or unexported fields }
ImagePruneURL generates an URL for the image prune operation
func (*ImagePruneURL) Build ¶
func (o *ImagePruneURL) Build() (*url.URL, error)
Build a url path and query string
func (*ImagePruneURL) BuildFull ¶
func (o *ImagePruneURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ImagePruneURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ImagePruneURL) SetBasePath ¶
func (o *ImagePruneURL) 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 (*ImagePruneURL) String ¶
func (o *ImagePruneURL) String() string
String returns the string representation of the path with query string
func (*ImagePruneURL) StringFull ¶
func (o *ImagePruneURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ImagePruneURL) WithBasePath ¶
func (o *ImagePruneURL) WithBasePath(bp string) *ImagePruneURL
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 ImagePush ¶
type ImagePush struct { Context *middleware.Context Handler ImagePushHandler }
ImagePush swagger:route POST /images/{name}/push Image imagePush
Push an image ¶
Push an image to a registry.
If you wish to push an image on to a private registry, that image must already have a tag which references the registry. For example, `registry.example.com/myimage:latest`.
The push is cancelled if the HTTP connection is closed.
func NewImagePush ¶
func NewImagePush(ctx *middleware.Context, handler ImagePushHandler) *ImagePush
NewImagePush creates a new http.Handler for the image push operation
type ImagePushHandler ¶
type ImagePushHandler interface {
Handle(ImagePushParams) middleware.Responder
}
ImagePushHandler interface for that can handle valid image push params
type ImagePushHandlerFunc ¶
type ImagePushHandlerFunc func(ImagePushParams) middleware.Responder
ImagePushHandlerFunc turns a function with the right signature into a image push handler
func (ImagePushHandlerFunc) Handle ¶
func (fn ImagePushHandlerFunc) Handle(params ImagePushParams) middleware.Responder
Handle executing the request and returning a response
type ImagePushInternalServerError ¶
type ImagePushInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImagePushInternalServerError Server error
swagger:response imagePushInternalServerError
func NewImagePushInternalServerError ¶
func NewImagePushInternalServerError() *ImagePushInternalServerError
NewImagePushInternalServerError creates ImagePushInternalServerError with default headers values
func (*ImagePushInternalServerError) SetPayload ¶
func (o *ImagePushInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image push internal server error response
func (*ImagePushInternalServerError) WithPayload ¶
func (o *ImagePushInternalServerError) WithPayload(payload *models.ErrorResponse) *ImagePushInternalServerError
WithPayload adds the payload to the image push internal server error response
func (*ImagePushInternalServerError) WriteResponse ¶
func (o *ImagePushInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImagePushNotFound ¶
type ImagePushNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImagePushNotFound No such image
swagger:response imagePushNotFound
func NewImagePushNotFound ¶
func NewImagePushNotFound() *ImagePushNotFound
NewImagePushNotFound creates ImagePushNotFound with default headers values
func (*ImagePushNotFound) SetPayload ¶
func (o *ImagePushNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image push not found response
func (*ImagePushNotFound) WithPayload ¶
func (o *ImagePushNotFound) WithPayload(payload *models.ErrorResponse) *ImagePushNotFound
WithPayload adds the payload to the image push not found response
func (*ImagePushNotFound) WriteResponse ¶
func (o *ImagePushNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImagePushOK ¶
type ImagePushOK struct { }
ImagePushOK No error
swagger:response imagePushOK
func NewImagePushOK ¶
func NewImagePushOK() *ImagePushOK
NewImagePushOK creates ImagePushOK with default headers values
func (*ImagePushOK) WriteResponse ¶
func (o *ImagePushOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImagePushParams ¶
type ImagePushParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*A base64url-encoded auth configuration. Refer to the [authentication section](#section/Authentication) for details. Required: true In: header */ XRegistryAuth string /*Image name or ID. Required: true In: path */ Name string /*The tag to associate with the image on the registry. In: query */ Tag *string }
ImagePushParams contains all the bound params for the image push operation typically these are obtained from a http.Request
swagger:parameters ImagePush
func NewImagePushParams ¶
func NewImagePushParams() ImagePushParams
NewImagePushParams creates a new ImagePushParams object
There are no default values defined in the spec.
func (*ImagePushParams) BindRequest ¶
func (o *ImagePushParams) 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 NewImagePushParams() beforehand.
type ImagePushURL ¶
ImagePushURL generates an URL for the image push operation
func (*ImagePushURL) Build ¶
func (o *ImagePushURL) Build() (*url.URL, error)
Build a url path and query string
func (*ImagePushURL) BuildFull ¶
func (o *ImagePushURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ImagePushURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ImagePushURL) SetBasePath ¶
func (o *ImagePushURL) 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 (*ImagePushURL) String ¶
func (o *ImagePushURL) String() string
String returns the string representation of the path with query string
func (*ImagePushURL) StringFull ¶
func (o *ImagePushURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ImagePushURL) WithBasePath ¶
func (o *ImagePushURL) WithBasePath(bp string) *ImagePushURL
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 ImageSearch ¶
type ImageSearch struct { Context *middleware.Context Handler ImageSearchHandler }
ImageSearch swagger:route GET /images/search Image imageSearch
Search images ¶
Search for an image on Docker Hub.
func NewImageSearch ¶
func NewImageSearch(ctx *middleware.Context, handler ImageSearchHandler) *ImageSearch
NewImageSearch creates a new http.Handler for the image search operation
func (*ImageSearch) ServeHTTP ¶
func (o *ImageSearch) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ImageSearchHandler ¶
type ImageSearchHandler interface {
Handle(ImageSearchParams) middleware.Responder
}
ImageSearchHandler interface for that can handle valid image search params
type ImageSearchHandlerFunc ¶
type ImageSearchHandlerFunc func(ImageSearchParams) middleware.Responder
ImageSearchHandlerFunc turns a function with the right signature into a image search handler
func (ImageSearchHandlerFunc) Handle ¶
func (fn ImageSearchHandlerFunc) Handle(params ImageSearchParams) middleware.Responder
Handle executing the request and returning a response
type ImageSearchInternalServerError ¶
type ImageSearchInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImageSearchInternalServerError Server error
swagger:response imageSearchInternalServerError
func NewImageSearchInternalServerError ¶
func NewImageSearchInternalServerError() *ImageSearchInternalServerError
NewImageSearchInternalServerError creates ImageSearchInternalServerError with default headers values
func (*ImageSearchInternalServerError) SetPayload ¶
func (o *ImageSearchInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image search internal server error response
func (*ImageSearchInternalServerError) WithPayload ¶
func (o *ImageSearchInternalServerError) WithPayload(payload *models.ErrorResponse) *ImageSearchInternalServerError
WithPayload adds the payload to the image search internal server error response
func (*ImageSearchInternalServerError) WriteResponse ¶
func (o *ImageSearchInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageSearchOK ¶
type ImageSearchOK struct { /* In: Body */ Payload []*ImageSearchOKBodyItems0 `json:"body,omitempty"` }
ImageSearchOK No error
swagger:response imageSearchOK
func NewImageSearchOK ¶
func NewImageSearchOK() *ImageSearchOK
NewImageSearchOK creates ImageSearchOK with default headers values
func (*ImageSearchOK) SetPayload ¶
func (o *ImageSearchOK) SetPayload(payload []*ImageSearchOKBodyItems0)
SetPayload sets the payload to the image search o k response
func (*ImageSearchOK) WithPayload ¶
func (o *ImageSearchOK) WithPayload(payload []*ImageSearchOKBodyItems0) *ImageSearchOK
WithPayload adds the payload to the image search o k response
func (*ImageSearchOK) WriteResponse ¶
func (o *ImageSearchOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageSearchOKBodyItems0 ¶
type ImageSearchOKBodyItems0 struct { // description Description string `json:"description,omitempty"` // is automated IsAutomated bool `json:"is_automated,omitempty"` // is official IsOfficial bool `json:"is_official,omitempty"` // name Name string `json:"name,omitempty"` // star count StarCount int64 `json:"star_count,omitempty"` }
ImageSearchOKBodyItems0 ImageSearchResponseItem
swagger:model ImageSearchOKBodyItems0
func (*ImageSearchOKBodyItems0) ContextValidate ¶
func (o *ImageSearchOKBodyItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this image search o k body items0 based on context it is used
func (*ImageSearchOKBodyItems0) MarshalBinary ¶
func (o *ImageSearchOKBodyItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ImageSearchOKBodyItems0) UnmarshalBinary ¶
func (o *ImageSearchOKBodyItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ImageSearchParams ¶
type ImageSearchParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*A JSON encoded value of the filters (a `map[string][]string`) to process on the images list. Available filters: - `is-automated=(true|false)` - `is-official=(true|false)` - `stars=<number>` Matches images that has at least 'number' stars. In: query */ Filters *string /*Maximum number of results to return In: query */ Limit *int64 /*Term to search Required: true In: query */ Term string }
ImageSearchParams contains all the bound params for the image search operation typically these are obtained from a http.Request
swagger:parameters ImageSearch
func NewImageSearchParams ¶
func NewImageSearchParams() ImageSearchParams
NewImageSearchParams creates a new ImageSearchParams object
There are no default values defined in the spec.
func (*ImageSearchParams) BindRequest ¶
func (o *ImageSearchParams) 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 NewImageSearchParams() beforehand.
type ImageSearchURL ¶
type ImageSearchURL struct { Filters *string Limit *int64 Term string // contains filtered or unexported fields }
ImageSearchURL generates an URL for the image search operation
func (*ImageSearchURL) Build ¶
func (o *ImageSearchURL) Build() (*url.URL, error)
Build a url path and query string
func (*ImageSearchURL) BuildFull ¶
func (o *ImageSearchURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ImageSearchURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ImageSearchURL) SetBasePath ¶
func (o *ImageSearchURL) 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 (*ImageSearchURL) String ¶
func (o *ImageSearchURL) String() string
String returns the string representation of the path with query string
func (*ImageSearchURL) StringFull ¶
func (o *ImageSearchURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ImageSearchURL) WithBasePath ¶
func (o *ImageSearchURL) WithBasePath(bp string) *ImageSearchURL
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 ImageTag ¶
type ImageTag struct { Context *middleware.Context Handler ImageTagHandler }
ImageTag swagger:route POST /images/{name}/tag Image imageTag
Tag an image ¶
Tag an image so that it becomes part of a repository.
func NewImageTag ¶
func NewImageTag(ctx *middleware.Context, handler ImageTagHandler) *ImageTag
NewImageTag creates a new http.Handler for the image tag operation
type ImageTagBadRequest ¶
type ImageTagBadRequest struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImageTagBadRequest Bad parameter
swagger:response imageTagBadRequest
func NewImageTagBadRequest ¶
func NewImageTagBadRequest() *ImageTagBadRequest
NewImageTagBadRequest creates ImageTagBadRequest with default headers values
func (*ImageTagBadRequest) SetPayload ¶
func (o *ImageTagBadRequest) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image tag bad request response
func (*ImageTagBadRequest) WithPayload ¶
func (o *ImageTagBadRequest) WithPayload(payload *models.ErrorResponse) *ImageTagBadRequest
WithPayload adds the payload to the image tag bad request response
func (*ImageTagBadRequest) WriteResponse ¶
func (o *ImageTagBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageTagConflict ¶
type ImageTagConflict struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImageTagConflict Conflict
swagger:response imageTagConflict
func NewImageTagConflict ¶
func NewImageTagConflict() *ImageTagConflict
NewImageTagConflict creates ImageTagConflict with default headers values
func (*ImageTagConflict) SetPayload ¶
func (o *ImageTagConflict) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image tag conflict response
func (*ImageTagConflict) WithPayload ¶
func (o *ImageTagConflict) WithPayload(payload *models.ErrorResponse) *ImageTagConflict
WithPayload adds the payload to the image tag conflict response
func (*ImageTagConflict) WriteResponse ¶
func (o *ImageTagConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageTagCreated ¶
type ImageTagCreated struct { }
ImageTagCreated No error
swagger:response imageTagCreated
func NewImageTagCreated ¶
func NewImageTagCreated() *ImageTagCreated
NewImageTagCreated creates ImageTagCreated with default headers values
func (*ImageTagCreated) WriteResponse ¶
func (o *ImageTagCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageTagHandler ¶
type ImageTagHandler interface {
Handle(ImageTagParams) middleware.Responder
}
ImageTagHandler interface for that can handle valid image tag params
type ImageTagHandlerFunc ¶
type ImageTagHandlerFunc func(ImageTagParams) middleware.Responder
ImageTagHandlerFunc turns a function with the right signature into a image tag handler
func (ImageTagHandlerFunc) Handle ¶
func (fn ImageTagHandlerFunc) Handle(params ImageTagParams) middleware.Responder
Handle executing the request and returning a response
type ImageTagInternalServerError ¶
type ImageTagInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImageTagInternalServerError Server error
swagger:response imageTagInternalServerError
func NewImageTagInternalServerError ¶
func NewImageTagInternalServerError() *ImageTagInternalServerError
NewImageTagInternalServerError creates ImageTagInternalServerError with default headers values
func (*ImageTagInternalServerError) SetPayload ¶
func (o *ImageTagInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image tag internal server error response
func (*ImageTagInternalServerError) WithPayload ¶
func (o *ImageTagInternalServerError) WithPayload(payload *models.ErrorResponse) *ImageTagInternalServerError
WithPayload adds the payload to the image tag internal server error response
func (*ImageTagInternalServerError) WriteResponse ¶
func (o *ImageTagInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageTagNotFound ¶
type ImageTagNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ImageTagNotFound No such image
swagger:response imageTagNotFound
func NewImageTagNotFound ¶
func NewImageTagNotFound() *ImageTagNotFound
NewImageTagNotFound creates ImageTagNotFound with default headers values
func (*ImageTagNotFound) SetPayload ¶
func (o *ImageTagNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the image tag not found response
func (*ImageTagNotFound) WithPayload ¶
func (o *ImageTagNotFound) WithPayload(payload *models.ErrorResponse) *ImageTagNotFound
WithPayload adds the payload to the image tag not found response
func (*ImageTagNotFound) WriteResponse ¶
func (o *ImageTagNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImageTagParams ¶
type ImageTagParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Image name or ID to tag. Required: true In: path */ Name string /*The repository to tag in. For example, `someuser/someimage`. In: query */ Repo *string /*The name of the new tag. In: query */ Tag *string }
ImageTagParams contains all the bound params for the image tag operation typically these are obtained from a http.Request
swagger:parameters ImageTag
func NewImageTagParams ¶
func NewImageTagParams() ImageTagParams
NewImageTagParams creates a new ImageTagParams object
There are no default values defined in the spec.
func (*ImageTagParams) BindRequest ¶
func (o *ImageTagParams) 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 NewImageTagParams() beforehand.
type ImageTagURL ¶
type ImageTagURL struct { Name string Repo *string Tag *string // contains filtered or unexported fields }
ImageTagURL generates an URL for the image tag operation
func (*ImageTagURL) Build ¶
func (o *ImageTagURL) Build() (*url.URL, error)
Build a url path and query string
func (*ImageTagURL) BuildFull ¶
func (o *ImageTagURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ImageTagURL) SetBasePath ¶
func (o *ImageTagURL) 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 (*ImageTagURL) String ¶
func (o *ImageTagURL) String() string
String returns the string representation of the path with query string
func (*ImageTagURL) StringFull ¶
func (o *ImageTagURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ImageTagURL) WithBasePath ¶
func (o *ImageTagURL) WithBasePath(bp string) *ImageTagURL
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 ¶
- build_prune.go
- build_prune_parameters.go
- build_prune_responses.go
- build_prune_urlbuilder.go
- image_build.go
- image_build_parameters.go
- image_build_responses.go
- image_build_urlbuilder.go
- image_commit.go
- image_commit_parameters.go
- image_commit_responses.go
- image_commit_urlbuilder.go
- image_create.go
- image_create_parameters.go
- image_create_responses.go
- image_create_urlbuilder.go
- image_delete.go
- image_delete_parameters.go
- image_delete_responses.go
- image_delete_urlbuilder.go
- image_get.go
- image_get_all.go
- image_get_all_parameters.go
- image_get_all_responses.go
- image_get_all_urlbuilder.go
- image_get_parameters.go
- image_get_responses.go
- image_get_urlbuilder.go
- image_history.go
- image_history_parameters.go
- image_history_responses.go
- image_history_urlbuilder.go
- image_inspect.go
- image_inspect_parameters.go
- image_inspect_responses.go
- image_inspect_urlbuilder.go
- image_list.go
- image_list_parameters.go
- image_list_responses.go
- image_list_urlbuilder.go
- image_load.go
- image_load_parameters.go
- image_load_responses.go
- image_load_urlbuilder.go
- image_prune.go
- image_prune_parameters.go
- image_prune_responses.go
- image_prune_urlbuilder.go
- image_push.go
- image_push_parameters.go
- image_push_responses.go
- image_push_urlbuilder.go
- image_search.go
- image_search_parameters.go
- image_search_responses.go
- image_search_urlbuilder.go
- image_tag.go
- image_tag_parameters.go
- image_tag_responses.go
- image_tag_urlbuilder.go