Documentation ¶
Index ¶
- Variables
- func Bind[T any](r *http.Request) (*T, error)
- func Error(w http.ResponseWriter, code int, format string, args ...any)
- func ErrorSystem(w http.ResponseWriter)
- func Paginate[T any](r *http.Request, items []T) (pagedItems []T, total uint)
- func Success(w http.ResponseWriter, data any)
- type AppService
- func (s *AppService) Install(w http.ResponseWriter, r *http.Request)
- func (s *AppService) IsInstalled(w http.ResponseWriter, r *http.Request)
- func (s *AppService) List(w http.ResponseWriter, r *http.Request)
- func (s *AppService) Uninstall(w http.ResponseWriter, r *http.Request)
- func (s *AppService) Update(w http.ResponseWriter, r *http.Request)
- func (s *AppService) UpdateCache(w http.ResponseWriter, r *http.Request)
- func (s *AppService) UpdateShow(w http.ResponseWriter, r *http.Request)
- type BackupService
- func (s *BackupService) Create(w http.ResponseWriter, r *http.Request)
- func (s *BackupService) Delete(w http.ResponseWriter, r *http.Request)
- func (s *BackupService) List(w http.ResponseWriter, r *http.Request)
- func (s *BackupService) Restore(w http.ResponseWriter, r *http.Request)
- func (s *BackupService) Upload(w http.ResponseWriter, r *http.Request)
- type CertAccountService
- func (s *CertAccountService) Create(w http.ResponseWriter, r *http.Request)
- func (s *CertAccountService) Delete(w http.ResponseWriter, r *http.Request)
- func (s *CertAccountService) Get(w http.ResponseWriter, r *http.Request)
- func (s *CertAccountService) List(w http.ResponseWriter, r *http.Request)
- func (s *CertAccountService) Update(w http.ResponseWriter, r *http.Request)
- type CertDNSService
- func (s *CertDNSService) Create(w http.ResponseWriter, r *http.Request)
- func (s *CertDNSService) Delete(w http.ResponseWriter, r *http.Request)
- func (s *CertDNSService) Get(w http.ResponseWriter, r *http.Request)
- func (s *CertDNSService) List(w http.ResponseWriter, r *http.Request)
- func (s *CertDNSService) Update(w http.ResponseWriter, r *http.Request)
- type CertService
- func (s *CertService) Algorithms(w http.ResponseWriter, r *http.Request)
- func (s *CertService) CAProviders(w http.ResponseWriter, r *http.Request)
- func (s *CertService) Create(w http.ResponseWriter, r *http.Request)
- func (s *CertService) DNSProviders(w http.ResponseWriter, r *http.Request)
- func (s *CertService) Delete(w http.ResponseWriter, r *http.Request)
- func (s *CertService) Deploy(w http.ResponseWriter, r *http.Request)
- func (s *CertService) Get(w http.ResponseWriter, r *http.Request)
- func (s *CertService) List(w http.ResponseWriter, r *http.Request)
- func (s *CertService) ManualDNS(w http.ResponseWriter, r *http.Request)
- func (s *CertService) ObtainAuto(w http.ResponseWriter, r *http.Request)
- func (s *CertService) ObtainManual(w http.ResponseWriter, r *http.Request)
- func (s *CertService) ObtainSelfSigned(w http.ResponseWriter, r *http.Request)
- func (s *CertService) Renew(w http.ResponseWriter, r *http.Request)
- func (s *CertService) Update(w http.ResponseWriter, r *http.Request)
- func (s *CertService) Upload(w http.ResponseWriter, r *http.Request)
- type CliService
- func (s *CliService) AppInstall(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) AppRemove(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) AppUnInstall(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) AppUpdate(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) AppWrite(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) BackupClear(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) BackupDatabase(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) BackupPanel(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) BackupWebsite(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) ClearTask(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) CutoffClear(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) CutoffWebsite(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) DatabaseAddServer(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) DatabaseDeleteServer(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) EntranceOff(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) EntranceOn(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) Fix(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) GetSetting(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) HTTPSGenerate(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) HTTPSOff(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) HTTPSOn(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) Info(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) Init(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) Port(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) RemoveSetting(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) Restart(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) Start(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) Stop(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) Sync(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) SyncTime(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) Update(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) UserList(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) UserName(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) UserPassword(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) WebsiteCreate(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) WebsiteDelete(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) WebsiteRemove(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) WebsiteWrite(ctx context.Context, cmd *cli.Command) error
- func (s *CliService) WriteSetting(ctx context.Context, cmd *cli.Command) error
- type ContainerImageService
- func (s *ContainerImageService) List(w http.ResponseWriter, r *http.Request)
- func (s *ContainerImageService) Prune(w http.ResponseWriter, r *http.Request)
- func (s *ContainerImageService) Pull(w http.ResponseWriter, r *http.Request)
- func (s *ContainerImageService) Remove(w http.ResponseWriter, r *http.Request)
- type ContainerNetworkService
- func (s *ContainerNetworkService) Create(w http.ResponseWriter, r *http.Request)
- func (s *ContainerNetworkService) List(w http.ResponseWriter, r *http.Request)
- func (s *ContainerNetworkService) Prune(w http.ResponseWriter, r *http.Request)
- func (s *ContainerNetworkService) Remove(w http.ResponseWriter, r *http.Request)
- type ContainerService
- func (s *ContainerService) Create(w http.ResponseWriter, r *http.Request)
- func (s *ContainerService) Kill(w http.ResponseWriter, r *http.Request)
- func (s *ContainerService) List(w http.ResponseWriter, r *http.Request)
- func (s *ContainerService) Logs(w http.ResponseWriter, r *http.Request)
- func (s *ContainerService) Pause(w http.ResponseWriter, r *http.Request)
- func (s *ContainerService) Prune(w http.ResponseWriter, r *http.Request)
- func (s *ContainerService) Remove(w http.ResponseWriter, r *http.Request)
- func (s *ContainerService) Rename(w http.ResponseWriter, r *http.Request)
- func (s *ContainerService) Restart(w http.ResponseWriter, r *http.Request)
- func (s *ContainerService) Search(w http.ResponseWriter, r *http.Request)
- func (s *ContainerService) Start(w http.ResponseWriter, r *http.Request)
- func (s *ContainerService) Stop(w http.ResponseWriter, r *http.Request)
- func (s *ContainerService) Unpause(w http.ResponseWriter, r *http.Request)
- type ContainerVolumeService
- func (s *ContainerVolumeService) Create(w http.ResponseWriter, r *http.Request)
- func (s *ContainerVolumeService) List(w http.ResponseWriter, r *http.Request)
- func (s *ContainerVolumeService) Prune(w http.ResponseWriter, r *http.Request)
- func (s *ContainerVolumeService) Remove(w http.ResponseWriter, r *http.Request)
- type CronService
- func (s *CronService) Create(w http.ResponseWriter, r *http.Request)
- func (s *CronService) Delete(w http.ResponseWriter, r *http.Request)
- func (s *CronService) Get(w http.ResponseWriter, r *http.Request)
- func (s *CronService) List(w http.ResponseWriter, r *http.Request)
- func (s *CronService) Status(w http.ResponseWriter, r *http.Request)
- func (s *CronService) Update(w http.ResponseWriter, r *http.Request)
- type DashboardService
- func (s *DashboardService) CheckUpdate(w http.ResponseWriter, r *http.Request)
- func (s *DashboardService) CountInfo(w http.ResponseWriter, r *http.Request)
- func (s *DashboardService) Current(w http.ResponseWriter, r *http.Request)
- func (s *DashboardService) HomeApps(w http.ResponseWriter, r *http.Request)
- func (s *DashboardService) InstalledDbAndPhp(w http.ResponseWriter, r *http.Request)
- func (s *DashboardService) Panel(w http.ResponseWriter, r *http.Request)
- func (s *DashboardService) Restart(w http.ResponseWriter, r *http.Request)
- func (s *DashboardService) SystemInfo(w http.ResponseWriter, r *http.Request)
- func (s *DashboardService) Update(w http.ResponseWriter, r *http.Request)
- func (s *DashboardService) UpdateInfo(w http.ResponseWriter, r *http.Request)
- type DatabaseServerService
- func (s *DatabaseServerService) Create(w http.ResponseWriter, r *http.Request)
- func (s *DatabaseServerService) Delete(w http.ResponseWriter, r *http.Request)
- func (s *DatabaseServerService) Get(w http.ResponseWriter, r *http.Request)
- func (s *DatabaseServerService) List(w http.ResponseWriter, r *http.Request)
- func (s *DatabaseServerService) Sync(w http.ResponseWriter, r *http.Request)
- func (s *DatabaseServerService) Update(w http.ResponseWriter, r *http.Request)
- func (s *DatabaseServerService) UpdateRemark(w http.ResponseWriter, r *http.Request)
- type DatabaseService
- type DatabaseUserService
- func (s *DatabaseUserService) Create(w http.ResponseWriter, r *http.Request)
- func (s *DatabaseUserService) Delete(w http.ResponseWriter, r *http.Request)
- func (s *DatabaseUserService) Get(w http.ResponseWriter, r *http.Request)
- func (s *DatabaseUserService) List(w http.ResponseWriter, r *http.Request)
- func (s *DatabaseUserService) Update(w http.ResponseWriter, r *http.Request)
- func (s *DatabaseUserService) UpdateRemark(w http.ResponseWriter, r *http.Request)
- type ErrorResponse
- type FileService
- func (s *FileService) Compress(w http.ResponseWriter, r *http.Request)
- func (s *FileService) Content(w http.ResponseWriter, r *http.Request)
- func (s *FileService) Copy(w http.ResponseWriter, r *http.Request)
- func (s *FileService) Create(w http.ResponseWriter, r *http.Request)
- func (s *FileService) Delete(w http.ResponseWriter, r *http.Request)
- func (s *FileService) Download(w http.ResponseWriter, r *http.Request)
- func (s *FileService) Exist(w http.ResponseWriter, r *http.Request)
- func (s *FileService) Info(w http.ResponseWriter, r *http.Request)
- func (s *FileService) List(w http.ResponseWriter, r *http.Request)
- func (s *FileService) Move(w http.ResponseWriter, r *http.Request)
- func (s *FileService) Permission(w http.ResponseWriter, r *http.Request)
- func (s *FileService) RemoteDownload(w http.ResponseWriter, r *http.Request)
- func (s *FileService) Save(w http.ResponseWriter, r *http.Request)
- func (s *FileService) Search(w http.ResponseWriter, r *http.Request)
- func (s *FileService) UnCompress(w http.ResponseWriter, r *http.Request)
- func (s *FileService) Upload(w http.ResponseWriter, r *http.Request)
- type FirewallService
- func (s *FirewallService) CreateForward(w http.ResponseWriter, r *http.Request)
- func (s *FirewallService) CreateIPRule(w http.ResponseWriter, r *http.Request)
- func (s *FirewallService) CreateRule(w http.ResponseWriter, r *http.Request)
- func (s *FirewallService) DeleteForward(w http.ResponseWriter, r *http.Request)
- func (s *FirewallService) DeleteIPRule(w http.ResponseWriter, r *http.Request)
- func (s *FirewallService) DeleteRule(w http.ResponseWriter, r *http.Request)
- func (s *FirewallService) GetForwards(w http.ResponseWriter, r *http.Request)
- func (s *FirewallService) GetIPRules(w http.ResponseWriter, r *http.Request)
- func (s *FirewallService) GetRules(w http.ResponseWriter, r *http.Request)
- func (s *FirewallService) GetStatus(w http.ResponseWriter, r *http.Request)
- func (s *FirewallService) UpdateStatus(w http.ResponseWriter, r *http.Request)
- type MonitorService
- type ProcessService
- type SSHService
- func (s *SSHService) Create(w http.ResponseWriter, r *http.Request)
- func (s *SSHService) Delete(w http.ResponseWriter, r *http.Request)
- func (s *SSHService) Get(w http.ResponseWriter, r *http.Request)
- func (s *SSHService) List(w http.ResponseWriter, r *http.Request)
- func (s *SSHService) Update(w http.ResponseWriter, r *http.Request)
- type SafeService
- type SettingService
- type SuccessResponse
- type SystemctlService
- func (s *SystemctlService) Disable(w http.ResponseWriter, r *http.Request)
- func (s *SystemctlService) Enable(w http.ResponseWriter, r *http.Request)
- func (s *SystemctlService) IsEnabled(w http.ResponseWriter, r *http.Request)
- func (s *SystemctlService) Reload(w http.ResponseWriter, r *http.Request)
- func (s *SystemctlService) Restart(w http.ResponseWriter, r *http.Request)
- func (s *SystemctlService) Start(w http.ResponseWriter, r *http.Request)
- func (s *SystemctlService) Status(w http.ResponseWriter, r *http.Request)
- func (s *SystemctlService) Stop(w http.ResponseWriter, r *http.Request)
- type TaskService
- type UserService
- func (s *UserService) GetKey(w http.ResponseWriter, r *http.Request)
- func (s *UserService) Info(w http.ResponseWriter, r *http.Request)
- func (s *UserService) IsLogin(w http.ResponseWriter, r *http.Request)
- func (s *UserService) Login(w http.ResponseWriter, r *http.Request)
- func (s *UserService) Logout(w http.ResponseWriter, r *http.Request)
- type WebsiteService
- func (s *WebsiteService) ClearLog(w http.ResponseWriter, r *http.Request)
- func (s *WebsiteService) Create(w http.ResponseWriter, r *http.Request)
- func (s *WebsiteService) Delete(w http.ResponseWriter, r *http.Request)
- func (s *WebsiteService) Get(w http.ResponseWriter, r *http.Request)
- func (s *WebsiteService) GetDefaultConfig(w http.ResponseWriter, r *http.Request)
- func (s *WebsiteService) GetRewrites(w http.ResponseWriter, r *http.Request)
- func (s *WebsiteService) List(w http.ResponseWriter, r *http.Request)
- func (s *WebsiteService) ObtainCert(w http.ResponseWriter, r *http.Request)
- func (s *WebsiteService) ResetConfig(w http.ResponseWriter, r *http.Request)
- func (s *WebsiteService) Update(w http.ResponseWriter, r *http.Request)
- func (s *WebsiteService) UpdateDefaultConfig(w http.ResponseWriter, r *http.Request)
- func (s *WebsiteService) UpdateRemark(w http.ResponseWriter, r *http.Request)
- func (s *WebsiteService) UpdateStatus(w http.ResponseWriter, r *http.Request)
- type WsService
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewAppService, NewBackupService, NewCertService, NewCertAccountService, NewCertDNSService, NewCliService, NewContainerService, NewContainerImageService, NewContainerNetworkService, NewContainerVolumeService, NewCronService, NewDashboardService, NewDatabaseService, NewDatabaseServerService, NewDatabaseUserService, NewFileService, NewFirewallService, NewMonitorService, NewProcessService, NewSafeService, NewSettingService, NewSSHService, NewSystemctlService, NewTaskService, NewUserService, NewWebsiteService, NewWsService, )
ProviderSet is service providers.
Functions ¶
Types ¶
type AppService ¶
type AppService struct {
// contains filtered or unexported fields
}
func NewAppService ¶
func NewAppService(app biz.AppRepo, cache biz.CacheRepo, setting biz.SettingRepo) *AppService
func (*AppService) Install ¶
func (s *AppService) Install(w http.ResponseWriter, r *http.Request)
func (*AppService) IsInstalled ¶
func (s *AppService) IsInstalled(w http.ResponseWriter, r *http.Request)
func (*AppService) List ¶
func (s *AppService) List(w http.ResponseWriter, r *http.Request)
func (*AppService) Uninstall ¶
func (s *AppService) Uninstall(w http.ResponseWriter, r *http.Request)
func (*AppService) Update ¶
func (s *AppService) Update(w http.ResponseWriter, r *http.Request)
func (*AppService) UpdateCache ¶
func (s *AppService) UpdateCache(w http.ResponseWriter, r *http.Request)
func (*AppService) UpdateShow ¶
func (s *AppService) UpdateShow(w http.ResponseWriter, r *http.Request)
type BackupService ¶
type BackupService struct {
// contains filtered or unexported fields
}
func NewBackupService ¶
func NewBackupService(backup biz.BackupRepo) *BackupService
func (*BackupService) Create ¶
func (s *BackupService) Create(w http.ResponseWriter, r *http.Request)
func (*BackupService) Delete ¶
func (s *BackupService) Delete(w http.ResponseWriter, r *http.Request)
func (*BackupService) List ¶
func (s *BackupService) List(w http.ResponseWriter, r *http.Request)
func (*BackupService) Restore ¶
func (s *BackupService) Restore(w http.ResponseWriter, r *http.Request)
func (*BackupService) Upload ¶
func (s *BackupService) Upload(w http.ResponseWriter, r *http.Request)
type CertAccountService ¶
type CertAccountService struct {
// contains filtered or unexported fields
}
func NewCertAccountService ¶
func NewCertAccountService(certAccount biz.CertAccountRepo) *CertAccountService
func (*CertAccountService) Create ¶
func (s *CertAccountService) Create(w http.ResponseWriter, r *http.Request)
func (*CertAccountService) Delete ¶
func (s *CertAccountService) Delete(w http.ResponseWriter, r *http.Request)
func (*CertAccountService) Get ¶
func (s *CertAccountService) Get(w http.ResponseWriter, r *http.Request)
func (*CertAccountService) List ¶
func (s *CertAccountService) List(w http.ResponseWriter, r *http.Request)
func (*CertAccountService) Update ¶
func (s *CertAccountService) Update(w http.ResponseWriter, r *http.Request)
type CertDNSService ¶
type CertDNSService struct {
// contains filtered or unexported fields
}
func NewCertDNSService ¶
func NewCertDNSService(certDNS biz.CertDNSRepo) *CertDNSService
func (*CertDNSService) Create ¶
func (s *CertDNSService) Create(w http.ResponseWriter, r *http.Request)
func (*CertDNSService) Delete ¶
func (s *CertDNSService) Delete(w http.ResponseWriter, r *http.Request)
func (*CertDNSService) Get ¶
func (s *CertDNSService) Get(w http.ResponseWriter, r *http.Request)
func (*CertDNSService) List ¶
func (s *CertDNSService) List(w http.ResponseWriter, r *http.Request)
func (*CertDNSService) Update ¶
func (s *CertDNSService) Update(w http.ResponseWriter, r *http.Request)
type CertService ¶
type CertService struct {
// contains filtered or unexported fields
}
func NewCertService ¶
func NewCertService(cert biz.CertRepo) *CertService
func (*CertService) Algorithms ¶
func (s *CertService) Algorithms(w http.ResponseWriter, r *http.Request)
func (*CertService) CAProviders ¶
func (s *CertService) CAProviders(w http.ResponseWriter, r *http.Request)
func (*CertService) Create ¶
func (s *CertService) Create(w http.ResponseWriter, r *http.Request)
func (*CertService) DNSProviders ¶
func (s *CertService) DNSProviders(w http.ResponseWriter, r *http.Request)
func (*CertService) Delete ¶
func (s *CertService) Delete(w http.ResponseWriter, r *http.Request)
func (*CertService) Deploy ¶
func (s *CertService) Deploy(w http.ResponseWriter, r *http.Request)
func (*CertService) Get ¶
func (s *CertService) Get(w http.ResponseWriter, r *http.Request)
func (*CertService) List ¶
func (s *CertService) List(w http.ResponseWriter, r *http.Request)
func (*CertService) ManualDNS ¶
func (s *CertService) ManualDNS(w http.ResponseWriter, r *http.Request)
func (*CertService) ObtainAuto ¶
func (s *CertService) ObtainAuto(w http.ResponseWriter, r *http.Request)
func (*CertService) ObtainManual ¶
func (s *CertService) ObtainManual(w http.ResponseWriter, r *http.Request)
func (*CertService) ObtainSelfSigned ¶
func (s *CertService) ObtainSelfSigned(w http.ResponseWriter, r *http.Request)
func (*CertService) Renew ¶
func (s *CertService) Renew(w http.ResponseWriter, r *http.Request)
func (*CertService) Update ¶
func (s *CertService) Update(w http.ResponseWriter, r *http.Request)
func (*CertService) Upload ¶
func (s *CertService) Upload(w http.ResponseWriter, r *http.Request)
type CliService ¶
type CliService struct {
// contains filtered or unexported fields
}
func NewCliService ¶
func NewCliService(conf *koanf.Koanf, db *gorm.DB, appRepo biz.AppRepo, cache biz.CacheRepo, user biz.UserRepo, setting biz.SettingRepo, backup biz.BackupRepo, website biz.WebsiteRepo, databaseServer biz.DatabaseServerRepo) *CliService
func (*CliService) AppInstall ¶
func (s *CliService) AppInstall(ctx context.Context, cmd *cli.Command) error
func (*CliService) AppRemove ¶
func (s *CliService) AppRemove(ctx context.Context, cmd *cli.Command) error
func (*CliService) AppUnInstall ¶
func (s *CliService) AppUnInstall(ctx context.Context, cmd *cli.Command) error
func (*CliService) AppUpdate ¶
func (s *CliService) AppUpdate(ctx context.Context, cmd *cli.Command) error
func (*CliService) AppWrite ¶
func (s *CliService) AppWrite(ctx context.Context, cmd *cli.Command) error
func (*CliService) BackupClear ¶
func (s *CliService) BackupClear(ctx context.Context, cmd *cli.Command) error
func (*CliService) BackupDatabase ¶
func (s *CliService) BackupDatabase(ctx context.Context, cmd *cli.Command) error
func (*CliService) BackupPanel ¶
func (s *CliService) BackupPanel(ctx context.Context, cmd *cli.Command) error
func (*CliService) BackupWebsite ¶
func (s *CliService) BackupWebsite(ctx context.Context, cmd *cli.Command) error
func (*CliService) ClearTask ¶
func (s *CliService) ClearTask(ctx context.Context, cmd *cli.Command) error
func (*CliService) CutoffClear ¶
func (s *CliService) CutoffClear(ctx context.Context, cmd *cli.Command) error
func (*CliService) CutoffWebsite ¶
func (s *CliService) CutoffWebsite(ctx context.Context, cmd *cli.Command) error
func (*CliService) DatabaseAddServer ¶
func (s *CliService) DatabaseAddServer(ctx context.Context, cmd *cli.Command) error
func (*CliService) DatabaseDeleteServer ¶
func (s *CliService) DatabaseDeleteServer(ctx context.Context, cmd *cli.Command) error
func (*CliService) EntranceOff ¶
func (s *CliService) EntranceOff(ctx context.Context, cmd *cli.Command) error
func (*CliService) EntranceOn ¶
func (s *CliService) EntranceOn(ctx context.Context, cmd *cli.Command) error
func (*CliService) GetSetting ¶
func (s *CliService) GetSetting(ctx context.Context, cmd *cli.Command) error
func (*CliService) HTTPSGenerate ¶
func (s *CliService) HTTPSGenerate(ctx context.Context, cmd *cli.Command) error
func (*CliService) HTTPSOff ¶
func (s *CliService) HTTPSOff(ctx context.Context, cmd *cli.Command) error
func (*CliService) HTTPSOn ¶
func (s *CliService) HTTPSOn(ctx context.Context, cmd *cli.Command) error
func (*CliService) RemoveSetting ¶
func (s *CliService) RemoveSetting(ctx context.Context, cmd *cli.Command) error
func (*CliService) Restart ¶
func (s *CliService) Restart(ctx context.Context, cmd *cli.Command) error
func (*CliService) SyncTime ¶
func (s *CliService) SyncTime(ctx context.Context, cmd *cli.Command) error
func (*CliService) Update ¶
func (s *CliService) Update(ctx context.Context, cmd *cli.Command) error
func (*CliService) UserList ¶
func (s *CliService) UserList(ctx context.Context, cmd *cli.Command) error
func (*CliService) UserName ¶
func (s *CliService) UserName(ctx context.Context, cmd *cli.Command) error
func (*CliService) UserPassword ¶
func (s *CliService) UserPassword(ctx context.Context, cmd *cli.Command) error
func (*CliService) WebsiteCreate ¶
func (s *CliService) WebsiteCreate(ctx context.Context, cmd *cli.Command) error
func (*CliService) WebsiteDelete ¶
func (s *CliService) WebsiteDelete(ctx context.Context, cmd *cli.Command) error
func (*CliService) WebsiteRemove ¶
func (s *CliService) WebsiteRemove(ctx context.Context, cmd *cli.Command) error
func (*CliService) WebsiteWrite ¶
func (s *CliService) WebsiteWrite(ctx context.Context, cmd *cli.Command) error
func (*CliService) WriteSetting ¶
func (s *CliService) WriteSetting(ctx context.Context, cmd *cli.Command) error
type ContainerImageService ¶
type ContainerImageService struct {
// contains filtered or unexported fields
}
func NewContainerImageService ¶
func NewContainerImageService(containerImage biz.ContainerImageRepo) *ContainerImageService
func (*ContainerImageService) List ¶
func (s *ContainerImageService) List(w http.ResponseWriter, r *http.Request)
func (*ContainerImageService) Prune ¶
func (s *ContainerImageService) Prune(w http.ResponseWriter, r *http.Request)
func (*ContainerImageService) Pull ¶
func (s *ContainerImageService) Pull(w http.ResponseWriter, r *http.Request)
func (*ContainerImageService) Remove ¶
func (s *ContainerImageService) Remove(w http.ResponseWriter, r *http.Request)
type ContainerNetworkService ¶
type ContainerNetworkService struct {
// contains filtered or unexported fields
}
func NewContainerNetworkService ¶
func NewContainerNetworkService(containerNetwork biz.ContainerNetworkRepo) *ContainerNetworkService
func (*ContainerNetworkService) Create ¶
func (s *ContainerNetworkService) Create(w http.ResponseWriter, r *http.Request)
func (*ContainerNetworkService) List ¶
func (s *ContainerNetworkService) List(w http.ResponseWriter, r *http.Request)
func (*ContainerNetworkService) Prune ¶
func (s *ContainerNetworkService) Prune(w http.ResponseWriter, r *http.Request)
func (*ContainerNetworkService) Remove ¶
func (s *ContainerNetworkService) Remove(w http.ResponseWriter, r *http.Request)
type ContainerService ¶
type ContainerService struct {
// contains filtered or unexported fields
}
func NewContainerService ¶
func NewContainerService(container biz.ContainerRepo) *ContainerService
func (*ContainerService) Create ¶
func (s *ContainerService) Create(w http.ResponseWriter, r *http.Request)
func (*ContainerService) Kill ¶
func (s *ContainerService) Kill(w http.ResponseWriter, r *http.Request)
func (*ContainerService) List ¶
func (s *ContainerService) List(w http.ResponseWriter, r *http.Request)
func (*ContainerService) Logs ¶
func (s *ContainerService) Logs(w http.ResponseWriter, r *http.Request)
func (*ContainerService) Pause ¶
func (s *ContainerService) Pause(w http.ResponseWriter, r *http.Request)
func (*ContainerService) Prune ¶
func (s *ContainerService) Prune(w http.ResponseWriter, r *http.Request)
func (*ContainerService) Remove ¶
func (s *ContainerService) Remove(w http.ResponseWriter, r *http.Request)
func (*ContainerService) Rename ¶
func (s *ContainerService) Rename(w http.ResponseWriter, r *http.Request)
func (*ContainerService) Restart ¶
func (s *ContainerService) Restart(w http.ResponseWriter, r *http.Request)
func (*ContainerService) Search ¶
func (s *ContainerService) Search(w http.ResponseWriter, r *http.Request)
func (*ContainerService) Start ¶
func (s *ContainerService) Start(w http.ResponseWriter, r *http.Request)
func (*ContainerService) Stop ¶
func (s *ContainerService) Stop(w http.ResponseWriter, r *http.Request)
func (*ContainerService) Unpause ¶
func (s *ContainerService) Unpause(w http.ResponseWriter, r *http.Request)
type ContainerVolumeService ¶
type ContainerVolumeService struct {
// contains filtered or unexported fields
}
func NewContainerVolumeService ¶
func NewContainerVolumeService(containerVolume biz.ContainerVolumeRepo) *ContainerVolumeService
func (*ContainerVolumeService) Create ¶
func (s *ContainerVolumeService) Create(w http.ResponseWriter, r *http.Request)
func (*ContainerVolumeService) List ¶
func (s *ContainerVolumeService) List(w http.ResponseWriter, r *http.Request)
func (*ContainerVolumeService) Prune ¶
func (s *ContainerVolumeService) Prune(w http.ResponseWriter, r *http.Request)
func (*ContainerVolumeService) Remove ¶
func (s *ContainerVolumeService) Remove(w http.ResponseWriter, r *http.Request)
type CronService ¶
type CronService struct {
// contains filtered or unexported fields
}
func NewCronService ¶
func NewCronService(cron biz.CronRepo) *CronService
func (*CronService) Create ¶
func (s *CronService) Create(w http.ResponseWriter, r *http.Request)
func (*CronService) Delete ¶
func (s *CronService) Delete(w http.ResponseWriter, r *http.Request)
func (*CronService) Get ¶
func (s *CronService) Get(w http.ResponseWriter, r *http.Request)
func (*CronService) List ¶
func (s *CronService) List(w http.ResponseWriter, r *http.Request)
func (*CronService) Status ¶
func (s *CronService) Status(w http.ResponseWriter, r *http.Request)
func (*CronService) Update ¶
func (s *CronService) Update(w http.ResponseWriter, r *http.Request)
type DashboardService ¶
type DashboardService struct {
// contains filtered or unexported fields
}
func NewDashboardService ¶
func NewDashboardService(conf *koanf.Koanf, task biz.TaskRepo, website biz.WebsiteRepo, appRepo biz.AppRepo, setting biz.SettingRepo, cron biz.CronRepo, backupRepo biz.BackupRepo) *DashboardService
func (*DashboardService) CheckUpdate ¶
func (s *DashboardService) CheckUpdate(w http.ResponseWriter, r *http.Request)
func (*DashboardService) CountInfo ¶
func (s *DashboardService) CountInfo(w http.ResponseWriter, r *http.Request)
func (*DashboardService) Current ¶
func (s *DashboardService) Current(w http.ResponseWriter, r *http.Request)
func (*DashboardService) HomeApps ¶
func (s *DashboardService) HomeApps(w http.ResponseWriter, r *http.Request)
func (*DashboardService) InstalledDbAndPhp ¶
func (s *DashboardService) InstalledDbAndPhp(w http.ResponseWriter, r *http.Request)
func (*DashboardService) Panel ¶
func (s *DashboardService) Panel(w http.ResponseWriter, r *http.Request)
func (*DashboardService) Restart ¶
func (s *DashboardService) Restart(w http.ResponseWriter, r *http.Request)
func (*DashboardService) SystemInfo ¶
func (s *DashboardService) SystemInfo(w http.ResponseWriter, r *http.Request)
func (*DashboardService) Update ¶
func (s *DashboardService) Update(w http.ResponseWriter, r *http.Request)
func (*DashboardService) UpdateInfo ¶
func (s *DashboardService) UpdateInfo(w http.ResponseWriter, r *http.Request)
type DatabaseServerService ¶
type DatabaseServerService struct {
// contains filtered or unexported fields
}
func NewDatabaseServerService ¶
func NewDatabaseServerService(databaseServer biz.DatabaseServerRepo) *DatabaseServerService
func (*DatabaseServerService) Create ¶
func (s *DatabaseServerService) Create(w http.ResponseWriter, r *http.Request)
func (*DatabaseServerService) Delete ¶
func (s *DatabaseServerService) Delete(w http.ResponseWriter, r *http.Request)
func (*DatabaseServerService) Get ¶
func (s *DatabaseServerService) Get(w http.ResponseWriter, r *http.Request)
func (*DatabaseServerService) List ¶
func (s *DatabaseServerService) List(w http.ResponseWriter, r *http.Request)
func (*DatabaseServerService) Sync ¶
func (s *DatabaseServerService) Sync(w http.ResponseWriter, r *http.Request)
func (*DatabaseServerService) Update ¶
func (s *DatabaseServerService) Update(w http.ResponseWriter, r *http.Request)
func (*DatabaseServerService) UpdateRemark ¶
func (s *DatabaseServerService) UpdateRemark(w http.ResponseWriter, r *http.Request)
type DatabaseService ¶
type DatabaseService struct {
// contains filtered or unexported fields
}
func NewDatabaseService ¶
func NewDatabaseService(database biz.DatabaseRepo) *DatabaseService
func (*DatabaseService) Comment ¶
func (s *DatabaseService) Comment(w http.ResponseWriter, r *http.Request)
func (*DatabaseService) Create ¶
func (s *DatabaseService) Create(w http.ResponseWriter, r *http.Request)
func (*DatabaseService) Delete ¶
func (s *DatabaseService) Delete(w http.ResponseWriter, r *http.Request)
func (*DatabaseService) List ¶
func (s *DatabaseService) List(w http.ResponseWriter, r *http.Request)
type DatabaseUserService ¶
type DatabaseUserService struct {
// contains filtered or unexported fields
}
func NewDatabaseUserService ¶
func NewDatabaseUserService(databaseUser biz.DatabaseUserRepo) *DatabaseUserService
func (*DatabaseUserService) Create ¶
func (s *DatabaseUserService) Create(w http.ResponseWriter, r *http.Request)
func (*DatabaseUserService) Delete ¶
func (s *DatabaseUserService) Delete(w http.ResponseWriter, r *http.Request)
func (*DatabaseUserService) Get ¶
func (s *DatabaseUserService) Get(w http.ResponseWriter, r *http.Request)
func (*DatabaseUserService) List ¶
func (s *DatabaseUserService) List(w http.ResponseWriter, r *http.Request)
func (*DatabaseUserService) Update ¶
func (s *DatabaseUserService) Update(w http.ResponseWriter, r *http.Request)
func (*DatabaseUserService) UpdateRemark ¶
func (s *DatabaseUserService) UpdateRemark(w http.ResponseWriter, r *http.Request)
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"message"`
}
ErrorResponse 通用错误响应
type FileService ¶
type FileService struct {
// contains filtered or unexported fields
}
func NewFileService ¶
func NewFileService(task biz.TaskRepo) *FileService
func (*FileService) Compress ¶
func (s *FileService) Compress(w http.ResponseWriter, r *http.Request)
func (*FileService) Content ¶
func (s *FileService) Content(w http.ResponseWriter, r *http.Request)
func (*FileService) Copy ¶
func (s *FileService) Copy(w http.ResponseWriter, r *http.Request)
func (*FileService) Create ¶
func (s *FileService) Create(w http.ResponseWriter, r *http.Request)
func (*FileService) Delete ¶
func (s *FileService) Delete(w http.ResponseWriter, r *http.Request)
func (*FileService) Download ¶
func (s *FileService) Download(w http.ResponseWriter, r *http.Request)
func (*FileService) Exist ¶
func (s *FileService) Exist(w http.ResponseWriter, r *http.Request)
func (*FileService) Info ¶
func (s *FileService) Info(w http.ResponseWriter, r *http.Request)
func (*FileService) List ¶
func (s *FileService) List(w http.ResponseWriter, r *http.Request)
func (*FileService) Move ¶
func (s *FileService) Move(w http.ResponseWriter, r *http.Request)
func (*FileService) Permission ¶
func (s *FileService) Permission(w http.ResponseWriter, r *http.Request)
func (*FileService) RemoteDownload ¶
func (s *FileService) RemoteDownload(w http.ResponseWriter, r *http.Request)
func (*FileService) Save ¶
func (s *FileService) Save(w http.ResponseWriter, r *http.Request)
func (*FileService) Search ¶
func (s *FileService) Search(w http.ResponseWriter, r *http.Request)
func (*FileService) UnCompress ¶
func (s *FileService) UnCompress(w http.ResponseWriter, r *http.Request)
func (*FileService) Upload ¶
func (s *FileService) Upload(w http.ResponseWriter, r *http.Request)
type FirewallService ¶
type FirewallService struct {
// contains filtered or unexported fields
}
func NewFirewallService ¶
func NewFirewallService() *FirewallService
func (*FirewallService) CreateForward ¶
func (s *FirewallService) CreateForward(w http.ResponseWriter, r *http.Request)
func (*FirewallService) CreateIPRule ¶
func (s *FirewallService) CreateIPRule(w http.ResponseWriter, r *http.Request)
func (*FirewallService) CreateRule ¶
func (s *FirewallService) CreateRule(w http.ResponseWriter, r *http.Request)
func (*FirewallService) DeleteForward ¶
func (s *FirewallService) DeleteForward(w http.ResponseWriter, r *http.Request)
func (*FirewallService) DeleteIPRule ¶
func (s *FirewallService) DeleteIPRule(w http.ResponseWriter, r *http.Request)
func (*FirewallService) DeleteRule ¶
func (s *FirewallService) DeleteRule(w http.ResponseWriter, r *http.Request)
func (*FirewallService) GetForwards ¶
func (s *FirewallService) GetForwards(w http.ResponseWriter, r *http.Request)
func (*FirewallService) GetIPRules ¶
func (s *FirewallService) GetIPRules(w http.ResponseWriter, r *http.Request)
func (*FirewallService) GetRules ¶
func (s *FirewallService) GetRules(w http.ResponseWriter, r *http.Request)
func (*FirewallService) GetStatus ¶
func (s *FirewallService) GetStatus(w http.ResponseWriter, r *http.Request)
func (*FirewallService) UpdateStatus ¶
func (s *FirewallService) UpdateStatus(w http.ResponseWriter, r *http.Request)
type MonitorService ¶
type MonitorService struct {
// contains filtered or unexported fields
}
func NewMonitorService ¶
func NewMonitorService(setting biz.SettingRepo, monitor biz.MonitorRepo) *MonitorService
func (*MonitorService) Clear ¶
func (s *MonitorService) Clear(w http.ResponseWriter, r *http.Request)
func (*MonitorService) GetSetting ¶
func (s *MonitorService) GetSetting(w http.ResponseWriter, r *http.Request)
func (*MonitorService) List ¶
func (s *MonitorService) List(w http.ResponseWriter, r *http.Request)
func (*MonitorService) UpdateSetting ¶
func (s *MonitorService) UpdateSetting(w http.ResponseWriter, r *http.Request)
type ProcessService ¶
type ProcessService struct { }
func NewProcessService ¶
func NewProcessService() *ProcessService
func (*ProcessService) Kill ¶
func (s *ProcessService) Kill(w http.ResponseWriter, r *http.Request)
func (*ProcessService) List ¶
func (s *ProcessService) List(w http.ResponseWriter, r *http.Request)
type SSHService ¶
type SSHService struct {
// contains filtered or unexported fields
}
func NewSSHService ¶
func NewSSHService(ssh biz.SSHRepo) *SSHService
func (*SSHService) Create ¶
func (s *SSHService) Create(w http.ResponseWriter, r *http.Request)
func (*SSHService) Delete ¶
func (s *SSHService) Delete(w http.ResponseWriter, r *http.Request)
func (*SSHService) Get ¶
func (s *SSHService) Get(w http.ResponseWriter, r *http.Request)
func (*SSHService) List ¶
func (s *SSHService) List(w http.ResponseWriter, r *http.Request)
func (*SSHService) Update ¶
func (s *SSHService) Update(w http.ResponseWriter, r *http.Request)
type SafeService ¶
type SafeService struct {
// contains filtered or unexported fields
}
func NewSafeService ¶
func NewSafeService(safe biz.SafeRepo) *SafeService
func (*SafeService) GetPingStatus ¶
func (s *SafeService) GetPingStatus(w http.ResponseWriter, r *http.Request)
func (*SafeService) GetSSH ¶
func (s *SafeService) GetSSH(w http.ResponseWriter, r *http.Request)
func (*SafeService) UpdatePingStatus ¶
func (s *SafeService) UpdatePingStatus(w http.ResponseWriter, r *http.Request)
func (*SafeService) UpdateSSH ¶
func (s *SafeService) UpdateSSH(w http.ResponseWriter, r *http.Request)
type SettingService ¶
type SettingService struct {
// contains filtered or unexported fields
}
func NewSettingService ¶
func NewSettingService(setting biz.SettingRepo) *SettingService
func (*SettingService) Get ¶
func (s *SettingService) Get(w http.ResponseWriter, r *http.Request)
func (*SettingService) Update ¶
func (s *SettingService) Update(w http.ResponseWriter, r *http.Request)
type SuccessResponse ¶
SuccessResponse 通用成功响应
type SystemctlService ¶
type SystemctlService struct { }
func NewSystemctlService ¶
func NewSystemctlService() *SystemctlService
func (*SystemctlService) Disable ¶
func (s *SystemctlService) Disable(w http.ResponseWriter, r *http.Request)
func (*SystemctlService) Enable ¶
func (s *SystemctlService) Enable(w http.ResponseWriter, r *http.Request)
func (*SystemctlService) IsEnabled ¶
func (s *SystemctlService) IsEnabled(w http.ResponseWriter, r *http.Request)
func (*SystemctlService) Reload ¶
func (s *SystemctlService) Reload(w http.ResponseWriter, r *http.Request)
func (*SystemctlService) Restart ¶
func (s *SystemctlService) Restart(w http.ResponseWriter, r *http.Request)
func (*SystemctlService) Start ¶
func (s *SystemctlService) Start(w http.ResponseWriter, r *http.Request)
func (*SystemctlService) Status ¶
func (s *SystemctlService) Status(w http.ResponseWriter, r *http.Request)
func (*SystemctlService) Stop ¶
func (s *SystemctlService) Stop(w http.ResponseWriter, r *http.Request)
type TaskService ¶
type TaskService struct {
// contains filtered or unexported fields
}
func NewTaskService ¶
func NewTaskService(task biz.TaskRepo) *TaskService
func (*TaskService) Delete ¶
func (s *TaskService) Delete(w http.ResponseWriter, r *http.Request)
func (*TaskService) Get ¶
func (s *TaskService) Get(w http.ResponseWriter, r *http.Request)
func (*TaskService) List ¶
func (s *TaskService) List(w http.ResponseWriter, r *http.Request)
func (*TaskService) Status ¶
func (s *TaskService) Status(w http.ResponseWriter, r *http.Request)
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(conf *koanf.Koanf, session *sessions.Manager, user biz.UserRepo) *UserService
func (*UserService) GetKey ¶
func (s *UserService) GetKey(w http.ResponseWriter, r *http.Request)
func (*UserService) Info ¶
func (s *UserService) Info(w http.ResponseWriter, r *http.Request)
func (*UserService) IsLogin ¶
func (s *UserService) IsLogin(w http.ResponseWriter, r *http.Request)
func (*UserService) Login ¶
func (s *UserService) Login(w http.ResponseWriter, r *http.Request)
func (*UserService) Logout ¶
func (s *UserService) Logout(w http.ResponseWriter, r *http.Request)
type WebsiteService ¶
type WebsiteService struct {
// contains filtered or unexported fields
}
func NewWebsiteService ¶
func NewWebsiteService(website biz.WebsiteRepo, setting biz.SettingRepo) *WebsiteService
func (*WebsiteService) ClearLog ¶
func (s *WebsiteService) ClearLog(w http.ResponseWriter, r *http.Request)
func (*WebsiteService) Create ¶
func (s *WebsiteService) Create(w http.ResponseWriter, r *http.Request)
func (*WebsiteService) Delete ¶
func (s *WebsiteService) Delete(w http.ResponseWriter, r *http.Request)
func (*WebsiteService) Get ¶
func (s *WebsiteService) Get(w http.ResponseWriter, r *http.Request)
func (*WebsiteService) GetDefaultConfig ¶
func (s *WebsiteService) GetDefaultConfig(w http.ResponseWriter, r *http.Request)
func (*WebsiteService) GetRewrites ¶
func (s *WebsiteService) GetRewrites(w http.ResponseWriter, r *http.Request)
func (*WebsiteService) List ¶
func (s *WebsiteService) List(w http.ResponseWriter, r *http.Request)
func (*WebsiteService) ObtainCert ¶
func (s *WebsiteService) ObtainCert(w http.ResponseWriter, r *http.Request)
func (*WebsiteService) ResetConfig ¶
func (s *WebsiteService) ResetConfig(w http.ResponseWriter, r *http.Request)
func (*WebsiteService) Update ¶
func (s *WebsiteService) Update(w http.ResponseWriter, r *http.Request)
func (*WebsiteService) UpdateDefaultConfig ¶
func (s *WebsiteService) UpdateDefaultConfig(w http.ResponseWriter, r *http.Request)
func (*WebsiteService) UpdateRemark ¶
func (s *WebsiteService) UpdateRemark(w http.ResponseWriter, r *http.Request)
func (*WebsiteService) UpdateStatus ¶
func (s *WebsiteService) UpdateStatus(w http.ResponseWriter, r *http.Request)
type WsService ¶
type WsService struct {
// contains filtered or unexported fields
}
func NewWsService ¶
Source Files ¶
- app.go
- backup.go
- cert.go
- cert_account.go
- cert_dns.go
- cli.go
- container.go
- container_image.go
- container_network.go
- container_volume.go
- cron.go
- dashboard.go
- database.go
- database_server.go
- database_user.go
- file.go
- firewall.go
- helper.go
- monitor.go
- process.go
- safe.go
- service.go
- setting.go
- ssh.go
- systemctl.go
- task.go
- user.go
- website.go
- ws.go
Click to show internal directories.
Click to hide internal directories.