Documentation ¶
Index ¶
- Constants
- 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) BuildDockerfile(ctx context.Context, dir, reference string) (forge.Image, error)
- 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 ¶
This section is empty.
Types ¶
type Container ¶
type ContainerRuntime ¶
func New ¶
func New(c *client.Client) *ContainerRuntime
func (*ContainerRuntime) BuildDockerfile ¶
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) Config ¶
func (i *Image) Config() (*imagespecsv1.ImageConfig, error)
func (*Image) MarshalJSON ¶
Source Files ¶
- build_image.go
- container.go
- container_exec.go
- container_kill.go
- container_remove.go
- container_restart.go
- container_run.go
- container_runtime.go
- container_start.go
- container_stop.go
- copy_from_container.go
- copy_to_container.go
- create_container.go
- create_volume.go
- get_container.go
- image.go
- pull_image.go
- volume.go
- volume_remove.go
Click to show internal directories.
Click to hide internal directories.