codeserver

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package codeserver contains facilities for working with code-server.

Index

Constants

This section is empty.

Variables

View Source
var (
	// PortNotFoundError is returned whenever the port isn't found.
	// This can happen if code-server hasn't started it's listener yet
	// or if the code-server process failed for any reason.
	PortNotFoundError = xerrors.New("failed to find port")
)

Functions

func DownloadURL

func DownloadURL(ctx context.Context) (string, error)

DownloadURL gets a URL for the latest version of code-server.

func Extract

func Extract(ctx context.Context, tarFi io.Reader) (io.Reader, error)

Extract takes a code-server release tar and writes out the main binary to bin.

func PID

func PID(containerName string) (int, error)

PID returns the pid of code-server running inside of the container.

func Port

func Port(containerName string) (string, error)

Port returns the port that code-server is listening on, or PortNotFoundError if code-server isn't listening on any port.

Types

This section is empty.

Jump to

Keyboard shortcuts

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