adapters

package
v0.0.0-...-8e2f611 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL