Documentation ¶
Index ¶
- type ContainerConfig
- type DockerAdapter
- func (d *DockerAdapter) GetContainerConfig(ctx context.Context, app applications.Application, logger zerolog.Logger) (*ContainerConfig, error)
- func (d *DockerAdapter) PullImage(ctx context.Context, app applications.Application) (io.Reader, error)
- func (d *DockerAdapter) RemoveContainer(ctx context.Context, config *ContainerConfig) error
- func (d *DockerAdapter) RunImage(ctx context.Context, app applications.Application, config *ContainerConfig) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerConfig ¶
type ContainerConfig struct {
// contains filtered or unexported fields
}
type DockerAdapter ¶
type DockerAdapter struct {
// contains filtered or unexported fields
}
DockerAdapter is the adapter that communicates with dockerd.
func NewDockerAdapter ¶
func NewDockerAdapter() (*DockerAdapter, error)
NewDockerAdapter returns a DockerAdapter based on environment vars.
func (*DockerAdapter) GetContainerConfig ¶
func (d *DockerAdapter) GetContainerConfig(ctx context.Context, app applications.Application, logger zerolog.Logger) (*ContainerConfig, error)
func (*DockerAdapter) PullImage ¶
func (d *DockerAdapter) PullImage(ctx context.Context, app applications.Application) (io.Reader, error)
PullImage pulls a docker image of the provided app.
func (*DockerAdapter) RemoveContainer ¶
func (d *DockerAdapter) RemoveContainer(ctx context.Context, config *ContainerConfig) error
func (*DockerAdapter) RunImage ¶
func (d *DockerAdapter) RunImage(ctx context.Context, app applications.Application, config *ContainerConfig) error
Click to show internal directories.
Click to hide internal directories.