types

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Acme

type Acme struct {
	ID       uint   `json:"id"`
	Email    string `json:"email"`
	Provider string `json:"provider"`
}

type AcmeDTO

type AcmeDTO struct {
	PageResult
	Items []Acme `json:"items"`
}

type App

type App struct {
	ID       uint     `json:"id"`
	Versions []string `json:"versions"`
}

type AppDetail

type AppDetail struct {
	ID uint `json:"id"`
}

type AppDetailRes

type AppDetailRes struct {
	Response
	Data AppDetail `json:"data"`
}

type AppInstall

type AppInstall struct {
	ID      uint   `json:"id"`
	Name    string `json:"name"`
	Version string `json:"version"`
	Status  string `json:"status"`
	AppName string `json:"appName"`
}

type AppInstallCreate

type AppInstallCreate struct {
	AppDetailID uint                   `json:"appDetailId"`
	Params      map[string]interface{} `json:"params"`
	Name        string                 `json:"name"`
}

type AppInstalledListResponse

type AppInstalledListResponse struct {
	Response
	Data struct {
		PageResult
		Items []AppInstall `json:"items"`
	} `json:"data"`
}

type AppRes

type AppRes struct {
	Response
	Data App `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 CreateSSLRequest struct {
	PrimaryDomain string `json:"primaryDomain"`
	Domains       string `json:"domains"`
	Provider      string `json:"provider"`
	AcmeAccountID uint   `json:"acmeAccountId"`
	DnsAccountID  uint   `json:"dnsAccountId"`
	KeyType       string `json:"keyType"`
}

type CreateWebsiteRequest

type CreateWebsiteRequest struct {
	PrimaryDomain  string `json:"primaryDomain"`
	Alias          string `json:"alias"`
	Type           string `json:"type"`
	WebsiteGroupID uint   `json:"websiteGroupId"`
	Proxy          string `json:"proxy"`
	AppType        string `json:"appType"`
}

type DNSAccount

type DNSAccount struct {
	ID   uint   `json:"id"`
	Name string `json:"name"`
	Type string `json:"type"`
}

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 Database

type Database struct {
	ID       uint   `json:"id"`
	Name     string `json:"name"`
	Username string `json:"username"`
}

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 Group

type Group struct {
	ID        uint `json:"id"`
	IsDefault bool `json:"isDefault"`
}

type GroupRequest

type GroupRequest struct {
	Type string `json:"type"`
}

type GroupRes

type GroupRes struct {
	Response
	Data []Group `json:"data"`
}

type ListAcmeRes

type ListAcmeRes struct {
	Response
	Data AcmeDTO `json:"data"`
}

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 OsInfo

type OsInfo struct {
	OS             string `json:"os"`
	Platform       string `json:"platform"`
	PlatformFamily string `json:"platformFamily"`
	KernelArch     string `json:"kernelArch"`
	KernelVersion  string `json:"kernelVersion"`

	DiskSize int64 `json:"diskSize"`
}

type OsInfoRes

type OsInfoRes struct {
	Response
	Data OsInfo `json:"data"`
}

type PageRequest

type PageRequest struct {
	Page     int    `json:"page"`
	PageSize int    `json:"pageSize"`
	Name     string `json:"name"`
}

type PageResult

type PageResult struct {
	Total int64 `json:"total"`
}

type Response

type Response struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

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"`
}

type XPUInfo

type XPUInfo struct {
	DeviceID    int    `json:"deviceID"`
	DeviceName  string `json:"deviceName"`
	Memory      string `json:"memory"`
	Temperature string `json:"temperature"`
	MemoryUsed  string `json:"memoryUsed"`
	Power       string `json:"power"`
	MemoryUtil  string `json:"memoryUtil"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL