Documentation
¶
Index ¶
- type ActivityService
- type AuthService
- func (s *AuthService) ChangePassword(ctx context.Context, req *connect.Request[v1.ChangePasswordRequest]) (*connect.Response[v1.ChangePasswordResponse], error)
- func (s *AuthService) CreateAPIToken(ctx context.Context, req *connect.Request[v1.CreateAPITokenRequest]) (*connect.Response[v1.CreateAPITokenResponse], error)
- func (s *AuthService) CreateInvite(ctx context.Context, req *connect.Request[v1.CreateInviteRequest]) (*connect.Response[v1.CreateInviteResponse], error)
- func (s *AuthService) DeleteAPIToken(ctx context.Context, req *connect.Request[v1.DeleteAPITokenRequest]) (*connect.Response[v1.DeleteAPITokenResponse], error)
- func (s *AuthService) DeleteInvite(ctx context.Context, req *connect.Request[v1.DeleteInviteRequest]) (*connect.Response[v1.DeleteInviteResponse], error)
- func (s *AuthService) GetAuthConfig(ctx context.Context, req *connect.Request[v1.GetAuthConfigRequest]) (*connect.Response[v1.GetAuthConfigResponse], error)
- func (s *AuthService) GetAuthStatus(ctx context.Context, req *connect.Request[v1.GetAuthStatusRequest]) (*connect.Response[v1.GetAuthStatusResponse], error)
- func (s *AuthService) GetCurrentUser(ctx context.Context, req *connect.Request[v1.GetCurrentUserRequest]) (*connect.Response[v1.GetCurrentUserResponse], error)
- func (s *AuthService) GetInvite(ctx context.Context, req *connect.Request[v1.GetInviteRequest]) (*connect.Response[v1.GetInviteResponse], error)
- func (s *AuthService) GetOIDCLoginURL(ctx context.Context, req *connect.Request[v1.GetOIDCLoginURLRequest]) (*connect.Response[v1.GetOIDCLoginURLResponse], error)
- func (s *AuthService) ListAPITokens(ctx context.Context, req *connect.Request[v1.ListAPITokensRequest]) (*connect.Response[v1.ListAPITokensResponse], error)
- func (s *AuthService) ListInvites(ctx context.Context, req *connect.Request[v1.ListInvitesRequest]) (*connect.Response[v1.ListInvitesResponse], error)
- func (s *AuthService) Login(ctx context.Context, req *connect.Request[v1.LoginRequest]) (*connect.Response[v1.LoginResponse], error)
- func (s *AuthService) Logout(ctx context.Context, req *connect.Request[v1.LogoutRequest]) (*connect.Response[v1.LogoutResponse], error)
- func (s *AuthService) Register(ctx context.Context, req *connect.Request[v1.RegisterRequest]) (*connect.Response[v1.RegisterResponse], error)
- func (s *AuthService) UpdateAuthSettings(ctx context.Context, req *connect.Request[v1.UpdateAuthSettingsRequest]) (*connect.Response[v1.UpdateAuthSettingsResponse], error)
- func (s *AuthService) UseRecoveryKey(ctx context.Context, req *connect.Request[v1.UseRecoveryKeyRequest]) (*connect.Response[v1.UseRecoveryKeyResponse], error)
- func (s *AuthService) ValidateInvite(ctx context.Context, req *connect.Request[v1.ValidateInviteRequest]) (*connect.Response[v1.ValidateInviteResponse], error)
- type BackupService
- func (s *BackupService) DeleteBackup(ctx context.Context, req *connect.Request[v1.DeleteBackupRequest]) (*connect.Response[v1.DeleteBackupResponse], error)
- func (s *BackupService) ListBackups(ctx context.Context, req *connect.Request[v1.ListBackupsRequest]) (*connect.Response[v1.ListBackupsResponse], error)
- func (s *BackupService) RestoreBackup(ctx context.Context, req *connect.Request[v1.RestoreBackupRequest]) (*connect.Response[v1.RestoreBackupResponse], error)
- func (s *BackupService) SetBackupEncryption(keyID, key string) error
- func (s *BackupService) SetBackupLocked(ctx context.Context, req *connect.Request[v1.SetBackupLockedRequest]) (*connect.Response[v1.SetBackupLockedResponse], error)
- func (s *BackupService) SetEnforcer(e *rbac.Enforcer)
- func (s *BackupService) SetWorldDataDir(dataDir string)
- type BlueprintService
- func (s *BlueprintService) GetBlueprint(ctx context.Context, req *connect.Request[v1.GetBlueprintRequest]) (*connect.Response[v1.GetBlueprintResponse], error)
- func (s *BlueprintService) ListBlueprints(ctx context.Context, _ *connect.Request[v1.ListBlueprintsRequest]) (*connect.Response[v1.ListBlueprintsResponse], error)
- type BundleInfo
- type ConfigService
- func (s *ConfigService) DiscardUpdateBatch(ctx context.Context, req *connect.Request[v1.DiscardUpdateBatchRequest]) (*connect.Response[v1.DiscardUpdateBatchResponse], error)
- func (s *ConfigService) GetGlobalSettings(ctx context.Context, req *connect.Request[v1.GetGlobalSettingsRequest]) (*connect.Response[v1.GetGlobalSettingsResponse], error)
- func (s *ConfigService) GetServerConfig(ctx context.Context, req *connect.Request[v1.GetServerConfigRequest]) (*connect.Response[v1.GetServerConfigResponse], error)
- func (s *ConfigService) GetUpdateBatch(ctx context.Context, req *connect.Request[v1.GetUpdateBatchRequest]) (*connect.Response[v1.GetUpdateBatchResponse], error)
- func (s *ConfigService) SyncGlobalSettingsToServers(ctx context.Context, ...) (*connect.Response[v1.SyncGlobalSettingsToServersResponse], error)
- func (s *ConfigService) UpdateGlobalSettings(ctx context.Context, req *connect.Request[v1.UpdateGlobalSettingsRequest]) (*connect.Response[v1.UpdateGlobalSettingsResponse], error)
- func (s *ConfigService) UpdateServerConfig(ctx context.Context, req *connect.Request[v1.UpdateServerConfigRequest]) (*connect.Response[v1.UpdateServerConfigResponse], error)
- type DatapackService
- func (s *DatapackService) DeleteDatapack(ctx context.Context, req *connect.Request[v1.DeleteDatapackRequest]) (*connect.Response[v1.DeleteDatapackResponse], error)
- func (s *DatapackService) InstallDatapack(ctx context.Context, req *connect.Request[v1.InstallDatapackRequest]) (*connect.Response[v1.InstallDatapackResponse], error)
- func (s *DatapackService) ListDatapacks(ctx context.Context, req *connect.Request[v1.ListDatapacksRequest]) (*connect.Response[v1.ListDatapacksResponse], error)
- func (s *DatapackService) SearchDatapacks(ctx context.Context, req *connect.Request[v1.SearchDatapacksRequest]) (*connect.Response[v1.SearchDatapacksResponse], error)
- func (s *DatapackService) UploadDatapack(ctx context.Context, req *connect.Request[v1.UploadDatapackRequest]) (*connect.Response[v1.UploadDatapackResponse], error)
- type FileService
- func (s *FileService) CopyFile(ctx context.Context, req *connect.Request[v1.CopyFileRequest]) (*connect.Response[v1.CopyFileResponse], error)
- func (s *FileService) CreateArchive(ctx context.Context, req *connect.Request[v1.CreateArchiveRequest]) (*connect.Response[v1.CreateArchiveResponse], error)
- func (s *FileService) CreateFolder(ctx context.Context, req *connect.Request[v1.CreateFolderRequest]) (*connect.Response[v1.CreateFolderResponse], error)
- func (s *FileService) DeleteFile(ctx context.Context, req *connect.Request[v1.DeleteFileRequest]) (*connect.Response[v1.DeleteFileResponse], error)
- func (s *FileService) DownloadArchive(ctx context.Context, req *connect.Request[v1.DownloadArchiveRequest]) (*connect.Response[v1.DownloadArchiveResponse], error)
- func (s *FileService) DownloadRemoteArchive(ctx context.Context, req *connect.Request[v1.DownloadRemoteArchiveRequest]) (*connect.Response[v1.DownloadRemoteArchiveResponse], error)
- func (s *FileService) ExtractArchive(ctx context.Context, req *connect.Request[v1.ExtractArchiveRequest]) (*connect.Response[v1.ExtractArchiveResponse], error)
- func (s *FileService) GetExtractionStatus(ctx context.Context, req *connect.Request[v1.GetExtractionStatusRequest]) (*connect.Response[v1.GetExtractionStatusResponse], error)
- func (s *FileService) GetFile(ctx context.Context, req *connect.Request[v1.GetFileRequest]) (*connect.Response[v1.GetFileResponse], error)
- func (s *FileService) GetRemoteArchiveProgress(ctx context.Context, req *connect.Request[v1.GetRemoteArchiveProgressRequest]) (*connect.Response[v1.GetRemoteArchiveProgressResponse], error)
- func (s *FileService) InitFileDownload(ctx context.Context, req *connect.Request[v1.InitFileDownloadRequest]) (*connect.Response[v1.InitFileDownloadResponse], error)
- func (s *FileService) ListFiles(ctx context.Context, req *connect.Request[v1.ListFilesRequest]) (*connect.Response[v1.ListFilesResponse], error)
- func (s *FileService) MoveFile(ctx context.Context, req *connect.Request[v1.MoveFileRequest]) (*connect.Response[v1.MoveFileResponse], error)
- func (s *FileService) RenameFile(ctx context.Context, req *connect.Request[v1.RenameFileRequest]) (*connect.Response[v1.RenameFileResponse], error)
- func (s *FileService) SaveUploadedFile(ctx context.Context, req *connect.Request[v1.SaveUploadedFileRequest]) (*connect.Response[v1.SaveUploadedFileResponse], error)
- func (s *FileService) Stop()
- func (s *FileService) UpdateFile(ctx context.Context, req *connect.Request[v1.UpdateFileRequest]) (*connect.Response[v1.UpdateFileResponse], error)
- type MinecraftService
- func (s *MinecraftService) GetDockerImages(ctx context.Context, req *connect.Request[v1.GetDockerImagesRequest]) (*connect.Response[v1.GetDockerImagesResponse], error)
- func (s *MinecraftService) GetMinecraftVersions(ctx context.Context, req *connect.Request[v1.GetMinecraftVersionsRequest]) (*connect.Response[v1.GetMinecraftVersionsResponse], error)
- func (s *MinecraftService) GetModLoaders(ctx context.Context, req *connect.Request[v1.GetModLoadersRequest]) (*connect.Response[v1.GetModLoadersResponse], error)
- type ModService
- func (s *ModService) DeleteMod(ctx context.Context, req *connect.Request[v1.DeleteModRequest]) (*connect.Response[v1.DeleteModResponse], error)
- func (s *ModService) GetFabricOptimizationStack(ctx context.Context, ...) (*connect.Response[v1.GetFabricOptimizationStackResponse], error)
- func (s *ModService) GetMod(ctx context.Context, req *connect.Request[v1.GetModRequest]) (*connect.Response[v1.GetModResponse], error)
- func (s *ModService) ImportUploadedMod(ctx context.Context, req *connect.Request[v1.ImportUploadedModRequest]) (*connect.Response[v1.ImportUploadedModResponse], error)
- func (s *ModService) InstallFabricOptimizationStack(ctx context.Context, ...) (*connect.Response[v1.InstallFabricOptimizationStackResponse], error)
- func (s *ModService) ListMods(ctx context.Context, req *connect.Request[v1.ListModsRequest]) (*connect.Response[v1.ListModsResponse], error)
- func (s *ModService) UpdateMod(ctx context.Context, req *connect.Request[v1.UpdateModRequest]) (*connect.Response[v1.UpdateModResponse], error)
- type ModpackService
- func (s *ModpackService) DeleteModpack(ctx context.Context, req *connect.Request[v1.DeleteModpackRequest]) (*connect.Response[v1.DeleteModpackResponse], error)
- func (s *ModpackService) GetIndexerStatus(ctx context.Context, req *connect.Request[v1.GetIndexerStatusRequest]) (*connect.Response[v1.GetIndexerStatusResponse], error)
- func (s *ModpackService) GetModpack(ctx context.Context, req *connect.Request[v1.GetModpackRequest]) (*connect.Response[v1.GetModpackResponse], error)
- func (s *ModpackService) GetModpackBySlug(ctx context.Context, req *connect.Request[v1.GetModpackBySlugRequest]) (*connect.Response[v1.GetModpackBySlugResponse], error)
- func (s *ModpackService) GetModpackByURL(ctx context.Context, req *connect.Request[v1.GetModpackByURLRequest]) (*connect.Response[v1.GetModpackByURLResponse], error)
- func (s *ModpackService) GetModpackConfig(ctx context.Context, req *connect.Request[v1.GetModpackConfigRequest]) (*connect.Response[v1.GetModpackConfigResponse], error)
- func (s *ModpackService) GetModpackFiles(ctx context.Context, req *connect.Request[v1.GetModpackFilesRequest]) (*connect.Response[v1.GetModpackFilesResponse], error)
- func (s *ModpackService) GetModpackVersions(ctx context.Context, req *connect.Request[v1.GetModpackVersionsRequest]) (*connect.Response[v1.GetModpackVersionsResponse], error)
- func (s *ModpackService) ImportRemoteModpack(ctx context.Context, req *connect.Request[v1.ImportRemoteModpackRequest]) (*connect.Response[v1.ImportRemoteModpackResponse], error)
- func (s *ModpackService) ImportUploadedModpack(ctx context.Context, req *connect.Request[v1.ImportUploadedModpackRequest]) (*connect.Response[v1.ImportUploadedModpackResponse], error)
- func (s *ModpackService) ListFavorites(ctx context.Context, req *connect.Request[v1.ListFavoritesRequest]) (*connect.Response[v1.ListFavoritesResponse], error)
- func (s *ModpackService) SearchModpacks(ctx context.Context, req *connect.Request[v1.SearchModpacksRequest]) (*connect.Response[v1.SearchModpacksResponse], error)
- func (s *ModpackService) SyncModpackFiles(ctx context.Context, req *connect.Request[v1.SyncModpackFilesRequest]) (*connect.Response[v1.SyncModpackFilesResponse], error)
- func (s *ModpackService) SyncModpacks(ctx context.Context, req *connect.Request[v1.SyncModpacksRequest]) (*connect.Response[v1.SyncModpacksResponse], error)
- func (s *ModpackService) ToggleFavorite(ctx context.Context, req *connect.Request[v1.ToggleFavoriteRequest]) (*connect.Response[v1.ToggleFavoriteResponse], error)
- type ModuleService
- func (s *ModuleService) CreateModule(ctx context.Context, req *connect.Request[v1.CreateModuleRequest]) (*connect.Response[v1.CreateModuleResponse], error)
- func (s *ModuleService) CreateModuleTemplate(ctx context.Context, req *connect.Request[v1.CreateModuleTemplateRequest]) (*connect.Response[v1.CreateModuleTemplateResponse], error)
- func (s *ModuleService) DeleteModule(ctx context.Context, req *connect.Request[v1.DeleteModuleRequest]) (*connect.Response[v1.DeleteModuleResponse], error)
- func (s *ModuleService) DeleteModuleTemplate(ctx context.Context, req *connect.Request[v1.DeleteModuleTemplateRequest]) (*connect.Response[v1.DeleteModuleTemplateResponse], error)
- func (s *ModuleService) GetAvailableAliases(ctx context.Context, req *connect.Request[v1.GetAvailableAliasesRequest]) (*connect.Response[v1.GetAvailableAliasesResponse], error)
- func (s *ModuleService) GetModule(ctx context.Context, req *connect.Request[v1.GetModuleRequest]) (*connect.Response[v1.GetModuleResponse], error)
- func (s *ModuleService) GetModuleLogs(ctx context.Context, req *connect.Request[v1.GetModuleLogsRequest]) (*connect.Response[v1.GetModuleLogsResponse], error)
- func (s *ModuleService) GetModuleTemplate(ctx context.Context, req *connect.Request[v1.GetModuleTemplateRequest]) (*connect.Response[v1.GetModuleTemplateResponse], error)
- func (s *ModuleService) GetNextAvailableModulePort(ctx context.Context, ...) (*connect.Response[v1.GetNextAvailableModulePortResponse], error)
- func (s *ModuleService) GetResolvedAliases(ctx context.Context, req *connect.Request[v1.GetResolvedAliasesRequest]) (*connect.Response[v1.GetResolvedAliasesResponse], error)
- func (s *ModuleService) ListModuleTemplates(ctx context.Context, req *connect.Request[v1.ListModuleTemplatesRequest]) (*connect.Response[v1.ListModuleTemplatesResponse], error)
- func (s *ModuleService) ListModules(ctx context.Context, req *connect.Request[v1.ListModulesRequest]) (*connect.Response[v1.ListModulesResponse], error)
- func (s *ModuleService) RecreateModule(ctx context.Context, req *connect.Request[v1.RecreateModuleRequest]) (*connect.Response[v1.RecreateModuleResponse], error)
- func (s *ModuleService) RestartModule(ctx context.Context, req *connect.Request[v1.RestartModuleRequest]) (*connect.Response[v1.RestartModuleResponse], error)
- func (s *ModuleService) StartModule(ctx context.Context, req *connect.Request[v1.StartModuleRequest]) (*connect.Response[v1.StartModuleResponse], error)
- func (s *ModuleService) StopModule(ctx context.Context, req *connect.Request[v1.StopModuleRequest]) (*connect.Response[v1.StopModuleResponse], error)
- func (s *ModuleService) UpdateModule(ctx context.Context, req *connect.Request[v1.UpdateModuleRequest]) (*connect.Response[v1.UpdateModuleResponse], error)
- func (s *ModuleService) UpdateModuleTemplate(ctx context.Context, req *connect.Request[v1.UpdateModuleTemplateRequest]) (*connect.Response[v1.UpdateModuleTemplateResponse], error)
- type NodeService
- func (s *NodeService) CreateNode(ctx context.Context, req *connect.Request[v1.CreateNodeRequest]) (*connect.Response[v1.CreateNodeResponse], error)
- func (s *NodeService) DeleteNode(ctx context.Context, req *connect.Request[v1.DeleteNodeRequest]) (*connect.Response[v1.DeleteNodeResponse], error)
- func (s *NodeService) GetNode(ctx context.Context, req *connect.Request[v1.GetNodeRequest]) (*connect.Response[v1.GetNodeResponse], error)
- func (s *NodeService) ListNodes(ctx context.Context, req *connect.Request[v1.ListNodesRequest]) (*connect.Response[v1.ListNodesResponse], error)
- func (s *NodeService) PingNode(ctx context.Context, req *connect.Request[v1.PingNodeRequest]) (*connect.Response[v1.PingNodeResponse], error)
- func (s *NodeService) UpdateNode(ctx context.Context, req *connect.Request[v1.UpdateNodeRequest]) (*connect.Response[v1.UpdateNodeResponse], error)
- type ProxyService
- func (s *ProxyService) CreateProxyListener(ctx context.Context, req *connect.Request[v1.CreateProxyListenerRequest]) (*connect.Response[v1.CreateProxyListenerResponse], error)
- func (s *ProxyService) DeleteProxyListener(ctx context.Context, req *connect.Request[v1.DeleteProxyListenerRequest]) (*connect.Response[v1.DeleteProxyListenerResponse], error)
- func (s *ProxyService) GetProxyListeners(ctx context.Context, req *connect.Request[v1.GetProxyListenersRequest]) (*connect.Response[v1.GetProxyListenersResponse], error)
- func (s *ProxyService) GetProxyRoutes(ctx context.Context, req *connect.Request[v1.GetProxyRoutesRequest]) (*connect.Response[v1.GetProxyRoutesResponse], error)
- func (s *ProxyService) GetProxyStatus(ctx context.Context, req *connect.Request[v1.GetProxyStatusRequest]) (*connect.Response[v1.GetProxyStatusResponse], error)
- func (s *ProxyService) GetServerRouting(ctx context.Context, req *connect.Request[v1.GetServerRoutingRequest]) (*connect.Response[v1.GetServerRoutingResponse], error)
- func (s *ProxyService) GetVelocitySecret(ctx context.Context, req *connect.Request[v1.GetVelocitySecretRequest]) (*connect.Response[v1.GetVelocitySecretResponse], error)
- func (s *ProxyService) RotateVelocitySecret(ctx context.Context, req *connect.Request[v1.RotateVelocitySecretRequest]) (*connect.Response[v1.RotateVelocitySecretResponse], error)
- func (s *ProxyService) SyncVelocitySecretToServer(ctx context.Context, ...) (*connect.Response[v1.SyncVelocitySecretToServerResponse], error)
- func (s *ProxyService) UpdateProxyConfig(ctx context.Context, req *connect.Request[v1.UpdateProxyConfigRequest]) (*connect.Response[v1.UpdateProxyConfigResponse], error)
- func (s *ProxyService) UpdateProxyListener(ctx context.Context, req *connect.Request[v1.UpdateProxyListenerRequest]) (*connect.Response[v1.UpdateProxyListenerResponse], error)
- func (s *ProxyService) UpdateServerRouting(ctx context.Context, req *connect.Request[v1.UpdateServerRoutingRequest]) (*connect.Response[v1.UpdateServerRoutingResponse], error)
- type RoleService
- func (s *RoleService) AssignRole(ctx context.Context, req *connect.Request[v1.AssignRoleRequest]) (*connect.Response[v1.AssignRoleResponse], error)
- func (s *RoleService) CreateRole(ctx context.Context, req *connect.Request[v1.CreateRoleRequest]) (*connect.Response[v1.CreateRoleResponse], error)
- func (s *RoleService) DeleteRole(ctx context.Context, req *connect.Request[v1.DeleteRoleRequest]) (*connect.Response[v1.DeleteRoleResponse], error)
- func (s *RoleService) GetPermissionMatrix(ctx context.Context, req *connect.Request[v1.GetPermissionMatrixRequest]) (*connect.Response[v1.GetPermissionMatrixResponse], error)
- func (s *RoleService) GetRole(ctx context.Context, req *connect.Request[v1.GetRoleRequest]) (*connect.Response[v1.GetRoleResponse], error)
- func (s *RoleService) GetUserRoles(ctx context.Context, req *connect.Request[v1.GetUserRolesRequest]) (*connect.Response[v1.GetUserRolesResponse], error)
- func (s *RoleService) ListRoles(ctx context.Context, req *connect.Request[v1.ListRolesRequest]) (*connect.Response[v1.ListRolesResponse], error)
- func (s *RoleService) UnassignRole(ctx context.Context, req *connect.Request[v1.UnassignRoleRequest]) (*connect.Response[v1.UnassignRoleResponse], error)
- func (s *RoleService) UpdatePermissions(ctx context.Context, req *connect.Request[v1.UpdatePermissionsRequest]) (*connect.Response[v1.UpdatePermissionsResponse], error)
- func (s *RoleService) UpdateRole(ctx context.Context, req *connect.Request[v1.UpdateRoleRequest]) (*connect.Response[v1.UpdateRoleResponse], error)
- type ServerService
- func (s *ServerService) ClearServerLogs(ctx context.Context, req *connect.Request[v1.ClearServerLogsRequest]) (*connect.Response[v1.ClearServerLogsResponse], error)
- func (s *ServerService) CreateServer(ctx context.Context, req *connect.Request[v1.CreateServerRequest]) (*connect.Response[v1.CreateServerResponse], error)
- func (s *ServerService) DeleteServer(ctx context.Context, req *connect.Request[v1.DeleteServerRequest]) (*connect.Response[v1.DeleteServerResponse], error)
- func (s *ServerService) GetNextAvailablePort(ctx context.Context, req *connect.Request[v1.GetNextAvailablePortRequest]) (*connect.Response[v1.GetNextAvailablePortResponse], error)
- func (s *ServerService) GetServer(ctx context.Context, req *connect.Request[v1.GetServerRequest]) (*connect.Response[v1.GetServerResponse], error)
- func (s *ServerService) GetServerLogs(ctx context.Context, req *connect.Request[v1.GetServerLogsRequest]) (*connect.Response[v1.GetServerLogsResponse], error)
- func (s *ServerService) ListServerPlayers(ctx context.Context, req *connect.Request[v1.ListServerPlayersRequest]) (*connect.Response[v1.ListServerPlayersResponse], error)
- func (s *ServerService) ListServers(ctx context.Context, req *connect.Request[v1.ListServersRequest]) (*connect.Response[v1.ListServersResponse], error)
- func (s *ServerService) MigrateServer(ctx context.Context, req *connect.Request[v1.MigrateServerRequest]) (*connect.Response[v1.MigrateServerResponse], error)
- func (s *ServerService) RecreateServer(ctx context.Context, req *connect.Request[v1.RecreateServerRequest]) (*connect.Response[v1.RecreateServerResponse], error)
- func (s *ServerService) RestartServer(ctx context.Context, req *connect.Request[v1.RestartServerRequest]) (out *connect.Response[v1.RestartServerResponse], retErr error)
- func (s *ServerService) SendCommand(ctx context.Context, req *connect.Request[v1.SendCommandRequest]) (*connect.Response[v1.SendCommandResponse], error)
- func (s *ServerService) SetClientPool(pool *docker.ClientPool)
- func (s *ServerService) SetPlacementEngine(engine *docker.PlacementEngine)
- func (s *ServerService) StartServer(ctx context.Context, req *connect.Request[v1.StartServerRequest]) (out *connect.Response[v1.StartServerResponse], retErr error)
- func (s *ServerService) StopServer(ctx context.Context, req *connect.Request[v1.StopServerRequest]) (*connect.Response[v1.StopServerResponse], error)
- func (s *ServerService) UpdateServer(ctx context.Context, req *connect.Request[v1.UpdateServerRequest]) (*connect.Response[v1.UpdateServerResponse], error)
- func (s *ServerService) UploadToMCLogs(ctx context.Context, req *connect.Request[v1.UploadToMCLogsRequest]) (*connect.Response[v1.UploadToMCLogsResponse], error)
- type SubuserService
- func (s *SubuserService) ListSubusers(ctx context.Context, req *connect.Request[v1.ListSubusersRequest]) (*connect.Response[v1.ListSubusersResponse], error)
- func (s *SubuserService) RemoveSubuser(ctx context.Context, req *connect.Request[v1.RemoveSubuserRequest]) (*connect.Response[v1.RemoveSubuserResponse], error)
- func (s *SubuserService) SetSubuser(ctx context.Context, req *connect.Request[v1.SetSubuserRequest]) (*connect.Response[v1.SetSubuserResponse], error)
- type SupportService
- func (s *SupportService) DownloadSupportBundle(ctx context.Context, req *connect.Request[v1.DownloadSupportBundleRequest]) (*connect.Response[v1.DownloadSupportBundleResponse], error)
- func (s *SupportService) GenerateSupportBundle(ctx context.Context, req *connect.Request[v1.GenerateSupportBundleRequest]) (*connect.Response[v1.GenerateSupportBundleResponse], error)
- func (s *SupportService) GetApplicationLogs(ctx context.Context, req *connect.Request[v1.GetApplicationLogsRequest]) (*connect.Response[v1.GetApplicationLogsResponse], error)
- func (s *SupportService) UploadSupportBundle(ctx context.Context, req *connect.Request[v1.UploadSupportBundleRequest]) (*connect.Response[v1.UploadSupportBundleResponse], error)
- type TaskService
- func (s *TaskService) CancelExecution(ctx context.Context, req *connect.Request[v1.CancelExecutionRequest]) (*connect.Response[v1.CancelExecutionResponse], error)
- func (s *TaskService) CreateTask(ctx context.Context, req *connect.Request[v1.CreateTaskRequest]) (*connect.Response[v1.CreateTaskResponse], error)
- func (s *TaskService) DeleteTask(ctx context.Context, req *connect.Request[v1.DeleteTaskRequest]) (*connect.Response[v1.DeleteTaskResponse], error)
- func (s *TaskService) GetSchedulerStatus(ctx context.Context, req *connect.Request[v1.GetSchedulerStatusRequest]) (*connect.Response[v1.GetSchedulerStatusResponse], error)
- func (s *TaskService) GetTask(ctx context.Context, req *connect.Request[v1.GetTaskRequest]) (*connect.Response[v1.GetTaskResponse], error)
- func (s *TaskService) GetTaskExecution(ctx context.Context, req *connect.Request[v1.GetTaskExecutionRequest]) (*connect.Response[v1.GetTaskExecutionResponse], error)
- func (s *TaskService) ListServerExecutions(ctx context.Context, req *connect.Request[v1.ListServerExecutionsRequest]) (*connect.Response[v1.ListServerExecutionsResponse], error)
- func (s *TaskService) ListTaskExecutions(ctx context.Context, req *connect.Request[v1.ListTaskExecutionsRequest]) (*connect.Response[v1.ListTaskExecutionsResponse], error)
- func (s *TaskService) ListTasks(ctx context.Context, req *connect.Request[v1.ListTasksRequest]) (*connect.Response[v1.ListTasksResponse], error)
- func (s *TaskService) ToggleTask(ctx context.Context, req *connect.Request[v1.ToggleTaskRequest]) (*connect.Response[v1.ToggleTaskResponse], error)
- func (s *TaskService) TriggerTask(ctx context.Context, req *connect.Request[v1.TriggerTaskRequest]) (*connect.Response[v1.TriggerTaskResponse], error)
- func (s *TaskService) UpdateTask(ctx context.Context, req *connect.Request[v1.UpdateTaskRequest]) (*connect.Response[v1.UpdateTaskResponse], error)
- type UploadService
- func (s *UploadService) CancelUpload(ctx context.Context, req *connect.Request[v1.CancelUploadRequest]) (*connect.Response[v1.CancelUploadResponse], error)
- func (s *UploadService) GetManager() *upload.Manager
- func (s *UploadService) GetUploadStatus(ctx context.Context, req *connect.Request[v1.GetUploadStatusRequest]) (*connect.Response[v1.GetUploadStatusResponse], error)
- func (s *UploadService) InitUpload(ctx context.Context, req *connect.Request[v1.InitUploadRequest]) (*connect.Response[v1.InitUploadResponse], error)
- func (s *UploadService) UploadChunk(ctx context.Context, req *connect.Request[v1.UploadChunkRequest]) (*connect.Response[v1.UploadChunkResponse], error)
- type UploadUserInfo
- type UserService
- func (s *UserService) CreateUser(ctx context.Context, req *connect.Request[v1.CreateUserRequest]) (*connect.Response[v1.CreateUserResponse], error)
- func (s *UserService) DeleteUser(ctx context.Context, req *connect.Request[v1.DeleteUserRequest]) (*connect.Response[v1.DeleteUserResponse], error)
- func (s *UserService) GetUser(ctx context.Context, req *connect.Request[v1.GetUserRequest]) (*connect.Response[v1.GetUserResponse], error)
- func (s *UserService) ListUsers(ctx context.Context, req *connect.Request[v1.ListUsersRequest]) (*connect.Response[v1.ListUsersResponse], error)
- func (s *UserService) UpdateUser(ctx context.Context, req *connect.Request[v1.UpdateUserRequest]) (*connect.Response[v1.UpdateUserResponse], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivityService ¶
type ActivityService struct {
// contains filtered or unexported fields
}
ActivityService serves the audit-trail read API (MINE-141).
func NewActivityService ¶
func NewActivityService(store *storage.Store, log *logger.Logger) *ActivityService
func (*ActivityService) ListActivityLogs ¶
func (s *ActivityService) ListActivityLogs(ctx context.Context, req *connect.Request[v1.ListActivityLogsRequest]) (*connect.Response[v1.ListActivityLogsResponse], error)
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func NewAuthService ¶
func (*AuthService) ChangePassword ¶
func (s *AuthService) ChangePassword(ctx context.Context, req *connect.Request[v1.ChangePasswordRequest]) (*connect.Response[v1.ChangePasswordResponse], error)
func (*AuthService) CreateAPIToken ¶
func (s *AuthService) CreateAPIToken(ctx context.Context, req *connect.Request[v1.CreateAPITokenRequest]) (*connect.Response[v1.CreateAPITokenResponse], error)
func (*AuthService) CreateInvite ¶
func (s *AuthService) CreateInvite(ctx context.Context, req *connect.Request[v1.CreateInviteRequest]) (*connect.Response[v1.CreateInviteResponse], error)
func (*AuthService) DeleteAPIToken ¶
func (s *AuthService) DeleteAPIToken(ctx context.Context, req *connect.Request[v1.DeleteAPITokenRequest]) (*connect.Response[v1.DeleteAPITokenResponse], error)
func (*AuthService) DeleteInvite ¶
func (s *AuthService) DeleteInvite(ctx context.Context, req *connect.Request[v1.DeleteInviteRequest]) (*connect.Response[v1.DeleteInviteResponse], error)
func (*AuthService) GetAuthConfig ¶
func (s *AuthService) GetAuthConfig(ctx context.Context, req *connect.Request[v1.GetAuthConfigRequest]) (*connect.Response[v1.GetAuthConfigResponse], error)
func (*AuthService) GetAuthStatus ¶
func (s *AuthService) GetAuthStatus(ctx context.Context, req *connect.Request[v1.GetAuthStatusRequest]) (*connect.Response[v1.GetAuthStatusResponse], error)
func (*AuthService) GetCurrentUser ¶
func (s *AuthService) GetCurrentUser(ctx context.Context, req *connect.Request[v1.GetCurrentUserRequest]) (*connect.Response[v1.GetCurrentUserResponse], error)
func (*AuthService) GetInvite ¶
func (s *AuthService) GetInvite(ctx context.Context, req *connect.Request[v1.GetInviteRequest]) (*connect.Response[v1.GetInviteResponse], error)
func (*AuthService) GetOIDCLoginURL ¶
func (s *AuthService) GetOIDCLoginURL(ctx context.Context, req *connect.Request[v1.GetOIDCLoginURLRequest]) (*connect.Response[v1.GetOIDCLoginURLResponse], error)
func (*AuthService) ListAPITokens ¶
func (s *AuthService) ListAPITokens(ctx context.Context, req *connect.Request[v1.ListAPITokensRequest]) (*connect.Response[v1.ListAPITokensResponse], error)
func (*AuthService) ListInvites ¶
func (s *AuthService) ListInvites(ctx context.Context, req *connect.Request[v1.ListInvitesRequest]) (*connect.Response[v1.ListInvitesResponse], error)
func (*AuthService) Login ¶
func (s *AuthService) Login(ctx context.Context, req *connect.Request[v1.LoginRequest]) (*connect.Response[v1.LoginResponse], error)
func (*AuthService) Logout ¶
func (s *AuthService) Logout(ctx context.Context, req *connect.Request[v1.LogoutRequest]) (*connect.Response[v1.LogoutResponse], error)
func (*AuthService) Register ¶
func (s *AuthService) Register(ctx context.Context, req *connect.Request[v1.RegisterRequest]) (*connect.Response[v1.RegisterResponse], error)
func (*AuthService) UpdateAuthSettings ¶
func (s *AuthService) UpdateAuthSettings(ctx context.Context, req *connect.Request[v1.UpdateAuthSettingsRequest]) (*connect.Response[v1.UpdateAuthSettingsResponse], error)
func (*AuthService) UseRecoveryKey ¶
func (s *AuthService) UseRecoveryKey(ctx context.Context, req *connect.Request[v1.UseRecoveryKeyRequest]) (*connect.Response[v1.UseRecoveryKeyResponse], error)
func (*AuthService) ValidateInvite ¶
func (s *AuthService) ValidateInvite(ctx context.Context, req *connect.Request[v1.ValidateInviteRequest]) (*connect.Response[v1.ValidateInviteResponse], error)
type BackupService ¶
type BackupService struct {
// contains filtered or unexported fields
}
BackupService manages on-demand backup records (MINE-138).
func NewBackupService ¶
func (*BackupService) DeleteBackup ¶
func (s *BackupService) DeleteBackup(ctx context.Context, req *connect.Request[v1.DeleteBackupRequest]) (*connect.Response[v1.DeleteBackupResponse], error)
func (*BackupService) ListBackups ¶
func (s *BackupService) ListBackups(ctx context.Context, req *connect.Request[v1.ListBackupsRequest]) (*connect.Response[v1.ListBackupsResponse], error)
func (*BackupService) RestoreBackup ¶
func (s *BackupService) RestoreBackup(ctx context.Context, req *connect.Request[v1.RestoreBackupRequest]) (*connect.Response[v1.RestoreBackupResponse], error)
func (*BackupService) SetBackupEncryption ¶ added in v1.0.39
func (s *BackupService) SetBackupEncryption(keyID, key string) error
SetBackupEncryption configures the authenticated-encryption key for backup artifacts (OSS-236). Empty key material is the explicit disabled state.
func (*BackupService) SetBackupLocked ¶
func (s *BackupService) SetBackupLocked(ctx context.Context, req *connect.Request[v1.SetBackupLockedRequest]) (*connect.Response[v1.SetBackupLockedResponse], error)
func (*BackupService) SetEnforcer ¶
func (s *BackupService) SetEnforcer(e *rbac.Enforcer)
func (*BackupService) SetWorldDataDir ¶ added in v1.0.39
func (s *BackupService) SetWorldDataDir(dataDir string)
the controller data directory that owns installation identity and the worldstore journal. Production must set it; without it, restores of worldstore-format archives are refused rather than silently degraded.
type BlueprintService ¶
type BlueprintService struct {
// contains filtered or unexported fields
}
BlueprintService serves server flavor seeds (MINE-143).
func NewBlueprintService ¶
func NewBlueprintService(store *storage.Store, log *logger.Logger) *BlueprintService
func (*BlueprintService) GetBlueprint ¶
func (s *BlueprintService) GetBlueprint(ctx context.Context, req *connect.Request[v1.GetBlueprintRequest]) (*connect.Response[v1.GetBlueprintResponse], error)
func (*BlueprintService) ListBlueprints ¶
func (s *BlueprintService) ListBlueprints(ctx context.Context, _ *connect.Request[v1.ListBlueprintsRequest]) (*connect.Response[v1.ListBlueprintsResponse], error)
type BundleInfo ¶
BundleInfo stores information about a generated bundle
type ConfigService ¶
type ConfigService struct {
// contains filtered or unexported fields
}
func NewConfigService ¶
func NewConfigService(store *storage.Store, cfg *config.Config, dockerCli *docker.Client, pool *docker.ClientPool, log *logger.Logger) *ConfigService
Creates new config service
func (*ConfigService) DiscardUpdateBatch ¶ added in v1.0.39
func (s *ConfigService) DiscardUpdateBatch(ctx context.Context, req *connect.Request[v1.DiscardUpdateBatchRequest]) (*connect.Response[v1.DiscardUpdateBatchResponse], error)
DiscardUpdateBatch drops one staged item, or the whole batch when no item is named.
func (*ConfigService) GetGlobalSettings ¶
func (s *ConfigService) GetGlobalSettings(ctx context.Context, req *connect.Request[v1.GetGlobalSettingsRequest]) (*connect.Response[v1.GetGlobalSettingsResponse], error)
Gets global settings
func (*ConfigService) GetServerConfig ¶
func (s *ConfigService) GetServerConfig(ctx context.Context, req *connect.Request[v1.GetServerConfigRequest]) (*connect.Response[v1.GetServerConfigResponse], error)
Gets server config
func (*ConfigService) GetUpdateBatch ¶ added in v1.0.39
func (s *ConfigService) GetUpdateBatch(ctx context.Context, req *connect.Request[v1.GetUpdateBatchRequest]) (*connect.Response[v1.GetUpdateBatchResponse], error)
GetUpdateBatch returns the server's open staged batch and the items in it.
func (*ConfigService) SyncGlobalSettingsToServers ¶
func (s *ConfigService) SyncGlobalSettingsToServers(ctx context.Context, req *connect.Request[v1.SyncGlobalSettingsToServersRequest]) (*connect.Response[v1.SyncGlobalSettingsToServersResponse], error)
SyncGlobalSettingsToServers propagates global defaults (like Ops and Whitelist) to all existing servers
func (*ConfigService) UpdateGlobalSettings ¶
func (s *ConfigService) UpdateGlobalSettings(ctx context.Context, req *connect.Request[v1.UpdateGlobalSettingsRequest]) (*connect.Response[v1.UpdateGlobalSettingsResponse], error)
Updates global settings
func (*ConfigService) UpdateServerConfig ¶
func (s *ConfigService) UpdateServerConfig(ctx context.Context, req *connect.Request[v1.UpdateServerConfigRequest]) (*connect.Response[v1.UpdateServerConfigResponse], error)
Updates server config
type DatapackService ¶ added in v1.0.39
type DatapackService struct {
// contains filtered or unexported fields
}
DatapackService manages datapack discovery and installation. Datapacks are world-data bundles that run on Vanilla servers (no mod loader) and live under <world>/datapacks.
func NewDatapackService ¶ added in v1.0.39
func NewDatapackService(store *storage.Store, cfg *config.Config, uploadManager *upload.Manager, log *logger.Logger) *DatapackService
NewDatapackService creates a datapack service.
func (*DatapackService) DeleteDatapack ¶ added in v1.0.39
func (s *DatapackService) DeleteDatapack(ctx context.Context, req *connect.Request[v1.DeleteDatapackRequest]) (*connect.Response[v1.DeleteDatapackResponse], error)
DeleteDatapack removes an installed datapack from a server's world.
func (*DatapackService) InstallDatapack ¶ added in v1.0.39
func (s *DatapackService) InstallDatapack(ctx context.Context, req *connect.Request[v1.InstallDatapackRequest]) (*connect.Response[v1.InstallDatapackResponse], error)
InstallDatapack downloads a datapack from an index into the server's world.
func (*DatapackService) ListDatapacks ¶ added in v1.0.39
func (s *DatapackService) ListDatapacks(ctx context.Context, req *connect.Request[v1.ListDatapacksRequest]) (*connect.Response[v1.ListDatapacksResponse], error)
ListDatapacks lists the datapacks installed in a server's world.
func (*DatapackService) SearchDatapacks ¶ added in v1.0.39
func (s *DatapackService) SearchDatapacks(ctx context.Context, req *connect.Request[v1.SearchDatapacksRequest]) (*connect.Response[v1.SearchDatapacksResponse], error)
SearchDatapacks queries datapack indexes for installable datapacks. Without an explicit indexer it searches every registered provider concurrently and merges by popularity, so one provider's outage degrades coverage instead of failing the search.
func (*DatapackService) UploadDatapack ¶ added in v1.0.39
func (s *DatapackService) UploadDatapack(ctx context.Context, req *connect.Request[v1.UploadDatapackRequest]) (*connect.Response[v1.UploadDatapackResponse], error)
UploadDatapack imports an uploaded datapack archive into the server's world. The archive is validated as a real Minecraft datapack before it lands, with the same wrapper-folder repair as indexed installs.
type FileService ¶
type FileService struct {
// contains filtered or unexported fields
}
FileService implements the File service
func NewFileService ¶
func NewFileService(store *storage.Store, docker *docker.Client, uploadManager *upload.Manager, downloadManager *download.Manager, log *logger.Logger) *FileService
NewFileService creates a new file service
func (*FileService) CopyFile ¶
func (s *FileService) CopyFile(ctx context.Context, req *connect.Request[v1.CopyFileRequest]) (*connect.Response[v1.CopyFileResponse], error)
CopyFile copies a file or directory
func (*FileService) CreateArchive ¶
func (s *FileService) CreateArchive(ctx context.Context, req *connect.Request[v1.CreateArchiveRequest]) (*connect.Response[v1.CreateArchiveResponse], error)
CreateArchive creates a zip archive from selected paths
func (*FileService) CreateFolder ¶
func (s *FileService) CreateFolder(ctx context.Context, req *connect.Request[v1.CreateFolderRequest]) (*connect.Response[v1.CreateFolderResponse], error)
CreateFolder creates a new directory
func (*FileService) DeleteFile ¶
func (s *FileService) DeleteFile(ctx context.Context, req *connect.Request[v1.DeleteFileRequest]) (*connect.Response[v1.DeleteFileResponse], error)
DeleteFile deletes a file or multiple files (bulk)
func (*FileService) DownloadArchive ¶
func (s *FileService) DownloadArchive(ctx context.Context, req *connect.Request[v1.DownloadArchiveRequest]) (*connect.Response[v1.DownloadArchiveResponse], error)
DownloadArchive creates a zip on disk and returns a download session. The actual bytes are served via GET /api/v1/download/{session_id}.
func (*FileService) DownloadRemoteArchive ¶
func (s *FileService) DownloadRemoteArchive(ctx context.Context, req *connect.Request[v1.DownloadRemoteArchiveRequest]) (*connect.Response[v1.DownloadRemoteArchiveResponse], error)
DownloadRemoteArchive downloads an archive from a remote URL (GitHub releases, S3, CDN) with progress, checksum validation, and optional auto-extraction
func (*FileService) ExtractArchive ¶
func (s *FileService) ExtractArchive(ctx context.Context, req *connect.Request[v1.ExtractArchiveRequest]) (*connect.Response[v1.ExtractArchiveResponse], error)
ExtractArchive extracts an archive
func (*FileService) GetExtractionStatus ¶
func (s *FileService) GetExtractionStatus(ctx context.Context, req *connect.Request[v1.GetExtractionStatusRequest]) (*connect.Response[v1.GetExtractionStatusResponse], error)
Get progress of extraction
func (*FileService) GetFile ¶
func (s *FileService) GetFile(ctx context.Context, req *connect.Request[v1.GetFileRequest]) (*connect.Response[v1.GetFileResponse], error)
GetFile gets a file's content
func (*FileService) GetRemoteArchiveProgress ¶
func (s *FileService) GetRemoteArchiveProgress(ctx context.Context, req *connect.Request[v1.GetRemoteArchiveProgressRequest]) (*connect.Response[v1.GetRemoteArchiveProgressResponse], error)
GetRemoteArchiveProgress returns current status and bytes progress of a remote download
func (*FileService) InitFileDownload ¶
func (s *FileService) InitFileDownload(ctx context.Context, req *connect.Request[v1.InitFileDownloadRequest]) (*connect.Response[v1.InitFileDownloadResponse], error)
Creates a download session for file Bytes are served via GET /api/v1/download/{session_id}.
func (*FileService) ListFiles ¶
func (s *FileService) ListFiles(ctx context.Context, req *connect.Request[v1.ListFilesRequest]) (*connect.Response[v1.ListFilesResponse], error)
ListFiles lists files in a directory
func (*FileService) MoveFile ¶
func (s *FileService) MoveFile(ctx context.Context, req *connect.Request[v1.MoveFileRequest]) (*connect.Response[v1.MoveFileResponse], error)
MoveFile moves a file or directory to a new location
func (*FileService) RenameFile ¶
func (s *FileService) RenameFile(ctx context.Context, req *connect.Request[v1.RenameFileRequest]) (*connect.Response[v1.RenameFileResponse], error)
RenameFile renames a file
func (*FileService) SaveUploadedFile ¶
func (s *FileService) SaveUploadedFile(ctx context.Context, req *connect.Request[v1.SaveUploadedFileRequest]) (*connect.Response[v1.SaveUploadedFileResponse], error)
SaveUploadedFile saves a file from a completed chunked upload session
func (*FileService) Stop ¶
func (s *FileService) Stop()
Stop terminates the background cleanup goroutine. Safe to call more than once. Callers that construct a FileService outside the normal server startup path (notably tests) should defer this so they do not leak the goroutine.
func (*FileService) UpdateFile ¶
func (s *FileService) UpdateFile(ctx context.Context, req *connect.Request[v1.UpdateFileRequest]) (*connect.Response[v1.UpdateFileResponse], error)
UpdateFile updates a file's content
type MinecraftService ¶
type MinecraftService struct {
// contains filtered or unexported fields
}
MinecraftService implements the Minecraft service
func NewMinecraftService ¶
func NewMinecraftService(store *storage.Store, docker *docker.Client, log *logger.Logger) *MinecraftService
NewMinecraftService creates a new minecraft service
func (*MinecraftService) GetDockerImages ¶
func (s *MinecraftService) GetDockerImages(ctx context.Context, req *connect.Request[v1.GetDockerImagesRequest]) (*connect.Response[v1.GetDockerImagesResponse], error)
GetDockerImages gets available Docker images
func (*MinecraftService) GetMinecraftVersions ¶
func (s *MinecraftService) GetMinecraftVersions(ctx context.Context, req *connect.Request[v1.GetMinecraftVersionsRequest]) (*connect.Response[v1.GetMinecraftVersionsResponse], error)
GetMinecraftVersions gets available Minecraft versions
func (*MinecraftService) GetModLoaders ¶
func (s *MinecraftService) GetModLoaders(ctx context.Context, req *connect.Request[v1.GetModLoadersRequest]) (*connect.Response[v1.GetModLoadersResponse], error)
GetModLoaders gets available mod loaders
type ModService ¶
type ModService struct {
// contains filtered or unexported fields
}
ModService implements the Mod service
func NewModService ¶
func NewModService(store *storage.Store, docker *docker.Client, uploadManager *upload.Manager, log *logger.Logger) *ModService
NewModService creates a new mod service
func (*ModService) DeleteMod ¶
func (s *ModService) DeleteMod(ctx context.Context, req *connect.Request[v1.DeleteModRequest]) (*connect.Response[v1.DeleteModResponse], error)
DeleteMod deletes a mod
func (*ModService) GetFabricOptimizationStack ¶
func (s *ModService) GetFabricOptimizationStack(ctx context.Context, req *connect.Request[v1.GetFabricOptimizationStackRequest]) (*connect.Response[v1.GetFabricOptimizationStackResponse], error)
GetFabricOptimizationStack checks the status and compatibility of Lithium, FerriteCore, ModernFix, and C2ME
func (*ModService) GetMod ¶
func (s *ModService) GetMod(ctx context.Context, req *connect.Request[v1.GetModRequest]) (*connect.Response[v1.GetModResponse], error)
GetMod gets a specific mod
func (*ModService) ImportUploadedMod ¶
func (s *ModService) ImportUploadedMod(ctx context.Context, req *connect.Request[v1.ImportUploadedModRequest]) (*connect.Response[v1.ImportUploadedModResponse], error)
ImportUploadedMod imports a mod
func (*ModService) InstallFabricOptimizationStack ¶
func (s *ModService) InstallFabricOptimizationStack(ctx context.Context, req *connect.Request[v1.InstallFabricOptimizationStackRequest]) (*connect.Response[v1.InstallFabricOptimizationStackResponse], error)
InstallFabricOptimizationStack installs or updates Lithium, FerriteCore, ModernFix, and/or C2ME
func (*ModService) ListMods ¶
func (s *ModService) ListMods(ctx context.Context, req *connect.Request[v1.ListModsRequest]) (*connect.Response[v1.ListModsResponse], error)
ListMods lists mods for a server
func (*ModService) UpdateMod ¶
func (s *ModService) UpdateMod(ctx context.Context, req *connect.Request[v1.UpdateModRequest]) (*connect.Response[v1.UpdateModResponse], error)
UpdateMod updates a mod
type ModpackService ¶
type ModpackService struct {
// contains filtered or unexported fields
}
ModpackService implements the Modpack service
func NewModpackService ¶
func NewModpackService(store *storage.Store, cfg *config.Config, uploadManager *upload.Manager, log *logger.Logger) *ModpackService
NewModpackService creates a new modpack service
func (*ModpackService) DeleteModpack ¶
func (s *ModpackService) DeleteModpack(ctx context.Context, req *connect.Request[v1.DeleteModpackRequest]) (*connect.Response[v1.DeleteModpackResponse], error)
DeleteModpack deletes a modpack
func (*ModpackService) GetIndexerStatus ¶
func (s *ModpackService) GetIndexerStatus(ctx context.Context, req *connect.Request[v1.GetIndexerStatusRequest]) (*connect.Response[v1.GetIndexerStatusResponse], error)
GetIndexerStatus gets indexer status
func (*ModpackService) GetModpack ¶
func (s *ModpackService) GetModpack(ctx context.Context, req *connect.Request[v1.GetModpackRequest]) (*connect.Response[v1.GetModpackResponse], error)
GetModpack gets a specific modpack
func (*ModpackService) GetModpackBySlug ¶
func (s *ModpackService) GetModpackBySlug(ctx context.Context, req *connect.Request[v1.GetModpackBySlugRequest]) (*connect.Response[v1.GetModpackBySlugResponse], error)
GetModpackBySlug gets a modpack by its slug
func (*ModpackService) GetModpackByURL ¶
func (s *ModpackService) GetModpackByURL(ctx context.Context, req *connect.Request[v1.GetModpackByURLRequest]) (*connect.Response[v1.GetModpackByURLResponse], error)
GetModpackByURL gets a modpack by its website URL
func (*ModpackService) GetModpackConfig ¶
func (s *ModpackService) GetModpackConfig(ctx context.Context, req *connect.Request[v1.GetModpackConfigRequest]) (*connect.Response[v1.GetModpackConfigResponse], error)
GetModpackConfig gets modpack configuration
func (*ModpackService) GetModpackFiles ¶
func (s *ModpackService) GetModpackFiles(ctx context.Context, req *connect.Request[v1.GetModpackFilesRequest]) (*connect.Response[v1.GetModpackFilesResponse], error)
GetModpackFiles gets modpack files
func (*ModpackService) GetModpackVersions ¶
func (s *ModpackService) GetModpackVersions(ctx context.Context, req *connect.Request[v1.GetModpackVersionsRequest]) (*connect.Response[v1.GetModpackVersionsResponse], error)
GetModpackVersions gets modpack versions
func (*ModpackService) ImportRemoteModpack ¶
func (s *ModpackService) ImportRemoteModpack(ctx context.Context, req *connect.Request[v1.ImportRemoteModpackRequest]) (*connect.Response[v1.ImportRemoteModpackResponse], error)
ImportRemoteModpack imports a modpack from a remote URL (e.g. GitHub release, CDN, static host)
func (*ModpackService) ImportUploadedModpack ¶
func (s *ModpackService) ImportUploadedModpack(ctx context.Context, req *connect.Request[v1.ImportUploadedModpackRequest]) (*connect.Response[v1.ImportUploadedModpackResponse], error)
ImportUploadedModpack imports a modpack from a completed chunked upload session
func (*ModpackService) ListFavorites ¶
func (s *ModpackService) ListFavorites(ctx context.Context, req *connect.Request[v1.ListFavoritesRequest]) (*connect.Response[v1.ListFavoritesResponse], error)
ListFavorites lists favorite modpacks
func (*ModpackService) SearchModpacks ¶
func (s *ModpackService) SearchModpacks(ctx context.Context, req *connect.Request[v1.SearchModpacksRequest]) (*connect.Response[v1.SearchModpacksResponse], error)
SearchModpacks searches for modpacks
func (*ModpackService) SyncModpackFiles ¶
func (s *ModpackService) SyncModpackFiles(ctx context.Context, req *connect.Request[v1.SyncModpackFilesRequest]) (*connect.Response[v1.SyncModpackFilesResponse], error)
SyncModpackFiles syncs modpack files
func (*ModpackService) SyncModpacks ¶
func (s *ModpackService) SyncModpacks(ctx context.Context, req *connect.Request[v1.SyncModpacksRequest]) (*connect.Response[v1.SyncModpacksResponse], error)
SyncModpacks syncs modpacks
func (*ModpackService) ToggleFavorite ¶
func (s *ModpackService) ToggleFavorite(ctx context.Context, req *connect.Request[v1.ToggleFavoriteRequest]) (*connect.Response[v1.ToggleFavoriteResponse], error)
ToggleFavorite toggles modpack favorite status
type ModuleService ¶
type ModuleService struct {
// contains filtered or unexported fields
}
ModuleService implements the Module service
func NewModuleService ¶
func NewModuleService( store *storage.Store, docker *docker.Client, moduleManager *module.Manager, proxyManager *proxy.Manager, authManager *auth.Manager, cfg *config.Config, logStreamer *logger.LogStreamer, log *logger.Logger, ) *ModuleService
NewModuleService creates a new module service
func (*ModuleService) CreateModule ¶
func (s *ModuleService) CreateModule(ctx context.Context, req *connect.Request[v1.CreateModuleRequest]) (*connect.Response[v1.CreateModuleResponse], error)
func (*ModuleService) CreateModuleTemplate ¶
func (s *ModuleService) CreateModuleTemplate(ctx context.Context, req *connect.Request[v1.CreateModuleTemplateRequest]) (*connect.Response[v1.CreateModuleTemplateResponse], error)
func (*ModuleService) DeleteModule ¶
func (s *ModuleService) DeleteModule(ctx context.Context, req *connect.Request[v1.DeleteModuleRequest]) (*connect.Response[v1.DeleteModuleResponse], error)
func (*ModuleService) DeleteModuleTemplate ¶
func (s *ModuleService) DeleteModuleTemplate(ctx context.Context, req *connect.Request[v1.DeleteModuleTemplateRequest]) (*connect.Response[v1.DeleteModuleTemplateResponse], error)
func (*ModuleService) GetAvailableAliases ¶
func (s *ModuleService) GetAvailableAliases(ctx context.Context, req *connect.Request[v1.GetAvailableAliasesRequest]) (*connect.Response[v1.GetAvailableAliasesResponse], error)
GetAvailableAliases returns all available aliases for module/template configuration
func (*ModuleService) GetModule ¶
func (s *ModuleService) GetModule(ctx context.Context, req *connect.Request[v1.GetModuleRequest]) (*connect.Response[v1.GetModuleResponse], error)
func (*ModuleService) GetModuleLogs ¶
func (s *ModuleService) GetModuleLogs(ctx context.Context, req *connect.Request[v1.GetModuleLogsRequest]) (*connect.Response[v1.GetModuleLogsResponse], error)
func (*ModuleService) GetModuleTemplate ¶
func (s *ModuleService) GetModuleTemplate(ctx context.Context, req *connect.Request[v1.GetModuleTemplateRequest]) (*connect.Response[v1.GetModuleTemplateResponse], error)
func (*ModuleService) GetNextAvailableModulePort ¶
func (s *ModuleService) GetNextAvailableModulePort(ctx context.Context, req *connect.Request[v1.GetNextAvailableModulePortRequest]) (*connect.Response[v1.GetNextAvailableModulePortResponse], error)
func (*ModuleService) GetResolvedAliases ¶
func (s *ModuleService) GetResolvedAliases(ctx context.Context, req *connect.Request[v1.GetResolvedAliasesRequest]) (*connect.Response[v1.GetResolvedAliasesResponse], error)
Get all aliases with resolved values for ctx
func (*ModuleService) ListModuleTemplates ¶
func (s *ModuleService) ListModuleTemplates(ctx context.Context, req *connect.Request[v1.ListModuleTemplatesRequest]) (*connect.Response[v1.ListModuleTemplatesResponse], error)
func (*ModuleService) ListModules ¶
func (s *ModuleService) ListModules(ctx context.Context, req *connect.Request[v1.ListModulesRequest]) (*connect.Response[v1.ListModulesResponse], error)
func (*ModuleService) RecreateModule ¶
func (s *ModuleService) RecreateModule(ctx context.Context, req *connect.Request[v1.RecreateModuleRequest]) (*connect.Response[v1.RecreateModuleResponse], error)
func (*ModuleService) RestartModule ¶
func (s *ModuleService) RestartModule(ctx context.Context, req *connect.Request[v1.RestartModuleRequest]) (*connect.Response[v1.RestartModuleResponse], error)
func (*ModuleService) StartModule ¶
func (s *ModuleService) StartModule(ctx context.Context, req *connect.Request[v1.StartModuleRequest]) (*connect.Response[v1.StartModuleResponse], error)
func (*ModuleService) StopModule ¶
func (s *ModuleService) StopModule(ctx context.Context, req *connect.Request[v1.StopModuleRequest]) (*connect.Response[v1.StopModuleResponse], error)
func (*ModuleService) UpdateModule ¶
func (s *ModuleService) UpdateModule(ctx context.Context, req *connect.Request[v1.UpdateModuleRequest]) (*connect.Response[v1.UpdateModuleResponse], error)
func (*ModuleService) UpdateModuleTemplate ¶
func (s *ModuleService) UpdateModuleTemplate(ctx context.Context, req *connect.Request[v1.UpdateModuleTemplateRequest]) (*connect.Response[v1.UpdateModuleTemplateResponse], error)
type NodeService ¶
type NodeService struct {
// contains filtered or unexported fields
}
NodeService handles Docker daemon node management RPCs
func NewNodeService ¶
func NewNodeService(store *storage.Store, pool *docker.ClientPool, log *logger.Logger) *NodeService
NewNodeService creates a new NodeService instance
func (*NodeService) CreateNode ¶
func (s *NodeService) CreateNode(ctx context.Context, req *connect.Request[v1.CreateNodeRequest]) (*connect.Response[v1.CreateNodeResponse], error)
CreateNode creates a new remote node
func (*NodeService) DeleteNode ¶
func (s *NodeService) DeleteNode(ctx context.Context, req *connect.Request[v1.DeleteNodeRequest]) (*connect.Response[v1.DeleteNodeResponse], error)
DeleteNode removes a remote node if no servers/modules are assigned to it
func (*NodeService) GetNode ¶
func (s *NodeService) GetNode(ctx context.Context, req *connect.Request[v1.GetNodeRequest]) (*connect.Response[v1.GetNodeResponse], error)
GetNode retrieves a single node by ID with stats
func (*NodeService) ListNodes ¶
func (s *NodeService) ListNodes(ctx context.Context, req *connect.Request[v1.ListNodesRequest]) (*connect.Response[v1.ListNodesResponse], error)
ListNodes lists all nodes along with resource allocation stats
func (*NodeService) PingNode ¶
func (s *NodeService) PingNode(ctx context.Context, req *connect.Request[v1.PingNodeRequest]) (*connect.Response[v1.PingNodeResponse], error)
PingNode tests connectivity to the specified Docker node
func (*NodeService) UpdateNode ¶
func (s *NodeService) UpdateNode(ctx context.Context, req *connect.Request[v1.UpdateNodeRequest]) (*connect.Response[v1.UpdateNodeResponse], error)
UpdateNode updates an existing node's configuration
type ProxyService ¶
type ProxyService struct {
// contains filtered or unexported fields
}
ProxyService implements the Proxy service
func NewProxyService ¶
func NewProxyService(store *storage.Store, dockerClient *docker.Client, pool *docker.ClientPool, proxyManager *proxy.Manager, cfg *config.Config, logStreamer *logger.LogStreamer, log *logger.Logger) *ProxyService
NewProxyService creates a new proxy service
func (*ProxyService) CreateProxyListener ¶
func (s *ProxyService) CreateProxyListener(ctx context.Context, req *connect.Request[v1.CreateProxyListenerRequest]) (*connect.Response[v1.CreateProxyListenerResponse], error)
CreateProxyListener creates a proxy listener
func (*ProxyService) DeleteProxyListener ¶
func (s *ProxyService) DeleteProxyListener(ctx context.Context, req *connect.Request[v1.DeleteProxyListenerRequest]) (*connect.Response[v1.DeleteProxyListenerResponse], error)
DeleteProxyListener deletes a proxy listener
func (*ProxyService) GetProxyListeners ¶
func (s *ProxyService) GetProxyListeners(ctx context.Context, req *connect.Request[v1.GetProxyListenersRequest]) (*connect.Response[v1.GetProxyListenersResponse], error)
GetProxyListeners gets proxy listeners
func (*ProxyService) GetProxyRoutes ¶
func (s *ProxyService) GetProxyRoutes(ctx context.Context, req *connect.Request[v1.GetProxyRoutesRequest]) (*connect.Response[v1.GetProxyRoutesResponse], error)
GetProxyRoutes gets proxy routes
func (*ProxyService) GetProxyStatus ¶
func (s *ProxyService) GetProxyStatus(ctx context.Context, req *connect.Request[v1.GetProxyStatusRequest]) (*connect.Response[v1.GetProxyStatusResponse], error)
GetProxyStatus gets proxy status
func (*ProxyService) GetServerRouting ¶
func (s *ProxyService) GetServerRouting(ctx context.Context, req *connect.Request[v1.GetServerRoutingRequest]) (*connect.Response[v1.GetServerRoutingResponse], error)
GetServerRouting gets server routing configuration
func (*ProxyService) GetVelocitySecret ¶
func (s *ProxyService) GetVelocitySecret(ctx context.Context, req *connect.Request[v1.GetVelocitySecretRequest]) (*connect.Response[v1.GetVelocitySecretResponse], error)
GetVelocitySecret retrieves or lazily auto-generates the modern forwarding secret
func (*ProxyService) RotateVelocitySecret ¶
func (s *ProxyService) RotateVelocitySecret(ctx context.Context, req *connect.Request[v1.RotateVelocitySecretRequest]) (*connect.Response[v1.RotateVelocitySecretResponse], error)
RotateVelocitySecret generates a new secret (or applies a custom one) and syncs to backend Paper servers
func (*ProxyService) SyncVelocitySecretToServer ¶
func (s *ProxyService) SyncVelocitySecretToServer(ctx context.Context, req *connect.Request[v1.SyncVelocitySecretToServerRequest]) (*connect.Response[v1.SyncVelocitySecretToServerResponse], error)
SyncVelocitySecretToServer updates a specific server's config files with the active forwarding secret
func (*ProxyService) UpdateProxyConfig ¶
func (s *ProxyService) UpdateProxyConfig(ctx context.Context, req *connect.Request[v1.UpdateProxyConfigRequest]) (*connect.Response[v1.UpdateProxyConfigResponse], error)
UpdateProxyConfig updates proxy configuration
func (*ProxyService) UpdateProxyListener ¶
func (s *ProxyService) UpdateProxyListener(ctx context.Context, req *connect.Request[v1.UpdateProxyListenerRequest]) (*connect.Response[v1.UpdateProxyListenerResponse], error)
UpdateProxyListener updates a proxy listener
func (*ProxyService) UpdateServerRouting ¶
func (s *ProxyService) UpdateServerRouting(ctx context.Context, req *connect.Request[v1.UpdateServerRoutingRequest]) (*connect.Response[v1.UpdateServerRoutingResponse], error)
UpdateServerRouting updates server routing configuration
type RoleService ¶
type RoleService struct {
// contains filtered or unexported fields
}
func NewRoleService ¶
func (*RoleService) AssignRole ¶
func (s *RoleService) AssignRole(ctx context.Context, req *connect.Request[v1.AssignRoleRequest]) (*connect.Response[v1.AssignRoleResponse], error)
func (*RoleService) CreateRole ¶
func (s *RoleService) CreateRole(ctx context.Context, req *connect.Request[v1.CreateRoleRequest]) (*connect.Response[v1.CreateRoleResponse], error)
func (*RoleService) DeleteRole ¶
func (s *RoleService) DeleteRole(ctx context.Context, req *connect.Request[v1.DeleteRoleRequest]) (*connect.Response[v1.DeleteRoleResponse], error)
func (*RoleService) GetPermissionMatrix ¶
func (s *RoleService) GetPermissionMatrix(ctx context.Context, req *connect.Request[v1.GetPermissionMatrixRequest]) (*connect.Response[v1.GetPermissionMatrixResponse], error)
func (*RoleService) GetRole ¶
func (s *RoleService) GetRole(ctx context.Context, req *connect.Request[v1.GetRoleRequest]) (*connect.Response[v1.GetRoleResponse], error)
func (*RoleService) GetUserRoles ¶
func (s *RoleService) GetUserRoles(ctx context.Context, req *connect.Request[v1.GetUserRolesRequest]) (*connect.Response[v1.GetUserRolesResponse], error)
func (*RoleService) ListRoles ¶
func (s *RoleService) ListRoles(ctx context.Context, req *connect.Request[v1.ListRolesRequest]) (*connect.Response[v1.ListRolesResponse], error)
func (*RoleService) UnassignRole ¶
func (s *RoleService) UnassignRole(ctx context.Context, req *connect.Request[v1.UnassignRoleRequest]) (*connect.Response[v1.UnassignRoleResponse], error)
func (*RoleService) UpdatePermissions ¶
func (s *RoleService) UpdatePermissions(ctx context.Context, req *connect.Request[v1.UpdatePermissionsRequest]) (*connect.Response[v1.UpdatePermissionsResponse], error)
func (*RoleService) UpdateRole ¶
func (s *RoleService) UpdateRole(ctx context.Context, req *connect.Request[v1.UpdateRoleRequest]) (*connect.Response[v1.UpdateRoleResponse], error)
type ServerService ¶
type ServerService struct {
// contains filtered or unexported fields
}
ServerService implements the Server service
func NewServerService ¶
func NewServerService( store *storage.Store, dockerCli *docker.Client, sender *command.Sender, config *config.Config, proxy *proxy.Manager, logStreamer *logger.LogStreamer, metricsCollector *metrics.Collector, moduleManager *module.Manager, bus *events.Bus, log *logger.Logger, pool *docker.ClientPool, placementEngine *docker.PlacementEngine, enforcer *rbac.Enforcer, ) *ServerService
NewServerService creates a new server service
func (*ServerService) ClearServerLogs ¶
func (s *ServerService) ClearServerLogs(ctx context.Context, req *connect.Request[v1.ClearServerLogsRequest]) (*connect.Response[v1.ClearServerLogsResponse], error)
ClearServerLogs clears server logs
func (*ServerService) CreateServer ¶
func (s *ServerService) CreateServer(ctx context.Context, req *connect.Request[v1.CreateServerRequest]) (*connect.Response[v1.CreateServerResponse], error)
CreateServer creates a new server
func (*ServerService) DeleteServer ¶
func (s *ServerService) DeleteServer(ctx context.Context, req *connect.Request[v1.DeleteServerRequest]) (*connect.Response[v1.DeleteServerResponse], error)
DeleteServer deletes a server
func (*ServerService) GetNextAvailablePort ¶
func (s *ServerService) GetNextAvailablePort(ctx context.Context, req *connect.Request[v1.GetNextAvailablePortRequest]) (*connect.Response[v1.GetNextAvailablePortResponse], error)
GetNextAvailablePort gets the next available port
func (*ServerService) GetServer ¶
func (s *ServerService) GetServer(ctx context.Context, req *connect.Request[v1.GetServerRequest]) (*connect.Response[v1.GetServerResponse], error)
GetServer gets a specific server
func (*ServerService) GetServerLogs ¶
func (s *ServerService) GetServerLogs(ctx context.Context, req *connect.Request[v1.GetServerLogsRequest]) (*connect.Response[v1.GetServerLogsResponse], error)
GetServerLogs gets server logs
func (*ServerService) ListServerPlayers ¶
func (s *ServerService) ListServerPlayers(ctx context.Context, req *connect.Request[v1.ListServerPlayersRequest]) (*connect.Response[v1.ListServerPlayersResponse], error)
ListServerPlayers returns the live online roster from the metrics collector (RCON `list` / SLP sample), empty when offline (MINE-140).
func (*ServerService) ListServers ¶
func (s *ServerService) ListServers(ctx context.Context, req *connect.Request[v1.ListServersRequest]) (*connect.Response[v1.ListServersResponse], error)
ListServers lists all servers
func (*ServerService) MigrateServer ¶
func (s *ServerService) MigrateServer(ctx context.Context, req *connect.Request[v1.MigrateServerRequest]) (*connect.Response[v1.MigrateServerResponse], error)
MigrateServer moves a server instance from its current node to a target node
func (*ServerService) RecreateServer ¶
func (s *ServerService) RecreateServer(ctx context.Context, req *connect.Request[v1.RecreateServerRequest]) (*connect.Response[v1.RecreateServerResponse], error)
Destroys and recreates a server container from scratch - brute force reset
func (*ServerService) RestartServer ¶
func (s *ServerService) RestartServer(ctx context.Context, req *connect.Request[v1.RestartServerRequest]) (out *connect.Response[v1.RestartServerResponse], retErr error)
RestartServer restarts a server
func (*ServerService) SendCommand ¶
func (s *ServerService) SendCommand(ctx context.Context, req *connect.Request[v1.SendCommandRequest]) (*connect.Response[v1.SendCommandResponse], error)
SendCommand sends a command to a server
func (*ServerService) SetClientPool ¶
func (s *ServerService) SetClientPool(pool *docker.ClientPool)
SetClientPool sets the client pool on the service
func (*ServerService) SetPlacementEngine ¶
func (s *ServerService) SetPlacementEngine(engine *docker.PlacementEngine)
SetPlacementEngine sets the placement engine on the service
func (*ServerService) StartServer ¶
func (s *ServerService) StartServer(ctx context.Context, req *connect.Request[v1.StartServerRequest]) (out *connect.Response[v1.StartServerResponse], retErr error)
StartServer starts a server
func (*ServerService) StopServer ¶
func (s *ServerService) StopServer(ctx context.Context, req *connect.Request[v1.StopServerRequest]) (*connect.Response[v1.StopServerResponse], error)
StopServer stops a server
func (*ServerService) UpdateServer ¶
func (s *ServerService) UpdateServer(ctx context.Context, req *connect.Request[v1.UpdateServerRequest]) (*connect.Response[v1.UpdateServerResponse], error)
UpdateServer updates a server
func (*ServerService) UploadToMCLogs ¶
func (s *ServerService) UploadToMCLogs(ctx context.Context, req *connect.Request[v1.UploadToMCLogsRequest]) (*connect.Response[v1.UploadToMCLogsResponse], error)
Reads the server's latest.log and uploads it to mclo.gs
type SubuserService ¶
type SubuserService struct {
// contains filtered or unexported fields
}
SubuserService manages per-server grants (MINE-139).
func NewSubuserService ¶
func NewSubuserService(store *storage.Store, log *logger.Logger) *SubuserService
func (*SubuserService) ListSubusers ¶
func (s *SubuserService) ListSubusers(ctx context.Context, req *connect.Request[v1.ListSubusersRequest]) (*connect.Response[v1.ListSubusersResponse], error)
func (*SubuserService) RemoveSubuser ¶
func (s *SubuserService) RemoveSubuser(ctx context.Context, req *connect.Request[v1.RemoveSubuserRequest]) (*connect.Response[v1.RemoveSubuserResponse], error)
func (*SubuserService) SetSubuser ¶
func (s *SubuserService) SetSubuser(ctx context.Context, req *connect.Request[v1.SetSubuserRequest]) (*connect.Response[v1.SetSubuserResponse], error)
type SupportService ¶
type SupportService struct {
// contains filtered or unexported fields
}
SupportService implements the Support service
func NewSupportService ¶
func NewSupportService(store *storage.Store, docker *docker.Client, config *config.Config, log *logger.Logger) *SupportService
NewSupportService creates a new support service
func (*SupportService) DownloadSupportBundle ¶
func (s *SupportService) DownloadSupportBundle(ctx context.Context, req *connect.Request[v1.DownloadSupportBundleRequest]) (*connect.Response[v1.DownloadSupportBundleResponse], error)
DownloadSupportBundle downloads a support bundle
func (*SupportService) GenerateSupportBundle ¶
func (s *SupportService) GenerateSupportBundle(ctx context.Context, req *connect.Request[v1.GenerateSupportBundleRequest]) (*connect.Response[v1.GenerateSupportBundleResponse], error)
GenerateSupportBundle generates a support bundle
func (*SupportService) GetApplicationLogs ¶
func (s *SupportService) GetApplicationLogs(ctx context.Context, req *connect.Request[v1.GetApplicationLogsRequest]) (*connect.Response[v1.GetApplicationLogsResponse], error)
GetApplicationLogs returns the application log file content
func (*SupportService) UploadSupportBundle ¶
func (s *SupportService) UploadSupportBundle(ctx context.Context, req *connect.Request[v1.UploadSupportBundleRequest]) (*connect.Response[v1.UploadSupportBundleResponse], error)
UploadSupportBundle generates and uploads a support bundle to the support server
type TaskService ¶
type TaskService struct {
// contains filtered or unexported fields
}
TaskService implements the Task service
func NewTaskService ¶
func NewTaskService(store *storage.Store, sched *scheduler.Scheduler, log *logger.Logger) *TaskService
NewTaskService creates a new task service
func (*TaskService) CancelExecution ¶
func (s *TaskService) CancelExecution(ctx context.Context, req *connect.Request[v1.CancelExecutionRequest]) (*connect.Response[v1.CancelExecutionResponse], error)
CancelExecution cancels a running execution
func (*TaskService) CreateTask ¶
func (s *TaskService) CreateTask(ctx context.Context, req *connect.Request[v1.CreateTaskRequest]) (*connect.Response[v1.CreateTaskResponse], error)
CreateTask creates a new scheduled task
func (*TaskService) DeleteTask ¶
func (s *TaskService) DeleteTask(ctx context.Context, req *connect.Request[v1.DeleteTaskRequest]) (*connect.Response[v1.DeleteTaskResponse], error)
DeleteTask deletes a task
func (*TaskService) GetSchedulerStatus ¶
func (s *TaskService) GetSchedulerStatus(ctx context.Context, req *connect.Request[v1.GetSchedulerStatusRequest]) (*connect.Response[v1.GetSchedulerStatusResponse], error)
GetSchedulerStatus gets the scheduler status
func (*TaskService) GetTask ¶
func (s *TaskService) GetTask(ctx context.Context, req *connect.Request[v1.GetTaskRequest]) (*connect.Response[v1.GetTaskResponse], error)
GetTask gets a specific task
func (*TaskService) GetTaskExecution ¶
func (s *TaskService) GetTaskExecution(ctx context.Context, req *connect.Request[v1.GetTaskExecutionRequest]) (*connect.Response[v1.GetTaskExecutionResponse], error)
GetTaskExecution gets a specific execution
func (*TaskService) ListServerExecutions ¶
func (s *TaskService) ListServerExecutions(ctx context.Context, req *connect.Request[v1.ListServerExecutionsRequest]) (*connect.Response[v1.ListServerExecutionsResponse], error)
ListServerExecutions gets execution history for a server
func (*TaskService) ListTaskExecutions ¶
func (s *TaskService) ListTaskExecutions(ctx context.Context, req *connect.Request[v1.ListTaskExecutionsRequest]) (*connect.Response[v1.ListTaskExecutionsResponse], error)
ListTaskExecutions gets execution history for a task
func (*TaskService) ListTasks ¶
func (s *TaskService) ListTasks(ctx context.Context, req *connect.Request[v1.ListTasksRequest]) (*connect.Response[v1.ListTasksResponse], error)
ListTasks lists all tasks for a server
func (*TaskService) ToggleTask ¶
func (s *TaskService) ToggleTask(ctx context.Context, req *connect.Request[v1.ToggleTaskRequest]) (*connect.Response[v1.ToggleTaskResponse], error)
ToggleTask toggles task enabled/disabled status
func (*TaskService) TriggerTask ¶
func (s *TaskService) TriggerTask(ctx context.Context, req *connect.Request[v1.TriggerTaskRequest]) (*connect.Response[v1.TriggerTaskResponse], error)
TriggerTask manually triggers a task execution
func (*TaskService) UpdateTask ¶
func (s *TaskService) UpdateTask(ctx context.Context, req *connect.Request[v1.UpdateTaskRequest]) (*connect.Response[v1.UpdateTaskResponse], error)
UpdateTask updates an existing task
type UploadService ¶
type UploadService struct {
// contains filtered or unexported fields
}
UploadService implements the Upload service
func NewUploadService ¶
func NewUploadService(manager *upload.Manager, cfg *config.Config, log *logger.Logger) *UploadService
NewUploadService creates a new upload service
func (*UploadService) CancelUpload ¶
func (s *UploadService) CancelUpload(ctx context.Context, req *connect.Request[v1.CancelUploadRequest]) (*connect.Response[v1.CancelUploadResponse], error)
CancelUpload cancels an upload session and cleans up
func (*UploadService) GetManager ¶
func (s *UploadService) GetManager() *upload.Manager
GetManager returns the upload manager (for use by other services)
func (*UploadService) GetUploadStatus ¶
func (s *UploadService) GetUploadStatus(ctx context.Context, req *connect.Request[v1.GetUploadStatusRequest]) (*connect.Response[v1.GetUploadStatusResponse], error)
GetUploadStatus returns the status of an upload session
func (*UploadService) InitUpload ¶
func (s *UploadService) InitUpload(ctx context.Context, req *connect.Request[v1.InitUploadRequest]) (*connect.Response[v1.InitUploadResponse], error)
InitUpload creates a new upload session
func (*UploadService) UploadChunk ¶
func (s *UploadService) UploadChunk(ctx context.Context, req *connect.Request[v1.UploadChunkRequest]) (*connect.Response[v1.UploadChunkResponse], error)
UploadChunk uploads a single chunk
type UploadUserInfo ¶
type UploadUserInfo struct {
DiscordUsername string
Email string
GithubUsername string
IssueDescription string
StepsToReproduce string
}
UploadUserInfo contains user-provided contact and issue information
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func (*UserService) CreateUser ¶
func (s *UserService) CreateUser(ctx context.Context, req *connect.Request[v1.CreateUserRequest]) (*connect.Response[v1.CreateUserResponse], error)
func (*UserService) DeleteUser ¶
func (s *UserService) DeleteUser(ctx context.Context, req *connect.Request[v1.DeleteUserRequest]) (*connect.Response[v1.DeleteUserResponse], error)
func (*UserService) GetUser ¶
func (s *UserService) GetUser(ctx context.Context, req *connect.Request[v1.GetUserRequest]) (*connect.Response[v1.GetUserResponse], error)
func (*UserService) ListUsers ¶
func (s *UserService) ListUsers(ctx context.Context, req *connect.Request[v1.ListUsersRequest]) (*connect.Response[v1.ListUsersResponse], error)
func (*UserService) UpdateUser ¶
func (s *UserService) UpdateUser(ctx context.Context, req *connect.Request[v1.UpdateUserRequest]) (*connect.Response[v1.UpdateUserResponse], error)