devcontainers

package
v0.1.164655870 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDevContainerURI added in v0.1.158565981

func GetDevContainerURI(folderPath string) (string, error)

GetDevContainerURI gets the devcontainer URI for a folder to launch using the VS Code --folder-uri switch

func GetLocalFolderFromDevContainer added in v0.1.163415964

func GetLocalFolderFromDevContainer(containerIDOrName string) (string, error)

GetLocalFolderFromDevContainer looks up the local (host) folder name from the container labels

func GetWorkspaceMountPath added in v0.1.163415964

func GetWorkspaceMountPath(folderPath string) (string, error)

GetWorkspaceMountPath returns the devcontainer mount path for the devcontainer in the specified folder

Types

type DevcontainerInfo

type DevcontainerInfo struct {
	ContainerID      string
	ContainerName    string
	DevcontainerName 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL