codeserver

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2026 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// code-server is Coder's standalone VS Code in the browser. The tarball is
	// self-contained (no runtime download). %s is the version, e.g. 4.126.0.
	DownloadAmd64Template = "https://github.com/coder/code-server/releases/download/v%s/code-server-%s-linux-amd64.tar.gz"
	DownloadArm64Template = "https://github.com/coder/code-server/releases/download/v%s/code-server-%s-linux-arm64.tar.gz"
)
View Source
const (
	ForwardPortsOption  = "FORWARD_PORTS"
	OpenOption          = "OPEN"
	BindAddressOption   = "BIND_ADDRESS"
	VersionOption       = "VERSION"
	DownloadAmd64Option = "DOWNLOAD_AMD64"
	DownloadArm64Option = "DOWNLOAD_ARM64"
)
View Source
const DefaultVSCodePort = 10800

Variables

View Source
var Options = ide.Options{
	ForwardPortsOption: {
		Name:        ForwardPortsOption,
		Description: "If DevPod should automatically do port-forwarding",
		Default:     config.BoolTrue,
		Enum:        []string{config.BoolTrue, config.BoolFalse},
	},
	BindAddressOption: {
		Name:        BindAddressOption,
		Description: "The address to bind code-server to locally, e.g. 0.0.0.0:12345",
		Default:     "",
	},
	VersionOption: {
		Name:        VersionOption,
		Description: "The version for the code-server binary",
		Default:     "4.126.0",
	},
	OpenOption: {
		Name:        OpenOption,
		Description: "If DevPod should automatically open the browser",
		Default:     config.BoolTrue,
		Enum:        []string{config.BoolTrue, config.BoolFalse},
	},
	DownloadArm64Option: {
		Name:        DownloadArm64Option,
		Description: "The download url for the arm64 code-server binary",
	},
	DownloadAmd64Option: {
		Name:        DownloadAmd64Option,
		Description: "The download url for the amd64 code-server binary",
	},
}

Functions

This section is empty.

Types

type CodeServerServer

type CodeServerServer struct {
	// contains filtered or unexported fields
}

func NewCodeServerServer

func NewCodeServerServer(
	extensions []string,
	settings string,
	userName string,
	host, port string,
	values map[string]config.OptionValue,
	log log.Logger,
) *CodeServerServer

func (*CodeServerServer) Install

func (o *CodeServerServer) Install() error

func (*CodeServerServer) InstallExtensions

func (o *CodeServerServer) InstallExtensions() error

func (*CodeServerServer) Start

func (o *CodeServerServer) Start() error

Jump to

Keyboard shortcuts

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