launcher

package
v0.0.0-...-31e061d Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudRun

type CloudRun struct {
	Logger       *log.Logger
	Client       *cloudrun.APIService
	DockerClient *docker.Client
}

CloudRun pushes Docker containers to Google Container Registry and creates/updates a Cloud Run service.

func (*CloudRun) Launch

func (crl *CloudRun) Launch(ctx context.Context, input *Input) (*url.URL, error)

Launch implements Launcher.Launch.

type ECS

type ECS struct {
	Logger         *log.Logger
	ConfigProvider client.ConfigProvider
	DockerClient   *docker.Client
}

ECS pushes Docker containers to Amazon Elastic Container Registry (ECR) and creates/updates an Elastic Container Service (ECS) task.

func (*ECS) Launch

func (l *ECS) Launch(ctx context.Context, input *Input) (*url.URL, error)

Launch implements Launcher.Launch.

type Input

type Input struct {
	// DockerImage is a reference to the Docker image in the local Docker daemon's
	// storage that should be launched. If the image does not exist in the local
	// Docker daemon's storage, then the launcher should return an error.
	DockerImage string

	// Env is the set of additional environment variables to set in the launched
	// container's environment in the form "KEY=VALUE". It should not include PORT
	// nor should it contain multiple entries for the same variable name.
	Env []string

	// Specifier is the set of arguments passed from a biome's Terraform module.
	// Its interpretation is launcher-specific.
	Specifier map[string]interface{}
}

Input is the input to a launcher.

type Local

type Local struct {
	Logger       *log.Logger
	DockerClient *docker.Client
}

Local starts Docker containers on the local Docker daemon.

func (*Local) Launch

func (local *Local) Launch(ctx context.Context, input *Input) (*url.URL, error)

Launch implements Launcher.Launch.

Jump to

Keyboard shortcuts

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