Documentation
¶
Overview ¶
package docker provides an implementation of github.com/frantjc/forge.ContainerRuntime by interacting with a `docker` compatible CLI.
Index ¶
- type Container
- func (c *Container) CopyFrom(ctx context.Context, src string) (io.ReadCloser, error)
- func (c *Container) CopyTo(ctx context.Context, dst string, r io.Reader) error
- func (c *Container) Exec(ctx context.Context, cfg *forge.ContainerConfig, streams *forge.Streams) (int, error)
- func (c *Container) GetID() string
- func (c *Container) Remove(ctx context.Context) error
- func (c *Container) Start(ctx context.Context) error
- func (c *Container) Stop(ctx context.Context) error
- type ContainerRuntime
- type Image
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerRuntime ¶
type ContainerRuntime struct {
Path string
}
func New ¶
func New(path string) *ContainerRuntime
func (*ContainerRuntime) Close ¶ added in v1.0.2
func (r *ContainerRuntime) Close() error
func (*ContainerRuntime) CreateContainer ¶
func (r *ContainerRuntime) CreateContainer(ctx context.Context, img forge.Image, cfg *forge.ContainerConfig) (forge.Container, error)
Click to show internal directories.
Click to hide internal directories.