response

package
v0.0.0-...-c7f185a Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Params     []AppParam `json:"params"`
	RawCompose string     `json:"rawCompose"`
	request.AppContainerConfig
}

type AppDTO

type AppDTO struct {
	model.App
	Installed bool     `json:"installed"`
	Versions  []string `json:"versions"`
	Tags      []TagDTO `json:"tags"`
}

type AppDetail

type AppDetail struct {
	Website  string `json:"website"`
	Document string `json:"document"`
	Github   string `json:"github"`
}

type AppDetailDTO

type AppDetailDTO struct {
	model.AppDetail
	Enable         bool        `json:"enable"`
	Params         interface{} `json:"params"`
	Image          string      `json:"image"`
	HostMode       bool        `json:"hostMode"`
	Architectures  string      `json:"architectures"`
	MemoryRequired int         `json:"memoryRequired"`
	GpuSupport     bool        `json:"gpuSupport"`
}

type AppDetailSimpleDTO

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

type AppIgnoreUpgradeDTO

type AppIgnoreUpgradeDTO struct {
	ID          uint   `json:"ID"`
	AppID       uint   `json:"appID"`
	AppDetailID uint   `json:"appDetailID"`
	Scope       string `json:"scope"`
	Version     string `json:"version"`
	Name        string `json:"name"`
}

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"`
	WebUI         string    `json:"webUI"`
	CreatedAt     time.Time `json:"createdAt"`
	Favorite      bool      `json:"favorite"`
	App           AppDetail `json:"app"`
	Container     string    `json:"container"`
	IsEdit        bool      `json:"isEdit"`
	LinkDB        bool      `json:"linkDB"`
	ServiceName   string    `json:"serviceName"`
}

type AppInstallInfo

type AppInstallInfo struct {
	ID          uint   `json:"id"`
	Name        string `json:"name"`
	Version     string `json:"version"`
	Status      string `json:"status"`
	Message     string `json:"message"`
	HttpPort    int    `json:"HttpPort"`
	Container   string `json:"container"`
	ComposePath string `json:"composePath"`
	AppKey      string `json:"appKey"`
	AppPorts    []int  `json:"appPorts"`

	Env map[string]interface{} `json:"env"`
}

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"`
	WebsiteDir    string    `json:"websiteDir"`
}

type AppInstalledDTO

type AppInstalledDTO struct {
	model.AppInstall
	Total     int    `json:"total"`
	Ready     int    `json:"ready"`
	AppName   string `json:"appName"`
	Icon      string `json:"icon"`
	CanUpdate bool   `json:"canUpdate"`
	Path      string `json:"path"`
}

type AppItem

type AppItem struct {
	Name                string   `json:"name"`
	Key                 string   `json:"key"`
	ID                  uint     `json:"id"`
	Description         string   `json:"description"`
	Status              string   `json:"status"`
	Installed           bool     `json:"installed"`
	Limit               int      `json:"limit"`
	Tags                []string `json:"tags"`
	GpuSupport          bool     `json:"gpuSupport"`
	Recommend           int      `json:"recommend"`
	Type                string   `json:"type"`
	BatchInstallSupport bool     `json:"batchInstallSupport"`
}

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"`
	Label     dto.Locale  `json:"label"`
}

type AppRes

type AppRes struct {
	Items []*AppItem `json:"items"`
	Total int64      `json:"total"`
}

type AppService

type AppService struct {
	Label  string      `json:"label"`
	Value  string      `json:"value"`
	Config interface{} `json:"config"`
	From   string      `json:"from"`
	Status string      `json:"status"`
}

type AppUpdateRes

type AppUpdateRes struct {
	CanUpdate            bool         `json:"canUpdate"`
	IsSyncing            bool         `json:"isSyncing"`
	AppStoreLastModified int          `json:"appStoreLastModified"`
	AppList              *dto.AppList `json:"appList"`
}

type CompleteDiskInfo

type CompleteDiskInfo struct {
	Disks              []DiskInfo      `json:"disks"`
	UnpartitionedDisks []DiskBasicInfo `json:"unpartitionedDisks"`
	SystemDisks        []DiskInfo      `json:"systemDisks"`
	TotalDisks         int             `json:"totalDisks"`
	TotalCapacity      int64           `json:"totalCapacity"`
}

type ComponentInfo

type ComponentInfo struct {
	Exists  bool   `json:"exists"`
	Version string `json:"version"`
	Path    string `json:"path"`
	Error   string `json:"error"`
}

type Database

type Database struct {
	Name         string `json:"name"`
	DatabaseName string `json:"databaseName"`
	Type         string `json:"type"`
	From         string `json:"from"`
	ID           uint   `json:"id"`
}

type DatabaseConn

type DatabaseConn struct {
	Status        string `json:"status"`
	Username      string `json:"username"`
	Password      string `json:"password"`
	ContainerName string `json:"containerName"`
	ServiceName   string `json:"serviceName"`
	Port          int64  `json:"port"`
}

type DepthDirSizeRes

type DepthDirSizeRes struct {
	Path string `json:"path"`
	Size int64  `json:"size"`
}

type DirSizeRes

type DirSizeRes struct {
	Size int64 `json:"size" validate:"required"`
}

type DiskBasicInfo

type DiskBasicInfo struct {
	Device      string `json:"device"`
	Size        string `json:"size"`
	Model       string `json:"model"`
	DiskType    string `json:"diskType"`
	IsRemovable bool   `json:"isRemovable"`
	IsSystem    bool   `json:"isSystem"`
	Filesystem  string `json:"filesystem"`
	Used        string `json:"used"`
	Avail       string `json:"avail"`
	UsePercent  int    `json:"usePercent"`
	MountPoint  string `json:"mountPoint"`
	IsMounted   bool   `json:"isMounted"`
	Serial      string `json:"serial"`
}

type DiskInfo

type DiskInfo struct {
	DiskBasicInfo
	Partitions []DiskBasicInfo `json:"partitions"`
}

type ExistFileInfo

type ExistFileInfo struct {
	Name    string    `json:"name"`
	Path    string    `json:"path"`
	Size    int64     `json:"size"`
	ModTime time.Time `json:"modTime"`
	IsDir   bool      `json:"isDir"`
}

type FavoriteDTO

type FavoriteDTO struct {
	model.Favorite
}

type FileConvertLog

type FileConvertLog struct {
	Date    string `json:"date"`
	Type    string `json:"type"`
	Log     string `json:"log"`
	Status  string `json:"status"`
	Message string `json:"message"`
}

type FileExist

type FileExist struct {
	Exist bool `json:"exist"`
}

type FileInfo

type FileInfo struct {
	files.FileInfo
}

type FileLineContent

type FileLineContent struct {
	End        bool     `json:"end"`
	Path       string   `json:"path"`
	Total      int      `json:"total"`
	TaskStatus string   `json:"taskStatus"`
	Lines      []string `json:"lines"`
	Scope      string   `json:"scope"`
	TotalLines int      `json:"totalLines"`
}

type FileProcessKeys

type FileProcessKeys struct {
	Keys []string `json:"keys"`
}

type FileRemarksRes

type FileRemarksRes struct {
	Remarks map[string]string `json:"remarks"`
}

type FileTree

type FileTree struct {
	ID        string     `json:"id"`
	Name      string     `json:"name"`
	Path      string     `json:"path"`
	IsDir     bool       `json:"isDir"`
	Extension string     `json:"extension"`
	Children  []FileTree `json:"children"`
}

type FileWgetRes

type FileWgetRes struct {
	Key string `json:"key"`
}

type FpmStatusItem

type FpmStatusItem struct {
	Key   string      `json:"key"`
	Value interface{} `json:"value"`
}

type HostToolConfig

type HostToolConfig struct {
	Content string `json:"content"`
}

type HostToolRes

type HostToolRes struct {
	Type   string      `json:"type"`
	Config interface{} `json:"config"`
}

type IgnoredApp

type IgnoredApp struct {
	Icon     string `json:"icon"`
	Name     string `json:"name"`
	Version  string `json:"version"`
	DetailID uint   `json:"detailID"`
}

type McpBindDomainRes

type McpBindDomainRes struct {
	Domain        string   `json:"domain"`
	SSLID         uint     `json:"sslID"`
	AcmeAccountID uint     `json:"acmeAccountID"`
	AllowIPs      []string `json:"allowIPs"`
	WebsiteID     uint     `json:"websiteID"`
	ConnUrl       string   `json:"connUrl"`
}

type McpServerDTO

type McpServerDTO struct {
	model.McpServer
	Environments []request.Environment `json:"environments"`
	Volumes      []request.Volume      `json:"volumes"`
}

type McpServersRes

type McpServersRes struct {
	Items []McpServerDTO `json:"items"`
	Total int64          `json:"total"`
}

type MountInfo

type MountInfo struct {
	Device     string `json:"device"`
	MountPoint string `json:"mountPoint"`
	Filesystem string `json:"filesystem"`
	Options    string `json:"options"`
}

type NginxAntiLeechRes

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

type NginxAuthRes struct {
	Enable bool            `json:"enable"`
	Items  []dto.NginxAuth `json:"items"`
}

type NginxBuildConfig

type NginxBuildConfig struct {
	Mirror  string        `json:"mirror"`
	Modules []NginxModule `json:"modules"`
}

type NginxConfigRes

type NginxConfigRes struct {
	Https              bool `json:"https"`
	SSLRejectHandshake bool `json:"sslRejectHandshake"`
}

type NginxFile

type NginxFile struct {
	Content string `json:"content"`
}

type NginxModule

type NginxModule struct {
	Name     string `json:"name"`
	Script   string `json:"script"`
	Packages string `json:"packages"`
	Params   string `json:"params"`
	Enable   bool   `json:"enable"`
}

type NginxParam

type NginxParam struct {
	Name   string   `json:"name"`
	Params []string `json:"params"`
}

type NginxPathAuthRes

type NginxPathAuthRes struct {
	dto.NginxPathAuth
}

type NginxProxyCache

type NginxProxyCache struct {
	Open            bool    `json:"open"`
	CacheLimit      float64 `json:"cacheLimit"`
	CacheLimitUnit  string  `json:"cacheLimitUnit" `
	ShareCache      int     `json:"shareCache" `
	ShareCacheUnit  string  `json:"shareCacheUnit" `
	CacheExpire     int     `json:"cacheExpire" `
	CacheExpireUnit string  `json:"cacheExpireUnit" `
}

type NginxRedirectConfig

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

type NginxRewriteRes struct {
	Content string `json:"content"`
}

type NginxStatus

type NginxStatus struct {
	Active   int `json:"active"`
	Accepts  int `json:"accepts"`
	Handled  int `json:"handled"`
	Requests int `json:"requests"`
	Reading  int `json:"reading"`
	Writing  int `json:"writing"`
	Waiting  int `json:"waiting"`
}

type NodeModule

type NodeModule struct {
	Name        string `json:"name"`
	Version     string `json:"version"`
	License     string `json:"license"`
	Description string `json:"description"`
}

type PHPConfig

type PHPConfig struct {
	Params           map[string]string `json:"params"`
	DisableFunctions []string          `json:"disableFunctions"`
	UploadMaxSize    string            `json:"uploadMaxSize"`
	MaxExecutionTime string            `json:"maxExecutionTime"`
}

type PHPExtensionRes

type PHPExtensionRes struct {
	Extensions        []string           `json:"extensions"`
	SupportExtensions []SupportExtension `json:"supportExtensions"`
}

type PHPExtensionsDTO

type PHPExtensionsDTO struct {
	model.PHPExtensions
}

type PackageScripts

type PackageScripts struct {
	Name   string `json:"name"`
	Script string `json:"script"`
}

type ProcessStatus

type ProcessStatus struct {
	Name   string `json:"name"`
	Status string `json:"status"`
	PID    string `json:"PID"`
	Uptime string `json:"uptime"`
	Msg    string `json:"msg"`
}

type RecycleBinDTO

type RecycleBinDTO struct {
	Name       string    `json:"name"`
	Size       int       `json:"size"`
	Type       string    `json:"type"`
	DeleteTime time.Time `json:"deleteTime"`
	RName      string    `json:"rName"`
	SourcePath string    `json:"sourcePath"`
	IsDir      bool      `json:"isDir"`
	From       string    `json:"from"`
}

type Resource

type Resource struct {
	Name       string      `json:"name"`
	Type       string      `json:"type"`
	ResourceID uint        `json:"resourceID"`
	Detail     interface{} `json:"detail"`
}

type RuntimeDTO

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            string                 `json:"port"`
	Path            string                 `json:"path"`
	ExposedPorts    []request.ExposedPort  `json:"exposedPorts"`
	Environments    []request.Environment  `json:"environments"`
	Volumes         []request.Volume       `json:"volumes"`
	ExtraHosts      []request.ExtraHost    `json:"extraHosts"`
	ContainerStatus string                 `json:"containerStatus"`
	Container       string                 `json:"container"`
	Remark          string                 `json:"remark"`
}

func NewRuntimeDTO

func NewRuntimeDTO(runtime model.Runtime) RuntimeDTO

type Supervisor

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

type SupervisorProcessConfig struct {
	Name        string          `json:"name"`
	Command     string          `json:"command"`
	User        string          `json:"user"`
	Dir         string          `json:"dir"`
	Numprocs    string          `json:"numprocs"`
	Msg         string          `json:"msg"`
	Status      []ProcessStatus `json:"status"`
	AutoRestart string          `json:"autoRestart"`
	AutoStart   string          `json:"autoStart"`
	Environment string          `json:"environment"`
}

type SupportExtension

type SupportExtension struct {
	Name        string   `json:"name"`
	Description string   `json:"description"`
	Installed   bool     `json:"installed"`
	Check       string   `json:"check"`
	Versions    []string `json:"versions"`
	File        string   `json:"file"`
}

type TagDTO

type TagDTO struct {
	ID   uint   `json:"id"`
	Key  string `json:"key"`
	Name string `json:"name"`
}

type TensorRTLLMDTO

type TensorRTLLMDTO struct {
	model.TensorRTLLM
	Version  string `json:"version"`
	Model    string `json:"model"`
	Dir      string `json:"dir"`
	ModelDir string `json:"modelDir"`
	Image    string `json:"image"`
	Command  string `json:"command"`

	ExposedPorts []request.ExposedPort `json:"exposedPorts"`
	Environments []request.Environment `json:"environments"`
	Volumes      []request.Volume      `json:"volumes"`
}

type TensorRTLLMsRes

type TensorRTLLMsRes struct {
	Items []TensorRTLLMDTO `json:"items"`
	Total int64            `json:"total"`
}

type UploadInfo

type UploadInfo struct {
	Name      string `json:"name"`
	Size      int    `json:"size"`
	CreatedAt string `json:"createdAt"`
}

type UserGroupResponse

type UserGroupResponse struct {
	Users  []UserInfo `json:"users"`
	Groups []string   `json:"groups"`
}

type UserInfo

type UserInfo struct {
	Username string `json:"username"`
	Group    string `json:"group"`
}

type WebsiteAcmeAccountDTO

type WebsiteAcmeAccountDTO struct {
	model.WebsiteAcmeAccount
}

type WebsiteCADTO

type WebsiteCADTO struct {
	model.WebsiteCA
	CommonName       string `json:"commonName" `
	Country          string `json:"country"`
	Organization     string `json:"organization"`
	OrganizationUint string `json:"organizationUint"`
	Province         string `json:"province" `
	City             string `json:"city"`
}

type WebsiteDNSRes

type WebsiteDNSRes struct {
	Key    string `json:"resolve"`
	Value  string `json:"value"`
	Domain string `json:"domain"`
	Err    string `json:"err"`
}

type WebsiteDTO

type WebsiteDTO struct {
	model.Website
	ErrorLogPath  string `json:"errorLogPath"`
	AccessLogPath string `json:"accessLogPath"`
	SitePath      string `json:"sitePath"`
	AppName       string `json:"appName"`
	RuntimeName   string `json:"runtimeName"`
	RuntimeType   string `json:"runtimeType"`
	SiteDir       string `json:"siteDir"`
	OpenBaseDir   bool   `json:"openBaseDir"`
	Algorithm     string `json:"algorithm"`
	UDP           bool   `json:"udp"`

	Servers []dto.NginxUpstreamServer `json:"servers"`
}

type WebsiteDirConfig

type WebsiteDirConfig struct {
	Dirs      []string `json:"dirs"`
	User      string   `json:"user"`
	UserGroup string   `json:"userGroup"`
	Msg       string   `json:"msg"`
}

type WebsiteDnsAccountDTO

type WebsiteDnsAccountDTO struct {
	model.WebsiteDnsAccount
	Authorization map[string]string `json:"authorization"`
}

type WebsiteHTTPS

type WebsiteHTTPS struct {
	Enable                bool             `json:"enable"`
	HttpConfig            string           `json:"httpConfig"`
	SSL                   model.WebsiteSSL `json:"SSL"`
	SSLProtocol           []string         `json:"SSLProtocol"`
	Algorithm             string           `json:"algorithm"`
	Hsts                  bool             `json:"hsts"`
	HstsIncludeSubDomains bool             `json:"hstsIncludeSubDomains"`
	HttpsPorts            []int            `json:"httpsPorts"`
	HttpsPort             string           `json:"httpsPort"`
	Http3                 bool             `json:"http3"`
}

type WebsiteHtmlRes

type WebsiteHtmlRes struct {
	Content string `json:"content"`
}

type WebsiteLog

type WebsiteLog struct {
	Enable  bool   `json:"enable"`
	Content string `json:"content"`
	End     bool   `json:"end"`
	Path    string `json:"path"`
}

type WebsiteNginxConfig

type WebsiteNginxConfig struct {
	Enable bool         `json:"enable"`
	Params []NginxParam `json:"params"`
}

type WebsiteOption

type WebsiteOption struct {
	ID            uint   `json:"id"`
	PrimaryDomain string `json:"primaryDomain"`
	Alias         string `json:"alias"`
}

type WebsitePreInstallCheck

type WebsitePreInstallCheck struct {
	Name    string `json:"name"`
	Status  string `json:"status"`
	Version string `json:"version"`
	AppName string `json:"appName"`
}

type WebsiteRealIP

type WebsiteRealIP struct {
	WebsiteID uint   `json:"websiteID" validate:"required"`
	Open      bool   `json:"open"`
	IPFrom    string `json:"ipFrom"`
	IPHeader  string `json:"ipHeader"`
	IPOther   string `json:"ipOther"`
}

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"`
	AppInstallID  uint      `json:"appInstallId"`
	ChildSites    []string  `json:"childSites"`
	ParentSite    string    `json:"parentSite"`
	RuntimeType   string    `json:"runtimeType"`
	Favorite      bool      `json:"favorite"`
	IPV6          bool      `json:"IPV6"`
}

type WebsiteSSLDTO

type WebsiteSSLDTO struct {
	model.WebsiteSSL
	LogPath string `json:"logPath"`
}

Jump to

Keyboard shortcuts

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