Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImageFromDockerfile ¶
ImageFromDockerfile inspects the contents of a provided Dockerfile and returns the image that will be used to run the container.
func UserFromDockerfile ¶
UserFromDockerfile inspects the contents of a provided Dockerfile and returns the user that will be used to run the container.
Types ¶
type Compiled ¶
type Compiled struct { DockerfilePath string DockerfileContent string BuildContext string BuildArgs []string User string Env []string }
Compiled is the result of compiling a devcontainer.json file.
type Spec ¶
type Spec struct { Image string `json:"image"` Build BuildSpec `json:"build"` RemoteUser string `json:"remoteUser"` RemoteEnv map[string]string `json:"remoteEnv"` // Features is a map of feature names to feature configurations. Features map[string]map[string]any `json:"features"` // Deprecated but still frequently used... Dockerfile string `json:"dockerFile"` Context string `json:"context"` }
Click to show internal directories.
Click to hide internal directories.