Documentation
¶
Index ¶
- type Backend
- type Capabilities
- type CreateSessionRequest
- type DockerDriver
- func (d *DockerDriver) Available() bool
- func (d *DockerDriver) Capabilities() Capabilities
- func (d *DockerDriver) CreateDirectorySnapshot(ctx context.Context, src, dst string) (state.Manifest, error)
- func (d *DockerDriver) CreateSession(ctx context.Context, req CreateSessionRequest) (string, error)
- func (d *DockerDriver) Exec(ctx context.Context, containerID string, command []string, stream bool) (ExecResult, error)
- func (d *DockerDriver) ExecStream(ctx context.Context, containerID string, command []string, ...) (ExecResult, error)
- func (d *DockerDriver) ForkDirectorySnapshot(ctx context.Context, src, dst string) (state.Manifest, error)
- func (d *DockerDriver) Interrupt(ctx context.Context, containerID string) error
- func (d *DockerDriver) Name() string
- func (d *DockerDriver) Remove(ctx context.Context, containerID string) error
- func (d *DockerDriver) ResumeDirectorySnapshot(ctx context.Context, src, dst string) (state.Manifest, error)
- func (d *DockerDriver) SetCPUWeight(ctx context.Context, containerID string, weight int64) error
- func (d *DockerDriver) Stop(ctx context.Context, containerID string) error
- type Driver
- type ExecResult
- type StubDriver
- func (d StubDriver) Capabilities() Capabilities
- func (d StubDriver) CreateDirectorySnapshot(context.Context, string, string) (state.Manifest, error)
- func (d StubDriver) CreateSession(context.Context, CreateSessionRequest) (string, error)
- func (d StubDriver) Exec(context.Context, string, []string, bool) (ExecResult, error)
- func (d StubDriver) ExecStream(context.Context, string, []string, io.Writer, io.Writer) (ExecResult, error)
- func (d StubDriver) ForkDirectorySnapshot(context.Context, string, string) (state.Manifest, error)
- func (d StubDriver) Interrupt(context.Context, string) error
- func (d StubDriver) Name() string
- func (d StubDriver) Remove(context.Context, string) error
- func (d StubDriver) ResumeDirectorySnapshot(context.Context, string, string) (state.Manifest, error)
- func (d StubDriver) SetCPUWeight(context.Context, string, int64) error
- func (d StubDriver) Stop(context.Context, string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Capabilities ¶
type CreateSessionRequest ¶
type DockerDriver ¶
type DockerDriver struct {
Runtime *node.DockerRuntime
Paths store.Paths
Version string
}
func NewDockerDriver ¶
func NewDockerDriver(paths store.Paths) (*DockerDriver, error)
func (*DockerDriver) Available ¶
func (d *DockerDriver) Available() bool
func (*DockerDriver) Capabilities ¶
func (d *DockerDriver) Capabilities() Capabilities
func (*DockerDriver) CreateDirectorySnapshot ¶
func (*DockerDriver) CreateSession ¶
func (d *DockerDriver) CreateSession(ctx context.Context, req CreateSessionRequest) (string, error)
func (*DockerDriver) Exec ¶
func (d *DockerDriver) Exec(ctx context.Context, containerID string, command []string, stream bool) (ExecResult, error)
func (*DockerDriver) ExecStream ¶
func (d *DockerDriver) ExecStream(ctx context.Context, containerID string, command []string, stdout, stderr io.Writer) (ExecResult, error)
func (*DockerDriver) ForkDirectorySnapshot ¶
func (*DockerDriver) Interrupt ¶
func (d *DockerDriver) Interrupt(ctx context.Context, containerID string) error
func (*DockerDriver) Name ¶
func (d *DockerDriver) Name() string
func (*DockerDriver) Remove ¶
func (d *DockerDriver) Remove(ctx context.Context, containerID string) error
func (*DockerDriver) ResumeDirectorySnapshot ¶
func (*DockerDriver) SetCPUWeight ¶
type Driver ¶
type Driver interface {
Name() string
Capabilities() Capabilities
CreateSession(context.Context, CreateSessionRequest) (string, error)
Exec(context.Context, string, []string, bool) (ExecResult, error)
ExecStream(context.Context, string, []string, io.Writer, io.Writer) (ExecResult, error)
Interrupt(context.Context, string) error
Stop(context.Context, string) error
Remove(context.Context, string) error
CreateDirectorySnapshot(context.Context, string, string) (state.Manifest, error)
ForkDirectorySnapshot(context.Context, string, string) (state.Manifest, error)
ResumeDirectorySnapshot(context.Context, string, string) (state.Manifest, error)
SetCPUWeight(context.Context, string, int64) error
}
type ExecResult ¶
type ExecResult = node.ExecResult
type StubDriver ¶
type StubDriver struct {
NameValue string
}
func (StubDriver) Capabilities ¶
func (d StubDriver) Capabilities() Capabilities
func (StubDriver) CreateDirectorySnapshot ¶
func (StubDriver) CreateSession ¶
func (d StubDriver) CreateSession(context.Context, CreateSessionRequest) (string, error)
func (StubDriver) Exec ¶
func (d StubDriver) Exec(context.Context, string, []string, bool) (ExecResult, error)
func (StubDriver) ExecStream ¶
func (StubDriver) ForkDirectorySnapshot ¶
func (StubDriver) Name ¶
func (d StubDriver) Name() string
func (StubDriver) ResumeDirectorySnapshot ¶
func (StubDriver) SetCPUWeight ¶
Click to show internal directories.
Click to hide internal directories.