Documentation
¶
Index ¶
- Constants
- func New(c *client.Client) forge.ContainerRuntime
- type Container
- func (c *Container) CopyFrom(ctx context.Context, source string) (io.ReadCloser, error)
- func (c *Container) CopyTo(ctx context.Context, destination string, content io.Reader) error
- func (c *Container) Exec(ctx context.Context, containerConfig *forge.ContainerConfig, ...) (int, error)
- func (c *Container) GetId() string
- func (c *Container) GoString() string
- func (c *Container) Kill(ctx context.Context) error
- func (c *Container) Remove(ctx context.Context) error
- func (c *Container) Restart(ctx context.Context) error
- func (c *Container) Run(ctx context.Context, streams *forge.Streams) (int, error)
- func (c *Container) Start(ctx context.Context) error
- func (c *Container) Stop(ctx context.Context) error
- type ContainerRuntime
- func (d *ContainerRuntime) CreateContainer(ctx context.Context, image forge.Image, config *forge.ContainerConfig) (forge.Container, error)
- func (r *ContainerRuntime) CreateVolume(ctx context.Context, name string) (forge.Volume, error)
- func (d *ContainerRuntime) GetContainer(ctx context.Context, id string) (forge.Container, error)
- func (f *ContainerRuntime) GoString() string
- func (d *ContainerRuntime) PullImage(ctx context.Context, reference string) (forge.Image, error)
- type Image
- type Volume
Constants ¶
View Source
const (
VolumeDriver = "local"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Container ¶
type ContainerRuntime ¶
func (*ContainerRuntime) CreateContainer ¶
func (d *ContainerRuntime) CreateContainer(ctx context.Context, image forge.Image, config *forge.ContainerConfig) (forge.Container, error)
func (*ContainerRuntime) CreateVolume ¶
func (*ContainerRuntime) GetContainer ¶
func (*ContainerRuntime) GoString ¶
func (f *ContainerRuntime) GoString() string
type Image ¶
func (*Image) MarshalJSON ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.