Documentation ¶
Index ¶
- type AppBackupDelete
- type AppBackupSearch
- type AppContainerConfig
- type AppInstallCreate
- type AppInstalledIgnoreUpgrade
- type AppInstalledInfo
- type AppInstalledOperate
- type AppInstalledSearch
- type AppInstalledUpdate
- type AppSearch
- type DirSizeReq
- type ExposedPort
- type FavoriteCreate
- type FavoriteDelete
- type FileBatchDelete
- type FileChunkDownload
- type FileCompress
- type FileContentReq
- type FileCreate
- type FileDeCompress
- type FileDelete
- type FileDownload
- type FileEdit
- type FileExistReq
- type FileMove
- type FileOption
- type FilePathCheck
- type FileProcessReq
- type FileReadByLineReq
- type FileRename
- type FileRoleReq
- 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 NodeConfig
- type NodeModuleOperateReq
- type NodeModuleReq
- type NodePackageReq
- type PortUpdate
- type ProcessReq
- type RecycleBinCreate
- type RecycleBinReduce
- type RuntimeConfig
- type RuntimeCreate
- type RuntimeDelete
- type RuntimeOperate
- type RuntimeSearch
- type RuntimeUpdate
- type SearchUploadWithPage
- type SupervisorConfig
- type SupervisorProcessConfig
- type SupervisorProcessFileReq
- type WebsiteAcmeAccountCreate
- type WebsiteBatchDelReq
- type WebsiteCACreate
- type WebsiteCAObtain
- type WebsiteCARenew
- type WebsiteCASearch
- type WebsiteCommonReq
- 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 WebsiteSSLApply
- type WebsiteSSLCreate
- type WebsiteSSLRenew
- type WebsiteSSLSearch
- type WebsiteSSLUpdate
- type WebsiteSSLUpload
- 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"` HostMode bool `json:"hostMode"` }
type AppInstallCreate ¶
type AppInstalledIgnoreUpgrade ¶ added in v1.4.0
type AppInstalledInfo ¶ added in v1.6.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 ExposedPort ¶ added in v1.8.0
type FavoriteCreate ¶ added in v1.8.0
type FavoriteCreate struct {
Path string `json:"path" validate:"required"`
}
type FavoriteDelete ¶ added in v1.8.0
type FavoriteDelete struct {
ID uint `json:"id" validate:"required"`
}
type FileBatchDelete ¶
type FileChunkDownload ¶ added in v1.3.0
type FileCompress ¶
type FileContentReq ¶ added in v1.8.0
type FileContentReq struct {
Path string `json:"path" validate:"required"`
}
type FileCreate ¶
type FileDeCompress ¶
type FileDelete ¶
type FileDownload ¶
type FileExistReq ¶ added in v1.8.0
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 FileReadByLineReq ¶ added in v1.8.0
type FileRename ¶
type FileRoleReq ¶ added in v1.8.0
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" ` 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"` Enable bool `json:"enable"` 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 NodeConfig ¶ added in v1.7.0
type NodeConfig struct { Install bool `json:"install"` Clean bool `json:"clean"` Port int `json:"port"` ExposedPorts []ExposedPort `json:"exposedPorts"` }
type NodeModuleOperateReq ¶ added in v1.7.0
type NodeModuleReq ¶ added in v1.7.0
type NodeModuleReq struct {
ID uint `json:"ID" validate:"required"`
}
type NodePackageReq ¶ added in v1.7.0
type NodePackageReq struct {
CodeDir string `json:"codeDir"`
}
type PortUpdate ¶
type ProcessReq ¶ added in v1.4.0
type ProcessReq struct {
PID int32 `json:"PID" validate:"required"`
}
type RecycleBinCreate ¶ added in v1.8.0
type RecycleBinCreate struct {
SourcePath string `json:"sourcePath" validate:"required"`
}
type RecycleBinReduce ¶ added in v1.8.0
type RuntimeConfig ¶ added in v1.1.0
type RuntimeCreate ¶ added in v1.1.0
type RuntimeCreate struct { AppDetailID uint `json:"appDetailId"` Name string `json:"name"` Params map[string]interface{} `json:"params"` Resource string `json:"resource"` Image string `json:"image"` Type string `json:"type"` Version string `json:"version"` Source string `json:"source"` CodeDir string `json:"codeDir"` NodeConfig }
type RuntimeDelete ¶ added in v1.1.0
type RuntimeOperate ¶ added in v1.7.0
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 string `json:"type" validate:"required,oneof=letsencrypt zerossl buypass google"` KeyType string `json:"keyType" validate:"required,oneof=P256 P384 2048 3072 4096 8192"` EabKid string `json:"eabKid"` EabHmacKey string `json:"eabHmacKey"` }
type WebsiteBatchDelReq ¶ added in v1.9.0
type WebsiteBatchDelReq struct {
IDs []uint `json:"ids" validate:"required"`
}
type WebsiteCACreate ¶ added in v1.9.0
type WebsiteCACreate struct { CommonName string `json:"commonName" validate:"required"` Country string `json:"country" validate:"required"` Organization string `json:"organization" validate:"required"` OrganizationUint string `json:"organizationUint"` Name string `json:"name" validate:"required"` KeyType string `json:"keyType" validate:"required,oneof=P256 P384 2048 3072 4096 8192"` Province string `json:"province" ` City string `json:"city"` }
type WebsiteCAObtain ¶ added in v1.9.0
type WebsiteCAObtain struct { ID uint `json:"id" validate:"required"` Domains string `json:"domains" validate:"required"` KeyType string `json:"keyType" validate:"required,oneof=P256 P384 2048 3072 4096 8192"` Time int `json:"time" validate:"required"` Unit string `json:"unit" validate:"required"` PushDir bool `json:"pushDir"` Dir string `json:"dir"` AutoRenew bool `json:"autoRenew"` Renew bool `json:"renew"` SSLID uint `json:"sslID"` Description string `json:"description"` }
type WebsiteCARenew ¶ added in v1.9.0
type WebsiteCARenew struct {
SSLID uint `json:"SSLID" validate:"required"`
}
type WebsiteCASearch ¶ added in v1.9.0
type WebsiteCommonReq ¶ added in v1.6.0
type WebsiteCommonReq struct {
ID uint `json:"id" 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"`
}
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"` 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"`
}
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" ` Cache bool `json:"cache" ` CacheTime int `json:"cacheTime" ` CacheUnit string `json:"cacheUnit"` 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 WebsiteSSLApply ¶ added in v1.9.0
type WebsiteSSLApply 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"` KeyType string `json:"keyType"` Apply bool `json:"apply"` PushDir bool `json:"pushDir"` Dir string `json:"dir"` ID uint `json:"id"` Description string `json:"description"` }
type WebsiteSSLRenew ¶
type WebsiteSSLRenew struct {
SSLID uint `json:"SSLId" validate:"required"`
}
type WebsiteSSLSearch ¶
type WebsiteSSLUpdate ¶ added in v1.0.3
type WebsiteSSLUpload ¶ added in v1.8.0
type WebsiteSSLUpload struct { PrivateKey string `json:"privateKey"` Certificate string `json:"certificate"` PrivateKeyPath string `json:"privateKeyPath"` CertificatePath string `json:"certificatePath"` Type string `json:"type" validate:"required,oneof=paste local"` SSLID uint `json:"sslID"` Description string `json:"description"` }
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.