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