Documentation ¶
Index ¶
- Constants
- func GetContainerEntrypointAndArgs(mergedConfig *config.MergedDevContainerConfig, ...) (string, []string)
- func GetRunnerIDFromWorkspace(workspace *provider2.Workspace) string
- func GetStartScript(mergedConfig *config.MergedDevContainerConfig) string
- type GetWorkspaceConfigResult
- func FindDevcontainerFiles(ctx context.Context, rawSource, tmpDirPath string, maxDepth int, ...) (*GetWorkspaceConfigResult, error)
- func FindFilesInGitRepo(ctx context.Context, ...) (*GetWorkspaceConfigResult, error)
- func FindFilesInLocalDir(rawSource string, maxDepth int, log log.Logger) (*GetWorkspaceConfigResult, error)
- type Runner
- type UpOptions
Constants ¶
View Source
const ( ConfigFilesLabel = "com.docker.compose.project.config_files" FeaturesBuildOverrideFilePrefix = "docker-compose.devcontainer.build" FeaturesStartOverrideFilePrefix = "docker-compose.devcontainer.containerFeatures" )
View Source
const ( DevPodExtraEnvVar = "DEVPOD" RemoteContainersExtraEnvVar = "REMOTE_CONTAINERS" WorkspaceIDExtraEnvVar = "DEVPOD_WORKSPACE_ID" WorkspaceUIDExtraEnvVar = "DEVPOD_WORKSPACE_UID" )
Variables ¶
This section is empty.
Functions ¶
func GetContainerEntrypointAndArgs ¶ added in v0.4.0
func GetContainerEntrypointAndArgs(mergedConfig *config.MergedDevContainerConfig, imageDetails *config.ImageDetails) (string, []string)
func GetRunnerIDFromWorkspace ¶ added in v0.2.0
func GetStartScript ¶ added in v0.4.0
func GetStartScript(mergedConfig *config.MergedDevContainerConfig) string
Types ¶
type GetWorkspaceConfigResult ¶ added in v0.5.20
type GetWorkspaceConfigResult struct { IsImage bool `json:"isImage"` IsGitRepository bool `json:"isGitRepository"` IsLocal bool `json:"isLocal"` ConfigPaths []string `json:"configPaths"` }
func FindDevcontainerFiles ¶ added in v0.5.20
func FindFilesInGitRepo ¶ added in v0.5.20
func FindFilesInLocalDir ¶ added in v0.5.20
type Runner ¶
type Runner interface { Up(ctx context.Context, options UpOptions, timeout time.Duration) (*config.Result, error) Build(ctx context.Context, options provider2.BuildOptions) (string, error) Find(ctx context.Context) (*config.ContainerDetails, error) Command( ctx context.Context, user string, command string, stdin io.Reader, stdout io.Writer, stderr io.Writer, ) error Stop(ctx context.Context) error Delete(ctx context.Context) error Logs(ctx context.Context, writer io.Writer) error }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.