Documentation
¶
Index ¶
- type CreateSessionRequest
- type DockerRuntime
- func (r *DockerRuntime) CreateSession(req CreateSessionRequest) (string, error)
- func (r *DockerRuntime) Exec(containerID string, command []string, stream bool) (ExecResult, error)
- func (r *DockerRuntime) ExecWithWriters(containerID string, command []string, stdout, stderr io.Writer) (ExecResult, error)
- func (r *DockerRuntime) Interrupt(containerID string) error
- func (r *DockerRuntime) Remove(containerID string) error
- func (r *DockerRuntime) SetCPUWeight(ctx context.Context, containerID string, weight int64) error
- func (r *DockerRuntime) Stop(containerID string) error
- type ExecResult
- type Runtime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateSessionRequest ¶
type DockerRuntime ¶
func NewDockerRuntime ¶
func NewDockerRuntime() (*DockerRuntime, error)
func (*DockerRuntime) CreateSession ¶
func (r *DockerRuntime) CreateSession(req CreateSessionRequest) (string, error)
func (*DockerRuntime) Exec ¶
func (r *DockerRuntime) Exec(containerID string, command []string, stream bool) (ExecResult, error)
func (*DockerRuntime) ExecWithWriters ¶
func (r *DockerRuntime) ExecWithWriters(containerID string, command []string, stdout, stderr io.Writer) (ExecResult, error)
func (*DockerRuntime) Interrupt ¶
func (r *DockerRuntime) Interrupt(containerID string) error
func (*DockerRuntime) Remove ¶
func (r *DockerRuntime) Remove(containerID string) error
func (*DockerRuntime) SetCPUWeight ¶
func (*DockerRuntime) Stop ¶
func (r *DockerRuntime) Stop(containerID string) error
type ExecResult ¶
Click to show internal directories.
Click to hide internal directories.