container

package
v0.0.0-...-f9bae2f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ContainerArchiveBadRequestCode int = 400

ContainerArchiveBadRequestCode is the HTTP code returned for type ContainerArchiveBadRequest

View Source
const ContainerArchiveInfoBadRequestCode int = 400

ContainerArchiveInfoBadRequestCode is the HTTP code returned for type ContainerArchiveInfoBadRequest

View Source
const ContainerArchiveInfoInternalServerErrorCode int = 500

ContainerArchiveInfoInternalServerErrorCode is the HTTP code returned for type ContainerArchiveInfoInternalServerError

View Source
const ContainerArchiveInfoNotFoundCode int = 404

ContainerArchiveInfoNotFoundCode is the HTTP code returned for type ContainerArchiveInfoNotFound

View Source
const ContainerArchiveInfoOKCode int = 200

ContainerArchiveInfoOKCode is the HTTP code returned for type ContainerArchiveInfoOK

View Source
const ContainerArchiveInternalServerErrorCode int = 500

ContainerArchiveInternalServerErrorCode is the HTTP code returned for type ContainerArchiveInternalServerError

View Source
const ContainerArchiveNotFoundCode int = 404

ContainerArchiveNotFoundCode is the HTTP code returned for type ContainerArchiveNotFound

View Source
const ContainerArchiveOKCode int = 200

ContainerArchiveOKCode is the HTTP code returned for type ContainerArchiveOK

View Source
const ContainerAttachBadRequestCode int = 400

ContainerAttachBadRequestCode is the HTTP code returned for type ContainerAttachBadRequest

View Source
const ContainerAttachInternalServerErrorCode int = 500

ContainerAttachInternalServerErrorCode is the HTTP code returned for type ContainerAttachInternalServerError

View Source
const ContainerAttachNotFoundCode int = 404

ContainerAttachNotFoundCode is the HTTP code returned for type ContainerAttachNotFound

View Source
const ContainerAttachOKCode int = 200

ContainerAttachOKCode is the HTTP code returned for type ContainerAttachOK

View Source
const ContainerAttachSwitchingProtocolsCode int = 101

ContainerAttachSwitchingProtocolsCode is the HTTP code returned for type ContainerAttachSwitchingProtocols

View Source
const ContainerAttachWebsocketBadRequestCode int = 400

ContainerAttachWebsocketBadRequestCode is the HTTP code returned for type ContainerAttachWebsocketBadRequest

View Source
const ContainerAttachWebsocketInternalServerErrorCode int = 500

ContainerAttachWebsocketInternalServerErrorCode is the HTTP code returned for type ContainerAttachWebsocketInternalServerError

View Source
const ContainerAttachWebsocketNotFoundCode int = 404

ContainerAttachWebsocketNotFoundCode is the HTTP code returned for type ContainerAttachWebsocketNotFound

View Source
const ContainerAttachWebsocketOKCode int = 200

ContainerAttachWebsocketOKCode is the HTTP code returned for type ContainerAttachWebsocketOK

View Source
const ContainerAttachWebsocketSwitchingProtocolsCode int = 101

ContainerAttachWebsocketSwitchingProtocolsCode is the HTTP code returned for type ContainerAttachWebsocketSwitchingProtocols

View Source
const ContainerChangesInternalServerErrorCode int = 500

ContainerChangesInternalServerErrorCode is the HTTP code returned for type ContainerChangesInternalServerError

View Source
const ContainerChangesNotFoundCode int = 404

ContainerChangesNotFoundCode is the HTTP code returned for type ContainerChangesNotFound

View Source
const ContainerChangesOKCode int = 200

ContainerChangesOKCode is the HTTP code returned for type ContainerChangesOK

View Source
const ContainerCreateBadRequestCode int = 400

ContainerCreateBadRequestCode is the HTTP code returned for type ContainerCreateBadRequest

View Source
const ContainerCreateConflictCode int = 409

ContainerCreateConflictCode is the HTTP code returned for type ContainerCreateConflict

View Source
const ContainerCreateCreatedCode int = 201

ContainerCreateCreatedCode is the HTTP code returned for type ContainerCreateCreated

View Source
const ContainerCreateInternalServerErrorCode int = 500

ContainerCreateInternalServerErrorCode is the HTTP code returned for type ContainerCreateInternalServerError

View Source
const ContainerCreateNotFoundCode int = 404

ContainerCreateNotFoundCode is the HTTP code returned for type ContainerCreateNotFound

View Source
const ContainerDeleteBadRequestCode int = 400

ContainerDeleteBadRequestCode is the HTTP code returned for type ContainerDeleteBadRequest

View Source
const ContainerDeleteConflictCode int = 409

ContainerDeleteConflictCode is the HTTP code returned for type ContainerDeleteConflict

View Source
const ContainerDeleteInternalServerErrorCode int = 500

ContainerDeleteInternalServerErrorCode is the HTTP code returned for type ContainerDeleteInternalServerError

View Source
const ContainerDeleteNoContentCode int = 204

ContainerDeleteNoContentCode is the HTTP code returned for type ContainerDeleteNoContent

View Source
const ContainerDeleteNotFoundCode int = 404

ContainerDeleteNotFoundCode is the HTTP code returned for type ContainerDeleteNotFound

View Source
const ContainerExportInternalServerErrorCode int = 500

ContainerExportInternalServerErrorCode is the HTTP code returned for type ContainerExportInternalServerError

View Source
const ContainerExportNotFoundCode int = 404

ContainerExportNotFoundCode is the HTTP code returned for type ContainerExportNotFound

View Source
const ContainerExportOKCode int = 200

ContainerExportOKCode is the HTTP code returned for type ContainerExportOK

View Source
const ContainerInspectInternalServerErrorCode int = 500

ContainerInspectInternalServerErrorCode is the HTTP code returned for type ContainerInspectInternalServerError

View Source
const ContainerInspectNotFoundCode int = 404

ContainerInspectNotFoundCode is the HTTP code returned for type ContainerInspectNotFound

View Source
const ContainerInspectOKCode int = 200

ContainerInspectOKCode is the HTTP code returned for type ContainerInspectOK

View Source
const ContainerKillConflictCode int = 409

ContainerKillConflictCode is the HTTP code returned for type ContainerKillConflict

View Source
const ContainerKillInternalServerErrorCode int = 500

ContainerKillInternalServerErrorCode is the HTTP code returned for type ContainerKillInternalServerError

View Source
const ContainerKillNoContentCode int = 204

ContainerKillNoContentCode is the HTTP code returned for type ContainerKillNoContent

View Source
const ContainerKillNotFoundCode int = 404

ContainerKillNotFoundCode is the HTTP code returned for type ContainerKillNotFound

View Source
const ContainerListBadRequestCode int = 400

ContainerListBadRequestCode is the HTTP code returned for type ContainerListBadRequest

View Source
const ContainerListInternalServerErrorCode int = 500

ContainerListInternalServerErrorCode is the HTTP code returned for type ContainerListInternalServerError

View Source
const ContainerListOKCode int = 200

ContainerListOKCode is the HTTP code returned for type ContainerListOK

View Source
const ContainerLogsInternalServerErrorCode int = 500

ContainerLogsInternalServerErrorCode is the HTTP code returned for type ContainerLogsInternalServerError

View Source
const ContainerLogsNotFoundCode int = 404

ContainerLogsNotFoundCode is the HTTP code returned for type ContainerLogsNotFound

View Source
const ContainerLogsOKCode int = 200

ContainerLogsOKCode is the HTTP code returned for type ContainerLogsOK

View Source
const ContainerPauseInternalServerErrorCode int = 500

ContainerPauseInternalServerErrorCode is the HTTP code returned for type ContainerPauseInternalServerError

View Source
const ContainerPauseNoContentCode int = 204

ContainerPauseNoContentCode is the HTTP code returned for type ContainerPauseNoContent

View Source
const ContainerPauseNotFoundCode int = 404

ContainerPauseNotFoundCode is the HTTP code returned for type ContainerPauseNotFound

View Source
const ContainerPruneInternalServerErrorCode int = 500

ContainerPruneInternalServerErrorCode is the HTTP code returned for type ContainerPruneInternalServerError

View Source
const ContainerPruneOKCode int = 200

ContainerPruneOKCode is the HTTP code returned for type ContainerPruneOK

View Source
const ContainerRenameConflictCode int = 409

ContainerRenameConflictCode is the HTTP code returned for type ContainerRenameConflict

View Source
const ContainerRenameInternalServerErrorCode int = 500

ContainerRenameInternalServerErrorCode is the HTTP code returned for type ContainerRenameInternalServerError

View Source
const ContainerRenameNoContentCode int = 204

ContainerRenameNoContentCode is the HTTP code returned for type ContainerRenameNoContent

View Source
const ContainerRenameNotFoundCode int = 404

ContainerRenameNotFoundCode is the HTTP code returned for type ContainerRenameNotFound

View Source
const ContainerResizeInternalServerErrorCode int = 500

ContainerResizeInternalServerErrorCode is the HTTP code returned for type ContainerResizeInternalServerError

View Source
const ContainerResizeNotFoundCode int = 404

ContainerResizeNotFoundCode is the HTTP code returned for type ContainerResizeNotFound

View Source
const ContainerResizeOKCode int = 200

ContainerResizeOKCode is the HTTP code returned for type ContainerResizeOK

View Source
const ContainerRestartInternalServerErrorCode int = 500

ContainerRestartInternalServerErrorCode is the HTTP code returned for type ContainerRestartInternalServerError

View Source
const ContainerRestartNoContentCode int = 204

ContainerRestartNoContentCode is the HTTP code returned for type ContainerRestartNoContent

View Source
const ContainerRestartNotFoundCode int = 404

ContainerRestartNotFoundCode is the HTTP code returned for type ContainerRestartNotFound

View Source
const ContainerStartInternalServerErrorCode int = 500

ContainerStartInternalServerErrorCode is the HTTP code returned for type ContainerStartInternalServerError

View Source
const ContainerStartNoContentCode int = 204

ContainerStartNoContentCode is the HTTP code returned for type ContainerStartNoContent

View Source
const ContainerStartNotFoundCode int = 404

ContainerStartNotFoundCode is the HTTP code returned for type ContainerStartNotFound

View Source
const ContainerStartNotModifiedCode int = 304

ContainerStartNotModifiedCode is the HTTP code returned for type ContainerStartNotModified

View Source
const ContainerStatsInternalServerErrorCode int = 500

ContainerStatsInternalServerErrorCode is the HTTP code returned for type ContainerStatsInternalServerError

View Source
const ContainerStatsNotFoundCode int = 404

ContainerStatsNotFoundCode is the HTTP code returned for type ContainerStatsNotFound

View Source
const ContainerStatsOKCode int = 200

ContainerStatsOKCode is the HTTP code returned for type ContainerStatsOK

View Source
const ContainerStopInternalServerErrorCode int = 500

ContainerStopInternalServerErrorCode is the HTTP code returned for type ContainerStopInternalServerError

View Source
const ContainerStopNoContentCode int = 204

ContainerStopNoContentCode is the HTTP code returned for type ContainerStopNoContent

View Source
const ContainerStopNotFoundCode int = 404

ContainerStopNotFoundCode is the HTTP code returned for type ContainerStopNotFound

View Source
const ContainerStopNotModifiedCode int = 304

ContainerStopNotModifiedCode is the HTTP code returned for type ContainerStopNotModified

View Source
const ContainerTopInternalServerErrorCode int = 500

ContainerTopInternalServerErrorCode is the HTTP code returned for type ContainerTopInternalServerError

View Source
const ContainerTopNotFoundCode int = 404

ContainerTopNotFoundCode is the HTTP code returned for type ContainerTopNotFound

View Source
const ContainerTopOKCode int = 200

ContainerTopOKCode is the HTTP code returned for type ContainerTopOK

View Source
const ContainerUnpauseInternalServerErrorCode int = 500

ContainerUnpauseInternalServerErrorCode is the HTTP code returned for type ContainerUnpauseInternalServerError

View Source
const ContainerUnpauseNoContentCode int = 204

ContainerUnpauseNoContentCode is the HTTP code returned for type ContainerUnpauseNoContent

View Source
const ContainerUnpauseNotFoundCode int = 404

ContainerUnpauseNotFoundCode is the HTTP code returned for type ContainerUnpauseNotFound

View Source
const ContainerUpdateInternalServerErrorCode int = 500

ContainerUpdateInternalServerErrorCode is the HTTP code returned for type ContainerUpdateInternalServerError

View Source
const ContainerUpdateNotFoundCode int = 404

ContainerUpdateNotFoundCode is the HTTP code returned for type ContainerUpdateNotFound

View Source
const ContainerUpdateOKCode int = 200

ContainerUpdateOKCode is the HTTP code returned for type ContainerUpdateOK

View Source
const ContainerWaitInternalServerErrorCode int = 500

ContainerWaitInternalServerErrorCode is the HTTP code returned for type ContainerWaitInternalServerError

View Source
const ContainerWaitNotFoundCode int = 404

ContainerWaitNotFoundCode is the HTTP code returned for type ContainerWaitNotFound

View Source
const ContainerWaitOKCode int = 200

ContainerWaitOKCode is the HTTP code returned for type ContainerWaitOK

View Source
const PutContainerArchiveBadRequestCode int = 400

PutContainerArchiveBadRequestCode is the HTTP code returned for type PutContainerArchiveBadRequest

View Source
const PutContainerArchiveForbiddenCode int = 403

PutContainerArchiveForbiddenCode is the HTTP code returned for type PutContainerArchiveForbidden

View Source
const PutContainerArchiveInternalServerErrorCode int = 500

PutContainerArchiveInternalServerErrorCode is the HTTP code returned for type PutContainerArchiveInternalServerError

View Source
const PutContainerArchiveNotFoundCode int = 404

PutContainerArchiveNotFoundCode is the HTTP code returned for type PutContainerArchiveNotFound

View Source
const PutContainerArchiveOKCode int = 200

PutContainerArchiveOKCode is the HTTP code returned for type PutContainerArchiveOK

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerArchive

type ContainerArchive struct {
	Context *middleware.Context
	Handler ContainerArchiveHandler
}
ContainerArchive swagger:route GET /containers/{id}/archive Container containerArchive

Get an archive of a filesystem resource in a container

Get a tar archive of a resource in the filesystem of container id.

func NewContainerArchive

func NewContainerArchive(ctx *middleware.Context, handler ContainerArchiveHandler) *ContainerArchive

NewContainerArchive creates a new http.Handler for the container archive operation

func (*ContainerArchive) ServeHTTP

func (o *ContainerArchive) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ContainerArchiveBadRequest

type ContainerArchiveBadRequest struct {

	/*
	  In: Body
	*/
	Payload *ContainerArchiveBadRequestBody `json:"body,omitempty"`
}

ContainerArchiveBadRequest Bad parameter

swagger:response containerArchiveBadRequest

func NewContainerArchiveBadRequest

func NewContainerArchiveBadRequest() *ContainerArchiveBadRequest

NewContainerArchiveBadRequest creates ContainerArchiveBadRequest with default headers values

func (*ContainerArchiveBadRequest) SetPayload

SetPayload sets the payload to the container archive bad request response

func (*ContainerArchiveBadRequest) WithPayload

WithPayload adds the payload to the container archive bad request response

func (*ContainerArchiveBadRequest) WriteResponse

func (o *ContainerArchiveBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerArchiveBadRequestBody

type ContainerArchiveBadRequestBody struct {
	models.ErrorResponse

	// The error message. Either "must specify path parameter"
	// (path cannot be empty) or "not a directory" (path was
	// asserted to be a directory but exists as a file).
	//
	Message string `json:"message,omitempty"`
}

ContainerArchiveBadRequestBody container archive bad request body

swagger:model ContainerArchiveBadRequestBody

func (*ContainerArchiveBadRequestBody) ContextValidate

func (o *ContainerArchiveBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this container archive bad request body based on the context it is used

func (*ContainerArchiveBadRequestBody) MarshalBinary

func (o *ContainerArchiveBadRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ContainerArchiveBadRequestBody) MarshalJSON

func (o ContainerArchiveBadRequestBody) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ContainerArchiveBadRequestBody) UnmarshalBinary

func (o *ContainerArchiveBadRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerArchiveBadRequestBody) UnmarshalJSON

func (o *ContainerArchiveBadRequestBody) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ContainerArchiveBadRequestBody) Validate

func (o *ContainerArchiveBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this container archive bad request body

type ContainerArchiveHandler

type ContainerArchiveHandler interface {
	Handle(ContainerArchiveParams) middleware.Responder
}

ContainerArchiveHandler interface for that can handle valid container archive params

type ContainerArchiveHandlerFunc

type ContainerArchiveHandlerFunc func(ContainerArchiveParams) middleware.Responder

ContainerArchiveHandlerFunc turns a function with the right signature into a container archive handler

func (ContainerArchiveHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerArchiveInfo

type ContainerArchiveInfo struct {
	Context *middleware.Context
	Handler ContainerArchiveInfoHandler
}
ContainerArchiveInfo swagger:route HEAD /containers/{id}/archive Container containerArchiveInfo

Get information about files in a container

A response header `X-Docker-Container-Path-Stat` is returned, containing a base64 - encoded JSON object with some filesystem header information about the path.

func NewContainerArchiveInfo

func NewContainerArchiveInfo(ctx *middleware.Context, handler ContainerArchiveInfoHandler) *ContainerArchiveInfo

NewContainerArchiveInfo creates a new http.Handler for the container archive info operation

func (*ContainerArchiveInfo) ServeHTTP

func (o *ContainerArchiveInfo) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ContainerArchiveInfoBadRequest

type ContainerArchiveInfoBadRequest struct {

	/*
	  In: Body
	*/
	Payload *ContainerArchiveInfoBadRequestBody `json:"body,omitempty"`
}

ContainerArchiveInfoBadRequest Bad parameter

swagger:response containerArchiveInfoBadRequest

func NewContainerArchiveInfoBadRequest

func NewContainerArchiveInfoBadRequest() *ContainerArchiveInfoBadRequest

NewContainerArchiveInfoBadRequest creates ContainerArchiveInfoBadRequest with default headers values

func (*ContainerArchiveInfoBadRequest) SetPayload

SetPayload sets the payload to the container archive info bad request response

func (*ContainerArchiveInfoBadRequest) WithPayload

WithPayload adds the payload to the container archive info bad request response

func (*ContainerArchiveInfoBadRequest) WriteResponse

func (o *ContainerArchiveInfoBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerArchiveInfoBadRequestBody

type ContainerArchiveInfoBadRequestBody struct {
	models.ErrorResponse

	// The error message. Either "must specify path parameter"
	// (path cannot be empty) or "not a directory" (path was
	// asserted to be a directory but exists as a file).
	//
	Message string `json:"message,omitempty"`
}

ContainerArchiveInfoBadRequestBody container archive info bad request body

swagger:model ContainerArchiveInfoBadRequestBody

func (*ContainerArchiveInfoBadRequestBody) ContextValidate

func (o *ContainerArchiveInfoBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this container archive info bad request body based on the context it is used

func (*ContainerArchiveInfoBadRequestBody) MarshalBinary

func (o *ContainerArchiveInfoBadRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ContainerArchiveInfoBadRequestBody) MarshalJSON

func (o ContainerArchiveInfoBadRequestBody) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ContainerArchiveInfoBadRequestBody) UnmarshalBinary

func (o *ContainerArchiveInfoBadRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerArchiveInfoBadRequestBody) UnmarshalJSON

func (o *ContainerArchiveInfoBadRequestBody) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ContainerArchiveInfoBadRequestBody) Validate

Validate validates this container archive info bad request body

type ContainerArchiveInfoHandler

type ContainerArchiveInfoHandler interface {
	Handle(ContainerArchiveInfoParams) middleware.Responder
}

ContainerArchiveInfoHandler interface for that can handle valid container archive info params

type ContainerArchiveInfoHandlerFunc

type ContainerArchiveInfoHandlerFunc func(ContainerArchiveInfoParams) middleware.Responder

ContainerArchiveInfoHandlerFunc turns a function with the right signature into a container archive info handler

func (ContainerArchiveInfoHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerArchiveInfoInternalServerError

type ContainerArchiveInfoInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerArchiveInfoInternalServerError Server error

swagger:response containerArchiveInfoInternalServerError

func NewContainerArchiveInfoInternalServerError

func NewContainerArchiveInfoInternalServerError() *ContainerArchiveInfoInternalServerError

NewContainerArchiveInfoInternalServerError creates ContainerArchiveInfoInternalServerError with default headers values

func (*ContainerArchiveInfoInternalServerError) SetPayload

SetPayload sets the payload to the container archive info internal server error response

func (*ContainerArchiveInfoInternalServerError) WithPayload

WithPayload adds the payload to the container archive info internal server error response

func (*ContainerArchiveInfoInternalServerError) WriteResponse

WriteResponse to the client

type ContainerArchiveInfoNotFound

type ContainerArchiveInfoNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerArchiveInfoNotFound Container or path does not exist

swagger:response containerArchiveInfoNotFound

func NewContainerArchiveInfoNotFound

func NewContainerArchiveInfoNotFound() *ContainerArchiveInfoNotFound

NewContainerArchiveInfoNotFound creates ContainerArchiveInfoNotFound with default headers values

func (*ContainerArchiveInfoNotFound) SetPayload

func (o *ContainerArchiveInfoNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container archive info not found response

func (*ContainerArchiveInfoNotFound) WithPayload

WithPayload adds the payload to the container archive info not found response

func (*ContainerArchiveInfoNotFound) WriteResponse

func (o *ContainerArchiveInfoNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerArchiveInfoOK

type ContainerArchiveInfoOK struct {
	/*A base64 - encoded JSON object with some filesystem header
	information about the path


	*/
	XDockerContainerPathStat string `json:"X-Docker-Container-Path-Stat"`
}

ContainerArchiveInfoOK no error

swagger:response containerArchiveInfoOK

func NewContainerArchiveInfoOK

func NewContainerArchiveInfoOK() *ContainerArchiveInfoOK

NewContainerArchiveInfoOK creates ContainerArchiveInfoOK with default headers values

func (*ContainerArchiveInfoOK) SetXDockerContainerPathStat

func (o *ContainerArchiveInfoOK) SetXDockerContainerPathStat(xDockerContainerPathStat string)

SetXDockerContainerPathStat sets the xDockerContainerPathStat to the container archive info o k response

func (*ContainerArchiveInfoOK) WithXDockerContainerPathStat

func (o *ContainerArchiveInfoOK) WithXDockerContainerPathStat(xDockerContainerPathStat string) *ContainerArchiveInfoOK

WithXDockerContainerPathStat adds the xDockerContainerPathStat to the container archive info o k response

func (*ContainerArchiveInfoOK) WriteResponse

func (o *ContainerArchiveInfoOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerArchiveInfoParams

type ContainerArchiveInfoParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID or name of the container
	  Required: true
	  In: path
	*/
	ID string
	/*Resource in the container’s filesystem to archive.
	  Required: true
	  In: query
	*/
	Path string
}

ContainerArchiveInfoParams contains all the bound params for the container archive info operation typically these are obtained from a http.Request

swagger:parameters ContainerArchiveInfo

func NewContainerArchiveInfoParams

func NewContainerArchiveInfoParams() ContainerArchiveInfoParams

NewContainerArchiveInfoParams creates a new ContainerArchiveInfoParams object

There are no default values defined in the spec.

func (*ContainerArchiveInfoParams) BindRequest

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 NewContainerArchiveInfoParams() beforehand.

type ContainerArchiveInfoURL

type ContainerArchiveInfoURL struct {
	ID string

	Path string
	// contains filtered or unexported fields
}

ContainerArchiveInfoURL generates an URL for the container archive info operation

func (*ContainerArchiveInfoURL) Build

func (o *ContainerArchiveInfoURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerArchiveInfoURL) BuildFull

func (o *ContainerArchiveInfoURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerArchiveInfoURL) Must

func (o *ContainerArchiveInfoURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerArchiveInfoURL) SetBasePath

func (o *ContainerArchiveInfoURL) 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 (*ContainerArchiveInfoURL) String

func (o *ContainerArchiveInfoURL) String() string

String returns the string representation of the path with query string

func (*ContainerArchiveInfoURL) StringFull

func (o *ContainerArchiveInfoURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerArchiveInfoURL) WithBasePath

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 ContainerArchiveInternalServerError

type ContainerArchiveInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerArchiveInternalServerError server error

swagger:response containerArchiveInternalServerError

func NewContainerArchiveInternalServerError

func NewContainerArchiveInternalServerError() *ContainerArchiveInternalServerError

NewContainerArchiveInternalServerError creates ContainerArchiveInternalServerError with default headers values

func (*ContainerArchiveInternalServerError) SetPayload

SetPayload sets the payload to the container archive internal server error response

func (*ContainerArchiveInternalServerError) WithPayload

WithPayload adds the payload to the container archive internal server error response

func (*ContainerArchiveInternalServerError) WriteResponse

WriteResponse to the client

type ContainerArchiveNotFound

type ContainerArchiveNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerArchiveNotFound Container or path does not exist

swagger:response containerArchiveNotFound

func NewContainerArchiveNotFound

func NewContainerArchiveNotFound() *ContainerArchiveNotFound

NewContainerArchiveNotFound creates ContainerArchiveNotFound with default headers values

func (*ContainerArchiveNotFound) SetPayload

func (o *ContainerArchiveNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container archive not found response

func (*ContainerArchiveNotFound) WithPayload

WithPayload adds the payload to the container archive not found response

func (*ContainerArchiveNotFound) WriteResponse

func (o *ContainerArchiveNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerArchiveOK

type ContainerArchiveOK struct {
}

ContainerArchiveOK no error

swagger:response containerArchiveOK

func NewContainerArchiveOK

func NewContainerArchiveOK() *ContainerArchiveOK

NewContainerArchiveOK creates ContainerArchiveOK with default headers values

func (*ContainerArchiveOK) WriteResponse

func (o *ContainerArchiveOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerArchiveParams

type ContainerArchiveParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID or name of the container
	  Required: true
	  In: path
	*/
	ID string
	/*Resource in the container’s filesystem to archive.
	  Required: true
	  In: query
	*/
	Path string
}

ContainerArchiveParams contains all the bound params for the container archive operation typically these are obtained from a http.Request

swagger:parameters ContainerArchive

func NewContainerArchiveParams

func NewContainerArchiveParams() ContainerArchiveParams

NewContainerArchiveParams creates a new ContainerArchiveParams object

There are no default values defined in the spec.

func (*ContainerArchiveParams) BindRequest

func (o *ContainerArchiveParams) 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 NewContainerArchiveParams() beforehand.

type ContainerArchiveURL

type ContainerArchiveURL struct {
	ID string

	Path string
	// contains filtered or unexported fields
}

ContainerArchiveURL generates an URL for the container archive operation

func (*ContainerArchiveURL) Build

func (o *ContainerArchiveURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerArchiveURL) BuildFull

func (o *ContainerArchiveURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerArchiveURL) Must

func (o *ContainerArchiveURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerArchiveURL) SetBasePath

func (o *ContainerArchiveURL) 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 (*ContainerArchiveURL) String

func (o *ContainerArchiveURL) String() string

String returns the string representation of the path with query string

func (*ContainerArchiveURL) StringFull

func (o *ContainerArchiveURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerArchiveURL) WithBasePath

func (o *ContainerArchiveURL) WithBasePath(bp string) *ContainerArchiveURL

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 ContainerAttach

type ContainerAttach struct {
	Context *middleware.Context
	Handler ContainerAttachHandler
}
ContainerAttach swagger:route POST /containers/{id}/attach Container containerAttach

Attach to a container

Attach to a container to read its output or send it input. You can attach to the same container multiple times and you can reattach to containers that have been detached.

Either the `stream` or `logs` parameter must be `true` for this endpoint to do anything.

See the [documentation for the `docker attach` command](/engine/reference/commandline/attach/) for more details.

### Hijacking

This endpoint hijacks the HTTP connection to transport `stdin`, `stdout`, and `stderr` on the same socket.

This is the response from the daemon for an attach request:

``` HTTP/1.1 200 OK Content-Type: application/vnd.docker.raw-stream

[STREAM] ```

After the headers and two new lines, the TCP connection can now be used for raw, bidirectional communication between the client and server.

To hint potential proxies about connection hijacking, the Docker client can also optionally send connection upgrade headers.

For example, the client sends this request to upgrade the connection:

``` POST /containers/16253994b7c4/attach?stream=1&stdout=1 HTTP/1.1 Upgrade: tcp Connection: Upgrade ```

The Docker daemon will respond with a `101 UPGRADED` response, and will similarly follow with the raw stream:

``` HTTP/1.1 101 UPGRADED Content-Type: application/vnd.docker.raw-stream Connection: Upgrade Upgrade: tcp

[STREAM] ```

### Stream format

When the TTY setting is disabled in [`POST /containers/create`](#operation/ContainerCreate), the stream over the hijacked connected is multiplexed to separate out `stdout` and `stderr`. The stream consists of a series of frames, each containing a header and a payload.

The header contains the information which the stream writes (`stdout` or `stderr`). It also contains the size of the associated frame encoded in the last four bytes (`uint32`).

It is encoded on the first eight bytes like this:

```go header := [8]byte{STREAM_TYPE, 0, 0, 0, SIZE1, SIZE2, SIZE3, SIZE4} ```

`STREAM_TYPE` can be:

- 0: `stdin` (is written on `stdout`) - 1: `stdout` - 2: `stderr`

`SIZE1, SIZE2, SIZE3, SIZE4` are the four bytes of the `uint32` size encoded as big endian.

Following the header is the payload, which is the specified number of bytes of `STREAM_TYPE`.

The simplest way to implement this protocol is the following:

1. Read 8 bytes. 2. Choose `stdout` or `stderr` depending on the first byte. 3. Extract the frame size from the last four bytes. 4. Read the extracted size and output it on the correct output. 5. Goto 1.

### Stream format when using a TTY

When the TTY setting is enabled in [`POST /containers/create`](#operation/ContainerCreate), the stream is not multiplexed. The data exchanged over the hijacked connection is simply the raw data from the process PTY and client's `stdin`.

func NewContainerAttach

func NewContainerAttach(ctx *middleware.Context, handler ContainerAttachHandler) *ContainerAttach

NewContainerAttach creates a new http.Handler for the container attach operation

func (*ContainerAttach) ServeHTTP

func (o *ContainerAttach) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ContainerAttachBadRequest

type ContainerAttachBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerAttachBadRequest bad parameter

swagger:response containerAttachBadRequest

func NewContainerAttachBadRequest

func NewContainerAttachBadRequest() *ContainerAttachBadRequest

NewContainerAttachBadRequest creates ContainerAttachBadRequest with default headers values

func (*ContainerAttachBadRequest) SetPayload

func (o *ContainerAttachBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container attach bad request response

func (*ContainerAttachBadRequest) WithPayload

WithPayload adds the payload to the container attach bad request response

func (*ContainerAttachBadRequest) WriteResponse

func (o *ContainerAttachBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerAttachHandler

type ContainerAttachHandler interface {
	Handle(ContainerAttachParams) middleware.Responder
}

ContainerAttachHandler interface for that can handle valid container attach params

type ContainerAttachHandlerFunc

type ContainerAttachHandlerFunc func(ContainerAttachParams) middleware.Responder

ContainerAttachHandlerFunc turns a function with the right signature into a container attach handler

func (ContainerAttachHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerAttachInternalServerError

type ContainerAttachInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerAttachInternalServerError server error

swagger:response containerAttachInternalServerError

func NewContainerAttachInternalServerError

func NewContainerAttachInternalServerError() *ContainerAttachInternalServerError

NewContainerAttachInternalServerError creates ContainerAttachInternalServerError with default headers values

func (*ContainerAttachInternalServerError) SetPayload

SetPayload sets the payload to the container attach internal server error response

func (*ContainerAttachInternalServerError) WithPayload

WithPayload adds the payload to the container attach internal server error response

func (*ContainerAttachInternalServerError) WriteResponse

WriteResponse to the client

type ContainerAttachNotFound

type ContainerAttachNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerAttachNotFound no such container

swagger:response containerAttachNotFound

func NewContainerAttachNotFound

func NewContainerAttachNotFound() *ContainerAttachNotFound

NewContainerAttachNotFound creates ContainerAttachNotFound with default headers values

func (*ContainerAttachNotFound) SetPayload

func (o *ContainerAttachNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container attach not found response

func (*ContainerAttachNotFound) WithPayload

WithPayload adds the payload to the container attach not found response

func (*ContainerAttachNotFound) WriteResponse

func (o *ContainerAttachNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerAttachOK

type ContainerAttachOK struct {
}

ContainerAttachOK no error, no upgrade header found

swagger:response containerAttachOK

func NewContainerAttachOK

func NewContainerAttachOK() *ContainerAttachOK

NewContainerAttachOK creates ContainerAttachOK with default headers values

func (*ContainerAttachOK) WriteResponse

func (o *ContainerAttachOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerAttachParams

type ContainerAttachParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Override the key sequence for detaching a container.Format is a single
	character `[a-Z]` or `ctrl-<value>` where `<value>` is one of: `a-z`,
	`@`, `^`, `[`, `,` or `_`.

	  In: query
	*/
	DetachKeys *string
	/*ID or name of the container
	  Required: true
	  In: path
	*/
	ID string
	/*Replay previous logs from the container.

	This is useful for attaching to a container that has started and you
	want to output everything since the container started.

	If `stream` is also enabled, once all the previous output has been
	returned, it will seamlessly transition into streaming current
	output.

	  In: query
	  Default: false
	*/
	Logs *bool
	/*Attach to `stderr`
	  In: query
	  Default: false
	*/
	Stderr *bool
	/*Attach to `stdin`
	  In: query
	  Default: false
	*/
	Stdin *bool
	/*Attach to `stdout`
	  In: query
	  Default: false
	*/
	Stdout *bool
	/*Stream attached streams from the time the request was made onwards.

	  In: query
	  Default: false
	*/
	Stream *bool
}

ContainerAttachParams contains all the bound params for the container attach operation typically these are obtained from a http.Request

swagger:parameters ContainerAttach

func NewContainerAttachParams

func NewContainerAttachParams() ContainerAttachParams

NewContainerAttachParams creates a new ContainerAttachParams object with the default values initialized.

func (*ContainerAttachParams) BindRequest

func (o *ContainerAttachParams) 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 NewContainerAttachParams() beforehand.

type ContainerAttachSwitchingProtocols

type ContainerAttachSwitchingProtocols struct {
}

ContainerAttachSwitchingProtocols no error, hints proxy about hijacking

swagger:response containerAttachSwitchingProtocols

func NewContainerAttachSwitchingProtocols

func NewContainerAttachSwitchingProtocols() *ContainerAttachSwitchingProtocols

NewContainerAttachSwitchingProtocols creates ContainerAttachSwitchingProtocols with default headers values

func (*ContainerAttachSwitchingProtocols) WriteResponse

func (o *ContainerAttachSwitchingProtocols) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerAttachURL

type ContainerAttachURL struct {
	ID string

	DetachKeys *string
	Logs       *bool
	Stderr     *bool
	Stdin      *bool
	Stdout     *bool
	Stream     *bool
	// contains filtered or unexported fields
}

ContainerAttachURL generates an URL for the container attach operation

func (*ContainerAttachURL) Build

func (o *ContainerAttachURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerAttachURL) BuildFull

func (o *ContainerAttachURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerAttachURL) Must

func (o *ContainerAttachURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerAttachURL) SetBasePath

func (o *ContainerAttachURL) 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 (*ContainerAttachURL) String

func (o *ContainerAttachURL) String() string

String returns the string representation of the path with query string

func (*ContainerAttachURL) StringFull

func (o *ContainerAttachURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerAttachURL) WithBasePath

func (o *ContainerAttachURL) WithBasePath(bp string) *ContainerAttachURL

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 ContainerAttachWebsocket

type ContainerAttachWebsocket struct {
	Context *middleware.Context
	Handler ContainerAttachWebsocketHandler
}
ContainerAttachWebsocket swagger:route GET /containers/{id}/attach/ws Container containerAttachWebsocket

Attach to a container via a websocket

func NewContainerAttachWebsocket

func NewContainerAttachWebsocket(ctx *middleware.Context, handler ContainerAttachWebsocketHandler) *ContainerAttachWebsocket

NewContainerAttachWebsocket creates a new http.Handler for the container attach websocket operation

func (*ContainerAttachWebsocket) ServeHTTP

type ContainerAttachWebsocketBadRequest

type ContainerAttachWebsocketBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerAttachWebsocketBadRequest bad parameter

swagger:response containerAttachWebsocketBadRequest

func NewContainerAttachWebsocketBadRequest

func NewContainerAttachWebsocketBadRequest() *ContainerAttachWebsocketBadRequest

NewContainerAttachWebsocketBadRequest creates ContainerAttachWebsocketBadRequest with default headers values

func (*ContainerAttachWebsocketBadRequest) SetPayload

SetPayload sets the payload to the container attach websocket bad request response

func (*ContainerAttachWebsocketBadRequest) WithPayload

WithPayload adds the payload to the container attach websocket bad request response

func (*ContainerAttachWebsocketBadRequest) WriteResponse

WriteResponse to the client

type ContainerAttachWebsocketHandler

type ContainerAttachWebsocketHandler interface {
	Handle(ContainerAttachWebsocketParams) middleware.Responder
}

ContainerAttachWebsocketHandler interface for that can handle valid container attach websocket params

type ContainerAttachWebsocketHandlerFunc

type ContainerAttachWebsocketHandlerFunc func(ContainerAttachWebsocketParams) middleware.Responder

ContainerAttachWebsocketHandlerFunc turns a function with the right signature into a container attach websocket handler

func (ContainerAttachWebsocketHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerAttachWebsocketInternalServerError

type ContainerAttachWebsocketInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerAttachWebsocketInternalServerError server error

swagger:response containerAttachWebsocketInternalServerError

func NewContainerAttachWebsocketInternalServerError

func NewContainerAttachWebsocketInternalServerError() *ContainerAttachWebsocketInternalServerError

NewContainerAttachWebsocketInternalServerError creates ContainerAttachWebsocketInternalServerError with default headers values

func (*ContainerAttachWebsocketInternalServerError) SetPayload

SetPayload sets the payload to the container attach websocket internal server error response

func (*ContainerAttachWebsocketInternalServerError) WithPayload

WithPayload adds the payload to the container attach websocket internal server error response

func (*ContainerAttachWebsocketInternalServerError) WriteResponse

WriteResponse to the client

type ContainerAttachWebsocketNotFound

type ContainerAttachWebsocketNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerAttachWebsocketNotFound no such container

swagger:response containerAttachWebsocketNotFound

func NewContainerAttachWebsocketNotFound

func NewContainerAttachWebsocketNotFound() *ContainerAttachWebsocketNotFound

NewContainerAttachWebsocketNotFound creates ContainerAttachWebsocketNotFound with default headers values

func (*ContainerAttachWebsocketNotFound) SetPayload

func (o *ContainerAttachWebsocketNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container attach websocket not found response

func (*ContainerAttachWebsocketNotFound) WithPayload

WithPayload adds the payload to the container attach websocket not found response

func (*ContainerAttachWebsocketNotFound) WriteResponse

func (o *ContainerAttachWebsocketNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerAttachWebsocketOK

type ContainerAttachWebsocketOK struct {
}

ContainerAttachWebsocketOK no error, no upgrade header found

swagger:response containerAttachWebsocketOK

func NewContainerAttachWebsocketOK

func NewContainerAttachWebsocketOK() *ContainerAttachWebsocketOK

NewContainerAttachWebsocketOK creates ContainerAttachWebsocketOK with default headers values

func (*ContainerAttachWebsocketOK) WriteResponse

func (o *ContainerAttachWebsocketOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerAttachWebsocketParams

type ContainerAttachWebsocketParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Override the key sequence for detaching a container.Format is a single
	character `[a-Z]` or `ctrl-<value>` where `<value>` is one of: `a-z`,
	`@`, `^`, `[`, `,`, or `_`.

	  In: query
	*/
	DetachKeys *string
	/*ID or name of the container
	  Required: true
	  In: path
	*/
	ID string
	/*Return logs
	  In: query
	  Default: false
	*/
	Logs *bool
	/*Attach to `stderr`
	  In: query
	  Default: false
	*/
	Stderr *bool
	/*Attach to `stdin`
	  In: query
	  Default: false
	*/
	Stdin *bool
	/*Attach to `stdout`
	  In: query
	  Default: false
	*/
	Stdout *bool
	/*Return stream
	  In: query
	  Default: false
	*/
	Stream *bool
}

ContainerAttachWebsocketParams contains all the bound params for the container attach websocket operation typically these are obtained from a http.Request

swagger:parameters ContainerAttachWebsocket

func NewContainerAttachWebsocketParams

func NewContainerAttachWebsocketParams() ContainerAttachWebsocketParams

NewContainerAttachWebsocketParams creates a new ContainerAttachWebsocketParams object with the default values initialized.

func (*ContainerAttachWebsocketParams) BindRequest

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 NewContainerAttachWebsocketParams() beforehand.

type ContainerAttachWebsocketSwitchingProtocols

type ContainerAttachWebsocketSwitchingProtocols struct {
}

ContainerAttachWebsocketSwitchingProtocols no error, hints proxy about hijacking

swagger:response containerAttachWebsocketSwitchingProtocols

func NewContainerAttachWebsocketSwitchingProtocols

func NewContainerAttachWebsocketSwitchingProtocols() *ContainerAttachWebsocketSwitchingProtocols

NewContainerAttachWebsocketSwitchingProtocols creates ContainerAttachWebsocketSwitchingProtocols with default headers values

func (*ContainerAttachWebsocketSwitchingProtocols) WriteResponse

WriteResponse to the client

type ContainerAttachWebsocketURL

type ContainerAttachWebsocketURL struct {
	ID string

	DetachKeys *string
	Logs       *bool
	Stderr     *bool
	Stdin      *bool
	Stdout     *bool
	Stream     *bool
	// contains filtered or unexported fields
}

ContainerAttachWebsocketURL generates an URL for the container attach websocket operation

func (*ContainerAttachWebsocketURL) Build

func (o *ContainerAttachWebsocketURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerAttachWebsocketURL) BuildFull

func (o *ContainerAttachWebsocketURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerAttachWebsocketURL) Must

func (o *ContainerAttachWebsocketURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerAttachWebsocketURL) SetBasePath

func (o *ContainerAttachWebsocketURL) 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 (*ContainerAttachWebsocketURL) String

func (o *ContainerAttachWebsocketURL) String() string

String returns the string representation of the path with query string

func (*ContainerAttachWebsocketURL) StringFull

func (o *ContainerAttachWebsocketURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerAttachWebsocketURL) WithBasePath

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 ContainerChangeResponseItem

type ContainerChangeResponseItem struct {

	// Kind of change
	// Required: true
	// Enum: [0 1 2]
	Kind uint8 `json:"Kind"`

	// Path to file that has changed
	// Required: true
	Path string `json:"Path"`
}

ContainerChangeResponseItem ContainerChangeResponseItem

change item in response to ContainerChanges operation

swagger:model ContainerChangeResponseItem

func (*ContainerChangeResponseItem) ContextValidate

func (o *ContainerChangeResponseItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this container change response item based on context it is used

func (*ContainerChangeResponseItem) MarshalBinary

func (o *ContainerChangeResponseItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerChangeResponseItem) UnmarshalBinary

func (o *ContainerChangeResponseItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerChangeResponseItem) Validate

func (o *ContainerChangeResponseItem) Validate(formats strfmt.Registry) error

Validate validates this container change response item

type ContainerChanges

type ContainerChanges struct {
	Context *middleware.Context
	Handler ContainerChangesHandler
}
ContainerChanges swagger:route GET /containers/{id}/changes Container containerChanges

Get changes on a container’s filesystem

Returns which files in a container's filesystem have been added, deleted, or modified. The `Kind` of modification can be one of:

- `0`: Modified - `1`: Added - `2`: Deleted

func NewContainerChanges

func NewContainerChanges(ctx *middleware.Context, handler ContainerChangesHandler) *ContainerChanges

NewContainerChanges creates a new http.Handler for the container changes operation

func (*ContainerChanges) ServeHTTP

func (o *ContainerChanges) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ContainerChangesHandler

type ContainerChangesHandler interface {
	Handle(ContainerChangesParams) middleware.Responder
}

ContainerChangesHandler interface for that can handle valid container changes params

type ContainerChangesHandlerFunc

type ContainerChangesHandlerFunc func(ContainerChangesParams) middleware.Responder

ContainerChangesHandlerFunc turns a function with the right signature into a container changes handler

func (ContainerChangesHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerChangesInternalServerError

type ContainerChangesInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerChangesInternalServerError server error

swagger:response containerChangesInternalServerError

func NewContainerChangesInternalServerError

func NewContainerChangesInternalServerError() *ContainerChangesInternalServerError

NewContainerChangesInternalServerError creates ContainerChangesInternalServerError with default headers values

func (*ContainerChangesInternalServerError) SetPayload

SetPayload sets the payload to the container changes internal server error response

func (*ContainerChangesInternalServerError) WithPayload

WithPayload adds the payload to the container changes internal server error response

func (*ContainerChangesInternalServerError) WriteResponse

WriteResponse to the client

type ContainerChangesNotFound

type ContainerChangesNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerChangesNotFound no such container

swagger:response containerChangesNotFound

func NewContainerChangesNotFound

func NewContainerChangesNotFound() *ContainerChangesNotFound

NewContainerChangesNotFound creates ContainerChangesNotFound with default headers values

func (*ContainerChangesNotFound) SetPayload

func (o *ContainerChangesNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container changes not found response

func (*ContainerChangesNotFound) WithPayload

WithPayload adds the payload to the container changes not found response

func (*ContainerChangesNotFound) WriteResponse

func (o *ContainerChangesNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerChangesOK

type ContainerChangesOK struct {

	/*
	  In: Body
	*/
	Payload []*ContainerChangeResponseItem `json:"body,omitempty"`
}

ContainerChangesOK The list of changes

swagger:response containerChangesOK

func NewContainerChangesOK

func NewContainerChangesOK() *ContainerChangesOK

NewContainerChangesOK creates ContainerChangesOK with default headers values

func (*ContainerChangesOK) SetPayload

func (o *ContainerChangesOK) SetPayload(payload []*ContainerChangeResponseItem)

SetPayload sets the payload to the container changes o k response

func (*ContainerChangesOK) WithPayload

WithPayload adds the payload to the container changes o k response

func (*ContainerChangesOK) WriteResponse

func (o *ContainerChangesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerChangesParams

type ContainerChangesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID or name of the container
	  Required: true
	  In: path
	*/
	ID string
}

ContainerChangesParams contains all the bound params for the container changes operation typically these are obtained from a http.Request

swagger:parameters ContainerChanges

func NewContainerChangesParams

func NewContainerChangesParams() ContainerChangesParams

NewContainerChangesParams creates a new ContainerChangesParams object

There are no default values defined in the spec.

func (*ContainerChangesParams) BindRequest

func (o *ContainerChangesParams) 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 NewContainerChangesParams() beforehand.

type ContainerChangesURL

type ContainerChangesURL struct {
	ID string
	// contains filtered or unexported fields
}

ContainerChangesURL generates an URL for the container changes operation

func (*ContainerChangesURL) Build

func (o *ContainerChangesURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerChangesURL) BuildFull

func (o *ContainerChangesURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerChangesURL) Must

func (o *ContainerChangesURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerChangesURL) SetBasePath

func (o *ContainerChangesURL) 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 (*ContainerChangesURL) String

func (o *ContainerChangesURL) String() string

String returns the string representation of the path with query string

func (*ContainerChangesURL) StringFull

func (o *ContainerChangesURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerChangesURL) WithBasePath

func (o *ContainerChangesURL) WithBasePath(bp string) *ContainerChangesURL

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 ContainerCreate

type ContainerCreate struct {
	Context *middleware.Context
	Handler ContainerCreateHandler
}
ContainerCreate swagger:route POST /containers/create Container containerCreate

Create a container

func NewContainerCreate

func NewContainerCreate(ctx *middleware.Context, handler ContainerCreateHandler) *ContainerCreate

NewContainerCreate creates a new http.Handler for the container create operation

func (*ContainerCreate) ServeHTTP

func (o *ContainerCreate) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ContainerCreateBadRequest

type ContainerCreateBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerCreateBadRequest bad parameter

swagger:response containerCreateBadRequest

func NewContainerCreateBadRequest

func NewContainerCreateBadRequest() *ContainerCreateBadRequest

NewContainerCreateBadRequest creates ContainerCreateBadRequest with default headers values

func (*ContainerCreateBadRequest) SetPayload

func (o *ContainerCreateBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container create bad request response

func (*ContainerCreateBadRequest) WithPayload

WithPayload adds the payload to the container create bad request response

func (*ContainerCreateBadRequest) WriteResponse

func (o *ContainerCreateBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerCreateBody

type ContainerCreateBody struct {
	models.ContainerConfig

	// host config
	HostConfig *models.HostConfig `json:"HostConfig,omitempty"`

	// networking config
	NetworkingConfig *models.NetworkingConfig `json:"NetworkingConfig,omitempty"`
}

ContainerCreateBody container create body Example: {"AttachStderr":true,"AttachStdin":false,"AttachStdout":true,"Cmd":["date"],"Domainname":"","Entrypoint":"","Env":["FOO=bar","BAZ=quux"],"ExposedPorts":{"22/tcp":{}},"HostConfig":{"AutoRemove":true,"Binds":["/tmp:/tmp"],"BlkioDeviceReadBps":[{}],"BlkioDeviceReadIOps":[{}],"BlkioDeviceWriteBps":[{}],"BlkioDeviceWriteIOps":[{}],"BlkioWeight":300,"BlkioWeightDevice":[{}],"CapAdd":["NET_ADMIN"],"CapDrop":["MKNOD"],"CgroupParent":"","CpuPercent":80,"CpuPeriod":100000,"CpuQuota":50000,"CpuRealtimePeriod":1000000,"CpuRealtimeRuntime":10000,"CpuShares":512,"CpusetCpus":"0,1","CpusetMems":"0,1","DeviceRequests":[{"Capabilities":[["gpu","nvidia","compute"]],"Count":-1,"DeviceIDs\"":["0","1","GPU-fef8089b-4820-abfc-e83e-94318197576e"],"Driver":"nvidia","Options":{"property1":"string","property2":"string"}}],"Devices":[],"Dns":["8.8.8.8"],"DnsOptions":[""],"DnsSearch":[""],"GroupAdd":["newgroup"],"KernelMemory":0,"Links":["redis3:redis"],"LogConfig":{"Config":{},"Type":"json-file"},"MaximumIOBps":0,"MaximumIOps":0,"Memory":0,"MemoryReservation":0,"MemorySwap":0,"MemorySwappiness":60,"NanoCpus":500000,"NetworkMode":"bridge","OomKillDisable":false,"OomScoreAdj":500,"PidMode":"","PidsLimit":0,"PortBindings":{"22/tcp":[{"HostPort":"11022"}]},"Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":[],"ShmSize":67108864,"StorageOpt":{},"Ulimits":[{}],"VolumeDriver":"","VolumesFrom":["parent","other:ro"]},"Hostname":"","Image":"ubuntu","Labels":{"com.example.license":"GPL","com.example.vendor":"Acme","com.example.version":"1.0"},"MacAddress":"12:34:56:78:9a:bc","NetworkDisabled":false,"NetworkingConfig":{"EndpointsConfig":{"isolated_nw":{"Aliases":["server_x","server_y"],"IPAMConfig":{"IPv4Address":"172.20.30.33","IPv6Address":"2001:db8:abcd::3033","LinkLocalIPs":["169.254.34.68","fe80::3468"]},"Links":["container_1","container_2"]}}},"OpenStdin":false,"StdinOnce":false,"StopSignal":"SIGTERM","StopTimeout":10,"Tty":false,"User":"","Volumes":{"/volumes/data":{}},"WorkingDir":""}

swagger:model ContainerCreateBody

func (*ContainerCreateBody) ContextValidate

func (o *ContainerCreateBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this container create body based on the context it is used

func (*ContainerCreateBody) MarshalBinary

func (o *ContainerCreateBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ContainerCreateBody) MarshalJSON

func (o ContainerCreateBody) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ContainerCreateBody) UnmarshalBinary

func (o *ContainerCreateBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerCreateBody) UnmarshalJSON

func (o *ContainerCreateBody) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ContainerCreateBody) Validate

func (o *ContainerCreateBody) Validate(formats strfmt.Registry) error

Validate validates this container create body

type ContainerCreateConflict

type ContainerCreateConflict struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerCreateConflict conflict

swagger:response containerCreateConflict

func NewContainerCreateConflict

func NewContainerCreateConflict() *ContainerCreateConflict

NewContainerCreateConflict creates ContainerCreateConflict with default headers values

func (*ContainerCreateConflict) SetPayload

func (o *ContainerCreateConflict) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container create conflict response

func (*ContainerCreateConflict) WithPayload

WithPayload adds the payload to the container create conflict response

func (*ContainerCreateConflict) WriteResponse

func (o *ContainerCreateConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerCreateCreated

type ContainerCreateCreated struct {

	/*
	  In: Body
	*/
	Payload *ContainerCreateCreatedBody `json:"body,omitempty"`
}

ContainerCreateCreated Container created successfully

swagger:response containerCreateCreated

func NewContainerCreateCreated

func NewContainerCreateCreated() *ContainerCreateCreated

NewContainerCreateCreated creates ContainerCreateCreated with default headers values

func (*ContainerCreateCreated) SetPayload

func (o *ContainerCreateCreated) SetPayload(payload *ContainerCreateCreatedBody)

SetPayload sets the payload to the container create created response

func (*ContainerCreateCreated) WithPayload

WithPayload adds the payload to the container create created response

func (*ContainerCreateCreated) WriteResponse

func (o *ContainerCreateCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerCreateCreatedBody

type ContainerCreateCreatedBody struct {

	// The ID of the created container
	// Required: true
	ID string `json:"Id"`

	// Warnings encountered when creating the container
	// Required: true
	Warnings []string `json:"Warnings"`
}

ContainerCreateCreatedBody ContainerCreateResponse

OK response to ContainerCreate operation

swagger:model ContainerCreateCreatedBody

func (*ContainerCreateCreatedBody) ContextValidate

func (o *ContainerCreateCreatedBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this container create created body based on context it is used

func (*ContainerCreateCreatedBody) MarshalBinary

func (o *ContainerCreateCreatedBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerCreateCreatedBody) UnmarshalBinary

func (o *ContainerCreateCreatedBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerCreateCreatedBody) Validate

func (o *ContainerCreateCreatedBody) Validate(formats strfmt.Registry) error

Validate validates this container create created body

type ContainerCreateHandler

type ContainerCreateHandler interface {
	Handle(ContainerCreateParams) middleware.Responder
}

ContainerCreateHandler interface for that can handle valid container create params

type ContainerCreateHandlerFunc

type ContainerCreateHandlerFunc func(ContainerCreateParams) middleware.Responder

ContainerCreateHandlerFunc turns a function with the right signature into a container create handler

func (ContainerCreateHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerCreateInternalServerError

type ContainerCreateInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerCreateInternalServerError server error

swagger:response containerCreateInternalServerError

func NewContainerCreateInternalServerError

func NewContainerCreateInternalServerError() *ContainerCreateInternalServerError

NewContainerCreateInternalServerError creates ContainerCreateInternalServerError with default headers values

func (*ContainerCreateInternalServerError) SetPayload

SetPayload sets the payload to the container create internal server error response

func (*ContainerCreateInternalServerError) WithPayload

WithPayload adds the payload to the container create internal server error response

func (*ContainerCreateInternalServerError) WriteResponse

WriteResponse to the client

type ContainerCreateNotFound

type ContainerCreateNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerCreateNotFound no such image

swagger:response containerCreateNotFound

func NewContainerCreateNotFound

func NewContainerCreateNotFound() *ContainerCreateNotFound

NewContainerCreateNotFound creates ContainerCreateNotFound with default headers values

func (*ContainerCreateNotFound) SetPayload

func (o *ContainerCreateNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container create not found response

func (*ContainerCreateNotFound) WithPayload

WithPayload adds the payload to the container create not found response

func (*ContainerCreateNotFound) WriteResponse

func (o *ContainerCreateNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerCreateParams

type ContainerCreateParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Container to create
	  Required: true
	  In: body
	*/
	Body ContainerCreateBody
	/*Assign the specified name to the container. Must match
	`/?[a-zA-Z0-9][a-zA-Z0-9_.-]+`.

	  Pattern: ^/?[a-zA-Z0-9][a-zA-Z0-9_.-]+$
	  In: query
	*/
	Name *string
}

ContainerCreateParams contains all the bound params for the container create operation typically these are obtained from a http.Request

swagger:parameters ContainerCreate

func NewContainerCreateParams

func NewContainerCreateParams() ContainerCreateParams

NewContainerCreateParams creates a new ContainerCreateParams object

There are no default values defined in the spec.

func (*ContainerCreateParams) BindRequest

func (o *ContainerCreateParams) 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 NewContainerCreateParams() beforehand.

type ContainerCreateURL

type ContainerCreateURL struct {
	Name *string
	// contains filtered or unexported fields
}

ContainerCreateURL generates an URL for the container create operation

func (*ContainerCreateURL) Build

func (o *ContainerCreateURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerCreateURL) BuildFull

func (o *ContainerCreateURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerCreateURL) Must

func (o *ContainerCreateURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerCreateURL) SetBasePath

func (o *ContainerCreateURL) 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 (*ContainerCreateURL) String

func (o *ContainerCreateURL) String() string

String returns the string representation of the path with query string

func (*ContainerCreateURL) StringFull

func (o *ContainerCreateURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerCreateURL) WithBasePath

func (o *ContainerCreateURL) WithBasePath(bp string) *ContainerCreateURL

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 ContainerDelete

type ContainerDelete struct {
	Context *middleware.Context
	Handler ContainerDeleteHandler
}
ContainerDelete swagger:route DELETE /containers/{id} Container containerDelete

Remove a container

func NewContainerDelete

func NewContainerDelete(ctx *middleware.Context, handler ContainerDeleteHandler) *ContainerDelete

NewContainerDelete creates a new http.Handler for the container delete operation

func (*ContainerDelete) ServeHTTP

func (o *ContainerDelete) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ContainerDeleteBadRequest

type ContainerDeleteBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerDeleteBadRequest bad parameter

swagger:response containerDeleteBadRequest

func NewContainerDeleteBadRequest

func NewContainerDeleteBadRequest() *ContainerDeleteBadRequest

NewContainerDeleteBadRequest creates ContainerDeleteBadRequest with default headers values

func (*ContainerDeleteBadRequest) SetPayload

func (o *ContainerDeleteBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container delete bad request response

func (*ContainerDeleteBadRequest) WithPayload

WithPayload adds the payload to the container delete bad request response

func (*ContainerDeleteBadRequest) WriteResponse

func (o *ContainerDeleteBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerDeleteConflict

type ContainerDeleteConflict struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerDeleteConflict conflict

swagger:response containerDeleteConflict

func NewContainerDeleteConflict

func NewContainerDeleteConflict() *ContainerDeleteConflict

NewContainerDeleteConflict creates ContainerDeleteConflict with default headers values

func (*ContainerDeleteConflict) SetPayload

func (o *ContainerDeleteConflict) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container delete conflict response

func (*ContainerDeleteConflict) WithPayload

WithPayload adds the payload to the container delete conflict response

func (*ContainerDeleteConflict) WriteResponse

func (o *ContainerDeleteConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerDeleteHandler

type ContainerDeleteHandler interface {
	Handle(ContainerDeleteParams) middleware.Responder
}

ContainerDeleteHandler interface for that can handle valid container delete params

type ContainerDeleteHandlerFunc

type ContainerDeleteHandlerFunc func(ContainerDeleteParams) middleware.Responder

ContainerDeleteHandlerFunc turns a function with the right signature into a container delete handler

func (ContainerDeleteHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerDeleteInternalServerError

type ContainerDeleteInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerDeleteInternalServerError server error

swagger:response containerDeleteInternalServerError

func NewContainerDeleteInternalServerError

func NewContainerDeleteInternalServerError() *ContainerDeleteInternalServerError

NewContainerDeleteInternalServerError creates ContainerDeleteInternalServerError with default headers values

func (*ContainerDeleteInternalServerError) SetPayload

SetPayload sets the payload to the container delete internal server error response

func (*ContainerDeleteInternalServerError) WithPayload

WithPayload adds the payload to the container delete internal server error response

func (*ContainerDeleteInternalServerError) WriteResponse

WriteResponse to the client

type ContainerDeleteNoContent

type ContainerDeleteNoContent struct {
}

ContainerDeleteNoContent no error

swagger:response containerDeleteNoContent

func NewContainerDeleteNoContent

func NewContainerDeleteNoContent() *ContainerDeleteNoContent

NewContainerDeleteNoContent creates ContainerDeleteNoContent with default headers values

func (*ContainerDeleteNoContent) WriteResponse

func (o *ContainerDeleteNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerDeleteNotFound

type ContainerDeleteNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerDeleteNotFound no such container

swagger:response containerDeleteNotFound

func NewContainerDeleteNotFound

func NewContainerDeleteNotFound() *ContainerDeleteNotFound

NewContainerDeleteNotFound creates ContainerDeleteNotFound with default headers values

func (*ContainerDeleteNotFound) SetPayload

func (o *ContainerDeleteNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container delete not found response

func (*ContainerDeleteNotFound) WithPayload

WithPayload adds the payload to the container delete not found response

func (*ContainerDeleteNotFound) WriteResponse

func (o *ContainerDeleteNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerDeleteParams

type ContainerDeleteParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*If the container is running, kill it before removing it.
	  In: query
	  Default: false
	*/
	Force *bool
	/*ID or name of the container
	  Required: true
	  In: path
	*/
	ID string
	/*Remove the specified link associated with the container.
	  In: query
	  Default: false
	*/
	Link *bool
	/*Remove anonymous volumes associated with the container.
	  In: query
	  Default: false
	*/
	V *bool
}

ContainerDeleteParams contains all the bound params for the container delete operation typically these are obtained from a http.Request

swagger:parameters ContainerDelete

func NewContainerDeleteParams

func NewContainerDeleteParams() ContainerDeleteParams

NewContainerDeleteParams creates a new ContainerDeleteParams object with the default values initialized.

func (*ContainerDeleteParams) BindRequest

func (o *ContainerDeleteParams) 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 NewContainerDeleteParams() beforehand.

type ContainerDeleteURL

type ContainerDeleteURL struct {
	ID string

	Force *bool
	Link  *bool
	V     *bool
	// contains filtered or unexported fields
}

ContainerDeleteURL generates an URL for the container delete operation

func (*ContainerDeleteURL) Build

func (o *ContainerDeleteURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerDeleteURL) BuildFull

func (o *ContainerDeleteURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerDeleteURL) Must

func (o *ContainerDeleteURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerDeleteURL) SetBasePath

func (o *ContainerDeleteURL) 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 (*ContainerDeleteURL) String

func (o *ContainerDeleteURL) String() string

String returns the string representation of the path with query string

func (*ContainerDeleteURL) StringFull

func (o *ContainerDeleteURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerDeleteURL) WithBasePath

func (o *ContainerDeleteURL) WithBasePath(bp string) *ContainerDeleteURL

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 ContainerExport

type ContainerExport struct {
	Context *middleware.Context
	Handler ContainerExportHandler
}
ContainerExport swagger:route GET /containers/{id}/export Container containerExport

Export a container

Export the contents of a container as a tarball.

func NewContainerExport

func NewContainerExport(ctx *middleware.Context, handler ContainerExportHandler) *ContainerExport

NewContainerExport creates a new http.Handler for the container export operation

func (*ContainerExport) ServeHTTP

func (o *ContainerExport) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ContainerExportHandler

type ContainerExportHandler interface {
	Handle(ContainerExportParams) middleware.Responder
}

ContainerExportHandler interface for that can handle valid container export params

type ContainerExportHandlerFunc

type ContainerExportHandlerFunc func(ContainerExportParams) middleware.Responder

ContainerExportHandlerFunc turns a function with the right signature into a container export handler

func (ContainerExportHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerExportInternalServerError

type ContainerExportInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerExportInternalServerError server error

swagger:response containerExportInternalServerError

func NewContainerExportInternalServerError

func NewContainerExportInternalServerError() *ContainerExportInternalServerError

NewContainerExportInternalServerError creates ContainerExportInternalServerError with default headers values

func (*ContainerExportInternalServerError) SetPayload

SetPayload sets the payload to the container export internal server error response

func (*ContainerExportInternalServerError) WithPayload

WithPayload adds the payload to the container export internal server error response

func (*ContainerExportInternalServerError) WriteResponse

WriteResponse to the client

type ContainerExportNotFound

type ContainerExportNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerExportNotFound no such container

swagger:response containerExportNotFound

func NewContainerExportNotFound

func NewContainerExportNotFound() *ContainerExportNotFound

NewContainerExportNotFound creates ContainerExportNotFound with default headers values

func (*ContainerExportNotFound) SetPayload

func (o *ContainerExportNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container export not found response

func (*ContainerExportNotFound) WithPayload

WithPayload adds the payload to the container export not found response

func (*ContainerExportNotFound) WriteResponse

func (o *ContainerExportNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerExportOK

type ContainerExportOK struct {
}

ContainerExportOK no error

swagger:response containerExportOK

func NewContainerExportOK

func NewContainerExportOK() *ContainerExportOK

NewContainerExportOK creates ContainerExportOK with default headers values

func (*ContainerExportOK) WriteResponse

func (o *ContainerExportOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerExportParams

type ContainerExportParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID or name of the container
	  Required: true
	  In: path
	*/
	ID string
}

ContainerExportParams contains all the bound params for the container export operation typically these are obtained from a http.Request

swagger:parameters ContainerExport

func NewContainerExportParams

func NewContainerExportParams() ContainerExportParams

NewContainerExportParams creates a new ContainerExportParams object

There are no default values defined in the spec.

func (*ContainerExportParams) BindRequest

func (o *ContainerExportParams) 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 NewContainerExportParams() beforehand.

type ContainerExportURL

type ContainerExportURL struct {
	ID string
	// contains filtered or unexported fields
}

ContainerExportURL generates an URL for the container export operation

func (*ContainerExportURL) Build

func (o *ContainerExportURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerExportURL) BuildFull

func (o *ContainerExportURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerExportURL) Must

func (o *ContainerExportURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerExportURL) SetBasePath

func (o *ContainerExportURL) 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 (*ContainerExportURL) String

func (o *ContainerExportURL) String() string

String returns the string representation of the path with query string

func (*ContainerExportURL) StringFull

func (o *ContainerExportURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerExportURL) WithBasePath

func (o *ContainerExportURL) WithBasePath(bp string) *ContainerExportURL

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 ContainerInspect

type ContainerInspect struct {
	Context *middleware.Context
	Handler ContainerInspectHandler
}
ContainerInspect swagger:route GET /containers/{id}/json Container containerInspect

Inspect a container

Return low-level information about a container.

func NewContainerInspect

func NewContainerInspect(ctx *middleware.Context, handler ContainerInspectHandler) *ContainerInspect

NewContainerInspect creates a new http.Handler for the container inspect operation

func (*ContainerInspect) ServeHTTP

func (o *ContainerInspect) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ContainerInspectHandler

type ContainerInspectHandler interface {
	Handle(ContainerInspectParams) middleware.Responder
}

ContainerInspectHandler interface for that can handle valid container inspect params

type ContainerInspectHandlerFunc

type ContainerInspectHandlerFunc func(ContainerInspectParams) middleware.Responder

ContainerInspectHandlerFunc turns a function with the right signature into a container inspect handler

func (ContainerInspectHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerInspectInternalServerError

type ContainerInspectInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerInspectInternalServerError server error

swagger:response containerInspectInternalServerError

func NewContainerInspectInternalServerError

func NewContainerInspectInternalServerError() *ContainerInspectInternalServerError

NewContainerInspectInternalServerError creates ContainerInspectInternalServerError with default headers values

func (*ContainerInspectInternalServerError) SetPayload

SetPayload sets the payload to the container inspect internal server error response

func (*ContainerInspectInternalServerError) WithPayload

WithPayload adds the payload to the container inspect internal server error response

func (*ContainerInspectInternalServerError) WriteResponse

WriteResponse to the client

type ContainerInspectNotFound

type ContainerInspectNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerInspectNotFound no such container

swagger:response containerInspectNotFound

func NewContainerInspectNotFound

func NewContainerInspectNotFound() *ContainerInspectNotFound

NewContainerInspectNotFound creates ContainerInspectNotFound with default headers values

func (*ContainerInspectNotFound) SetPayload

func (o *ContainerInspectNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container inspect not found response

func (*ContainerInspectNotFound) WithPayload

WithPayload adds the payload to the container inspect not found response

func (*ContainerInspectNotFound) WriteResponse

func (o *ContainerInspectNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerInspectOK

type ContainerInspectOK struct {

	/*
	  In: Body
	*/
	Payload *ContainerInspectOKBody `json:"body,omitempty"`
}

ContainerInspectOK no error

swagger:response containerInspectOK

func NewContainerInspectOK

func NewContainerInspectOK() *ContainerInspectOK

NewContainerInspectOK creates ContainerInspectOK with default headers values

func (*ContainerInspectOK) SetPayload

func (o *ContainerInspectOK) SetPayload(payload *ContainerInspectOKBody)

SetPayload sets the payload to the container inspect o k response

func (*ContainerInspectOK) WithPayload

WithPayload adds the payload to the container inspect o k response

func (*ContainerInspectOK) WriteResponse

func (o *ContainerInspectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerInspectOKBody

type ContainerInspectOKBody struct {

	// app armor profile
	AppArmorProfile string `json:"AppArmorProfile,omitempty"`

	// The arguments to the command being run
	Args []string `json:"Args"`

	// config
	Config *models.ContainerConfig `json:"Config,omitempty"`

	// The time the container was created
	Created string `json:"Created,omitempty"`

	// driver
	Driver string `json:"Driver,omitempty"`

	// IDs of exec instances that are running in the container.
	ExecIDs []string `json:"ExecIDs"`

	// graph driver
	GraphDriver *models.GraphDriverData `json:"GraphDriver,omitempty"`

	// host config
	HostConfig *models.HostConfig `json:"HostConfig,omitempty"`

	// hostname path
	HostnamePath string `json:"HostnamePath,omitempty"`

	// hosts path
	HostsPath string `json:"HostsPath,omitempty"`

	// The ID of the container
	ID string `json:"Id,omitempty"`

	// The container's image ID
	Image string `json:"Image,omitempty"`

	// log path
	LogPath string `json:"LogPath,omitempty"`

	// mount label
	MountLabel string `json:"MountLabel,omitempty"`

	// mounts
	Mounts []*models.MountPoint `json:"Mounts"`

	// name
	Name string `json:"Name,omitempty"`

	// network settings
	NetworkSettings *models.NetworkSettings `json:"NetworkSettings,omitempty"`

	// The path to the command being run
	Path string `json:"Path,omitempty"`

	// platform
	Platform string `json:"Platform,omitempty"`

	// process label
	ProcessLabel string `json:"ProcessLabel,omitempty"`

	// resolv conf path
	ResolvConfPath string `json:"ResolvConfPath,omitempty"`

	// restart count
	RestartCount int64 `json:"RestartCount,omitempty"`

	// The total size of all the files in this container.
	SizeRootFs int64 `json:"SizeRootFs,omitempty"`

	// The size of files that have been created or changed by this
	// container.
	//
	SizeRw int64 `json:"SizeRw,omitempty"`

	// state
	State *models.ContainerState `json:"State,omitempty"`
}

ContainerInspectOKBody ContainerInspectResponse

swagger:model ContainerInspectOKBody

func (*ContainerInspectOKBody) ContextValidate

func (o *ContainerInspectOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this container inspect o k body based on the context it is used

func (*ContainerInspectOKBody) MarshalBinary

func (o *ContainerInspectOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerInspectOKBody) UnmarshalBinary

func (o *ContainerInspectOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerInspectOKBody) Validate

func (o *ContainerInspectOKBody) Validate(formats strfmt.Registry) error

Validate validates this container inspect o k body

type ContainerInspectParams

type ContainerInspectParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID or name of the container
	  Required: true
	  In: path
	*/
	ID string
	/*Return the size of container as fields `SizeRw` and `SizeRootFs`
	  In: query
	  Default: false
	*/
	Size *bool
}

ContainerInspectParams contains all the bound params for the container inspect operation typically these are obtained from a http.Request

swagger:parameters ContainerInspect

func NewContainerInspectParams

func NewContainerInspectParams() ContainerInspectParams

NewContainerInspectParams creates a new ContainerInspectParams object with the default values initialized.

func (*ContainerInspectParams) BindRequest

func (o *ContainerInspectParams) 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 NewContainerInspectParams() beforehand.

type ContainerInspectURL

type ContainerInspectURL struct {
	ID string

	Size *bool
	// contains filtered or unexported fields
}

ContainerInspectURL generates an URL for the container inspect operation

func (*ContainerInspectURL) Build

func (o *ContainerInspectURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerInspectURL) BuildFull

func (o *ContainerInspectURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerInspectURL) Must

func (o *ContainerInspectURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerInspectURL) SetBasePath

func (o *ContainerInspectURL) 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 (*ContainerInspectURL) String

func (o *ContainerInspectURL) String() string

String returns the string representation of the path with query string

func (*ContainerInspectURL) StringFull

func (o *ContainerInspectURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerInspectURL) WithBasePath

func (o *ContainerInspectURL) WithBasePath(bp string) *ContainerInspectURL

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 ContainerKill

type ContainerKill struct {
	Context *middleware.Context
	Handler ContainerKillHandler
}
ContainerKill swagger:route POST /containers/{id}/kill Container containerKill

Kill a container

Send a POSIX signal to a container, defaulting to killing to the container.

func NewContainerKill

func NewContainerKill(ctx *middleware.Context, handler ContainerKillHandler) *ContainerKill

NewContainerKill creates a new http.Handler for the container kill operation

func (*ContainerKill) ServeHTTP

func (o *ContainerKill) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ContainerKillConflict

type ContainerKillConflict struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerKillConflict container is not running

swagger:response containerKillConflict

func NewContainerKillConflict

func NewContainerKillConflict() *ContainerKillConflict

NewContainerKillConflict creates ContainerKillConflict with default headers values

func (*ContainerKillConflict) SetPayload

func (o *ContainerKillConflict) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container kill conflict response

func (*ContainerKillConflict) WithPayload

WithPayload adds the payload to the container kill conflict response

func (*ContainerKillConflict) WriteResponse

func (o *ContainerKillConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerKillHandler

type ContainerKillHandler interface {
	Handle(ContainerKillParams) middleware.Responder
}

ContainerKillHandler interface for that can handle valid container kill params

type ContainerKillHandlerFunc

type ContainerKillHandlerFunc func(ContainerKillParams) middleware.Responder

ContainerKillHandlerFunc turns a function with the right signature into a container kill handler

func (ContainerKillHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerKillInternalServerError

type ContainerKillInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerKillInternalServerError server error

swagger:response containerKillInternalServerError

func NewContainerKillInternalServerError

func NewContainerKillInternalServerError() *ContainerKillInternalServerError

NewContainerKillInternalServerError creates ContainerKillInternalServerError with default headers values

func (*ContainerKillInternalServerError) SetPayload

func (o *ContainerKillInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container kill internal server error response

func (*ContainerKillInternalServerError) WithPayload

WithPayload adds the payload to the container kill internal server error response

func (*ContainerKillInternalServerError) WriteResponse

func (o *ContainerKillInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerKillNoContent

type ContainerKillNoContent struct {
}

ContainerKillNoContent no error

swagger:response containerKillNoContent

func NewContainerKillNoContent

func NewContainerKillNoContent() *ContainerKillNoContent

NewContainerKillNoContent creates ContainerKillNoContent with default headers values

func (*ContainerKillNoContent) WriteResponse

func (o *ContainerKillNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerKillNotFound

type ContainerKillNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerKillNotFound no such container

swagger:response containerKillNotFound

func NewContainerKillNotFound

func NewContainerKillNotFound() *ContainerKillNotFound

NewContainerKillNotFound creates ContainerKillNotFound with default headers values

func (*ContainerKillNotFound) SetPayload

func (o *ContainerKillNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container kill not found response

func (*ContainerKillNotFound) WithPayload

WithPayload adds the payload to the container kill not found response

func (*ContainerKillNotFound) WriteResponse

func (o *ContainerKillNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerKillParams

type ContainerKillParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID or name of the container
	  Required: true
	  In: path
	*/
	ID string
	/*Signal to send to the container as an integer or string (e.g. `SIGINT`)
	  In: query
	  Default: "SIGKILL"
	*/
	Signal *string
}

ContainerKillParams contains all the bound params for the container kill operation typically these are obtained from a http.Request

swagger:parameters ContainerKill

func NewContainerKillParams

func NewContainerKillParams() ContainerKillParams

NewContainerKillParams creates a new ContainerKillParams object with the default values initialized.

func (*ContainerKillParams) BindRequest

func (o *ContainerKillParams) 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 NewContainerKillParams() beforehand.

type ContainerKillURL

type ContainerKillURL struct {
	ID string

	Signal *string
	// contains filtered or unexported fields
}

ContainerKillURL generates an URL for the container kill operation

func (*ContainerKillURL) Build

func (o *ContainerKillURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerKillURL) BuildFull

func (o *ContainerKillURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerKillURL) Must

func (o *ContainerKillURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerKillURL) SetBasePath

func (o *ContainerKillURL) 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 (*ContainerKillURL) String

func (o *ContainerKillURL) String() string

String returns the string representation of the path with query string

func (*ContainerKillURL) StringFull

func (o *ContainerKillURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerKillURL) WithBasePath

func (o *ContainerKillURL) WithBasePath(bp string) *ContainerKillURL

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 ContainerList

type ContainerList struct {
	Context *middleware.Context
	Handler ContainerListHandler
}
ContainerList swagger:route GET /containers/json Container containerList

List containers

Returns a list of containers. For details on the format, see the [inspect endpoint](#operation/ContainerInspect).

Note that it uses a different, smaller representation of a container than inspecting a single container. For example, the list of linked containers is not propagated .

func NewContainerList

func NewContainerList(ctx *middleware.Context, handler ContainerListHandler) *ContainerList

NewContainerList creates a new http.Handler for the container list operation

func (*ContainerList) ServeHTTP

func (o *ContainerList) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ContainerListBadRequest

type ContainerListBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerListBadRequest bad parameter

swagger:response containerListBadRequest

func NewContainerListBadRequest

func NewContainerListBadRequest() *ContainerListBadRequest

NewContainerListBadRequest creates ContainerListBadRequest with default headers values

func (*ContainerListBadRequest) SetPayload

func (o *ContainerListBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container list bad request response

func (*ContainerListBadRequest) WithPayload

WithPayload adds the payload to the container list bad request response

func (*ContainerListBadRequest) WriteResponse

func (o *ContainerListBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerListHandler

type ContainerListHandler interface {
	Handle(ContainerListParams) middleware.Responder
}

ContainerListHandler interface for that can handle valid container list params

type ContainerListHandlerFunc

type ContainerListHandlerFunc func(ContainerListParams) middleware.Responder

ContainerListHandlerFunc turns a function with the right signature into a container list handler

func (ContainerListHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerListInternalServerError

type ContainerListInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerListInternalServerError server error

swagger:response containerListInternalServerError

func NewContainerListInternalServerError

func NewContainerListInternalServerError() *ContainerListInternalServerError

NewContainerListInternalServerError creates ContainerListInternalServerError with default headers values

func (*ContainerListInternalServerError) SetPayload

func (o *ContainerListInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container list internal server error response

func (*ContainerListInternalServerError) WithPayload

WithPayload adds the payload to the container list internal server error response

func (*ContainerListInternalServerError) WriteResponse

func (o *ContainerListInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerListOK

type ContainerListOK struct {

	/*
	  In: Body
	*/
	Payload models.ContainerSummary `json:"body,omitempty"`
}

ContainerListOK no error

swagger:response containerListOK

func NewContainerListOK

func NewContainerListOK() *ContainerListOK

NewContainerListOK creates ContainerListOK with default headers values

func (*ContainerListOK) SetPayload

func (o *ContainerListOK) SetPayload(payload models.ContainerSummary)

SetPayload sets the payload to the container list o k response

func (*ContainerListOK) WithPayload

func (o *ContainerListOK) WithPayload(payload models.ContainerSummary) *ContainerListOK

WithPayload adds the payload to the container list o k response

func (*ContainerListOK) WriteResponse

func (o *ContainerListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerListParams

type ContainerListParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Return all containers. By default, only running containers are shown.

	  In: query
	  Default: false
	*/
	All *bool
	/*Filters to process on the container list, encoded as JSON (a
	`map[string][]string`). For example, `{"status": ["paused"]}` will
	only return paused containers.

	Available filters:

	- `ancestor`=(`<image-name>[:<tag>]`, `<image id>`, or `<image@digest>`)
	- `before`=(`<container id>` or `<container name>`)
	- `expose`=(`<port>[/<proto>]`|`<startport-endport>/[<proto>]`)
	- `exited=<int>` containers with exit code of `<int>`
	- `health`=(`starting`|`healthy`|`unhealthy`|`none`)
	- `id=<ID>` a container's ID
	- `isolation=`(`default`|`process`|`hyperv`) (Windows daemon only)
	- `is-task=`(`true`|`false`)
	- `label=key` or `label="key=value"` of a container label
	- `name=<name>` a container's name
	- `network`=(`<network id>` or `<network name>`)
	- `publish`=(`<port>[/<proto>]`|`<startport-endport>/[<proto>]`)
	- `since`=(`<container id>` or `<container name>`)
	- `status=`(`created`|`restarting`|`running`|`removing`|`paused`|`exited`|`dead`)
	- `volume`=(`<volume name>` or `<mount point destination>`)

	  In: query
	*/
	Filters *string
	/*Return this number of most recently created containers, including
	non-running ones.

	  In: query
	*/
	Limit *int64
	/*Return the size of container as fields `SizeRw` and `SizeRootFs`.

	  In: query
	  Default: false
	*/
	Size *bool
}

ContainerListParams contains all the bound params for the container list operation typically these are obtained from a http.Request

swagger:parameters ContainerList

func NewContainerListParams

func NewContainerListParams() ContainerListParams

NewContainerListParams creates a new ContainerListParams object with the default values initialized.

func (*ContainerListParams) BindRequest

func (o *ContainerListParams) 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 NewContainerListParams() beforehand.

type ContainerListURL

type ContainerListURL struct {
	All     *bool
	Filters *string
	Limit   *int64
	Size    *bool
	// contains filtered or unexported fields
}

ContainerListURL generates an URL for the container list operation

func (*ContainerListURL) Build

func (o *ContainerListURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerListURL) BuildFull

func (o *ContainerListURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerListURL) Must

func (o *ContainerListURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerListURL) SetBasePath

func (o *ContainerListURL) 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 (*ContainerListURL) String

func (o *ContainerListURL) String() string

String returns the string representation of the path with query string

func (*ContainerListURL) StringFull

func (o *ContainerListURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerListURL) WithBasePath

func (o *ContainerListURL) WithBasePath(bp string) *ContainerListURL

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 ContainerLogs

type ContainerLogs struct {
	Context *middleware.Context
	Handler ContainerLogsHandler
}
ContainerLogs swagger:route GET /containers/{id}/logs Container containerLogs

Get container logs

Get `stdout` and `stderr` logs from a container.

Note: This endpoint works only for containers with the `json-file` or `journald` logging driver.

func NewContainerLogs

func NewContainerLogs(ctx *middleware.Context, handler ContainerLogsHandler) *ContainerLogs

NewContainerLogs creates a new http.Handler for the container logs operation

func (*ContainerLogs) ServeHTTP

func (o *ContainerLogs) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ContainerLogsHandler

type ContainerLogsHandler interface {
	Handle(ContainerLogsParams) middleware.Responder
}

ContainerLogsHandler interface for that can handle valid container logs params

type ContainerLogsHandlerFunc

type ContainerLogsHandlerFunc func(ContainerLogsParams) middleware.Responder

ContainerLogsHandlerFunc turns a function with the right signature into a container logs handler

func (ContainerLogsHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerLogsInternalServerError

type ContainerLogsInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerLogsInternalServerError server error

swagger:response containerLogsInternalServerError

func NewContainerLogsInternalServerError

func NewContainerLogsInternalServerError() *ContainerLogsInternalServerError

NewContainerLogsInternalServerError creates ContainerLogsInternalServerError with default headers values

func (*ContainerLogsInternalServerError) SetPayload

func (o *ContainerLogsInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container logs internal server error response

func (*ContainerLogsInternalServerError) WithPayload

WithPayload adds the payload to the container logs internal server error response

func (*ContainerLogsInternalServerError) WriteResponse

func (o *ContainerLogsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerLogsNotFound

type ContainerLogsNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerLogsNotFound no such container

swagger:response containerLogsNotFound

func NewContainerLogsNotFound

func NewContainerLogsNotFound() *ContainerLogsNotFound

NewContainerLogsNotFound creates ContainerLogsNotFound with default headers values

func (*ContainerLogsNotFound) SetPayload

func (o *ContainerLogsNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container logs not found response

func (*ContainerLogsNotFound) WithPayload

WithPayload adds the payload to the container logs not found response

func (*ContainerLogsNotFound) WriteResponse

func (o *ContainerLogsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerLogsOK

type ContainerLogsOK struct {

	/*
	  In: Body
	*/
	Payload io.ReadCloser `json:"body,omitempty"`
}

ContainerLogsOK logs returned as a stream in response body. For the stream format, [see the documentation for the attach endpoint](#operation/ContainerAttach). Note that unlike the attach endpoint, the logs endpoint does not upgrade the connection and does not set Content-Type.

swagger:response containerLogsOK

func NewContainerLogsOK

func NewContainerLogsOK() *ContainerLogsOK

NewContainerLogsOK creates ContainerLogsOK with default headers values

func (*ContainerLogsOK) SetPayload

func (o *ContainerLogsOK) SetPayload(payload io.ReadCloser)

SetPayload sets the payload to the container logs o k response

func (*ContainerLogsOK) WithPayload

func (o *ContainerLogsOK) WithPayload(payload io.ReadCloser) *ContainerLogsOK

WithPayload adds the payload to the container logs o k response

func (*ContainerLogsOK) WriteResponse

func (o *ContainerLogsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerLogsParams

type ContainerLogsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Keep connection after returning logs.
	  In: query
	  Default: false
	*/
	Follow *bool
	/*ID or name of the container
	  Required: true
	  In: path
	*/
	ID string
	/*Only return logs since this time, as a UNIX timestamp
	  In: query
	  Default: 0
	*/
	Since *int64
	/*Return logs from `stderr`
	  In: query
	  Default: false
	*/
	Stderr *bool
	/*Return logs from `stdout`
	  In: query
	  Default: false
	*/
	Stdout *bool
	/*Only return this number of log lines from the end of the logs.
	Specify as an integer or `all` to output all log lines.

	  In: query
	  Default: "all"
	*/
	Tail *string
	/*Add timestamps to every log line
	  In: query
	  Default: false
	*/
	Timestamps *bool
	/*Only return logs before this time, as a UNIX timestamp
	  In: query
	  Default: 0
	*/
	Until *int64
}

ContainerLogsParams contains all the bound params for the container logs operation typically these are obtained from a http.Request

swagger:parameters ContainerLogs

func NewContainerLogsParams

func NewContainerLogsParams() ContainerLogsParams

NewContainerLogsParams creates a new ContainerLogsParams object with the default values initialized.

func (*ContainerLogsParams) BindRequest

func (o *ContainerLogsParams) 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 NewContainerLogsParams() beforehand.

type ContainerLogsURL

type ContainerLogsURL struct {
	ID string

	Follow     *bool
	Since      *int64
	Stderr     *bool
	Stdout     *bool
	Tail       *string
	Timestamps *bool
	Until      *int64
	// contains filtered or unexported fields
}

ContainerLogsURL generates an URL for the container logs operation

func (*ContainerLogsURL) Build

func (o *ContainerLogsURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerLogsURL) BuildFull

func (o *ContainerLogsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerLogsURL) Must

func (o *ContainerLogsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerLogsURL) SetBasePath

func (o *ContainerLogsURL) 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 (*ContainerLogsURL) String

func (o *ContainerLogsURL) String() string

String returns the string representation of the path with query string

func (*ContainerLogsURL) StringFull

func (o *ContainerLogsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerLogsURL) WithBasePath

func (o *ContainerLogsURL) WithBasePath(bp string) *ContainerLogsURL

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 ContainerPause

type ContainerPause struct {
	Context *middleware.Context
	Handler ContainerPauseHandler
}
ContainerPause swagger:route POST /containers/{id}/pause Container containerPause

Pause a container

Use the freezer cgroup to suspend all processes in a container.

Traditionally, when suspending a process the `SIGSTOP` signal is used, which is observable by the process being suspended. With the freezer cgroup the process is unaware, and unable to capture, that it is being suspended, and subsequently resumed.

func NewContainerPause

func NewContainerPause(ctx *middleware.Context, handler ContainerPauseHandler) *ContainerPause

NewContainerPause creates a new http.Handler for the container pause operation

func (*ContainerPause) ServeHTTP

func (o *ContainerPause) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ContainerPauseHandler

type ContainerPauseHandler interface {
	Handle(ContainerPauseParams) middleware.Responder
}

ContainerPauseHandler interface for that can handle valid container pause params

type ContainerPauseHandlerFunc

type ContainerPauseHandlerFunc func(ContainerPauseParams) middleware.Responder

ContainerPauseHandlerFunc turns a function with the right signature into a container pause handler

func (ContainerPauseHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerPauseInternalServerError

type ContainerPauseInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerPauseInternalServerError server error

swagger:response containerPauseInternalServerError

func NewContainerPauseInternalServerError

func NewContainerPauseInternalServerError() *ContainerPauseInternalServerError

NewContainerPauseInternalServerError creates ContainerPauseInternalServerError with default headers values

func (*ContainerPauseInternalServerError) SetPayload

func (o *ContainerPauseInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container pause internal server error response

func (*ContainerPauseInternalServerError) WithPayload

WithPayload adds the payload to the container pause internal server error response

func (*ContainerPauseInternalServerError) WriteResponse

func (o *ContainerPauseInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerPauseNoContent

type ContainerPauseNoContent struct {
}

ContainerPauseNoContent no error

swagger:response containerPauseNoContent

func NewContainerPauseNoContent

func NewContainerPauseNoContent() *ContainerPauseNoContent

NewContainerPauseNoContent creates ContainerPauseNoContent with default headers values

func (*ContainerPauseNoContent) WriteResponse

func (o *ContainerPauseNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerPauseNotFound

type ContainerPauseNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerPauseNotFound no such container

swagger:response containerPauseNotFound

func NewContainerPauseNotFound

func NewContainerPauseNotFound() *ContainerPauseNotFound

NewContainerPauseNotFound creates ContainerPauseNotFound with default headers values

func (*ContainerPauseNotFound) SetPayload

func (o *ContainerPauseNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container pause not found response

func (*ContainerPauseNotFound) WithPayload

WithPayload adds the payload to the container pause not found response

func (*ContainerPauseNotFound) WriteResponse

func (o *ContainerPauseNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerPauseParams

type ContainerPauseParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID or name of the container
	  Required: true
	  In: path
	*/
	ID string
}

ContainerPauseParams contains all the bound params for the container pause operation typically these are obtained from a http.Request

swagger:parameters ContainerPause

func NewContainerPauseParams

func NewContainerPauseParams() ContainerPauseParams

NewContainerPauseParams creates a new ContainerPauseParams object

There are no default values defined in the spec.

func (*ContainerPauseParams) BindRequest

func (o *ContainerPauseParams) 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 NewContainerPauseParams() beforehand.

type ContainerPauseURL

type ContainerPauseURL struct {
	ID string
	// contains filtered or unexported fields
}

ContainerPauseURL generates an URL for the container pause operation

func (*ContainerPauseURL) Build

func (o *ContainerPauseURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerPauseURL) BuildFull

func (o *ContainerPauseURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerPauseURL) Must

func (o *ContainerPauseURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerPauseURL) SetBasePath

func (o *ContainerPauseURL) 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 (*ContainerPauseURL) String

func (o *ContainerPauseURL) String() string

String returns the string representation of the path with query string

func (*ContainerPauseURL) StringFull

func (o *ContainerPauseURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerPauseURL) WithBasePath

func (o *ContainerPauseURL) WithBasePath(bp string) *ContainerPauseURL

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 ContainerPrune

type ContainerPrune struct {
	Context *middleware.Context
	Handler ContainerPruneHandler
}
ContainerPrune swagger:route POST /containers/prune Container containerPrune

Delete stopped containers

func NewContainerPrune

func NewContainerPrune(ctx *middleware.Context, handler ContainerPruneHandler) *ContainerPrune

NewContainerPrune creates a new http.Handler for the container prune operation

func (*ContainerPrune) ServeHTTP

func (o *ContainerPrune) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ContainerPruneHandler

type ContainerPruneHandler interface {
	Handle(ContainerPruneParams) middleware.Responder
}

ContainerPruneHandler interface for that can handle valid container prune params

type ContainerPruneHandlerFunc

type ContainerPruneHandlerFunc func(ContainerPruneParams) middleware.Responder

ContainerPruneHandlerFunc turns a function with the right signature into a container prune handler

func (ContainerPruneHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerPruneInternalServerError

type ContainerPruneInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerPruneInternalServerError Server error

swagger:response containerPruneInternalServerError

func NewContainerPruneInternalServerError

func NewContainerPruneInternalServerError() *ContainerPruneInternalServerError

NewContainerPruneInternalServerError creates ContainerPruneInternalServerError with default headers values

func (*ContainerPruneInternalServerError) SetPayload

func (o *ContainerPruneInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container prune internal server error response

func (*ContainerPruneInternalServerError) WithPayload

WithPayload adds the payload to the container prune internal server error response

func (*ContainerPruneInternalServerError) WriteResponse

func (o *ContainerPruneInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerPruneOK

type ContainerPruneOK struct {

	/*
	  In: Body
	*/
	Payload *ContainerPruneOKBody `json:"body,omitempty"`
}

ContainerPruneOK No error

swagger:response containerPruneOK

func NewContainerPruneOK

func NewContainerPruneOK() *ContainerPruneOK

NewContainerPruneOK creates ContainerPruneOK with default headers values

func (*ContainerPruneOK) SetPayload

func (o *ContainerPruneOK) SetPayload(payload *ContainerPruneOKBody)

SetPayload sets the payload to the container prune o k response

func (*ContainerPruneOK) WithPayload

func (o *ContainerPruneOK) WithPayload(payload *ContainerPruneOKBody) *ContainerPruneOK

WithPayload adds the payload to the container prune o k response

func (*ContainerPruneOK) WriteResponse

func (o *ContainerPruneOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerPruneOKBody

type ContainerPruneOKBody struct {

	// Container IDs that were deleted
	ContainersDeleted []string `json:"ContainersDeleted"`

	// Disk space reclaimed in bytes
	SpaceReclaimed int64 `json:"SpaceReclaimed,omitempty"`
}

ContainerPruneOKBody ContainerPruneResponse

swagger:model ContainerPruneOKBody

func (*ContainerPruneOKBody) ContextValidate

func (o *ContainerPruneOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this container prune o k body based on context it is used

func (*ContainerPruneOKBody) MarshalBinary

func (o *ContainerPruneOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerPruneOKBody) UnmarshalBinary

func (o *ContainerPruneOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerPruneOKBody) Validate

func (o *ContainerPruneOKBody) Validate(formats strfmt.Registry) error

Validate validates this container prune o k body

type ContainerPruneParams

type ContainerPruneParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Filters to process on the prune list, encoded as JSON (a `map[string][]string`).

	Available filters:
	- `until=<timestamp>` Prune containers 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 containers with (or without, in case `label!=...` is used) the specified labels.

	  In: query
	*/
	Filters *string
}

ContainerPruneParams contains all the bound params for the container prune operation typically these are obtained from a http.Request

swagger:parameters ContainerPrune

func NewContainerPruneParams

func NewContainerPruneParams() ContainerPruneParams

NewContainerPruneParams creates a new ContainerPruneParams object

There are no default values defined in the spec.

func (*ContainerPruneParams) BindRequest

func (o *ContainerPruneParams) 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 NewContainerPruneParams() beforehand.

type ContainerPruneURL

type ContainerPruneURL struct {
	Filters *string
	// contains filtered or unexported fields
}

ContainerPruneURL generates an URL for the container prune operation

func (*ContainerPruneURL) Build

func (o *ContainerPruneURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerPruneURL) BuildFull

func (o *ContainerPruneURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerPruneURL) Must

func (o *ContainerPruneURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerPruneURL) SetBasePath

func (o *ContainerPruneURL) 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 (*ContainerPruneURL) String

func (o *ContainerPruneURL) String() string

String returns the string representation of the path with query string

func (*ContainerPruneURL) StringFull

func (o *ContainerPruneURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerPruneURL) WithBasePath

func (o *ContainerPruneURL) WithBasePath(bp string) *ContainerPruneURL

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 ContainerRename

type ContainerRename struct {
	Context *middleware.Context
	Handler ContainerRenameHandler
}
ContainerRename swagger:route POST /containers/{id}/rename Container containerRename

Rename a container

func NewContainerRename

func NewContainerRename(ctx *middleware.Context, handler ContainerRenameHandler) *ContainerRename

NewContainerRename creates a new http.Handler for the container rename operation

func (*ContainerRename) ServeHTTP

func (o *ContainerRename) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ContainerRenameConflict

type ContainerRenameConflict struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerRenameConflict name already in use

swagger:response containerRenameConflict

func NewContainerRenameConflict

func NewContainerRenameConflict() *ContainerRenameConflict

NewContainerRenameConflict creates ContainerRenameConflict with default headers values

func (*ContainerRenameConflict) SetPayload

func (o *ContainerRenameConflict) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container rename conflict response

func (*ContainerRenameConflict) WithPayload

WithPayload adds the payload to the container rename conflict response

func (*ContainerRenameConflict) WriteResponse

func (o *ContainerRenameConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerRenameHandler

type ContainerRenameHandler interface {
	Handle(ContainerRenameParams) middleware.Responder
}

ContainerRenameHandler interface for that can handle valid container rename params

type ContainerRenameHandlerFunc

type ContainerRenameHandlerFunc func(ContainerRenameParams) middleware.Responder

ContainerRenameHandlerFunc turns a function with the right signature into a container rename handler

func (ContainerRenameHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerRenameInternalServerError

type ContainerRenameInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerRenameInternalServerError server error

swagger:response containerRenameInternalServerError

func NewContainerRenameInternalServerError

func NewContainerRenameInternalServerError() *ContainerRenameInternalServerError

NewContainerRenameInternalServerError creates ContainerRenameInternalServerError with default headers values

func (*ContainerRenameInternalServerError) SetPayload

SetPayload sets the payload to the container rename internal server error response

func (*ContainerRenameInternalServerError) WithPayload

WithPayload adds the payload to the container rename internal server error response

func (*ContainerRenameInternalServerError) WriteResponse

WriteResponse to the client

type ContainerRenameNoContent

type ContainerRenameNoContent struct {
}

ContainerRenameNoContent no error

swagger:response containerRenameNoContent

func NewContainerRenameNoContent

func NewContainerRenameNoContent() *ContainerRenameNoContent

NewContainerRenameNoContent creates ContainerRenameNoContent with default headers values

func (*ContainerRenameNoContent) WriteResponse

func (o *ContainerRenameNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerRenameNotFound

type ContainerRenameNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerRenameNotFound no such container

swagger:response containerRenameNotFound

func NewContainerRenameNotFound

func NewContainerRenameNotFound() *ContainerRenameNotFound

NewContainerRenameNotFound creates ContainerRenameNotFound with default headers values

func (*ContainerRenameNotFound) SetPayload

func (o *ContainerRenameNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container rename not found response

func (*ContainerRenameNotFound) WithPayload

WithPayload adds the payload to the container rename not found response

func (*ContainerRenameNotFound) WriteResponse

func (o *ContainerRenameNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerRenameParams

type ContainerRenameParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID or name of the container
	  Required: true
	  In: path
	*/
	ID string
	/*New name for the container
	  Required: true
	  In: query
	*/
	Name string
}

ContainerRenameParams contains all the bound params for the container rename operation typically these are obtained from a http.Request

swagger:parameters ContainerRename

func NewContainerRenameParams

func NewContainerRenameParams() ContainerRenameParams

NewContainerRenameParams creates a new ContainerRenameParams object

There are no default values defined in the spec.

func (*ContainerRenameParams) BindRequest

func (o *ContainerRenameParams) 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 NewContainerRenameParams() beforehand.

type ContainerRenameURL

type ContainerRenameURL struct {
	ID string

	Name string
	// contains filtered or unexported fields
}

ContainerRenameURL generates an URL for the container rename operation

func (*ContainerRenameURL) Build

func (o *ContainerRenameURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerRenameURL) BuildFull

func (o *ContainerRenameURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerRenameURL) Must

func (o *ContainerRenameURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerRenameURL) SetBasePath

func (o *ContainerRenameURL) 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 (*ContainerRenameURL) String

func (o *ContainerRenameURL) String() string

String returns the string representation of the path with query string

func (*ContainerRenameURL) StringFull

func (o *ContainerRenameURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerRenameURL) WithBasePath

func (o *ContainerRenameURL) WithBasePath(bp string) *ContainerRenameURL

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 ContainerResize

type ContainerResize struct {
	Context *middleware.Context
	Handler ContainerResizeHandler
}
ContainerResize swagger:route POST /containers/{id}/resize Container containerResize

Resize a container TTY

Resize the TTY for a container.

func NewContainerResize

func NewContainerResize(ctx *middleware.Context, handler ContainerResizeHandler) *ContainerResize

NewContainerResize creates a new http.Handler for the container resize operation

func (*ContainerResize) ServeHTTP

func (o *ContainerResize) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ContainerResizeHandler

type ContainerResizeHandler interface {
	Handle(ContainerResizeParams) middleware.Responder
}

ContainerResizeHandler interface for that can handle valid container resize params

type ContainerResizeHandlerFunc

type ContainerResizeHandlerFunc func(ContainerResizeParams) middleware.Responder

ContainerResizeHandlerFunc turns a function with the right signature into a container resize handler

func (ContainerResizeHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerResizeInternalServerError

type ContainerResizeInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerResizeInternalServerError cannot resize container

swagger:response containerResizeInternalServerError

func NewContainerResizeInternalServerError

func NewContainerResizeInternalServerError() *ContainerResizeInternalServerError

NewContainerResizeInternalServerError creates ContainerResizeInternalServerError with default headers values

func (*ContainerResizeInternalServerError) SetPayload

SetPayload sets the payload to the container resize internal server error response

func (*ContainerResizeInternalServerError) WithPayload

WithPayload adds the payload to the container resize internal server error response

func (*ContainerResizeInternalServerError) WriteResponse

WriteResponse to the client

type ContainerResizeNotFound

type ContainerResizeNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerResizeNotFound no such container

swagger:response containerResizeNotFound

func NewContainerResizeNotFound

func NewContainerResizeNotFound() *ContainerResizeNotFound

NewContainerResizeNotFound creates ContainerResizeNotFound with default headers values

func (*ContainerResizeNotFound) SetPayload

func (o *ContainerResizeNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container resize not found response

func (*ContainerResizeNotFound) WithPayload

WithPayload adds the payload to the container resize not found response

func (*ContainerResizeNotFound) WriteResponse

func (o *ContainerResizeNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerResizeOK

type ContainerResizeOK struct {
}

ContainerResizeOK no error

swagger:response containerResizeOK

func NewContainerResizeOK

func NewContainerResizeOK() *ContainerResizeOK

NewContainerResizeOK creates ContainerResizeOK with default headers values

func (*ContainerResizeOK) WriteResponse

func (o *ContainerResizeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerResizeParams

type ContainerResizeParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Height of the TTY session in characters
	  In: query
	*/
	H *int64
	/*ID or name of the container
	  Required: true
	  In: path
	*/
	ID string
	/*Width of the TTY session in characters
	  In: query
	*/
	W *int64
}

ContainerResizeParams contains all the bound params for the container resize operation typically these are obtained from a http.Request

swagger:parameters ContainerResize

func NewContainerResizeParams

func NewContainerResizeParams() ContainerResizeParams

NewContainerResizeParams creates a new ContainerResizeParams object

There are no default values defined in the spec.

func (*ContainerResizeParams) BindRequest

func (o *ContainerResizeParams) 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 NewContainerResizeParams() beforehand.

type ContainerResizeURL

type ContainerResizeURL struct {
	ID string

	H *int64
	W *int64
	// contains filtered or unexported fields
}

ContainerResizeURL generates an URL for the container resize operation

func (*ContainerResizeURL) Build

func (o *ContainerResizeURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerResizeURL) BuildFull

func (o *ContainerResizeURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerResizeURL) Must

func (o *ContainerResizeURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerResizeURL) SetBasePath

func (o *ContainerResizeURL) 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 (*ContainerResizeURL) String

func (o *ContainerResizeURL) String() string

String returns the string representation of the path with query string

func (*ContainerResizeURL) StringFull

func (o *ContainerResizeURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerResizeURL) WithBasePath

func (o *ContainerResizeURL) WithBasePath(bp string) *ContainerResizeURL

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 ContainerRestart

type ContainerRestart struct {
	Context *middleware.Context
	Handler ContainerRestartHandler
}
ContainerRestart swagger:route POST /containers/{id}/restart Container containerRestart

Restart a container

func NewContainerRestart

func NewContainerRestart(ctx *middleware.Context, handler ContainerRestartHandler) *ContainerRestart

NewContainerRestart creates a new http.Handler for the container restart operation

func (*ContainerRestart) ServeHTTP

func (o *ContainerRestart) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ContainerRestartHandler

type ContainerRestartHandler interface {
	Handle(ContainerRestartParams) middleware.Responder
}

ContainerRestartHandler interface for that can handle valid container restart params

type ContainerRestartHandlerFunc

type ContainerRestartHandlerFunc func(ContainerRestartParams) middleware.Responder

ContainerRestartHandlerFunc turns a function with the right signature into a container restart handler

func (ContainerRestartHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerRestartInternalServerError

type ContainerRestartInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerRestartInternalServerError server error

swagger:response containerRestartInternalServerError

func NewContainerRestartInternalServerError

func NewContainerRestartInternalServerError() *ContainerRestartInternalServerError

NewContainerRestartInternalServerError creates ContainerRestartInternalServerError with default headers values

func (*ContainerRestartInternalServerError) SetPayload

SetPayload sets the payload to the container restart internal server error response

func (*ContainerRestartInternalServerError) WithPayload

WithPayload adds the payload to the container restart internal server error response

func (*ContainerRestartInternalServerError) WriteResponse

WriteResponse to the client

type ContainerRestartNoContent

type ContainerRestartNoContent struct {
}

ContainerRestartNoContent no error

swagger:response containerRestartNoContent

func NewContainerRestartNoContent

func NewContainerRestartNoContent() *ContainerRestartNoContent

NewContainerRestartNoContent creates ContainerRestartNoContent with default headers values

func (*ContainerRestartNoContent) WriteResponse

func (o *ContainerRestartNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerRestartNotFound

type ContainerRestartNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerRestartNotFound no such container

swagger:response containerRestartNotFound

func NewContainerRestartNotFound

func NewContainerRestartNotFound() *ContainerRestartNotFound

NewContainerRestartNotFound creates ContainerRestartNotFound with default headers values

func (*ContainerRestartNotFound) SetPayload

func (o *ContainerRestartNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container restart not found response

func (*ContainerRestartNotFound) WithPayload

WithPayload adds the payload to the container restart not found response

func (*ContainerRestartNotFound) WriteResponse

func (o *ContainerRestartNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerRestartParams

type ContainerRestartParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID or name of the container
	  Required: true
	  In: path
	*/
	ID string
	/*Number of seconds to wait before killing the container
	  In: query
	*/
	T *int64
}

ContainerRestartParams contains all the bound params for the container restart operation typically these are obtained from a http.Request

swagger:parameters ContainerRestart

func NewContainerRestartParams

func NewContainerRestartParams() ContainerRestartParams

NewContainerRestartParams creates a new ContainerRestartParams object

There are no default values defined in the spec.

func (*ContainerRestartParams) BindRequest

func (o *ContainerRestartParams) 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 NewContainerRestartParams() beforehand.

type ContainerRestartURL

type ContainerRestartURL struct {
	ID string

	T *int64
	// contains filtered or unexported fields
}

ContainerRestartURL generates an URL for the container restart operation

func (*ContainerRestartURL) Build

func (o *ContainerRestartURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerRestartURL) BuildFull

func (o *ContainerRestartURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerRestartURL) Must

func (o *ContainerRestartURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerRestartURL) SetBasePath

func (o *ContainerRestartURL) 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 (*ContainerRestartURL) String

func (o *ContainerRestartURL) String() string

String returns the string representation of the path with query string

func (*ContainerRestartURL) StringFull

func (o *ContainerRestartURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerRestartURL) WithBasePath

func (o *ContainerRestartURL) WithBasePath(bp string) *ContainerRestartURL

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 ContainerStart

type ContainerStart struct {
	Context *middleware.Context
	Handler ContainerStartHandler
}
ContainerStart swagger:route POST /containers/{id}/start Container containerStart

Start a container

func NewContainerStart

func NewContainerStart(ctx *middleware.Context, handler ContainerStartHandler) *ContainerStart

NewContainerStart creates a new http.Handler for the container start operation

func (*ContainerStart) ServeHTTP

func (o *ContainerStart) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ContainerStartHandler

type ContainerStartHandler interface {
	Handle(ContainerStartParams) middleware.Responder
}

ContainerStartHandler interface for that can handle valid container start params

type ContainerStartHandlerFunc

type ContainerStartHandlerFunc func(ContainerStartParams) middleware.Responder

ContainerStartHandlerFunc turns a function with the right signature into a container start handler

func (ContainerStartHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerStartInternalServerError

type ContainerStartInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerStartInternalServerError server error

swagger:response containerStartInternalServerError

func NewContainerStartInternalServerError

func NewContainerStartInternalServerError() *ContainerStartInternalServerError

NewContainerStartInternalServerError creates ContainerStartInternalServerError with default headers values

func (*ContainerStartInternalServerError) SetPayload

func (o *ContainerStartInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container start internal server error response

func (*ContainerStartInternalServerError) WithPayload

WithPayload adds the payload to the container start internal server error response

func (*ContainerStartInternalServerError) WriteResponse

func (o *ContainerStartInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerStartNoContent

type ContainerStartNoContent struct {
}

ContainerStartNoContent no error

swagger:response containerStartNoContent

func NewContainerStartNoContent

func NewContainerStartNoContent() *ContainerStartNoContent

NewContainerStartNoContent creates ContainerStartNoContent with default headers values

func (*ContainerStartNoContent) WriteResponse

func (o *ContainerStartNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerStartNotFound

type ContainerStartNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerStartNotFound no such container

swagger:response containerStartNotFound

func NewContainerStartNotFound

func NewContainerStartNotFound() *ContainerStartNotFound

NewContainerStartNotFound creates ContainerStartNotFound with default headers values

func (*ContainerStartNotFound) SetPayload

func (o *ContainerStartNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container start not found response

func (*ContainerStartNotFound) WithPayload

WithPayload adds the payload to the container start not found response

func (*ContainerStartNotFound) WriteResponse

func (o *ContainerStartNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerStartNotModified

type ContainerStartNotModified struct {
}

ContainerStartNotModified container already started

swagger:response containerStartNotModified

func NewContainerStartNotModified

func NewContainerStartNotModified() *ContainerStartNotModified

NewContainerStartNotModified creates ContainerStartNotModified with default headers values

func (*ContainerStartNotModified) WriteResponse

func (o *ContainerStartNotModified) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerStartParams

type ContainerStartParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Override the key sequence for detaching a container. Format is a
	single character `[a-Z]` or `ctrl-<value>` where `<value>` is one
	of: `a-z`, `@`, `^`, `[`, `,` or `_`.

	  In: query
	*/
	DetachKeys *string
	/*ID or name of the container
	  Required: true
	  In: path
	*/
	ID string
}

ContainerStartParams contains all the bound params for the container start operation typically these are obtained from a http.Request

swagger:parameters ContainerStart

func NewContainerStartParams

func NewContainerStartParams() ContainerStartParams

NewContainerStartParams creates a new ContainerStartParams object

There are no default values defined in the spec.

func (*ContainerStartParams) BindRequest

func (o *ContainerStartParams) 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 NewContainerStartParams() beforehand.

type ContainerStartURL

type ContainerStartURL struct {
	ID string

	DetachKeys *string
	// contains filtered or unexported fields
}

ContainerStartURL generates an URL for the container start operation

func (*ContainerStartURL) Build

func (o *ContainerStartURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerStartURL) BuildFull

func (o *ContainerStartURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerStartURL) Must

func (o *ContainerStartURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerStartURL) SetBasePath

func (o *ContainerStartURL) 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 (*ContainerStartURL) String

func (o *ContainerStartURL) String() string

String returns the string representation of the path with query string

func (*ContainerStartURL) StringFull

func (o *ContainerStartURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerStartURL) WithBasePath

func (o *ContainerStartURL) WithBasePath(bp string) *ContainerStartURL

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 ContainerStats

type ContainerStats struct {
	Context *middleware.Context
	Handler ContainerStatsHandler
}
ContainerStats swagger:route GET /containers/{id}/stats Container containerStats

Get container stats based on resource usage

This endpoint returns a live stream of a container’s resource usage statistics.

The `precpu_stats` is the CPU statistic of the *previous* read, and is used to calculate the CPU usage percentage. It is not an exact copy of the `cpu_stats` field.

If either `precpu_stats.online_cpus` or `cpu_stats.online_cpus` is nil then for compatibility with older daemons the length of the corresponding `cpu_usage.percpu_usage` array should be used.

On a cgroup v2 host, the following fields are not set * `blkio_stats`: all fields other than `io_service_bytes_recursive` * `cpu_stats`: `cpu_usage.percpu_usage` * `memory_stats`: `max_usage` and `failcnt` Also, `memory_stats.stats` fields are incompatible with cgroup v1.

To calculate the values shown by the `stats` command of the docker cli tool the following formulas can be used: * used_memory = `memory_stats.usage - memory_stats.stats.cache` * available_memory = `memory_stats.limit` * Memory usage % = `(used_memory / available_memory) * 100.0` * cpu_delta = `cpu_stats.cpu_usage.total_usage - precpu_stats.cpu_usage.total_usage` * system_cpu_delta = `cpu_stats.system_cpu_usage - precpu_stats.system_cpu_usage` * number_cpus = `lenght(cpu_stats.cpu_usage.percpu_usage)` or `cpu_stats.online_cpus` * CPU usage % = `(cpu_delta / system_cpu_delta) * number_cpus * 100.0`

func NewContainerStats

func NewContainerStats(ctx *middleware.Context, handler ContainerStatsHandler) *ContainerStats

NewContainerStats creates a new http.Handler for the container stats operation

func (*ContainerStats) ServeHTTP

func (o *ContainerStats) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ContainerStatsHandler

type ContainerStatsHandler interface {
	Handle(ContainerStatsParams) middleware.Responder
}

ContainerStatsHandler interface for that can handle valid container stats params

type ContainerStatsHandlerFunc

type ContainerStatsHandlerFunc func(ContainerStatsParams) middleware.Responder

ContainerStatsHandlerFunc turns a function with the right signature into a container stats handler

func (ContainerStatsHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerStatsInternalServerError

type ContainerStatsInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerStatsInternalServerError server error

swagger:response containerStatsInternalServerError

func NewContainerStatsInternalServerError

func NewContainerStatsInternalServerError() *ContainerStatsInternalServerError

NewContainerStatsInternalServerError creates ContainerStatsInternalServerError with default headers values

func (*ContainerStatsInternalServerError) SetPayload

func (o *ContainerStatsInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container stats internal server error response

func (*ContainerStatsInternalServerError) WithPayload

WithPayload adds the payload to the container stats internal server error response

func (*ContainerStatsInternalServerError) WriteResponse

func (o *ContainerStatsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerStatsNotFound

type ContainerStatsNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerStatsNotFound no such container

swagger:response containerStatsNotFound

func NewContainerStatsNotFound

func NewContainerStatsNotFound() *ContainerStatsNotFound

NewContainerStatsNotFound creates ContainerStatsNotFound with default headers values

func (*ContainerStatsNotFound) SetPayload

func (o *ContainerStatsNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container stats not found response

func (*ContainerStatsNotFound) WithPayload

WithPayload adds the payload to the container stats not found response

func (*ContainerStatsNotFound) WriteResponse

func (o *ContainerStatsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerStatsOK

type ContainerStatsOK struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

ContainerStatsOK no error

swagger:response containerStatsOK

func NewContainerStatsOK

func NewContainerStatsOK() *ContainerStatsOK

NewContainerStatsOK creates ContainerStatsOK with default headers values

func (*ContainerStatsOK) SetPayload

func (o *ContainerStatsOK) SetPayload(payload interface{})

SetPayload sets the payload to the container stats o k response

func (*ContainerStatsOK) WithPayload

func (o *ContainerStatsOK) WithPayload(payload interface{}) *ContainerStatsOK

WithPayload adds the payload to the container stats o k response

func (*ContainerStatsOK) WriteResponse

func (o *ContainerStatsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerStatsParams

type ContainerStatsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID or name of the container
	  Required: true
	  In: path
	*/
	ID string
	/*Only get a single stat instead of waiting for 2 cycles. Must be used
	with `stream=false`.

	  In: query
	  Default: false
	*/
	OneShot *bool
	/*Stream the output. If false, the stats will be output once and then
	it will disconnect.

	  In: query
	  Default: true
	*/
	Stream *bool
}

ContainerStatsParams contains all the bound params for the container stats operation typically these are obtained from a http.Request

swagger:parameters ContainerStats

func NewContainerStatsParams

func NewContainerStatsParams() ContainerStatsParams

NewContainerStatsParams creates a new ContainerStatsParams object with the default values initialized.

func (*ContainerStatsParams) BindRequest

func (o *ContainerStatsParams) 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 NewContainerStatsParams() beforehand.

type ContainerStatsURL

type ContainerStatsURL struct {
	ID string

	OneShot *bool
	Stream  *bool
	// contains filtered or unexported fields
}

ContainerStatsURL generates an URL for the container stats operation

func (*ContainerStatsURL) Build

func (o *ContainerStatsURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerStatsURL) BuildFull

func (o *ContainerStatsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerStatsURL) Must

func (o *ContainerStatsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerStatsURL) SetBasePath

func (o *ContainerStatsURL) 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 (*ContainerStatsURL) String

func (o *ContainerStatsURL) String() string

String returns the string representation of the path with query string

func (*ContainerStatsURL) StringFull

func (o *ContainerStatsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerStatsURL) WithBasePath

func (o *ContainerStatsURL) WithBasePath(bp string) *ContainerStatsURL

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 ContainerStop

type ContainerStop struct {
	Context *middleware.Context
	Handler ContainerStopHandler
}
ContainerStop swagger:route POST /containers/{id}/stop Container containerStop

Stop a container

func NewContainerStop

func NewContainerStop(ctx *middleware.Context, handler ContainerStopHandler) *ContainerStop

NewContainerStop creates a new http.Handler for the container stop operation

func (*ContainerStop) ServeHTTP

func (o *ContainerStop) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ContainerStopHandler

type ContainerStopHandler interface {
	Handle(ContainerStopParams) middleware.Responder
}

ContainerStopHandler interface for that can handle valid container stop params

type ContainerStopHandlerFunc

type ContainerStopHandlerFunc func(ContainerStopParams) middleware.Responder

ContainerStopHandlerFunc turns a function with the right signature into a container stop handler

func (ContainerStopHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerStopInternalServerError

type ContainerStopInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerStopInternalServerError server error

swagger:response containerStopInternalServerError

func NewContainerStopInternalServerError

func NewContainerStopInternalServerError() *ContainerStopInternalServerError

NewContainerStopInternalServerError creates ContainerStopInternalServerError with default headers values

func (*ContainerStopInternalServerError) SetPayload

func (o *ContainerStopInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container stop internal server error response

func (*ContainerStopInternalServerError) WithPayload

WithPayload adds the payload to the container stop internal server error response

func (*ContainerStopInternalServerError) WriteResponse

func (o *ContainerStopInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerStopNoContent

type ContainerStopNoContent struct {
}

ContainerStopNoContent no error

swagger:response containerStopNoContent

func NewContainerStopNoContent

func NewContainerStopNoContent() *ContainerStopNoContent

NewContainerStopNoContent creates ContainerStopNoContent with default headers values

func (*ContainerStopNoContent) WriteResponse

func (o *ContainerStopNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerStopNotFound

type ContainerStopNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerStopNotFound no such container

swagger:response containerStopNotFound

func NewContainerStopNotFound

func NewContainerStopNotFound() *ContainerStopNotFound

NewContainerStopNotFound creates ContainerStopNotFound with default headers values

func (*ContainerStopNotFound) SetPayload

func (o *ContainerStopNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container stop not found response

func (*ContainerStopNotFound) WithPayload

WithPayload adds the payload to the container stop not found response

func (*ContainerStopNotFound) WriteResponse

func (o *ContainerStopNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerStopNotModified

type ContainerStopNotModified struct {
}

ContainerStopNotModified container already stopped

swagger:response containerStopNotModified

func NewContainerStopNotModified

func NewContainerStopNotModified() *ContainerStopNotModified

NewContainerStopNotModified creates ContainerStopNotModified with default headers values

func (*ContainerStopNotModified) WriteResponse

func (o *ContainerStopNotModified) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerStopParams

type ContainerStopParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID or name of the container
	  Required: true
	  In: path
	*/
	ID string
	/*Number of seconds to wait before killing the container
	  In: query
	*/
	T *int64
}

ContainerStopParams contains all the bound params for the container stop operation typically these are obtained from a http.Request

swagger:parameters ContainerStop

func NewContainerStopParams

func NewContainerStopParams() ContainerStopParams

NewContainerStopParams creates a new ContainerStopParams object

There are no default values defined in the spec.

func (*ContainerStopParams) BindRequest

func (o *ContainerStopParams) 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 NewContainerStopParams() beforehand.

type ContainerStopURL

type ContainerStopURL struct {
	ID string

	T *int64
	// contains filtered or unexported fields
}

ContainerStopURL generates an URL for the container stop operation

func (*ContainerStopURL) Build

func (o *ContainerStopURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerStopURL) BuildFull

func (o *ContainerStopURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerStopURL) Must

func (o *ContainerStopURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerStopURL) SetBasePath

func (o *ContainerStopURL) 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 (*ContainerStopURL) String

func (o *ContainerStopURL) String() string

String returns the string representation of the path with query string

func (*ContainerStopURL) StringFull

func (o *ContainerStopURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerStopURL) WithBasePath

func (o *ContainerStopURL) WithBasePath(bp string) *ContainerStopURL

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 ContainerTop

type ContainerTop struct {
	Context *middleware.Context
	Handler ContainerTopHandler
}
ContainerTop swagger:route GET /containers/{id}/top Container containerTop

List processes running inside a container

On Unix systems, this is done by running the `ps` command. This endpoint is not supported on Windows.

func NewContainerTop

func NewContainerTop(ctx *middleware.Context, handler ContainerTopHandler) *ContainerTop

NewContainerTop creates a new http.Handler for the container top operation

func (*ContainerTop) ServeHTTP

func (o *ContainerTop) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ContainerTopHandler

type ContainerTopHandler interface {
	Handle(ContainerTopParams) middleware.Responder
}

ContainerTopHandler interface for that can handle valid container top params

type ContainerTopHandlerFunc

type ContainerTopHandlerFunc func(ContainerTopParams) middleware.Responder

ContainerTopHandlerFunc turns a function with the right signature into a container top handler

func (ContainerTopHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerTopInternalServerError

type ContainerTopInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerTopInternalServerError server error

swagger:response containerTopInternalServerError

func NewContainerTopInternalServerError

func NewContainerTopInternalServerError() *ContainerTopInternalServerError

NewContainerTopInternalServerError creates ContainerTopInternalServerError with default headers values

func (*ContainerTopInternalServerError) SetPayload

func (o *ContainerTopInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container top internal server error response

func (*ContainerTopInternalServerError) WithPayload

WithPayload adds the payload to the container top internal server error response

func (*ContainerTopInternalServerError) WriteResponse

func (o *ContainerTopInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerTopNotFound

type ContainerTopNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerTopNotFound no such container

swagger:response containerTopNotFound

func NewContainerTopNotFound

func NewContainerTopNotFound() *ContainerTopNotFound

NewContainerTopNotFound creates ContainerTopNotFound with default headers values

func (*ContainerTopNotFound) SetPayload

func (o *ContainerTopNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container top not found response

func (*ContainerTopNotFound) WithPayload

WithPayload adds the payload to the container top not found response

func (*ContainerTopNotFound) WriteResponse

func (o *ContainerTopNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerTopOK

type ContainerTopOK struct {

	/*
	  In: Body
	*/
	Payload *ContainerTopOKBody `json:"body,omitempty"`
}

ContainerTopOK no error

swagger:response containerTopOK

func NewContainerTopOK

func NewContainerTopOK() *ContainerTopOK

NewContainerTopOK creates ContainerTopOK with default headers values

func (*ContainerTopOK) SetPayload

func (o *ContainerTopOK) SetPayload(payload *ContainerTopOKBody)

SetPayload sets the payload to the container top o k response

func (*ContainerTopOK) WithPayload

func (o *ContainerTopOK) WithPayload(payload *ContainerTopOKBody) *ContainerTopOK

WithPayload adds the payload to the container top o k response

func (*ContainerTopOK) WriteResponse

func (o *ContainerTopOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerTopOKBody

type ContainerTopOKBody struct {

	// Each process running in the container, where each is process
	// is an array of values corresponding to the titles.
	//
	Processes [][]string `json:"Processes"`

	// The ps column titles
	Titles []string `json:"Titles"`
}

ContainerTopOKBody ContainerTopResponse

OK response to ContainerTop operation

swagger:model ContainerTopOKBody

func (*ContainerTopOKBody) ContextValidate

func (o *ContainerTopOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this container top o k body based on context it is used

func (*ContainerTopOKBody) MarshalBinary

func (o *ContainerTopOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerTopOKBody) UnmarshalBinary

func (o *ContainerTopOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerTopOKBody) Validate

func (o *ContainerTopOKBody) Validate(formats strfmt.Registry) error

Validate validates this container top o k body

type ContainerTopParams

type ContainerTopParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID or name of the container
	  Required: true
	  In: path
	*/
	ID string
	/*The arguments to pass to `ps`. For example, `aux`
	  In: query
	  Default: "-ef"
	*/
	PsArgs *string
}

ContainerTopParams contains all the bound params for the container top operation typically these are obtained from a http.Request

swagger:parameters ContainerTop

func NewContainerTopParams

func NewContainerTopParams() ContainerTopParams

NewContainerTopParams creates a new ContainerTopParams object with the default values initialized.

func (*ContainerTopParams) BindRequest

func (o *ContainerTopParams) 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 NewContainerTopParams() beforehand.

type ContainerTopURL

type ContainerTopURL struct {
	ID string

	PsArgs *string
	// contains filtered or unexported fields
}

ContainerTopURL generates an URL for the container top operation

func (*ContainerTopURL) Build

func (o *ContainerTopURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerTopURL) BuildFull

func (o *ContainerTopURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerTopURL) Must

func (o *ContainerTopURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerTopURL) SetBasePath

func (o *ContainerTopURL) 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 (*ContainerTopURL) String

func (o *ContainerTopURL) String() string

String returns the string representation of the path with query string

func (*ContainerTopURL) StringFull

func (o *ContainerTopURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerTopURL) WithBasePath

func (o *ContainerTopURL) WithBasePath(bp string) *ContainerTopURL

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 ContainerUnpause

type ContainerUnpause struct {
	Context *middleware.Context
	Handler ContainerUnpauseHandler
}
ContainerUnpause swagger:route POST /containers/{id}/unpause Container containerUnpause

Unpause a container

Resume a container which has been paused.

func NewContainerUnpause

func NewContainerUnpause(ctx *middleware.Context, handler ContainerUnpauseHandler) *ContainerUnpause

NewContainerUnpause creates a new http.Handler for the container unpause operation

func (*ContainerUnpause) ServeHTTP

func (o *ContainerUnpause) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ContainerUnpauseHandler

type ContainerUnpauseHandler interface {
	Handle(ContainerUnpauseParams) middleware.Responder
}

ContainerUnpauseHandler interface for that can handle valid container unpause params

type ContainerUnpauseHandlerFunc

type ContainerUnpauseHandlerFunc func(ContainerUnpauseParams) middleware.Responder

ContainerUnpauseHandlerFunc turns a function with the right signature into a container unpause handler

func (ContainerUnpauseHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerUnpauseInternalServerError

type ContainerUnpauseInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerUnpauseInternalServerError server error

swagger:response containerUnpauseInternalServerError

func NewContainerUnpauseInternalServerError

func NewContainerUnpauseInternalServerError() *ContainerUnpauseInternalServerError

NewContainerUnpauseInternalServerError creates ContainerUnpauseInternalServerError with default headers values

func (*ContainerUnpauseInternalServerError) SetPayload

SetPayload sets the payload to the container unpause internal server error response

func (*ContainerUnpauseInternalServerError) WithPayload

WithPayload adds the payload to the container unpause internal server error response

func (*ContainerUnpauseInternalServerError) WriteResponse

WriteResponse to the client

type ContainerUnpauseNoContent

type ContainerUnpauseNoContent struct {
}

ContainerUnpauseNoContent no error

swagger:response containerUnpauseNoContent

func NewContainerUnpauseNoContent

func NewContainerUnpauseNoContent() *ContainerUnpauseNoContent

NewContainerUnpauseNoContent creates ContainerUnpauseNoContent with default headers values

func (*ContainerUnpauseNoContent) WriteResponse

func (o *ContainerUnpauseNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerUnpauseNotFound

type ContainerUnpauseNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerUnpauseNotFound no such container

swagger:response containerUnpauseNotFound

func NewContainerUnpauseNotFound

func NewContainerUnpauseNotFound() *ContainerUnpauseNotFound

NewContainerUnpauseNotFound creates ContainerUnpauseNotFound with default headers values

func (*ContainerUnpauseNotFound) SetPayload

func (o *ContainerUnpauseNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container unpause not found response

func (*ContainerUnpauseNotFound) WithPayload

WithPayload adds the payload to the container unpause not found response

func (*ContainerUnpauseNotFound) WriteResponse

func (o *ContainerUnpauseNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerUnpauseParams

type ContainerUnpauseParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID or name of the container
	  Required: true
	  In: path
	*/
	ID string
}

ContainerUnpauseParams contains all the bound params for the container unpause operation typically these are obtained from a http.Request

swagger:parameters ContainerUnpause

func NewContainerUnpauseParams

func NewContainerUnpauseParams() ContainerUnpauseParams

NewContainerUnpauseParams creates a new ContainerUnpauseParams object

There are no default values defined in the spec.

func (*ContainerUnpauseParams) BindRequest

func (o *ContainerUnpauseParams) 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 NewContainerUnpauseParams() beforehand.

type ContainerUnpauseURL

type ContainerUnpauseURL struct {
	ID string
	// contains filtered or unexported fields
}

ContainerUnpauseURL generates an URL for the container unpause operation

func (*ContainerUnpauseURL) Build

func (o *ContainerUnpauseURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerUnpauseURL) BuildFull

func (o *ContainerUnpauseURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerUnpauseURL) Must

func (o *ContainerUnpauseURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerUnpauseURL) SetBasePath

func (o *ContainerUnpauseURL) 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 (*ContainerUnpauseURL) String

func (o *ContainerUnpauseURL) String() string

String returns the string representation of the path with query string

func (*ContainerUnpauseURL) StringFull

func (o *ContainerUnpauseURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerUnpauseURL) WithBasePath

func (o *ContainerUnpauseURL) WithBasePath(bp string) *ContainerUnpauseURL

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 ContainerUpdate

type ContainerUpdate struct {
	Context *middleware.Context
	Handler ContainerUpdateHandler
}
ContainerUpdate swagger:route POST /containers/{id}/update Container containerUpdate

Update a container

Change various configuration options of a container without having to recreate it.

func NewContainerUpdate

func NewContainerUpdate(ctx *middleware.Context, handler ContainerUpdateHandler) *ContainerUpdate

NewContainerUpdate creates a new http.Handler for the container update operation

func (*ContainerUpdate) ServeHTTP

func (o *ContainerUpdate) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ContainerUpdateBody

type ContainerUpdateBody struct {
	models.Resources

	// restart policy
	RestartPolicy *models.RestartPolicy `json:"RestartPolicy,omitempty"`
}

ContainerUpdateBody container update body Example: {"BlkioWeight":300,"CpuPeriod":100000,"CpuQuota":50000,"CpuRealtimePeriod":1000000,"CpuRealtimeRuntime":10000,"CpuShares":512,"CpusetCpus":"0,1","CpusetMems":"0","KernelMemory":52428800,"Memory":314572800,"MemoryReservation":209715200,"MemorySwap":514288000,"RestartPolicy":{"MaximumRetryCount":4,"Name":"on-failure"}}

swagger:model ContainerUpdateBody

func (*ContainerUpdateBody) ContextValidate

func (o *ContainerUpdateBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this container update body based on the context it is used

func (*ContainerUpdateBody) MarshalBinary

func (o *ContainerUpdateBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ContainerUpdateBody) MarshalJSON

func (o ContainerUpdateBody) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ContainerUpdateBody) UnmarshalBinary

func (o *ContainerUpdateBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerUpdateBody) UnmarshalJSON

func (o *ContainerUpdateBody) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ContainerUpdateBody) Validate

func (o *ContainerUpdateBody) Validate(formats strfmt.Registry) error

Validate validates this container update body

type ContainerUpdateHandler

type ContainerUpdateHandler interface {
	Handle(ContainerUpdateParams) middleware.Responder
}

ContainerUpdateHandler interface for that can handle valid container update params

type ContainerUpdateHandlerFunc

type ContainerUpdateHandlerFunc func(ContainerUpdateParams) middleware.Responder

ContainerUpdateHandlerFunc turns a function with the right signature into a container update handler

func (ContainerUpdateHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerUpdateInternalServerError

type ContainerUpdateInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerUpdateInternalServerError server error

swagger:response containerUpdateInternalServerError

func NewContainerUpdateInternalServerError

func NewContainerUpdateInternalServerError() *ContainerUpdateInternalServerError

NewContainerUpdateInternalServerError creates ContainerUpdateInternalServerError with default headers values

func (*ContainerUpdateInternalServerError) SetPayload

SetPayload sets the payload to the container update internal server error response

func (*ContainerUpdateInternalServerError) WithPayload

WithPayload adds the payload to the container update internal server error response

func (*ContainerUpdateInternalServerError) WriteResponse

WriteResponse to the client

type ContainerUpdateNotFound

type ContainerUpdateNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerUpdateNotFound no such container

swagger:response containerUpdateNotFound

func NewContainerUpdateNotFound

func NewContainerUpdateNotFound() *ContainerUpdateNotFound

NewContainerUpdateNotFound creates ContainerUpdateNotFound with default headers values

func (*ContainerUpdateNotFound) SetPayload

func (o *ContainerUpdateNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container update not found response

func (*ContainerUpdateNotFound) WithPayload

WithPayload adds the payload to the container update not found response

func (*ContainerUpdateNotFound) WriteResponse

func (o *ContainerUpdateNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerUpdateOK

type ContainerUpdateOK struct {

	/*
	  In: Body
	*/
	Payload *ContainerUpdateOKBody `json:"body,omitempty"`
}

ContainerUpdateOK The container has been updated.

swagger:response containerUpdateOK

func NewContainerUpdateOK

func NewContainerUpdateOK() *ContainerUpdateOK

NewContainerUpdateOK creates ContainerUpdateOK with default headers values

func (*ContainerUpdateOK) SetPayload

func (o *ContainerUpdateOK) SetPayload(payload *ContainerUpdateOKBody)

SetPayload sets the payload to the container update o k response

func (*ContainerUpdateOK) WithPayload

func (o *ContainerUpdateOK) WithPayload(payload *ContainerUpdateOKBody) *ContainerUpdateOK

WithPayload adds the payload to the container update o k response

func (*ContainerUpdateOK) WriteResponse

func (o *ContainerUpdateOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerUpdateOKBody

type ContainerUpdateOKBody struct {

	// warnings
	Warnings []string `json:"Warnings"`
}

ContainerUpdateOKBody ContainerUpdateResponse

OK response to ContainerUpdate operation

swagger:model ContainerUpdateOKBody

func (*ContainerUpdateOKBody) ContextValidate

func (o *ContainerUpdateOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this container update o k body based on context it is used

func (*ContainerUpdateOKBody) MarshalBinary

func (o *ContainerUpdateOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerUpdateOKBody) UnmarshalBinary

func (o *ContainerUpdateOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerUpdateOKBody) Validate

func (o *ContainerUpdateOKBody) Validate(formats strfmt.Registry) error

Validate validates this container update o k body

type ContainerUpdateParams

type ContainerUpdateParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID or name of the container
	  Required: true
	  In: path
	*/
	ID string
	/*
	  Required: true
	  In: body
	*/
	Update ContainerUpdateBody
}

ContainerUpdateParams contains all the bound params for the container update operation typically these are obtained from a http.Request

swagger:parameters ContainerUpdate

func NewContainerUpdateParams

func NewContainerUpdateParams() ContainerUpdateParams

NewContainerUpdateParams creates a new ContainerUpdateParams object

There are no default values defined in the spec.

func (*ContainerUpdateParams) BindRequest

func (o *ContainerUpdateParams) 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 NewContainerUpdateParams() beforehand.

type ContainerUpdateURL

type ContainerUpdateURL struct {
	ID string
	// contains filtered or unexported fields
}

ContainerUpdateURL generates an URL for the container update operation

func (*ContainerUpdateURL) Build

func (o *ContainerUpdateURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerUpdateURL) BuildFull

func (o *ContainerUpdateURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerUpdateURL) Must

func (o *ContainerUpdateURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerUpdateURL) SetBasePath

func (o *ContainerUpdateURL) 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 (*ContainerUpdateURL) String

func (o *ContainerUpdateURL) String() string

String returns the string representation of the path with query string

func (*ContainerUpdateURL) StringFull

func (o *ContainerUpdateURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerUpdateURL) WithBasePath

func (o *ContainerUpdateURL) WithBasePath(bp string) *ContainerUpdateURL

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 ContainerWait

type ContainerWait struct {
	Context *middleware.Context
	Handler ContainerWaitHandler
}
ContainerWait swagger:route POST /containers/{id}/wait Container containerWait

Wait for a container

Block until a container stops, then returns the exit code.

func NewContainerWait

func NewContainerWait(ctx *middleware.Context, handler ContainerWaitHandler) *ContainerWait

NewContainerWait creates a new http.Handler for the container wait operation

func (*ContainerWait) ServeHTTP

func (o *ContainerWait) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ContainerWaitHandler

type ContainerWaitHandler interface {
	Handle(ContainerWaitParams) middleware.Responder
}

ContainerWaitHandler interface for that can handle valid container wait params

type ContainerWaitHandlerFunc

type ContainerWaitHandlerFunc func(ContainerWaitParams) middleware.Responder

ContainerWaitHandlerFunc turns a function with the right signature into a container wait handler

func (ContainerWaitHandlerFunc) Handle

Handle executing the request and returning a response

type ContainerWaitInternalServerError

type ContainerWaitInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerWaitInternalServerError server error

swagger:response containerWaitInternalServerError

func NewContainerWaitInternalServerError

func NewContainerWaitInternalServerError() *ContainerWaitInternalServerError

NewContainerWaitInternalServerError creates ContainerWaitInternalServerError with default headers values

func (*ContainerWaitInternalServerError) SetPayload

func (o *ContainerWaitInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container wait internal server error response

func (*ContainerWaitInternalServerError) WithPayload

WithPayload adds the payload to the container wait internal server error response

func (*ContainerWaitInternalServerError) WriteResponse

func (o *ContainerWaitInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerWaitNotFound

type ContainerWaitNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ContainerWaitNotFound no such container

swagger:response containerWaitNotFound

func NewContainerWaitNotFound

func NewContainerWaitNotFound() *ContainerWaitNotFound

NewContainerWaitNotFound creates ContainerWaitNotFound with default headers values

func (*ContainerWaitNotFound) SetPayload

func (o *ContainerWaitNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the container wait not found response

func (*ContainerWaitNotFound) WithPayload

WithPayload adds the payload to the container wait not found response

func (*ContainerWaitNotFound) WriteResponse

func (o *ContainerWaitNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerWaitOK

type ContainerWaitOK struct {

	/*
	  In: Body
	*/
	Payload *ContainerWaitOKBody `json:"body,omitempty"`
}

ContainerWaitOK The container has exit.

swagger:response containerWaitOK

func NewContainerWaitOK

func NewContainerWaitOK() *ContainerWaitOK

NewContainerWaitOK creates ContainerWaitOK with default headers values

func (*ContainerWaitOK) SetPayload

func (o *ContainerWaitOK) SetPayload(payload *ContainerWaitOKBody)

SetPayload sets the payload to the container wait o k response

func (*ContainerWaitOK) WithPayload

func (o *ContainerWaitOK) WithPayload(payload *ContainerWaitOKBody) *ContainerWaitOK

WithPayload adds the payload to the container wait o k response

func (*ContainerWaitOK) WriteResponse

func (o *ContainerWaitOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ContainerWaitOKBody

type ContainerWaitOKBody struct {

	// error
	Error *ContainerWaitOKBodyError `json:"Error,omitempty"`

	// Exit code of the container
	// Required: true
	StatusCode int64 `json:"StatusCode"`
}

ContainerWaitOKBody ContainerWaitResponse

OK response to ContainerWait operation

swagger:model ContainerWaitOKBody

func (*ContainerWaitOKBody) ContextValidate

func (o *ContainerWaitOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this container wait o k body based on the context it is used

func (*ContainerWaitOKBody) MarshalBinary

func (o *ContainerWaitOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerWaitOKBody) UnmarshalBinary

func (o *ContainerWaitOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerWaitOKBody) Validate

func (o *ContainerWaitOKBody) Validate(formats strfmt.Registry) error

Validate validates this container wait o k body

type ContainerWaitOKBodyError

type ContainerWaitOKBodyError struct {

	// Details of an error
	Message string `json:"Message,omitempty"`
}

ContainerWaitOKBodyError container waiting error, if any

swagger:model ContainerWaitOKBodyError

func (*ContainerWaitOKBodyError) ContextValidate

func (o *ContainerWaitOKBodyError) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this container wait o k body error based on context it is used

func (*ContainerWaitOKBodyError) MarshalBinary

func (o *ContainerWaitOKBodyError) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerWaitOKBodyError) UnmarshalBinary

func (o *ContainerWaitOKBodyError) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerWaitOKBodyError) Validate

func (o *ContainerWaitOKBodyError) Validate(formats strfmt.Registry) error

Validate validates this container wait o k body error

type ContainerWaitParams

type ContainerWaitParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Wait until a container state reaches the given condition, either
	'not-running' (default), 'next-exit', or 'removed'.

	  In: query
	  Default: "not-running"
	*/
	Condition *string
	/*ID or name of the container
	  Required: true
	  In: path
	*/
	ID string
}

ContainerWaitParams contains all the bound params for the container wait operation typically these are obtained from a http.Request

swagger:parameters ContainerWait

func NewContainerWaitParams

func NewContainerWaitParams() ContainerWaitParams

NewContainerWaitParams creates a new ContainerWaitParams object with the default values initialized.

func (*ContainerWaitParams) BindRequest

func (o *ContainerWaitParams) 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 NewContainerWaitParams() beforehand.

type ContainerWaitURL

type ContainerWaitURL struct {
	ID string

	Condition *string
	// contains filtered or unexported fields
}

ContainerWaitURL generates an URL for the container wait operation

func (*ContainerWaitURL) Build

func (o *ContainerWaitURL) Build() (*url.URL, error)

Build a url path and query string

func (*ContainerWaitURL) BuildFull

func (o *ContainerWaitURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ContainerWaitURL) Must

func (o *ContainerWaitURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ContainerWaitURL) SetBasePath

func (o *ContainerWaitURL) 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 (*ContainerWaitURL) String

func (o *ContainerWaitURL) String() string

String returns the string representation of the path with query string

func (*ContainerWaitURL) StringFull

func (o *ContainerWaitURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ContainerWaitURL) WithBasePath

func (o *ContainerWaitURL) WithBasePath(bp string) *ContainerWaitURL

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 PutContainerArchive

type PutContainerArchive struct {
	Context *middleware.Context
	Handler PutContainerArchiveHandler
}
PutContainerArchive swagger:route PUT /containers/{id}/archive Container putContainerArchive

Extract an archive of files or folders to a directory in a container

Upload a tar archive to be extracted to a path in the filesystem of container id.

func NewPutContainerArchive

func NewPutContainerArchive(ctx *middleware.Context, handler PutContainerArchiveHandler) *PutContainerArchive

NewPutContainerArchive creates a new http.Handler for the put container archive operation

func (*PutContainerArchive) ServeHTTP

func (o *PutContainerArchive) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type PutContainerArchiveBadRequest

type PutContainerArchiveBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

PutContainerArchiveBadRequest Bad parameter

swagger:response putContainerArchiveBadRequest

func NewPutContainerArchiveBadRequest

func NewPutContainerArchiveBadRequest() *PutContainerArchiveBadRequest

NewPutContainerArchiveBadRequest creates PutContainerArchiveBadRequest with default headers values

func (*PutContainerArchiveBadRequest) SetPayload

func (o *PutContainerArchiveBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the put container archive bad request response

func (*PutContainerArchiveBadRequest) WithPayload

WithPayload adds the payload to the put container archive bad request response

func (*PutContainerArchiveBadRequest) WriteResponse

func (o *PutContainerArchiveBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PutContainerArchiveForbidden

type PutContainerArchiveForbidden struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

PutContainerArchiveForbidden Permission denied, the volume or container rootfs is marked as read-only.

swagger:response putContainerArchiveForbidden

func NewPutContainerArchiveForbidden

func NewPutContainerArchiveForbidden() *PutContainerArchiveForbidden

NewPutContainerArchiveForbidden creates PutContainerArchiveForbidden with default headers values

func (*PutContainerArchiveForbidden) SetPayload

func (o *PutContainerArchiveForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the put container archive forbidden response

func (*PutContainerArchiveForbidden) WithPayload

WithPayload adds the payload to the put container archive forbidden response

func (*PutContainerArchiveForbidden) WriteResponse

func (o *PutContainerArchiveForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PutContainerArchiveHandler

type PutContainerArchiveHandler interface {
	Handle(PutContainerArchiveParams) middleware.Responder
}

PutContainerArchiveHandler interface for that can handle valid put container archive params

type PutContainerArchiveHandlerFunc

type PutContainerArchiveHandlerFunc func(PutContainerArchiveParams) middleware.Responder

PutContainerArchiveHandlerFunc turns a function with the right signature into a put container archive handler

func (PutContainerArchiveHandlerFunc) Handle

Handle executing the request and returning a response

type PutContainerArchiveInternalServerError

type PutContainerArchiveInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

PutContainerArchiveInternalServerError Server error

swagger:response putContainerArchiveInternalServerError

func NewPutContainerArchiveInternalServerError

func NewPutContainerArchiveInternalServerError() *PutContainerArchiveInternalServerError

NewPutContainerArchiveInternalServerError creates PutContainerArchiveInternalServerError with default headers values

func (*PutContainerArchiveInternalServerError) SetPayload

SetPayload sets the payload to the put container archive internal server error response

func (*PutContainerArchiveInternalServerError) WithPayload

WithPayload adds the payload to the put container archive internal server error response

func (*PutContainerArchiveInternalServerError) WriteResponse

WriteResponse to the client

type PutContainerArchiveNotFound

type PutContainerArchiveNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

PutContainerArchiveNotFound No such container or path does not exist inside the container

swagger:response putContainerArchiveNotFound

func NewPutContainerArchiveNotFound

func NewPutContainerArchiveNotFound() *PutContainerArchiveNotFound

NewPutContainerArchiveNotFound creates PutContainerArchiveNotFound with default headers values

func (*PutContainerArchiveNotFound) SetPayload

func (o *PutContainerArchiveNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the put container archive not found response

func (*PutContainerArchiveNotFound) WithPayload

WithPayload adds the payload to the put container archive not found response

func (*PutContainerArchiveNotFound) WriteResponse

func (o *PutContainerArchiveNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PutContainerArchiveOK

type PutContainerArchiveOK struct {
}

PutContainerArchiveOK The content was extracted successfully

swagger:response putContainerArchiveOK

func NewPutContainerArchiveOK

func NewPutContainerArchiveOK() *PutContainerArchiveOK

NewPutContainerArchiveOK creates PutContainerArchiveOK with default headers values

func (*PutContainerArchiveOK) WriteResponse

func (o *PutContainerArchiveOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PutContainerArchiveParams

type PutContainerArchiveParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*If `1`, `true`, then it will copy UID/GID maps to the dest file or
	dir

	  In: query
	*/
	CopyUIDGID *string
	/*ID or name of the container
	  Required: true
	  In: path
	*/
	ID string
	/*The input stream must be a tar archive compressed with one of the
	following algorithms: `identity` (no compression), `gzip`, `bzip2`,
	or `xz`.

	  Required: true
	  In: body
	*/
	InputStream io.ReadCloser
	/*If `1`, `true`, or `True` then it will be an error if unpacking the
	given content would cause an existing directory to be replaced with
	a non-directory and vice versa.

	  In: query
	*/
	NoOverwriteDirNonDir *string
	/*Path to a directory in the container to extract the archive’s contents into.
	  Required: true
	  In: query
	*/
	Path string
}

PutContainerArchiveParams contains all the bound params for the put container archive operation typically these are obtained from a http.Request

swagger:parameters PutContainerArchive

func NewPutContainerArchiveParams

func NewPutContainerArchiveParams() PutContainerArchiveParams

NewPutContainerArchiveParams creates a new PutContainerArchiveParams object

There are no default values defined in the spec.

func (*PutContainerArchiveParams) BindRequest

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 NewPutContainerArchiveParams() beforehand.

type PutContainerArchiveURL

type PutContainerArchiveURL struct {
	ID string

	CopyUIDGID           *string
	NoOverwriteDirNonDir *string
	Path                 string
	// contains filtered or unexported fields
}

PutContainerArchiveURL generates an URL for the put container archive operation

func (*PutContainerArchiveURL) Build

func (o *PutContainerArchiveURL) Build() (*url.URL, error)

Build a url path and query string

func (*PutContainerArchiveURL) BuildFull

func (o *PutContainerArchiveURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PutContainerArchiveURL) Must

func (o *PutContainerArchiveURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*PutContainerArchiveURL) SetBasePath

func (o *PutContainerArchiveURL) 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 (*PutContainerArchiveURL) String

func (o *PutContainerArchiveURL) String() string

String returns the string representation of the path with query string

func (*PutContainerArchiveURL) StringFull

func (o *PutContainerArchiveURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PutContainerArchiveURL) WithBasePath

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL