devcontainer

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MPL-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigFilesLabel                = "com.docker.compose.project.config_files"
	FeaturesBuildOverrideFilePrefix = "docker-compose.devcontainer.build"
	FeaturesStartOverrideFilePrefix = "docker-compose.devcontainer.containerFeatures"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	Driver driver.Driver

	WorkspaceConfig  *provider2.AgentWorkspaceInfo
	AgentPath        string
	AgentDownloadURL string

	LocalWorkspaceFolder string
	SubstitutionContext  *config.SubstitutionContext

	ID  string
	Log log.Logger
}

func NewRunner

func NewRunner(agentPath, agentDownloadURL string, workspaceConfig *provider2.AgentWorkspaceInfo, log log.Logger) (*Runner, error)

func (*Runner) Build

func (r *Runner) Build(options config.BuildOptions) (string, error)

func (*Runner) Delete

func (r *Runner) Delete(labels []string, deleteVolumes bool) error

func (*Runner) FindDevContainer

func (r *Runner) FindDevContainer(ctx context.Context) (*config.ContainerDetails, error)

func (*Runner) Stop

func (r *Runner) Stop() error

func (*Runner) Up

func (r *Runner) Up(options UpOptions) (*config.Result, error)

type UpOptions

type UpOptions struct {
	PrebuildRepositories []string

	NoBuild bool

	ForceBuild bool
	Recreate   bool
}

type WorkspaceConfig

type WorkspaceConfig struct {
	WorkspaceMount        string
	RemoteWorkspaceFolder string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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