Documentation ¶
Index ¶
- Constants
- func LoadDockerComposeProject(paths []string, envFiles []string) (*composetypes.Project, error)
- type ComposeHelper
- func (h *ComposeHelper) FindDevContainer(ctx context.Context, projectName, serviceName string) (*config.ContainerDetails, error)
- func (h *ComposeHelper) FindProjectFiles(ctx context.Context, projectName string) ([]string, error)
- func (h *ComposeHelper) GetDefaultImage(projectName, serviceName string) (string, error)
- func (h *ComposeHelper) GetProjectName(runnerID string) string
- func (h *ComposeHelper) Remove(ctx context.Context, projectName string, args []string) error
- func (h *ComposeHelper) Run(ctx context.Context, args []string, stdin io.Reader, stdout io.Writer, ...) error
- func (h *ComposeHelper) Stop(ctx context.Context, projectName string, args []string) error
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 (*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
Click to show internal directories.
Click to hide internal directories.