Documentation ¶
Index ¶
- type AppConfig
- type AppDTO
- type AppDetail
- type AppDetailDTO
- type AppDto
- type AppInstallDTO
- type AppInstalledCheck
- type AppInstalledDTO
- type AppParam
- type AppRes
- type AppService
- type AppUpdateRes
- type DatabaseConn
- type DirSizeRes
- type FavoriteDTO
- type FileExist
- type FileInfo
- type FileLineContent
- type FileProcessKeys
- type FileTree
- type FileWgetRes
- type HostToolConfig
- type HostToolRes
- type IgnoredApp
- type NginxAntiLeechRes
- type NginxAuthRes
- type NginxFile
- type NginxParam
- type NginxRedirectConfig
- type NginxRewriteRes
- type NginxStatus
- type NodeModule
- type PHPConfig
- type PHPExtensionsDTO
- type PackageScripts
- type ProcessStatus
- type RecycleBinDTO
- type RuntimeDTO
- type Supervisor
- type SupervisorProcessConfig
- type TagDTO
- type UploadInfo
- 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 WebsiteRes
- type WebsiteSSLDTO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶ added in v1.3.0
type AppConfig struct { Params []AppParam `json:"params"` request.AppContainerConfig }
type AppDetailDTO ¶
type AppDto ¶
type AppDto struct { Name string `json:"name"` Key string `json:"key"` ID uint `json:"id"` ShortDescZh string `json:"shortDescZh"` ShortDescEn string `json:"shortDescEn"` Icon string `json:"icon"` Type string `json:"type"` Status string `json:"status"` Resource string `json:"resource"` Installed bool `json:"installed"` Versions []string `json:"versions"` Limit int `json:"limit"` Tags []model.Tag `json:"tags"` }
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"` CreatedAt time.Time `json:"createdAt"` App AppDetail `json:"app"` }
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"` }
type AppInstalledDTO ¶
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"` }
type AppService ¶
type AppUpdateRes ¶
type DatabaseConn ¶ added in v1.1.0
type DirSizeRes ¶
type DirSizeRes struct {
Size float64 `json:"size" validate:"required"`
}
type FavoriteDTO ¶ added in v1.8.0
type FileLineContent ¶ added in v1.8.0
type FileProcessKeys ¶
type FileProcessKeys struct {
Keys []string `json:"keys"`
}
type FileWgetRes ¶
type FileWgetRes struct {
Key string `json:"key"`
}
type HostToolConfig ¶ added in v1.5.0
type HostToolConfig struct {
Content string `json:"content"`
}
type HostToolRes ¶ added in v1.5.0
type HostToolRes struct { Type string `json:"type"` Config interface{} `json:"config"` }
type IgnoredApp ¶ added in v1.4.0
type NginxAntiLeechRes ¶ added in v1.3.0
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 ¶ added in v1.2.0
type NginxParam ¶
type NginxRedirectConfig ¶ added in v1.5.0
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 ¶ added in v1.1.1
type NginxRewriteRes struct {
Content string `json:"content"`
}
type NginxStatus ¶
type NodeModule ¶ added in v1.7.0
type PHPExtensionsDTO ¶ added in v1.9.3
type PHPExtensionsDTO struct {
model.PHPExtensions
}
type PackageScripts ¶ added in v1.7.0
type ProcessStatus ¶ added in v1.5.0
type RecycleBinDTO ¶ added in v1.8.0
type RuntimeDTO ¶ added in v1.7.0
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 int `json:"port"` Path string `json:"path"` ExposedPorts []request.ExposedPort `json:"exposedPorts"` }
func NewRuntimeDTO ¶ added in v1.7.0
func NewRuntimeDTO(runtime model.Runtime) RuntimeDTO
type Supervisor ¶ added in v1.5.0
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 ¶ added in v1.5.0
type UploadInfo ¶
type WebsiteAcmeAccountDTO ¶
type WebsiteAcmeAccountDTO struct {
model.WebsiteAcmeAccount
}
type WebsiteCADTO ¶ added in v1.9.0
type WebsiteDNSRes ¶
type WebsiteDTO ¶
type WebsiteDirConfig ¶ added in v1.6.0
type WebsiteDnsAccountDTO ¶
type WebsiteDnsAccountDTO struct { model.WebsiteDnsAccount Authorization map[string]string `json:"authorization"` }
type WebsiteHTTPS ¶
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 ¶ added in v1.9.3
type WebsitePreInstallCheck ¶
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"` }
type WebsiteSSLDTO ¶
type WebsiteSSLDTO struct { model.WebsiteSSL LogPath string `json:"logPath"` }
Click to show internal directories.
Click to hide internal directories.