Documentation
¶
Index ¶
- func ExecInDevContainer(containerIDOrName string, workDir string, args []string) error
- func GetContainerIDForPath(devcontainerPath string) (string, error)
- func GetDefaultDevcontainerNameForFolder(folderPath string) (string, error)
- func GetDevContainerURI(folderPath string) (string, error)
- func GetDevContainerUserName(devContainerJsonPath string) (string, error)
- func GetLocalFolderFromDevContainer(containerIDOrName string) (string, error)
- func GetWorkspaceMountPath(folderPath string) (string, error)
- func SetDevcontainerName(devContainerJsonPath string, name string) error
- type DevcontainerInfo
- type DevcontainerTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecInDevContainer ¶ added in v0.1.816111590
func GetContainerIDForPath ¶ added in v0.1.816111590
GetContainerIDForPath returns the ID of the running container that matches the path
func GetDefaultDevcontainerNameForFolder ¶ added in v0.1.259948365
func GetDevContainerURI ¶ added in v0.1.158565981
GetDevContainerURI gets the devcontainer URI for a folder to launch using the VS Code --folder-uri switch
func GetDevContainerUserName ¶ added in v0.1.310713546
func GetLocalFolderFromDevContainer ¶ added in v0.1.163415964
GetLocalFolderFromDevContainer looks up the local (host) folder name from the container labels
func GetWorkspaceMountPath ¶ added in v0.1.163415964
GetWorkspaceMountPath returns the devcontainer mount path for the devcontainer in the specified folder
func SetDevcontainerName ¶ added in v0.1.259948365
Types ¶
type DevcontainerInfo ¶
type DevcontainerInfo struct {
ContainerID string
ContainerName string
DevcontainerName string
LocalFolderPath string
}
DevcontainerInfo holds details about a devcontainer
func ListDevcontainers ¶
func ListDevcontainers() ([]DevcontainerInfo, error)
ListDevcontainers returns a list of devcontainers
type DevcontainerTemplate ¶ added in v0.1.114116943
type DevcontainerTemplate struct {
Name string
// Path is the path including the .devcontainer folder
Path string
}
DevcontainerTemplate holds info on templates for list/add etc
func GetTemplateByName ¶ added in v0.1.114116943
func GetTemplateByName(name string) (*DevcontainerTemplate, error)
GetTemplateByName returns the template with the specified name or nil if not found
func GetTemplates ¶ added in v0.1.114116943
func GetTemplates() ([]DevcontainerTemplate, error)
GetTemplates returns a list of discovered templates