response

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 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 added in v1.3.0

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

type AppDTO

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

type AppDetailDTO

type AppDetailDTO struct {
	model.AppDetail
	Enable   bool        `json:"enable"`
	Params   interface{} `json:"params"`
	Image    string      `json:"image"`
	HostMode bool        `json:"hostMode"`
}

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

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

type AppRes

type AppRes struct {
	Items []*AppDTO `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"`
}

type AppUpdateRes

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

type DatabaseConn added in v1.1.0

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

type DirSizeRes

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

type FavoriteDTO added in v1.8.0

type FavoriteDTO struct {
	model.Favorite
}

type FileExist added in v1.8.0

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

type FileInfo

type FileInfo struct {
	files.FileInfo
}

type FileLineContent added in v1.8.0

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

type FileProcessKeys

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

type FileTree

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

type FileWgetRes

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

type HostToolConfig added in v1.5.0

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

type HostToolRes added in v1.5.0

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

type IgnoredApp added in v1.4.0

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

type NginxAntiLeechRes added in v1.3.0

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 added in v1.2.0

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

type NginxFile added in v1.5.0

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

type NginxParam

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

type NginxRedirectConfig added in v1.5.0

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 added in v1.1.1

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

type NginxStatus

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

type NodeModule added in v1.7.0

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

type PHPConfig added in v1.1.0

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

type PHPExtensionsDTO added in v1.9.3

type PHPExtensionsDTO struct {
	model.PHPExtensions
}

type PackageScripts added in v1.7.0

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

type ProcessStatus added in v1.5.0

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 added in v1.8.0

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 RuntimeDTO added in v1.7.0

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         int                    `json:"port"`
	Path         string                 `json:"path"`
	ExposedPorts []request.ExposedPort  `json:"exposedPorts"`
}

func NewRuntimeDTO added in v1.7.0

func NewRuntimeDTO(runtime model.Runtime) RuntimeDTO

type Supervisor added in v1.5.0

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 added in v1.5.0

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

type TagDTO

type TagDTO struct {
	model.Tag
}

type UploadInfo

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

type WebsiteAcmeAccountDTO

type WebsiteAcmeAccountDTO struct {
	model.WebsiteAcmeAccount
}

type WebsiteCADTO added in v1.9.0

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

type WebsiteDirConfig added in v1.6.0

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

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 added in v1.9.3

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 WebsiteSSLDTO

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

type WebsiteWafConfig

type WebsiteWafConfig struct {
	Enable  bool   `json:"enable"`
	Content string `json:"content"`
}

Jump to

Keyboard shortcuts

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