Documentation
¶
Index ¶
- type AppConfig
- type AppDTO
- type AppDetail
- type AppDetailDTO
- type AppDetailSimpleDTO
- type AppIgnoreUpgradeDTO
- type AppInstallDTO
- type AppInstallInfo
- type AppInstalledCheck
- type AppInstalledDTO
- type AppItem
- type AppParam
- type AppRes
- type AppService
- type AppUpdateRes
- type CompleteDiskInfo
- type ComponentInfo
- type Database
- type DatabaseConn
- type DepthDirSizeRes
- type DirSizeRes
- type DiskBasicInfo
- type DiskInfo
- type ExistFileInfo
- type FavoriteDTO
- type FileConvertLog
- type FileExist
- type FileInfo
- type FileLineContent
- type FileProcessKeys
- type FileRemarksRes
- type FileTree
- type FileWgetRes
- type FpmStatusItem
- type HostToolConfig
- type HostToolRes
- type IgnoredApp
- type McpBindDomainRes
- type McpServerDTO
- type McpServersRes
- type MountInfo
- type NginxAntiLeechRes
- type NginxAuthRes
- type NginxBuildConfig
- type NginxConfigRes
- type NginxFile
- type NginxModule
- type NginxParam
- type NginxPathAuthRes
- type NginxProxyCache
- type NginxRedirectConfig
- type NginxRewriteRes
- type NginxStatus
- type NodeModule
- type PHPConfig
- type PHPExtensionRes
- type PHPExtensionsDTO
- type PackageScripts
- type ProcessStatus
- type RecycleBinDTO
- type Resource
- type RuntimeDTO
- type Supervisor
- type SupervisorProcessConfig
- type SupportExtension
- type TagDTO
- type TensorRTLLMDTO
- type TensorRTLLMsRes
- type UploadInfo
- type UserGroupResponse
- type UserInfo
- type WebsiteAcmeAccountDTO
- type WebsiteCADTO
- type WebsiteDNSRes
- type WebsiteDTO
- type WebsiteDirConfig
- type WebsiteDnsAccountDTO
- type WebsiteHTTPS
- type WebsiteHtmlRes
- type WebsiteLog
- type WebsiteNginxConfig
- type WebsiteOption
- type WebsitePreInstallCheck
- type WebsiteRealIP
- type WebsiteRes
- type WebsiteSSLDTO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct {
Params []AppParam `json:"params"`
RawCompose string `json:"rawCompose"`
request.AppContainerConfig
}
type AppDetailDTO ¶
type AppDetailSimpleDTO ¶
type AppDetailSimpleDTO struct {
ID uint `json:"id"`
}
type AppIgnoreUpgradeDTO ¶
type AppInstallDTO ¶
type AppInstallDTO struct {
ID uint `json:"id"`
Name string `json:"name"`
AppID uint `json:"appID"`
AppDetailID uint `json:"appDetailID"`
Version string `json:"version"`
Status string `json:"status"`
Message string `json:"message"`
HttpPort int `json:"httpPort"`
HttpsPort int `json:"httpsPort"`
Path string `json:"path"`
CanUpdate bool `json:"canUpdate"`
Icon string `json:"icon"`
AppName string `json:"appName"`
Ready int `json:"ready"`
Total int `json:"total"`
AppKey string `json:"appKey"`
AppType string `json:"appType"`
AppStatus string `json:"appStatus"`
DockerCompose string `json:"dockerCompose"`
WebUI string `json:"webUI"`
CreatedAt time.Time `json:"createdAt"`
Favorite bool `json:"favorite"`
App AppDetail `json:"app"`
Container string `json:"container"`
IsEdit bool `json:"isEdit"`
LinkDB bool `json:"linkDB"`
ServiceName string `json:"serviceName"`
}
type AppInstallInfo ¶
type AppInstallInfo struct {
ID uint `json:"id"`
Name string `json:"name"`
Version string `json:"version"`
Status string `json:"status"`
Message string `json:"message"`
HttpPort int `json:"HttpPort"`
Container string `json:"container"`
ComposePath string `json:"composePath"`
AppKey string `json:"appKey"`
AppPorts []int `json:"appPorts"`
Env map[string]interface{} `json:"env"`
}
type AppInstalledCheck ¶
type AppInstalledCheck struct {
IsExist bool `json:"isExist"`
Name string `json:"name"`
App string `json:"app"`
Version string `json:"version"`
Status string `json:"status"`
CreatedAt time.Time `json:"createdAt"`
LastBackupAt string `json:"lastBackupAt"`
AppInstallID uint `json:"appInstallId"`
ContainerName string `json:"containerName"`
InstallPath string `json:"installPath"`
HttpPort int `json:"httpPort"`
HttpsPort int `json:"httpsPort"`
WebsiteDir string `json:"websiteDir"`
}
type AppInstalledDTO ¶
type AppItem ¶
type AppItem struct {
Name string `json:"name"`
Key string `json:"key"`
ID uint `json:"id"`
Description string `json:"description"`
Status string `json:"status"`
Installed bool `json:"installed"`
Limit int `json:"limit"`
Tags []string `json:"tags"`
GpuSupport bool `json:"gpuSupport"`
Recommend int `json:"recommend"`
Type string `json:"type"`
BatchInstallSupport bool `json:"batchInstallSupport"`
}
type AppParam ¶
type AppParam struct {
Value interface{} `json:"value"`
Edit bool `json:"edit"`
Key string `json:"key"`
Rule string `json:"rule"`
LabelZh string `json:"labelZh"`
LabelEn string `json:"labelEn"`
Type string `json:"type"`
Values interface{} `json:"values"`
ShowValue string `json:"showValue"`
Required bool `json:"required"`
Multiple bool `json:"multiple"`
Label dto.Locale `json:"label"`
}
type AppService ¶
type AppUpdateRes ¶
type CompleteDiskInfo ¶
type CompleteDiskInfo struct {
Disks []DiskInfo `json:"disks"`
UnpartitionedDisks []DiskBasicInfo `json:"unpartitionedDisks"`
SystemDisks []DiskInfo `json:"systemDisks"`
TotalDisks int `json:"totalDisks"`
TotalCapacity int64 `json:"totalCapacity"`
}
type ComponentInfo ¶
type DatabaseConn ¶
type DepthDirSizeRes ¶
type DirSizeRes ¶
type DirSizeRes struct {
Size int64 `json:"size" validate:"required"`
}
type DiskBasicInfo ¶
type DiskBasicInfo struct {
Device string `json:"device"`
Size string `json:"size"`
Model string `json:"model"`
DiskType string `json:"diskType"`
IsRemovable bool `json:"isRemovable"`
IsSystem bool `json:"isSystem"`
Filesystem string `json:"filesystem"`
Used string `json:"used"`
Avail string `json:"avail"`
UsePercent int `json:"usePercent"`
MountPoint string `json:"mountPoint"`
IsMounted bool `json:"isMounted"`
Serial string `json:"serial"`
}
type DiskInfo ¶
type DiskInfo struct {
DiskBasicInfo
Partitions []DiskBasicInfo `json:"partitions"`
}
type ExistFileInfo ¶
type FavoriteDTO ¶
type FileConvertLog ¶
type FileLineContent ¶
type FileProcessKeys ¶
type FileProcessKeys struct {
Keys []string `json:"keys"`
}
type FileRemarksRes ¶
type FileWgetRes ¶
type FileWgetRes struct {
Key string `json:"key"`
}
type FpmStatusItem ¶
type FpmStatusItem struct {
Key string `json:"key"`
Value interface{} `json:"value"`
}
type HostToolConfig ¶
type HostToolConfig struct {
Content string `json:"content"`
}
type HostToolRes ¶
type HostToolRes struct {
Type string `json:"type"`
Config interface{} `json:"config"`
}
type IgnoredApp ¶
type McpBindDomainRes ¶
type McpServerDTO ¶
type McpServersRes ¶
type McpServersRes struct {
Items []McpServerDTO `json:"items"`
Total int64 `json:"total"`
}
type NginxAntiLeechRes ¶
type NginxAntiLeechRes struct {
Enable bool `json:"enable"`
Extends string `json:"extends"`
Return string `json:"return"`
ServerNames []string `json:"serverNames"`
Cache bool `json:"cache"`
CacheTime int `json:"cacheTime"`
CacheUint string `json:"cacheUint"`
NoneRef bool `json:"noneRef"`
LogEnable bool `json:"logEnable"`
Blocked bool `json:"blocked"`
}
type NginxAuthRes ¶
type NginxBuildConfig ¶
type NginxBuildConfig struct {
Mirror string `json:"mirror"`
Modules []NginxModule `json:"modules"`
}
type NginxConfigRes ¶
type NginxModule ¶
type NginxParam ¶
type NginxPathAuthRes ¶
type NginxPathAuthRes struct {
dto.NginxPathAuth
}
type NginxProxyCache ¶
type NginxRedirectConfig ¶
type NginxRedirectConfig struct {
WebsiteID uint `json:"websiteID"`
Name string `json:"name"`
Domains []string `json:"domains"`
KeepPath bool `json:"keepPath"`
Enable bool `json:"enable"`
Type string `json:"type"`
Redirect string `json:"redirect"`
Path string `json:"path"`
Target string `json:"target"`
FilePath string `json:"filePath"`
Content string `json:"content"`
RedirectRoot bool `json:"redirectRoot"`
}
type NginxRewriteRes ¶
type NginxRewriteRes struct {
Content string `json:"content"`
}
type NginxStatus ¶
type NodeModule ¶
type PHPExtensionRes ¶
type PHPExtensionRes struct {
Extensions []string `json:"extensions"`
SupportExtensions []SupportExtension `json:"supportExtensions"`
}
type PHPExtensionsDTO ¶
type PHPExtensionsDTO struct {
model.PHPExtensions
}
type PackageScripts ¶
type ProcessStatus ¶
type RecycleBinDTO ¶
type RuntimeDTO ¶
type RuntimeDTO struct {
ID uint `json:"id"`
Name string `json:"name"`
Resource string `json:"resource"`
AppDetailID uint `json:"appDetailID"`
AppID uint `json:"appID"`
Source string `json:"source"`
Status string `json:"status"`
Type string `json:"type"`
Image string `json:"image"`
Params map[string]interface{} `json:"params"`
Message string `json:"message"`
Version string `json:"version"`
CreatedAt time.Time `json:"createdAt"`
CodeDir string `json:"codeDir"`
AppParams []AppParam `json:"appParams"`
Port string `json:"port"`
Path string `json:"path"`
ExposedPorts []request.ExposedPort `json:"exposedPorts"`
Environments []request.Environment `json:"environments"`
Volumes []request.Volume `json:"volumes"`
ExtraHosts []request.ExtraHost `json:"extraHosts"`
ContainerStatus string `json:"containerStatus"`
Container string `json:"container"`
Remark string `json:"remark"`
}
func NewRuntimeDTO ¶
func NewRuntimeDTO(runtime model.Runtime) RuntimeDTO
type Supervisor ¶
type Supervisor struct {
ConfigPath string `json:"configPath"`
IncludeDir string `json:"includeDir"`
LogPath string `json:"logPath"`
IsExist bool `json:"isExist"`
Init bool `json:"init"`
Msg string `json:"msg"`
Version string `json:"version"`
Status string `json:"status"`
CtlExist bool `json:"ctlExist"`
ServiceName string `json:"serviceName"`
}
type SupervisorProcessConfig ¶
type SupervisorProcessConfig struct {
Name string `json:"name"`
Command string `json:"command"`
User string `json:"user"`
Dir string `json:"dir"`
Numprocs string `json:"numprocs"`
Msg string `json:"msg"`
Status []ProcessStatus `json:"status"`
AutoRestart string `json:"autoRestart"`
AutoStart string `json:"autoStart"`
Environment string `json:"environment"`
}
type SupportExtension ¶
type TensorRTLLMDTO ¶
type TensorRTLLMDTO struct {
model.TensorRTLLM
Version string `json:"version"`
Model string `json:"model"`
Dir string `json:"dir"`
ModelDir string `json:"modelDir"`
Image string `json:"image"`
Command string `json:"command"`
ExposedPorts []request.ExposedPort `json:"exposedPorts"`
Environments []request.Environment `json:"environments"`
Volumes []request.Volume `json:"volumes"`
}
type TensorRTLLMsRes ¶
type TensorRTLLMsRes struct {
Items []TensorRTLLMDTO `json:"items"`
Total int64 `json:"total"`
}
type UploadInfo ¶
type UserGroupResponse ¶
type WebsiteAcmeAccountDTO ¶
type WebsiteAcmeAccountDTO struct {
model.WebsiteAcmeAccount
}
type WebsiteCADTO ¶
type WebsiteDNSRes ¶
type WebsiteDTO ¶
type WebsiteDTO struct {
model.Website
ErrorLogPath string `json:"errorLogPath"`
AccessLogPath string `json:"accessLogPath"`
SitePath string `json:"sitePath"`
AppName string `json:"appName"`
RuntimeName string `json:"runtimeName"`
RuntimeType string `json:"runtimeType"`
SiteDir string `json:"siteDir"`
OpenBaseDir bool `json:"openBaseDir"`
Algorithm string `json:"algorithm"`
UDP bool `json:"udp"`
Servers []dto.NginxUpstreamServer `json:"servers"`
}
type WebsiteDirConfig ¶
type WebsiteDnsAccountDTO ¶
type WebsiteDnsAccountDTO struct {
model.WebsiteDnsAccount
Authorization map[string]string `json:"authorization"`
}
type WebsiteHTTPS ¶
type WebsiteHTTPS struct {
Enable bool `json:"enable"`
HttpConfig string `json:"httpConfig"`
SSL model.WebsiteSSL `json:"SSL"`
SSLProtocol []string `json:"SSLProtocol"`
Algorithm string `json:"algorithm"`
Hsts bool `json:"hsts"`
HstsIncludeSubDomains bool `json:"hstsIncludeSubDomains"`
HttpsPorts []int `json:"httpsPorts"`
HttpsPort string `json:"httpsPort"`
Http3 bool `json:"http3"`
}
type WebsiteHtmlRes ¶
type WebsiteHtmlRes struct {
Content string `json:"content"`
}
type WebsiteLog ¶
type WebsiteNginxConfig ¶
type WebsiteNginxConfig struct {
Enable bool `json:"enable"`
Params []NginxParam `json:"params"`
}
type WebsiteOption ¶
type WebsitePreInstallCheck ¶
type WebsiteRealIP ¶
type WebsiteRes ¶
type WebsiteRes struct {
ID uint `json:"id"`
CreatedAt time.Time `json:"createdAt"`
Protocol string `json:"protocol"`
PrimaryDomain string `json:"primaryDomain"`
Type string `json:"type"`
Alias string `json:"alias"`
Remark string `json:"remark"`
Status string `json:"status"`
ExpireDate time.Time `json:"expireDate"`
SitePath string `json:"sitePath"`
AppName string `json:"appName"`
RuntimeName string `json:"runtimeName"`
SSLExpireDate time.Time `json:"sslExpireDate"`
SSLStatus string `json:"sslStatus"`
AppInstallID uint `json:"appInstallId"`
ChildSites []string `json:"childSites"`
ParentSite string `json:"parentSite"`
RuntimeType string `json:"runtimeType"`
Favorite bool `json:"favorite"`
IPV6 bool `json:"IPV6"`
}
type WebsiteSSLDTO ¶
type WebsiteSSLDTO struct {
model.WebsiteSSL
LogPath string `json:"logPath"`
}
Click to show internal directories.
Click to hide internal directories.