compose

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MPL-2.0 Imports: 13 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(ctx context.Context, projectName, serviceName string) (*config.ContainerDetails, error)

func (*ComposeHelper) FindProjectFiles added in v0.5.4

func (h *ComposeHelper) FindProjectFiles(ctx context.Context, projectName string) ([]string, 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, args []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, args []string) error

Jump to

Keyboard shortcuts

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