ide

package
v0.0.0-...-4c964c4 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type IDE

type IDE interface {
	// Setup is responsible for doing all the operations for setting up the IDE in the container e.g. installation,
	// copying settings and configurations.
	Setup(ctx context.Context, exec *devcontainer.Exec) ([]byte, error)

	// Run runs the IDE and supporting services.
	Run(ctx context.Context, exec *devcontainer.Exec) ([]byte, error)

	// Port provides the port which will be used by this IDE.
	Port() *types.GitspacePort

	// Type provides the IDE type to which the service belongs.
	Type() enum.IDEType
}

type VSCode

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

func NewVsCodeService

func NewVsCodeService(config *VSCodeConfig) *VSCode

func ProvideVSCodeService

func ProvideVSCodeService(config *VSCodeConfig) *VSCode

func (*VSCode) Port

func (v *VSCode) Port() *types.GitspacePort

Port returns the port on which the ssh-server is listening.

func (*VSCode) Run

func (v *VSCode) Run(ctx context.Context, exec *devcontainer.Exec) ([]byte, error)

Run runs the SSH server inside the container.

func (*VSCode) Setup

func (v *VSCode) Setup(
	ctx context.Context,
	exec *devcontainer.Exec,
) ([]byte, error)

Setup installs the SSH server inside the container.

func (*VSCode) Type

func (v *VSCode) Type() enum.IDEType

type VSCodeConfig

type VSCodeConfig struct {
	Port int
}

type VSCodeWeb

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

func NewVsCodeWebService

func NewVsCodeWebService(config *VSCodeWebConfig) *VSCodeWeb

func ProvideVSCodeWebService

func ProvideVSCodeWebService(config *VSCodeWebConfig) *VSCodeWeb

func (*VSCodeWeb) Port

func (v *VSCodeWeb) Port() *types.GitspacePort

PortAndProtocol returns the port on which the code-server is listening.

func (*VSCodeWeb) Run

func (v *VSCodeWeb) Run(ctx context.Context, exec *devcontainer.Exec) ([]byte, error)

Run runs the code-server binary.

func (*VSCodeWeb) Setup

func (v *VSCodeWeb) Setup(ctx context.Context, exec *devcontainer.Exec) ([]byte, error)

Setup runs the installScript which downloads the required version of the code-server binary.

func (*VSCodeWeb) Type

func (v *VSCodeWeb) Type() enum.IDEType

type VSCodeWebConfig

type VSCodeWebConfig struct {
	Port int
}

Jump to

Keyboard shortcuts

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