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" validate:"required"` RegistryUrl string `json:"registryUrl" validate:"required"` Id string `json:"id" validate:"required"` ServerDownloadUrl string `json:"serverDownloadUrl" validate:"required"` Frps *FRPSConfig `json:"frps,omitempty" validate:"optional"` ApiPort uint32 `json:"apiPort" validate:"required"` HeadscalePort uint32 `json:"headscalePort" validate:"required"` BinariesPath string `json:"binariesPath" validate:"required"` LogFilePath string `json:"logFilePath" validate:"required"` DefaultProjectImage string `json:"defaultProjectImage" validate:"required"` DefaultProjectUser string `json:"defaultProjectUser" validate:"required"` BuilderImage string `json:"builderImage" validate:"required"` LocalBuilderRegistryPort uint32 `json:"localBuilderRegistryPort" validate:"required"` LocalBuilderRegistryImage string `json:"localBuilderRegistryImage" validate:"required"` BuilderRegistryServer string `json:"builderRegistryServer" validate:"required"` BuildImageNamespace string `json:"buildImageNamespace" validate:"optional"` } // @name ServerConfig
type FRPSConfig ¶ added in v0.11.0
type ILocalContainerRegistry ¶ added in v0.17.0
type NetworkKey ¶ added in v0.11.0
type NetworkKey struct { Key string `json:"key" validate:"required"` } // @name NetworkKey
type Server ¶ added in v0.11.0
type Server struct { Id string TailscaleServer TailscaleServer ProviderTargetService providertargets.IProviderTargetService ContainerRegistryService containerregistries.IContainerRegistryService ProjectConfigService projectconfig.IProjectConfigService LocalContainerRegistry ILocalContainerRegistry WorkspaceService workspaces.IWorkspaceService ApiKeyService apikeys.IApiKeyService GitProviderService gitproviders.IGitProviderService ProviderManager manager.IProviderManager ProfileDataService profiledata.IProfileDataService TelemetryService telemetry.TelemetryService // contains filtered or unexported fields }
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 ProjectConfigService projectconfig.IProjectConfigService LocalContainerRegistry ILocalContainerRegistry WorkspaceService workspaces.IWorkspaceService ApiKeyService apikeys.IApiKeyService GitProviderService gitproviders.IGitProviderService ProviderManager manager.IProviderManager ProfileDataService profiledata.IProfileDataService TelemetryService telemetry.TelemetryService }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.