devcontainer

package
v0.3.5-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MPL-2.0 Imports: 33 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

func GetRunnerIDFromWorkspace added in v0.2.0

func GetRunnerIDFromWorkspace(workspace *provider2.Workspace) string

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(ctx context.Context, options config.BuildOptions) (string, error)

func (*Runner) CommandDevContainer added in v0.2.0

func (r *Runner) CommandDevContainer(
	ctx context.Context,
	containerId string,
	user string,
	command string,
	stdin io.Reader,
	stdout io.Writer,
	stderr io.Writer,
) error

func (*Runner) Delete

func (r *Runner) Delete(ctx context.Context, 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(ctx context.Context) error

func (*Runner) Up

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

type UpOptions

type UpOptions struct {
	provider2.CLIOptions

	NoBuild    bool
	ForceBuild 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