Documentation
¶
Index ¶
- type Acme
- type AcmeDTO
- type App
- type AppDetail
- type AppDetailRes
- type AppInstall
- type AppInstallCreate
- type AppInstalledListResponse
- type AppRes
- type CreateDatabaseRequest
- type CreateSSLRequest
- type CreateWebsiteRequest
- type DNSAccount
- type DashboardBase
- type DashboardCurrent
- type DashboardRes
- type Database
- type DatabaseListResponse
- type DiskInfo
- type GPUInfo
- type Group
- type GroupRequest
- type GroupRes
- type ListAcmeRes
- type ListDNSAccountRes
- type ListDatabaseRequest
- type ListWebsiteRequest
- type ListWebsiteRes
- type ListWebsiteSSLRes
- type OsInfo
- type OsInfoRes
- type PageRequest
- type PageResult
- type Response
- type WebsiteDomain
- type WebsiteRes
- type WebsiteSSL
- type XPUInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcmeDTO ¶
type AcmeDTO struct {
PageResult
Items []Acme `json:"items"`
}
type AppDetailRes ¶
type AppInstall ¶
type AppInstallCreate ¶
type AppInstalledListResponse ¶
type AppInstalledListResponse struct {
Response
Data struct {
PageResult
Items []AppInstall `json:"items"`
} `json:"data"`
}
type CreateDatabaseRequest ¶
type CreateDatabaseRequest struct {
Database string `json:"database"`
Password string `json:"password"`
Type string `json:"type"`
Format string `json:"format"`
From string `json:"from"`
Permission string `json:"permission"`
Name string `json:"name"`
Username string `json:"username"`
Superuser bool `json:"superuser"`
}
type CreateSSLRequest ¶
type CreateWebsiteRequest ¶
type DNSAccount ¶
type DashboardBase ¶
type DashboardBase struct {
WebsiteNumber int `json:"websiteNumber"`
DatabaseNumber int `json:"databaseNumber"`
CronjobNumber int `json:"cronjobNumber"`
AppInstalledNumber int `json:"appInstalledNumber"`
Hostname string `json:"hostname"`
OS string `json:"os"`
Platform string `json:"platform"`
PlatformFamily string `json:"platformFamily"`
PlatformVersion string `json:"platformVersion"`
KernelArch string `json:"kernelArch"`
KernelVersion string `json:"kernelVersion"`
VirtualizationSystem string `json:"virtualizationSystem"`
IpV4Addr string `json:"ipV4Addr"`
SystemProxy string `json:"systemProxy"`
CPUCores int `json:"cpuCores"`
CPULogicalCores int `json:"cpuLogicalCores"`
CPUModelName string `json:"cpuModelName"`
CurrentInfo DashboardCurrent `json:"currentInfo"`
}
type DashboardCurrent ¶
type DashboardCurrent struct {
Uptime uint64 `json:"uptime"`
TimeSinceUptime string `json:"timeSinceUptime"`
Procs uint64 `json:"procs"`
Load1 float64 `json:"load1"`
Load5 float64 `json:"load5"`
Load15 float64 `json:"load15"`
LoadUsagePercent float64 `json:"loadUsagePercent"`
CPUPercent []float64 `json:"cpuPercent"`
CPUUsedPercent float64 `json:"cpuUsedPercent"`
CPUUsed float64 `json:"cpuUsed"`
CPUTotal int `json:"cpuTotal"`
MemoryTotal uint64 `json:"memoryTotal"`
MemoryAvailable uint64 `json:"memoryAvailable"`
MemoryUsed uint64 `json:"memoryUsed"`
MemoryUsedPercent float64 `json:"memoryUsedPercent"`
SwapMemoryTotal uint64 `json:"swapMemoryTotal"`
SwapMemoryAvailable uint64 `json:"swapMemoryAvailable"`
SwapMemoryUsed uint64 `json:"swapMemoryUsed"`
SwapMemoryUsedPercent float64 `json:"swapMemoryUsedPercent"`
IOReadBytes uint64 `json:"ioReadBytes"`
IOWriteBytes uint64 `json:"ioWriteBytes"`
IOCount uint64 `json:"ioCount"`
IOReadTime uint64 `json:"ioReadTime"`
IOWriteTime uint64 `json:"ioWriteTime"`
DiskData []DiskInfo `json:"diskData"`
NetBytesSent uint64 `json:"netBytesSent"`
NetBytesRecv uint64 `json:"netBytesRecv"`
GPUData []GPUInfo `json:"gpuData"`
XPUData []XPUInfo `json:"xpuData"`
ShotTime time.Time `json:"shotTime"`
}
type DashboardRes ¶
type DashboardRes struct {
Response
Data DashboardBase `json:"data"`
}
type DatabaseListResponse ¶
type DatabaseListResponse struct {
Response
Data struct {
PageResult
Items []Database `json:"items"`
} `json:"data"`
}
type DiskInfo ¶
type DiskInfo struct {
Path string `json:"path"`
Type string `json:"type"`
Device string `json:"device"`
Total uint64 `json:"total"`
Free uint64 `json:"free"`
Used uint64 `json:"used"`
UsedPercent float64 `json:"usedPercent"`
InodesTotal uint64 `json:"inodesTotal"`
InodesUsed uint64 `json:"inodesUsed"`
InodesFree uint64 `json:"inodesFree"`
InodesUsedPercent float64 `json:"inodesUsedPercent"`
}
type GPUInfo ¶
type GPUInfo struct {
Index uint `json:"index"`
ProductName string `json:"productName"`
GPUUtil string `json:"gpuUtil"`
Temperature string `json:"temperature"`
PerformanceState string `json:"performanceState"`
PowerUsage string `json:"powerUsage"`
PowerDraw string `json:"powerDraw"`
MaxPowerLimit string `json:"maxPowerLimit"`
MemoryUsage string `json:"memoryUsage"`
MemUsed string `json:"memUsed"`
MemTotal string `json:"memTotal"`
FanSpeed string `json:"fanSpeed"`
}
type GroupRequest ¶
type GroupRequest struct {
Type string `json:"type"`
}
type ListAcmeRes ¶
type ListDNSAccountRes ¶
type ListDNSAccountRes struct {
Response
Data struct {
PageResult
Items []DNSAccount `json:"items"`
} `json:"data"`
}
type ListDatabaseRequest ¶
type ListDatabaseRequest struct {
PageRequest
Order string `json:"order"`
OrderBy string `json:"orderBy"`
Database string `json:"database"`
}
type ListWebsiteRequest ¶
type ListWebsiteRequest struct {
PageRequest
Order string `json:"order"`
OrderBy string `json:"orderBy"`
}
type ListWebsiteRes ¶
type ListWebsiteRes struct {
Response
Data struct {
PageResult
Items []WebsiteRes `json:"items"`
} `json:"data"`
}
type ListWebsiteSSLRes ¶
type ListWebsiteSSLRes struct {
Response
Data struct {
PageResult
Items []WebsiteSSL `json:"items"`
} `json:"data"`
}
type PageRequest ¶
type PageResult ¶
type PageResult struct {
Total int64 `json:"total"`
}
type WebsiteDomain ¶ added in v0.2.0
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"`
AppName string `json:"appName"`
RuntimeName string `json:"runtimeName"`
SSLExpireDate time.Time `json:"sslExpireDate"`
}
type WebsiteSSL ¶
type WebsiteSSL struct {
ID uint `json:"id"`
PrimaryDomain string `json:"primaryDomain"`
Domains string `json:"domains"`
Provider string `json:"provider"`
Organization string `json:"organization"`
AutoRenew bool `json:"autoRenew"`
ExpireDate time.Time `json:"expireDate"`
StartDate time.Time `json:"startDate"`
Status string `json:"status"`
}
Click to show internal directories.
Click to hide internal directories.