compose

package
v0.3.4-beta.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DockerCommand        = "docker"
	DockerComposeCommand = "docker-compose"
	ProjectLabel         = "com.docker.compose.project"
	ServiceLabel         = "com.docker.compose.service"
)

Variables

This section is empty.

Functions

func LoadDockerComposeProject

func LoadDockerComposeProject(paths []string, envFiles []string) (*composetypes.Project, error)

Types

type ComposeHelper

type ComposeHelper struct {
	Command string
	Version string
	Args    []string
	Docker  *docker.DockerHelper
}

func NewComposeHelper

func NewComposeHelper(dockerComposeCLI string, dockerHelper *docker.DockerHelper) (*ComposeHelper, error)

func (*ComposeHelper) FindDevContainer

func (h *ComposeHelper) FindDevContainer(projectName, serviceName string) (*config.ContainerDetails, error)

func (*ComposeHelper) GetDefaultImage

func (h *ComposeHelper) GetDefaultImage(projectName, serviceName string) (string, error)

func (*ComposeHelper) GetProjectName added in v0.2.0

func (h *ComposeHelper) GetProjectName(runnerID string) string

func (*ComposeHelper) Remove

func (h *ComposeHelper) Remove(ctx context.Context, projectName string) error

func (*ComposeHelper) Run

func (h *ComposeHelper) Run(ctx context.Context, args []string, stdin io.Reader, stdout io.Writer, stderr io.Writer) error

func (*ComposeHelper) Stop

func (h *ComposeHelper) Stop(ctx context.Context, projectName string) error

Jump to

Keyboard shortcuts

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