docker

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppLabel         = "app.seelf.application"
	EnvironmentLabel = "app.seelf.environment"
)

Variables

View Source
var (
	ErrLoadProjectFailed     = errors.New("compose_file_malformed")
	ErrOpenComposeFileFailed = errors.New("compose_file_open_failed")
	ErrComposeFailed         = errors.New("compose_failed")
)

Functions

This section is empty.

Types

type Docker added in v1.2.0

type Docker struct {
	// contains filtered or unexported fields
}

func New

func New(options Options, logger log.Logger, configuration ...DockerOptions) *Docker

Creates a docker backend with given options. The configuration is mostly used to ease the testing of some internals.

func (*Docker) Cleanup added in v1.2.0

func (d *Docker) Cleanup(ctx context.Context, app domain.App) error

func (*Docker) Run added in v1.2.0

func (*Docker) Setup added in v1.2.0

func (d *Docker) Setup() error

type DockerOptions

type DockerOptions func(*Docker)

func WithDockerAndCompose

func WithDockerAndCompose(cli command.Cli, composeService api.Service) DockerOptions

Use the given compose service and cli instead of creating new ones. Used for testing.

type Options

type Options interface {
	Domain() domain.Url
	AcmeEmail() string
}

Jump to

Keyboard shortcuts

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