Versions in this module Expand all Collapse all v0 v0.5.0 Nov 12, 2024 v0.4.1 Oct 7, 2024 Changes in this version + const DefaultShell + const DefaultWorkingDir + var DefaultContainerCommand = []string + type AppPort []int + func (a *AppPort) UnmarshalJSON(data []byte) error + type BuildProps struct + Args map[string]*string + CacheFrom StringArray + Context string + Dockerfile string + Options []string + Target string + func (b *BuildProps) Equals(other *BuildProps) bool + type Config struct + Path string + func ParseConfig(configFile File) (*Config, error) + func (c *Config) Equals(other *Config) bool + func (c *Config) IsComposeDevContainer() bool + func (c *Config) IsDockerfileDevContainer() bool + func (c *Config) IsImageDevContainer() bool + type ContainerManager interface + CreateContainer func(ctx context.Context, image string, projectPath string, config Config) (string, error) + Exec func(ctx context.Context, containerId string, command []string) (ExecResult, error) + StartContainer func(ctx context.Context, containerId string) error + StopContainer func(ctx context.Context, containerId string) error + func NewDockerContainerManager(dockerContainerCli client.ContainerAPIClient) ContainerManager + type Customizations struct + Hide *HideCustomization + func (c Customizations) Equals(other Customizations) bool + type DockerComposeProps struct + DockerComposeFile StringArray + RunServices []string + Service string + func (d *DockerComposeProps) Equals(other *DockerComposeProps) bool + type DockerContainerManager struct + func (cm *DockerContainerManager) CreateContainer(ctx context.Context, image string, projectPath string, config Config) (string, error) + func (cm *DockerContainerManager) Exec(ctx context.Context, containerId string, command []string) (ExecResult, error) + func (cm *DockerContainerManager) StartContainer(ctx context.Context, containerId string) error + func (cm *DockerContainerManager) StopContainer(ctx context.Context, containerId string) error + type DockerHubRegistryCredentials struct + func (c *DockerHubRegistryCredentials) GetCredentials() (string, error) + type DockerImageManager struct + func (im *DockerImageManager) BuildImage(ctx context.Context, workingDir string, config Config) (string, error) + func (im *DockerImageManager) LocalImageExists(ctx context.Context, name string) (bool, error) + func (im *DockerImageManager) PullImage(ctx context.Context, name string) error + type DockerImageProps struct + AppPort AppPort + Build *BuildProps + Context string + Dockerfile string + Image string + RunArgs []string + WorkspaceFolder string + WorkspaceMount *Mount + func (d *DockerImageProps) Equals(other *DockerImageProps) bool + type DockerRunner struct + func (r *DockerRunner) Exec(ctx context.Context, containerID string, command []string) (ExecResult, error) + func (r *DockerRunner) Run(ctx context.Context, projectPath string, config Config) (string, error) + func (r *DockerRunner) Stop(ctx context.Context, containerId string) error + type ExecResult struct + ExitCode int + StdErr string + StdOut string + type Executor interface + Run func(command []string, dir string, stdout, stderr io.Writer) error + func NewExecutorImpl() Executor + type ExecutorImpl struct + func (e *ExecutorImpl) Run(command []string, dir string, stdout, stderr io.Writer) error + type File struct + Content []byte + Path string + func FindConfig(fileSystem fs.FS) (File, error) + func (f *File) Equals(other *File) bool + type GeneralProperties struct + CapAdd []string + ContainerEnv map[string]string + ContainerUser string + Customizations Customizations + ForwardPorts []string + Init bool + Mounts []Mount + Name string + OtherPortsAttributes PortAttributes + OverrideCommand bool + OverrideFeatureInstallOrder []string + PortsAttributes map[string]PortAttributes + Privileged bool + RemoteEnv map[string]string + RemoteUser string + SecurityOpt []string + ShutdownAction string + UpdateRemoteUserUID bool + UserEnvProbe string + func (g *GeneralProperties) Equals(other *GeneralProperties) bool + type HideCustomization struct + Tasks []Task + func (h *HideCustomization) Equals(other *HideCustomization) bool + type HostRequirements struct + Cpus int + Memory string + Storage string + func (h *HostRequirements) Equals(other *HostRequirements) bool + type ImageDevContainer struct + type ImageManager interface + BuildImage func(ctx context.Context, workingDir string, config Config) (string, error) + LocalImageExists func(ctx context.Context, name string) (bool, error) + PullImage func(ctx context.Context, name string) error + func NewImageManager(dockerImageCli client.ImageAPIClient, randomString func(int) string, ...) ImageManager + type LifecycleCommand map[string][]string + func (c *LifecycleCommand) Equals(other *LifecycleCommand) bool + func (c *LifecycleCommand) UnmarshalJSON(data []byte) error + type LifecycleProps struct + InitializeCommand LifecycleCommand + OnCreateCommand LifecycleCommand + PostAttachCommand LifecycleCommand + PostCreateCommand LifecycleCommand + PostStartCommand LifecycleCommand + UpdateContentCommand LifecycleCommand + WaitFor string + func (l *LifecycleProps) Equals(other *LifecycleProps) bool + type Mount struct + Destination string + Source string + Type string + func (m *Mount) UnmarshalJSON(data []byte) error + type PortAttributes struct + ElevateIfNeeded bool + Label string + OnAutoForward string + Protocol string + RequireLocalPort bool + func (p *PortAttributes) Equals(other *PortAttributes) bool + type RegistryCredentials interface + GetCredentials func() (string, error) + func NewDockerHubRegistryCredentials(username, password string) RegistryCredentials + type Runner interface + Exec func(ctx context.Context, containerId string, command []string) (ExecResult, error) + Run func(ctx context.Context, projectPath string, config Config) (string, error) + Stop func(ctx context.Context, containerId string) error + func NewDockerRunner(commandExecutor Executor, imageManager ImageManager, ...) Runner + type StringArray []string + func (c *StringArray) UnmarshalJSON(data []byte) error + type Task struct + Alias string + Command string