Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideVSCodeWebService, ProvideVSCodeService, )
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.
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.
type VSCodeWebConfig ¶
type VSCodeWebConfig struct {
Port int
}
Click to show internal directories.
Click to hide internal directories.