Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigDir ¶ added in v0.11.0
func GetWorkspaceLogsDir ¶ added in v0.11.0
Types ¶
type Config ¶ added in v0.11.0
type Config struct { ProvidersDir string `json:"providersDir"` RegistryUrl string `json:"registryUrl"` Id string `json:"id"` ServerDownloadUrl string `json:"serverDownloadUrl"` Frps *FRPSConfig `json:"frps,omitempty"` ApiPort uint32 `json:"apiPort"` RegistryPort uint32 `json:"registryPort"` HeadscalePort uint32 `json:"headscalePort"` BinariesPath string `json:"binariesPath"` LogFilePath string `json:"logFilePath"` DefaultProjectImage string `json:"defaultProjectImage"` DefaultProjectUser string `json:"defaultProjectUser"` DefaultProjectPostStartCommands []string `json:"defaultProjectPostStartCommands"` } // @name ServerConfig
type FRPSConfig ¶ added in v0.11.0
type ILocalContainerRegistry ¶ added in v0.17.0
type ILocalContainerRegistry interface {
Start() error
}
type NetworkKey ¶ added in v0.11.0
type NetworkKey struct { Key string `json:"key"` } // @name NetworkKey
type Server ¶ added in v0.11.0
type Server struct {
ServerInstanceConfig
}
func GetInstance ¶ added in v0.11.0
func GetInstance(serverConfig *ServerInstanceConfig) *Server
func (*Server) GetBinaryPath ¶ added in v0.11.0
Check if the requested binary is already downloaded, if not, download it
type ServerInstanceConfig ¶ added in v0.11.0
type ServerInstanceConfig struct { Config Config TailscaleServer TailscaleServer ProviderTargetService providertargets.IProviderTargetService ContainerRegistryService containerregistries.IContainerRegistryService LocalContainerRegistry ILocalContainerRegistry WorkspaceService workspaces.IWorkspaceService ApiKeyService apikeys.IApiKeyService GitProviderService gitproviders.IGitProviderService ProviderManager manager.IProviderManager }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.