docker

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupInstanceDirectory

func CleanupInstanceDirectory(ctx context.Context, instanceId string) error

func InitComposeInstance

func InitComposeInstance(ctx context.Context, instanceId string, templatePath string) (string, error)

func LoadComposeProject

func LoadComposeProject(ctx context.Context, config *DockerAdapterConfig, instanceId string, path string, projectName string) (*types.Project, error)

func RemoveComposeProject

func RemoveComposeProject(ctx context.Context, instanceId string) error

func StartComposeProject

func StartComposeProject(ctx context.Context, instancePath string, timeout int) error

func StopComposeProject

func StopComposeProject(ctx context.Context, instanceId string) error

func TransformComposeProject

func TransformComposeProject(ctx context.Context, project *types.Project, config *DockerAdapterConfig, domain string) error

func WriteComposeProject

func WriteComposeProject(ctx context.Context, instancePath string, project *types.Project) error

Types

type DockerAdapter

type DockerAdapter struct{}

func (*DockerAdapter) DestroyInstance

func (d *DockerAdapter) DestroyInstance(ctx context.Context, task instancer.InstanceTask) error

func (*DockerAdapter) Name

func (d *DockerAdapter) Name() string

func (*DockerAdapter) StartInstance

func (d *DockerAdapter) StartInstance(ctx context.Context, task instancer.InstanceTask) error

type DockerAdapterConfig

type DockerAdapterConfig struct {
	StartTimeout      int    `json:"startTimeout"`
	DomainSuffix      string `json:"domainSuffix"`
	NetworkName       string `json:"networkName"`
	HostInstancesPath string `json:"hostInstancesPath"`
}

Jump to

Keyboard shortcuts

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