Documentation
¶
Index ¶
- Constants
- func New(cfg map[string]any) (driver.Driver, error)
- type DockerDriver
- func (d *DockerDriver) Close() error
- func (d *DockerDriver) Connect(ctx context.Context, id string) (io.ReadWriteCloser, error)
- func (d *DockerDriver) Create(ctx context.Context, cfg driver.SandboxConfig) (string, error)
- func (d *DockerDriver) DriverName() string
- func (d *DockerDriver) GetFile(ctx context.Context, id, path string) (io.ReadCloser, error)
- func (d *DockerDriver) Healthy(ctx context.Context) error
- func (d *DockerDriver) Info(ctx context.Context, id string) (*driver.SandboxInfo, error)
- func (d *DockerDriver) List(ctx context.Context, states []driver.SandboxState) ([]*driver.SandboxInfo, error)
- func (d *DockerDriver) ListFiles(ctx context.Context, id, path string) ([]*driver.FileEntry, error)
- func (d *DockerDriver) PutFile(ctx context.Context, id, path string, content io.Reader) error
- func (d *DockerDriver) Start(ctx context.Context, id string) error
- func (d *DockerDriver) Stop(ctx context.Context, id string) error
- type DockerStream
Constants ¶
View Source
const ( DriverName = "docker" AgentBinaryPath = "/usr/local/bin/boxed-agent" ManagedLabel = "xyz.boxed.managed" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DockerDriver ¶
type DockerDriver struct {
// contains filtered or unexported fields
}
DockerDriver implements the driver.Driver interface using the Docker engine.
func (*DockerDriver) Close ¶
func (d *DockerDriver) Close() error
func (*DockerDriver) Connect ¶
func (d *DockerDriver) Connect(ctx context.Context, id string) (io.ReadWriteCloser, error)
func (*DockerDriver) Create ¶
func (d *DockerDriver) Create(ctx context.Context, cfg driver.SandboxConfig) (string, error)
func (*DockerDriver) DriverName ¶
func (d *DockerDriver) DriverName() string
func (*DockerDriver) GetFile ¶
func (d *DockerDriver) GetFile(ctx context.Context, id, path string) (io.ReadCloser, error)
GetFile implements driver.Driver.
func (*DockerDriver) Info ¶
func (d *DockerDriver) Info(ctx context.Context, id string) (*driver.SandboxInfo, error)
func (*DockerDriver) List ¶
func (d *DockerDriver) List(ctx context.Context, states []driver.SandboxState) ([]*driver.SandboxInfo, error)
type DockerStream ¶
type DockerStream struct {
// contains filtered or unexported fields
}
DockerWrapper handles the multiplexed stream from Docker (StdCopy format)
func NewDockerStream ¶
func NewDockerStream(resp types.HijackedResponse) *DockerStream
func (*DockerStream) Close ¶
func (ds *DockerStream) Close() error
Click to show internal directories.
Click to hide internal directories.