Documentation
¶
Overview ¶
Package devcontainer decorates containers used as devcontainers.
Index ¶
Constants ¶
View Source
const ( CodespaceNameLabelName = "lxkns.codespace.name" DevContainerNameLabelName = "lxkns.devcontainer.name" )
View Source
const ( DevcontainerConfigfileLabelName = "devcontainer.config_file" DevcontainerLocalfolderLabelName = "devcontainer.local_folder" DevcontainerMetadataLabelName = "devcontainer.metadata" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CodespaceContainerEnv ¶
type CodespaceContainerEnv struct {
Codespaces string `json:"CODESPACES"` // "true"; yes, it's a string, not a because it's an env var.
RepositoryName string `json:"RepositoryName"` // actually the codespace name, eh?!
}
CodespaceContainerEnv is our specialized view on a container environment definition with “magic” env variables that tell us more about a codespace.
type ConfigBlock ¶
type ConfigBlock struct {
ContainerEnv CodespaceContainerEnv `json:"containerEnv"`
}
ConfigBlock is our limited view on a configuration block, where we are solely interested in the presence of a “containerEnv” field that hopefully contains an object with “magic” environment variable fields.
type Metadata ¶
type Metadata []ConfigBlock
Metadata for a devcontainer (including codespace) consists of a sequence of configuration blocks.
Click to show internal directories.
Click to hide internal directories.