Documentation
¶
Index ¶
- type AppBackupDelete
- type AppBackupSearch
- type AppContainerConfig
- type AppInstallCreate
- type AppInstalledIgnoreUpgrade
- type AppInstalledOperate
- type AppInstalledSearch
- type AppInstalledUpdate
- type AppSearch
- type DirSizeReq
- type FileBatchDelete
- type FileChunkDownload
- type FileCompress
- type FileCreate
- type FileDeCompress
- type FileDelete
- type FileDownload
- type FileEdit
- type FileMove
- type FileOption
- type FilePathCheck
- type FileProcessReq
- type FileRename
- type FileRoleUpdate
- type FileWget
- type HostToolConfig
- type HostToolCreate
- type HostToolLogReq
- type HostToolReq
- type NewAppInstall
- type NginxAntiLeechUpdate
- type NginxAuthReq
- type NginxAuthUpdate
- type NginxCommonReq
- type NginxConfigFileUpdate
- type NginxConfigUpdate
- type NginxProxyUpdate
- type NginxRedirectReq
- type NginxRedirectUpdate
- type NginxRewriteReq
- type NginxRewriteUpdate
- type NginxScopeReq
- type PortUpdate
- type ProcessReq
- type RuntimeConfig
- type RuntimeCreate
- type RuntimeDelete
- type RuntimeSearch
- type RuntimeUpdate
- type SearchUploadWithPage
- type SupervisorConfig
- type SupervisorProcessConfig
- type SupervisorProcessFileReq
- type WebsiteAcmeAccountCreate
- type WebsiteCreate
- type WebsiteDNSReq
- type WebsiteDefaultUpdate
- type WebsiteDelete
- type WebsiteDnsAccountCreate
- type WebsiteDnsAccountUpdate
- type WebsiteDomainCreate
- type WebsiteDomainDelete
- type WebsiteGroupCreate
- type WebsiteGroupUpdate
- type WebsiteHTTPSOp
- type WebsiteInstallCheckReq
- type WebsiteLogReq
- type WebsiteNginxUpdate
- type WebsiteOp
- type WebsitePHPConfigUpdate
- type WebsitePHPFileUpdate
- type WebsitePHPVersionReq
- type WebsiteProxyConfig
- type WebsiteProxyReq
- type WebsiteRecover
- type WebsiteRecoverByFile
- type WebsiteRedirectReq
- type WebsiteRedirectUpdate
- type WebsiteResourceReq
- type WebsiteSSLCreate
- type WebsiteSSLRenew
- type WebsiteSSLSearch
- type WebsiteSSLUpdate
- type WebsiteSearch
- type WebsiteUpdate
- type WebsiteUpdateDir
- type WebsiteUpdateDirPermission
- type WebsiteWafFileUpdate
- type WebsiteWafReq
- type WebsiteWafUpdate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppBackupDelete ¶
type AppBackupDelete struct {
Ids []uint `json:"ids"`
}
type AppBackupSearch ¶
type AppContainerConfig ¶ added in v1.3.0
type AppContainerConfig struct {
Advanced bool `json:"advanced"`
CpuQuota float64 `json:"cpuQuota"`
MemoryLimit float64 `json:"memoryLimit"`
MemoryUnit string `json:"memoryUnit"`
ContainerName string `json:"containerName"`
AllowPort bool `json:"allowPort"`
EditCompose bool `json:"editCompose"`
DockerCompose string `json:"dockerCompose"`
}
type AppInstallCreate ¶
type AppInstalledIgnoreUpgrade ¶ added in v1.4.0
type AppInstalledOperate ¶
type AppInstalledOperate struct {
InstallId uint `json:"installId" validate:"required"`
BackupId uint `json:"backupId"`
DetailId uint `json:"detailId"`
Operate constant.AppOperate `json:"operate" validate:"required"`
ForceDelete bool `json:"forceDelete"`
DeleteBackup bool `json:"deleteBackup"`
DeleteDB bool `json:"deleteDB"`
Backup bool `json:"backup"`
}
type AppInstalledSearch ¶
type AppInstalledUpdate ¶
type AppInstalledUpdate struct {
InstallId uint `json:"installId" validate:"required"`
Params map[string]interface{} `json:"params" validate:"required"`
AppContainerConfig
}
type DirSizeReq ¶
type DirSizeReq struct {
Path string `json:"path" validate:"required"`
}
type FileBatchDelete ¶
type FileChunkDownload ¶ added in v1.3.0
type FileCompress ¶
type FileCreate ¶
type FileDeCompress ¶
type FileDelete ¶
type FileDownload ¶
type FileOption ¶
type FileOption struct {
files.FileOption
}
type FilePathCheck ¶
type FilePathCheck struct {
Path string `json:"path" validate:"required"`
}
type FileProcessReq ¶
type FileProcessReq struct {
Key string `json:"key"`
}
type FileRename ¶
type FileRoleUpdate ¶ added in v1.2.0
type HostToolConfig ¶ added in v1.5.0
type HostToolCreate ¶ added in v1.5.0
type HostToolCreate struct {
Type string `json:"type" validate:"required"`
SupervisorConfig
}
type HostToolLogReq ¶ added in v1.5.0
type HostToolLogReq struct {
Type string `json:"type" validate:"required,oneof=supervisord"`
}
type HostToolReq ¶ added in v1.5.0
type NewAppInstall ¶
type NewAppInstall struct {
Name string `json:"name"`
AppDetailId uint `json:"appDetailID"`
Params map[string]interface{} `json:"params"`
AppContainerConfig
}
type NginxAntiLeechUpdate ¶ added in v1.3.0
type NginxAntiLeechUpdate struct {
WebsiteID uint `json:"websiteID" validate:"required"`
Extends string `json:"extends" validate:"required"`
Return string `json:"return" validate:"required"`
Enable bool `json:"enable" validate:"required"`
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 NginxAuthReq ¶ added in v1.2.0
type NginxAuthReq struct {
WebsiteID uint `json:"websiteID" validate:"required"`
}
type NginxAuthUpdate ¶ added in v1.2.0
type NginxCommonReq ¶ added in v1.3.0
type NginxCommonReq struct {
WebsiteID uint `json:"websiteID" validate:"required"`
}
type NginxConfigFileUpdate ¶
type NginxConfigUpdate ¶
type NginxProxyUpdate ¶ added in v1.2.0
type NginxRedirectReq ¶ added in v1.5.0
type NginxRedirectReq struct {
Name string `json:"name" validate:"required"`
WebsiteID uint `json:"websiteID" validate:"required"`
Domains []string `json:"domains"`
KeepPath bool `json:"keepPath" validate:"required"`
Enable bool `json:"enable" validate:"required"`
Type string `json:"type" validate:"required"`
Redirect string `json:"redirect" validate:"required"`
Path string `json:"path"`
Target string `json:"target" validate:"required"`
Operate string `json:"operate" validate:"required"`
RedirectRoot bool `json:"redirectRoot"`
}
type NginxRedirectUpdate ¶ added in v1.5.0
type NginxRewriteReq ¶ added in v1.1.1
type NginxRewriteUpdate ¶ added in v1.1.1
type NginxScopeReq ¶
type PortUpdate ¶
type ProcessReq ¶ added in v1.4.0
type ProcessReq struct {
PID int32 `json:"PID" validate:"required"`
}
type RuntimeConfig ¶ added in v1.1.0
type RuntimeCreate ¶ added in v1.1.0
type RuntimeDelete ¶ added in v1.1.0
type RuntimeDelete struct {
ID uint `json:"id"`
}
type RuntimeSearch ¶ added in v1.1.0
type RuntimeUpdate ¶ added in v1.1.0
type SearchUploadWithPage ¶
type SupervisorConfig ¶ added in v1.5.0
type SupervisorProcessConfig ¶ added in v1.5.0
type SupervisorProcessFileReq ¶ added in v1.5.0
type WebsiteAcmeAccountCreate ¶
type WebsiteAcmeAccountCreate struct {
Email string `json:"email" validate:"required"`
}
type WebsiteCreate ¶
type WebsiteCreate struct {
PrimaryDomain string `json:"primaryDomain" validate:"required"`
Type string `json:"type" validate:"required"`
Alias string `json:"alias" validate:"required"`
Remark string `json:"remark"`
OtherDomains string `json:"otherDomains"`
Proxy string `json:"proxy"`
WebsiteGroupID uint `json:"webSiteGroupID" validate:"required"`
IPV6 bool `json:"IPV6"`
AppType string `json:"appType" validate:"oneof=new installed"`
AppInstall NewAppInstall `json:"appInstall"`
AppID uint `json:"appID"`
AppInstallID uint `json:"appInstallID"`
RuntimeID uint `json:"runtimeID"`
RuntimeConfig
}
type WebsiteDNSReq ¶
type WebsiteDefaultUpdate ¶
type WebsiteDefaultUpdate struct {
ID uint `json:"id" validate:"required"`
}
type WebsiteDelete ¶
type WebsiteDnsAccountCreate ¶
type WebsiteDnsAccountUpdate ¶
type WebsiteDomainCreate ¶
type WebsiteDomainDelete ¶
type WebsiteDomainDelete struct {
ID uint `json:"id" validate:"required"`
}
type WebsiteGroupCreate ¶
type WebsiteGroupCreate struct {
Name string `json:"name" validate:"required"`
}
type WebsiteGroupUpdate ¶
type WebsiteHTTPSOp ¶
type WebsiteHTTPSOp struct {
WebsiteID uint `json:"websiteId" validate:"required"`
Enable bool `json:"enable" validate:"required"`
WebsiteSSLID uint `json:"websiteSSLId"`
Type string `json:"type" validate:"oneof=existed auto manual"`
PrivateKey string `json:"privateKey"`
Certificate string `json:"certificate"`
PrivateKeyPath string `json:"privateKeyPath"`
CertificatePath string `json:"certificatePath"`
ImportType string `json:"importType"`
HttpConfig string `json:"httpConfig" validate:"oneof=HTTPSOnly HTTPAlso HTTPToHTTPS"`
SSLProtocol []string `json:"SSLProtocol"`
Algorithm string `json:"algorithm"`
}
type WebsiteInstallCheckReq ¶
type WebsiteInstallCheckReq struct {
InstallIds []uint `json:"InstallIds" validate:"required"`
}
type WebsiteLogReq ¶
type WebsiteNginxUpdate ¶
type WebsitePHPConfigUpdate ¶ added in v1.1.0
type WebsitePHPFileUpdate ¶ added in v1.1.0
type WebsitePHPVersionReq ¶ added in v1.5.0
type WebsiteProxyConfig ¶ added in v1.2.0
type WebsiteProxyConfig struct {
ID uint `json:"id" validate:"required"`
Operate string `json:"operate" validate:"required"`
Enable bool `json:"enable" validate:"required"`
Cache bool `json:"cache" validate:"required"`
CacheTime int `json:"cacheTime" validate:"required"`
CacheUnit string `json:"cacheUnit" validate:"required"`
Name string `json:"name" validate:"required"`
Modifier string `json:"modifier" validate:"required"`
Match string `json:"match" validate:"required"`
ProxyPass string `json:"proxyPass" validate:"required"`
ProxyHost string `json:"proxyHost" validate:"required"`
Content string `json:"content"`
FilePath string `json:"filePath"`
Replaces map[string]string `json:"replaces"`
}
type WebsiteProxyReq ¶ added in v1.2.0
type WebsiteProxyReq struct {
ID uint `json:"id" validate:"required"`
}
type WebsiteRecover ¶
type WebsiteRecoverByFile ¶
type WebsiteRedirectReq ¶ added in v1.5.0
type WebsiteRedirectReq struct {
WebsiteID uint `json:"websiteId" validate:"required"`
}
type WebsiteRedirectUpdate ¶ added in v1.5.0
type WebsiteResourceReq ¶
type WebsiteResourceReq struct {
ID uint `json:"id" validate:"required"`
}
type WebsiteSSLCreate ¶
type WebsiteSSLCreate struct {
PrimaryDomain string `json:"primaryDomain" validate:"required"`
OtherDomains string `json:"otherDomains"`
Provider string `json:"provider" validate:"required"`
AcmeAccountID uint `json:"acmeAccountId" validate:"required"`
DnsAccountID uint `json:"dnsAccountId"`
AutoRenew bool `json:"autoRenew" validate:"required"`
}
type WebsiteSSLRenew ¶
type WebsiteSSLRenew struct {
SSLID uint `json:"SSLId" validate:"required"`
}
type WebsiteSSLSearch ¶
type WebsiteSSLUpdate ¶ added in v1.0.3
type WebsiteSearch ¶
type WebsiteUpdate ¶
type WebsiteUpdateDir ¶ added in v1.1.1
type WebsiteUpdateDirPermission ¶ added in v1.1.1
type WebsiteWafFileUpdate ¶ added in v1.5.0
type WebsiteWafReq ¶
type WebsiteWafUpdate ¶
Click to show internal directories.
Click to hide internal directories.