Documentation
¶
Index ¶
- Constants
- type ContainerExec
- type ContainerExecBody
- type ContainerExecConflict
- type ContainerExecCreated
- type ContainerExecHandler
- type ContainerExecHandlerFunc
- type ContainerExecInternalServerError
- func (o *ContainerExecInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *ContainerExecInternalServerError) WithPayload(payload *models.ErrorResponse) *ContainerExecInternalServerError
- func (o *ContainerExecInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ContainerExecNotFound
- type ContainerExecParams
- type ContainerExecURL
- func (o *ContainerExecURL) Build() (*url.URL, error)
- func (o *ContainerExecURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ContainerExecURL) Must(u *url.URL, err error) *url.URL
- func (o *ContainerExecURL) SetBasePath(bp string)
- func (o *ContainerExecURL) String() string
- func (o *ContainerExecURL) StringFull(scheme, host string) string
- func (o *ContainerExecURL) WithBasePath(bp string) *ContainerExecURL
- type ExecInspect
- type ExecInspectHandler
- type ExecInspectHandlerFunc
- type ExecInspectInternalServerError
- func (o *ExecInspectInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *ExecInspectInternalServerError) WithPayload(payload *models.ErrorResponse) *ExecInspectInternalServerError
- func (o *ExecInspectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ExecInspectNotFound
- type ExecInspectOK
- type ExecInspectOKBody
- type ExecInspectParams
- type ExecInspectURL
- func (o *ExecInspectURL) Build() (*url.URL, error)
- func (o *ExecInspectURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ExecInspectURL) Must(u *url.URL, err error) *url.URL
- func (o *ExecInspectURL) SetBasePath(bp string)
- func (o *ExecInspectURL) String() string
- func (o *ExecInspectURL) StringFull(scheme, host string) string
- func (o *ExecInspectURL) WithBasePath(bp string) *ExecInspectURL
- type ExecResize
- type ExecResizeCreated
- type ExecResizeHandler
- type ExecResizeHandlerFunc
- type ExecResizeNotFound
- type ExecResizeParams
- type ExecResizeURL
- func (o *ExecResizeURL) Build() (*url.URL, error)
- func (o *ExecResizeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ExecResizeURL) Must(u *url.URL, err error) *url.URL
- func (o *ExecResizeURL) SetBasePath(bp string)
- func (o *ExecResizeURL) String() string
- func (o *ExecResizeURL) StringFull(scheme, host string) string
- func (o *ExecResizeURL) WithBasePath(bp string) *ExecResizeURL
- type ExecStart
- type ExecStartBody
- type ExecStartConflict
- type ExecStartHandler
- type ExecStartHandlerFunc
- type ExecStartNotFound
- type ExecStartOK
- type ExecStartParams
- type ExecStartURL
- func (o *ExecStartURL) Build() (*url.URL, error)
- func (o *ExecStartURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ExecStartURL) Must(u *url.URL, err error) *url.URL
- func (o *ExecStartURL) SetBasePath(bp string)
- func (o *ExecStartURL) String() string
- func (o *ExecStartURL) StringFull(scheme, host string) string
- func (o *ExecStartURL) WithBasePath(bp string) *ExecStartURL
Constants ¶
const ContainerExecConflictCode int = 409
ContainerExecConflictCode is the HTTP code returned for type ContainerExecConflict
const ContainerExecCreatedCode int = 201
ContainerExecCreatedCode is the HTTP code returned for type ContainerExecCreated
const ContainerExecInternalServerErrorCode int = 500
ContainerExecInternalServerErrorCode is the HTTP code returned for type ContainerExecInternalServerError
const ContainerExecNotFoundCode int = 404
ContainerExecNotFoundCode is the HTTP code returned for type ContainerExecNotFound
const ExecInspectInternalServerErrorCode int = 500
ExecInspectInternalServerErrorCode is the HTTP code returned for type ExecInspectInternalServerError
const ExecInspectNotFoundCode int = 404
ExecInspectNotFoundCode is the HTTP code returned for type ExecInspectNotFound
const ExecInspectOKCode int = 200
ExecInspectOKCode is the HTTP code returned for type ExecInspectOK
const ExecResizeCreatedCode int = 201
ExecResizeCreatedCode is the HTTP code returned for type ExecResizeCreated
const ExecResizeNotFoundCode int = 404
ExecResizeNotFoundCode is the HTTP code returned for type ExecResizeNotFound
const ExecStartConflictCode int = 409
ExecStartConflictCode is the HTTP code returned for type ExecStartConflict
const ExecStartNotFoundCode int = 404
ExecStartNotFoundCode is the HTTP code returned for type ExecStartNotFound
const ExecStartOKCode int = 200
ExecStartOKCode is the HTTP code returned for type ExecStartOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerExec ¶
type ContainerExec struct { Context *middleware.Context Handler ContainerExecHandler }
ContainerExec swagger:route POST /containers/{id}/exec Exec containerExec
Create an exec instance ¶
Run a command inside a running container.
func NewContainerExec ¶
func NewContainerExec(ctx *middleware.Context, handler ContainerExecHandler) *ContainerExec
NewContainerExec creates a new http.Handler for the container exec operation
func (*ContainerExec) ServeHTTP ¶
func (o *ContainerExec) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ContainerExecBody ¶
type ContainerExecBody struct { // Attach to `stderr` of the exec command. AttachStderr bool `json:"AttachStderr,omitempty"` // Attach to `stdin` of the exec command. AttachStdin bool `json:"AttachStdin,omitempty"` // Attach to `stdout` of the exec command. AttachStdout bool `json:"AttachStdout,omitempty"` // Command to run, as a string or array of strings. Cmd []string `json:"Cmd"` // 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 `_`. // DetachKeys string `json:"DetachKeys,omitempty"` // A list of environment variables in the form `["VAR=value", ...]`. // Env []string `json:"Env"` // Runs the exec process with extended privileges. Privileged *bool `json:"Privileged,omitempty"` // Allocate a pseudo-TTY. Tty bool `json:"Tty,omitempty"` // The user, and optionally, group to run the exec process inside // the container. Format is one of: `user`, `user:group`, `uid`, // or `uid:gid`. // User string `json:"User,omitempty"` // The working directory for the exec process inside the container. // WorkingDir string `json:"WorkingDir,omitempty"` }
ContainerExecBody container exec body Example: {"AttachStderr":true,"AttachStdin":false,"AttachStdout":true,"Cmd":["date"],"DetachKeys":"ctrl-p,ctrl-q","Env":["FOO=bar","BAZ=quux"],"Tty":false}
swagger:model ContainerExecBody
func (*ContainerExecBody) ContextValidate ¶
ContextValidate validates this container exec body based on context it is used
func (*ContainerExecBody) MarshalBinary ¶
func (o *ContainerExecBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ContainerExecBody) UnmarshalBinary ¶
func (o *ContainerExecBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ContainerExecConflict ¶
type ContainerExecConflict struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ContainerExecConflict container is paused
swagger:response containerExecConflict
func NewContainerExecConflict ¶
func NewContainerExecConflict() *ContainerExecConflict
NewContainerExecConflict creates ContainerExecConflict with default headers values
func (*ContainerExecConflict) SetPayload ¶
func (o *ContainerExecConflict) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the container exec conflict response
func (*ContainerExecConflict) WithPayload ¶
func (o *ContainerExecConflict) WithPayload(payload *models.ErrorResponse) *ContainerExecConflict
WithPayload adds the payload to the container exec conflict response
func (*ContainerExecConflict) WriteResponse ¶
func (o *ContainerExecConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ContainerExecCreated ¶
type ContainerExecCreated struct { /* In: Body */ Payload *models.IDResponse `json:"body,omitempty"` }
ContainerExecCreated no error
swagger:response containerExecCreated
func NewContainerExecCreated ¶
func NewContainerExecCreated() *ContainerExecCreated
NewContainerExecCreated creates ContainerExecCreated with default headers values
func (*ContainerExecCreated) SetPayload ¶
func (o *ContainerExecCreated) SetPayload(payload *models.IDResponse)
SetPayload sets the payload to the container exec created response
func (*ContainerExecCreated) WithPayload ¶
func (o *ContainerExecCreated) WithPayload(payload *models.IDResponse) *ContainerExecCreated
WithPayload adds the payload to the container exec created response
func (*ContainerExecCreated) WriteResponse ¶
func (o *ContainerExecCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ContainerExecHandler ¶
type ContainerExecHandler interface {
Handle(ContainerExecParams) middleware.Responder
}
ContainerExecHandler interface for that can handle valid container exec params
type ContainerExecHandlerFunc ¶
type ContainerExecHandlerFunc func(ContainerExecParams) middleware.Responder
ContainerExecHandlerFunc turns a function with the right signature into a container exec handler
func (ContainerExecHandlerFunc) Handle ¶
func (fn ContainerExecHandlerFunc) Handle(params ContainerExecParams) middleware.Responder
Handle executing the request and returning a response
type ContainerExecInternalServerError ¶
type ContainerExecInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ContainerExecInternalServerError Server error
swagger:response containerExecInternalServerError
func NewContainerExecInternalServerError ¶
func NewContainerExecInternalServerError() *ContainerExecInternalServerError
NewContainerExecInternalServerError creates ContainerExecInternalServerError with default headers values
func (*ContainerExecInternalServerError) SetPayload ¶
func (o *ContainerExecInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the container exec internal server error response
func (*ContainerExecInternalServerError) WithPayload ¶
func (o *ContainerExecInternalServerError) WithPayload(payload *models.ErrorResponse) *ContainerExecInternalServerError
WithPayload adds the payload to the container exec internal server error response
func (*ContainerExecInternalServerError) WriteResponse ¶
func (o *ContainerExecInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ContainerExecNotFound ¶
type ContainerExecNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ContainerExecNotFound no such container
swagger:response containerExecNotFound
func NewContainerExecNotFound ¶
func NewContainerExecNotFound() *ContainerExecNotFound
NewContainerExecNotFound creates ContainerExecNotFound with default headers values
func (*ContainerExecNotFound) SetPayload ¶
func (o *ContainerExecNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the container exec not found response
func (*ContainerExecNotFound) WithPayload ¶
func (o *ContainerExecNotFound) WithPayload(payload *models.ErrorResponse) *ContainerExecNotFound
WithPayload adds the payload to the container exec not found response
func (*ContainerExecNotFound) WriteResponse ¶
func (o *ContainerExecNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ContainerExecParams ¶
type ContainerExecParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Exec configuration Required: true In: body */ ExecConfig ContainerExecBody /*ID or name of container Required: true In: path */ ID string }
ContainerExecParams contains all the bound params for the container exec operation typically these are obtained from a http.Request
swagger:parameters ContainerExec
func NewContainerExecParams ¶
func NewContainerExecParams() ContainerExecParams
NewContainerExecParams creates a new ContainerExecParams object
There are no default values defined in the spec.
func (*ContainerExecParams) BindRequest ¶
func (o *ContainerExecParams) 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 NewContainerExecParams() beforehand.
type ContainerExecURL ¶
type ContainerExecURL struct { ID string // contains filtered or unexported fields }
ContainerExecURL generates an URL for the container exec operation
func (*ContainerExecURL) Build ¶
func (o *ContainerExecURL) Build() (*url.URL, error)
Build a url path and query string
func (*ContainerExecURL) BuildFull ¶
func (o *ContainerExecURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ContainerExecURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ContainerExecURL) SetBasePath ¶
func (o *ContainerExecURL) 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 (*ContainerExecURL) String ¶
func (o *ContainerExecURL) String() string
String returns the string representation of the path with query string
func (*ContainerExecURL) StringFull ¶
func (o *ContainerExecURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ContainerExecURL) WithBasePath ¶
func (o *ContainerExecURL) WithBasePath(bp string) *ContainerExecURL
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 ExecInspect ¶
type ExecInspect struct { Context *middleware.Context Handler ExecInspectHandler }
ExecInspect swagger:route GET /exec/{id}/json Exec execInspect
Inspect an exec instance ¶
Return low-level information about an exec instance.
func NewExecInspect ¶
func NewExecInspect(ctx *middleware.Context, handler ExecInspectHandler) *ExecInspect
NewExecInspect creates a new http.Handler for the exec inspect operation
func (*ExecInspect) ServeHTTP ¶
func (o *ExecInspect) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ExecInspectHandler ¶
type ExecInspectHandler interface {
Handle(ExecInspectParams) middleware.Responder
}
ExecInspectHandler interface for that can handle valid exec inspect params
type ExecInspectHandlerFunc ¶
type ExecInspectHandlerFunc func(ExecInspectParams) middleware.Responder
ExecInspectHandlerFunc turns a function with the right signature into a exec inspect handler
func (ExecInspectHandlerFunc) Handle ¶
func (fn ExecInspectHandlerFunc) Handle(params ExecInspectParams) middleware.Responder
Handle executing the request and returning a response
type ExecInspectInternalServerError ¶
type ExecInspectInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ExecInspectInternalServerError Server error
swagger:response execInspectInternalServerError
func NewExecInspectInternalServerError ¶
func NewExecInspectInternalServerError() *ExecInspectInternalServerError
NewExecInspectInternalServerError creates ExecInspectInternalServerError with default headers values
func (*ExecInspectInternalServerError) SetPayload ¶
func (o *ExecInspectInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the exec inspect internal server error response
func (*ExecInspectInternalServerError) WithPayload ¶
func (o *ExecInspectInternalServerError) WithPayload(payload *models.ErrorResponse) *ExecInspectInternalServerError
WithPayload adds the payload to the exec inspect internal server error response
func (*ExecInspectInternalServerError) WriteResponse ¶
func (o *ExecInspectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ExecInspectNotFound ¶
type ExecInspectNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ExecInspectNotFound No such exec instance
swagger:response execInspectNotFound
func NewExecInspectNotFound ¶
func NewExecInspectNotFound() *ExecInspectNotFound
NewExecInspectNotFound creates ExecInspectNotFound with default headers values
func (*ExecInspectNotFound) SetPayload ¶
func (o *ExecInspectNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the exec inspect not found response
func (*ExecInspectNotFound) WithPayload ¶
func (o *ExecInspectNotFound) WithPayload(payload *models.ErrorResponse) *ExecInspectNotFound
WithPayload adds the payload to the exec inspect not found response
func (*ExecInspectNotFound) WriteResponse ¶
func (o *ExecInspectNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ExecInspectOK ¶
type ExecInspectOK struct { /* In: Body */ Payload *ExecInspectOKBody `json:"body,omitempty"` }
ExecInspectOK No error
swagger:response execInspectOK
func NewExecInspectOK ¶
func NewExecInspectOK() *ExecInspectOK
NewExecInspectOK creates ExecInspectOK with default headers values
func (*ExecInspectOK) SetPayload ¶
func (o *ExecInspectOK) SetPayload(payload *ExecInspectOKBody)
SetPayload sets the payload to the exec inspect o k response
func (*ExecInspectOK) WithPayload ¶
func (o *ExecInspectOK) WithPayload(payload *ExecInspectOKBody) *ExecInspectOK
WithPayload adds the payload to the exec inspect o k response
func (*ExecInspectOK) WriteResponse ¶
func (o *ExecInspectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ExecInspectOKBody ¶
type ExecInspectOKBody struct { // can remove CanRemove bool `json:"CanRemove,omitempty"` // container ID ContainerID string `json:"ContainerID,omitempty"` // detach keys DetachKeys string `json:"DetachKeys,omitempty"` // exit code ExitCode int64 `json:"ExitCode,omitempty"` // ID ID string `json:"ID,omitempty"` // open stderr OpenStderr bool `json:"OpenStderr,omitempty"` // open stdin OpenStdin bool `json:"OpenStdin,omitempty"` // open stdout OpenStdout bool `json:"OpenStdout,omitempty"` // The system process ID for the exec process. Pid int64 `json:"Pid,omitempty"` // process config ProcessConfig *models.ProcessConfig `json:"ProcessConfig,omitempty"` // running Running bool `json:"Running,omitempty"` }
ExecInspectOKBody ExecInspectResponse
swagger:model ExecInspectOKBody
func (*ExecInspectOKBody) ContextValidate ¶
ContextValidate validate this exec inspect o k body based on the context it is used
func (*ExecInspectOKBody) MarshalBinary ¶
func (o *ExecInspectOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ExecInspectOKBody) UnmarshalBinary ¶
func (o *ExecInspectOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ExecInspectParams ¶
type ExecInspectParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Exec instance ID Required: true In: path */ ID string }
ExecInspectParams contains all the bound params for the exec inspect operation typically these are obtained from a http.Request
swagger:parameters ExecInspect
func NewExecInspectParams ¶
func NewExecInspectParams() ExecInspectParams
NewExecInspectParams creates a new ExecInspectParams object
There are no default values defined in the spec.
func (*ExecInspectParams) BindRequest ¶
func (o *ExecInspectParams) 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 NewExecInspectParams() beforehand.
type ExecInspectURL ¶
type ExecInspectURL struct { ID string // contains filtered or unexported fields }
ExecInspectURL generates an URL for the exec inspect operation
func (*ExecInspectURL) Build ¶
func (o *ExecInspectURL) Build() (*url.URL, error)
Build a url path and query string
func (*ExecInspectURL) BuildFull ¶
func (o *ExecInspectURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ExecInspectURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ExecInspectURL) SetBasePath ¶
func (o *ExecInspectURL) 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 (*ExecInspectURL) String ¶
func (o *ExecInspectURL) String() string
String returns the string representation of the path with query string
func (*ExecInspectURL) StringFull ¶
func (o *ExecInspectURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ExecInspectURL) WithBasePath ¶
func (o *ExecInspectURL) WithBasePath(bp string) *ExecInspectURL
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 ExecResize ¶
type ExecResize struct { Context *middleware.Context Handler ExecResizeHandler }
ExecResize swagger:route POST /exec/{id}/resize Exec execResize
Resize an exec instance ¶
Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance.
func NewExecResize ¶
func NewExecResize(ctx *middleware.Context, handler ExecResizeHandler) *ExecResize
NewExecResize creates a new http.Handler for the exec resize operation
func (*ExecResize) ServeHTTP ¶
func (o *ExecResize) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ExecResizeCreated ¶
type ExecResizeCreated struct { }
ExecResizeCreated No error
swagger:response execResizeCreated
func NewExecResizeCreated ¶
func NewExecResizeCreated() *ExecResizeCreated
NewExecResizeCreated creates ExecResizeCreated with default headers values
func (*ExecResizeCreated) WriteResponse ¶
func (o *ExecResizeCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ExecResizeHandler ¶
type ExecResizeHandler interface {
Handle(ExecResizeParams) middleware.Responder
}
ExecResizeHandler interface for that can handle valid exec resize params
type ExecResizeHandlerFunc ¶
type ExecResizeHandlerFunc func(ExecResizeParams) middleware.Responder
ExecResizeHandlerFunc turns a function with the right signature into a exec resize handler
func (ExecResizeHandlerFunc) Handle ¶
func (fn ExecResizeHandlerFunc) Handle(params ExecResizeParams) middleware.Responder
Handle executing the request and returning a response
type ExecResizeNotFound ¶
type ExecResizeNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ExecResizeNotFound No such exec instance
swagger:response execResizeNotFound
func NewExecResizeNotFound ¶
func NewExecResizeNotFound() *ExecResizeNotFound
NewExecResizeNotFound creates ExecResizeNotFound with default headers values
func (*ExecResizeNotFound) SetPayload ¶
func (o *ExecResizeNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the exec resize not found response
func (*ExecResizeNotFound) WithPayload ¶
func (o *ExecResizeNotFound) WithPayload(payload *models.ErrorResponse) *ExecResizeNotFound
WithPayload adds the payload to the exec resize not found response
func (*ExecResizeNotFound) WriteResponse ¶
func (o *ExecResizeNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ExecResizeParams ¶
type ExecResizeParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Height of the TTY session in characters In: query */ H *int64 /*Exec instance ID Required: true In: path */ ID string /*Width of the TTY session in characters In: query */ W *int64 }
ExecResizeParams contains all the bound params for the exec resize operation typically these are obtained from a http.Request
swagger:parameters ExecResize
func NewExecResizeParams ¶
func NewExecResizeParams() ExecResizeParams
NewExecResizeParams creates a new ExecResizeParams object
There are no default values defined in the spec.
func (*ExecResizeParams) BindRequest ¶
func (o *ExecResizeParams) 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 NewExecResizeParams() beforehand.
type ExecResizeURL ¶
ExecResizeURL generates an URL for the exec resize operation
func (*ExecResizeURL) Build ¶
func (o *ExecResizeURL) Build() (*url.URL, error)
Build a url path and query string
func (*ExecResizeURL) BuildFull ¶
func (o *ExecResizeURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ExecResizeURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ExecResizeURL) SetBasePath ¶
func (o *ExecResizeURL) 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 (*ExecResizeURL) String ¶
func (o *ExecResizeURL) String() string
String returns the string representation of the path with query string
func (*ExecResizeURL) StringFull ¶
func (o *ExecResizeURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ExecResizeURL) WithBasePath ¶
func (o *ExecResizeURL) WithBasePath(bp string) *ExecResizeURL
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 ExecStart ¶
type ExecStart struct { Context *middleware.Context Handler ExecStartHandler }
ExecStart swagger:route POST /exec/{id}/start Exec execStart
Start an exec instance ¶
Starts a previously set up exec instance. If detach is true, this endpoint returns immediately after starting the command. Otherwise, it sets up an interactive session with the command.
func NewExecStart ¶
func NewExecStart(ctx *middleware.Context, handler ExecStartHandler) *ExecStart
NewExecStart creates a new http.Handler for the exec start operation
type ExecStartBody ¶
type ExecStartBody struct { // Detach from the command. Detach bool `json:"Detach,omitempty"` // Allocate a pseudo-TTY. Tty bool `json:"Tty,omitempty"` }
ExecStartBody exec start body Example: {"Detach":false,"Tty":false}
swagger:model ExecStartBody
func (*ExecStartBody) ContextValidate ¶
ContextValidate validates this exec start body based on context it is used
func (*ExecStartBody) MarshalBinary ¶
func (o *ExecStartBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ExecStartBody) UnmarshalBinary ¶
func (o *ExecStartBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ExecStartConflict ¶
type ExecStartConflict struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ExecStartConflict Container is stopped or paused
swagger:response execStartConflict
func NewExecStartConflict ¶
func NewExecStartConflict() *ExecStartConflict
NewExecStartConflict creates ExecStartConflict with default headers values
func (*ExecStartConflict) SetPayload ¶
func (o *ExecStartConflict) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the exec start conflict response
func (*ExecStartConflict) WithPayload ¶
func (o *ExecStartConflict) WithPayload(payload *models.ErrorResponse) *ExecStartConflict
WithPayload adds the payload to the exec start conflict response
func (*ExecStartConflict) WriteResponse ¶
func (o *ExecStartConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ExecStartHandler ¶
type ExecStartHandler interface {
Handle(ExecStartParams) middleware.Responder
}
ExecStartHandler interface for that can handle valid exec start params
type ExecStartHandlerFunc ¶
type ExecStartHandlerFunc func(ExecStartParams) middleware.Responder
ExecStartHandlerFunc turns a function with the right signature into a exec start handler
func (ExecStartHandlerFunc) Handle ¶
func (fn ExecStartHandlerFunc) Handle(params ExecStartParams) middleware.Responder
Handle executing the request and returning a response
type ExecStartNotFound ¶
type ExecStartNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
ExecStartNotFound No such exec instance
swagger:response execStartNotFound
func NewExecStartNotFound ¶
func NewExecStartNotFound() *ExecStartNotFound
NewExecStartNotFound creates ExecStartNotFound with default headers values
func (*ExecStartNotFound) SetPayload ¶
func (o *ExecStartNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the exec start not found response
func (*ExecStartNotFound) WithPayload ¶
func (o *ExecStartNotFound) WithPayload(payload *models.ErrorResponse) *ExecStartNotFound
WithPayload adds the payload to the exec start not found response
func (*ExecStartNotFound) WriteResponse ¶
func (o *ExecStartNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ExecStartOK ¶
type ExecStartOK struct { }
ExecStartOK No error
swagger:response execStartOK
func NewExecStartOK ¶
func NewExecStartOK() *ExecStartOK
NewExecStartOK creates ExecStartOK with default headers values
func (*ExecStartOK) WriteResponse ¶
func (o *ExecStartOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ExecStartParams ¶
type ExecStartParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ ExecStartConfig ExecStartBody /*Exec instance ID Required: true In: path */ ID string }
ExecStartParams contains all the bound params for the exec start operation typically these are obtained from a http.Request
swagger:parameters ExecStart
func NewExecStartParams ¶
func NewExecStartParams() ExecStartParams
NewExecStartParams creates a new ExecStartParams object
There are no default values defined in the spec.
func (*ExecStartParams) BindRequest ¶
func (o *ExecStartParams) 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 NewExecStartParams() beforehand.
type ExecStartURL ¶
type ExecStartURL struct { ID string // contains filtered or unexported fields }
ExecStartURL generates an URL for the exec start operation
func (*ExecStartURL) Build ¶
func (o *ExecStartURL) Build() (*url.URL, error)
Build a url path and query string
func (*ExecStartURL) BuildFull ¶
func (o *ExecStartURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ExecStartURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ExecStartURL) SetBasePath ¶
func (o *ExecStartURL) 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 (*ExecStartURL) String ¶
func (o *ExecStartURL) String() string
String returns the string representation of the path with query string
func (*ExecStartURL) StringFull ¶
func (o *ExecStartURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ExecStartURL) WithBasePath ¶
func (o *ExecStartURL) WithBasePath(bp string) *ExecStartURL
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
¶
- container_exec.go
- container_exec_parameters.go
- container_exec_responses.go
- container_exec_urlbuilder.go
- exec_inspect.go
- exec_inspect_parameters.go
- exec_inspect_responses.go
- exec_inspect_urlbuilder.go
- exec_resize.go
- exec_resize_parameters.go
- exec_resize_responses.go
- exec_resize_urlbuilder.go
- exec_start.go
- exec_start_parameters.go
- exec_start_responses.go
- exec_start_urlbuilder.go