request

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: GPL-3.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 AppBackupSearch struct {
	dto.PageInfo
	AppInstallID uint `json:"appInstallID"`
}

type AppContainerConfig

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

type AppInstallCreate

type AppInstallCreate struct {
	AppDetailId uint                   `json:"appDetailId" validate:"required"`
	Params      map[string]interface{} `json:"params"`
	Name        string                 `json:"name" validate:"required"`
	Services    map[string]string      `json:"services"`
	AppContainerConfig
}

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

type AppInstalledSearch

type AppInstalledSearch struct {
	dto.PageInfo
	Type   string   `json:"type"`
	Name   string   `json:"name"`
	Tags   []string `json:"tags"`
	Update bool     `json:"update"`
	Unused bool     `json:"unused"`
}

type AppInstalledUpdate

type AppInstalledUpdate struct {
	InstallId uint                   `json:"installId" validate:"required"`
	Params    map[string]interface{} `json:"params" validate:"required"`
	AppContainerConfig
}

type AppSearch

type AppSearch struct {
	dto.PageInfo
	Name      string   `json:"name"`
	Tags      []string `json:"tags"`
	Type      string   `json:"type"`
	Recommend bool     `json:"recommend"`
}

type DirSizeReq

type DirSizeReq struct {
	Path string `json:"path" validate:"required"`
}

type FileBatchDelete

type FileBatchDelete struct {
	Paths []string `json:"paths" validate:"required"`
	IsDir bool     `json:"isDir"`
}

type FileCompress

type FileCompress struct {
	Files   []string `json:"files" validate:"required"`
	Dst     string   `json:"dst" validate:"required"`
	Type    string   `json:"type" validate:"required"`
	Name    string   `json:"name" validate:"required"`
	Replace bool     `json:"replace"`
}

type FileCreate

type FileCreate struct {
	Path      string `json:"path" validate:"required"`
	Content   string `json:"content"`
	IsDir     bool   `json:"isDir"`
	Mode      int64  `json:"mode" validate:"required"`
	IsLink    bool   `json:"isLink"`
	IsSymlink bool   `json:"isSymlink"`
	LinkPath  string `json:"linkPath"`
	Sub       bool   `json:"sub"`
}

type FileDeCompress

type FileDeCompress struct {
	Dst  string `json:"dst"  validate:"required"`
	Type string `json:"type"  validate:"required"`
	Path string `json:"path" validate:"required"`
}

type FileDelete

type FileDelete struct {
	Path  string `json:"path" validate:"required"`
	IsDir bool   `json:"isDir"`
}

type FileDownload

type FileDownload struct {
	Paths    []string `json:"paths" validate:"required"`
	Type     string   `json:"type" validate:"required"`
	Name     string   `json:"name" validate:"required"`
	Compress bool     `json:"compress" validate:"required"`
}

type FileEdit

type FileEdit struct {
	Path    string `json:"path"  validate:"required"`
	Content string `json:"content"  validate:"required"`
}

type FileMove

type FileMove struct {
	Type     string   `json:"type" validate:"required"`
	OldPaths []string `json:"oldPaths" validate:"required"`
	NewPath  string   `json:"newPath" validate:"required"`
}

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 FileRename

type FileRename struct {
	OldName string `json:"oldName" validate:"required"`
	NewName string `json:"newName" validate:"required"`
}

type FileRoleUpdate

type FileRoleUpdate struct {
	Path  string `json:"path" validate:"required"`
	User  string `json:"user" validate:"required"`
	Group string `json:"group" validate:"required"`
	Sub   bool   `json:"sub" validate:"required"`
}

type FileWget

type FileWget struct {
	Url  string `json:"url" validate:"required"`
	Path string `json:"path" validate:"required"`
	Name string `json:"name" validate:"required"`
}

type NewAppInstall

type NewAppInstall struct {
	Name        string                 `json:"name"`
	AppDetailId uint                   `json:"appDetailID"`
	Params      map[string]interface{} `json:"params"`

	AppContainerConfig
}

type NginxAuthReq

type NginxAuthReq struct {
	WebsiteID uint `json:"websiteID" validate:"required"`
}

type NginxAuthUpdate

type NginxAuthUpdate struct {
	WebsiteID uint   `json:"websiteID" validate:"required"`
	Operate   string `json:"operate" validate:"required"`
	Username  string `json:"username"  validate:"required"`
	Password  string `json:"password" validate:"required"`
	Remark    string `json:"remark"`
}

type NginxConfigFileUpdate

type NginxConfigFileUpdate struct {
	Content  string `json:"content" validate:"required"`
	FilePath string `json:"filePath" validate:"required"`
	Backup   bool   `json:"backup" validate:"required"`
}

type NginxConfigUpdate

type NginxConfigUpdate struct {
	Scope     dto.NginxKey `json:"scope"`
	Operate   string       `json:"operate" validate:"required;oneof=add update delete"`
	WebsiteID uint         `json:"websiteId" validate:"required"`
	Params    interface{}  `json:"params"`
}

type NginxProxyUpdate

type NginxProxyUpdate struct {
	WebsiteID uint   `json:"websiteID" validate:"required"`
	Content   string `json:"content" validate:"required"`
	Name      string `json:"name" validate:"required"`
}

type NginxRewriteReq

type NginxRewriteReq struct {
	WebsiteID uint   `json:"websiteId" validate:"required"`
	Name      string `json:"name" validate:"required"`
}

type NginxRewriteUpdate

type NginxRewriteUpdate struct {
	WebsiteID uint   `json:"websiteId" validate:"required"`
	Name      string `json:"name" validate:"required"`
	Content   string `json:"content" validate:"required"`
}

type NginxScopeReq

type NginxScopeReq struct {
	Scope     dto.NginxKey `json:"scope" validate:"required"`
	WebsiteID uint         `json:"websiteId"`
}

type PortUpdate

type PortUpdate struct {
	Key  string `json:"key"`
	Name string `json:"name"`
	Port int64  `json:"port"`
}

type RuntimeConfig

type RuntimeConfig struct {
	ProxyType string `json:"proxyType"`
	Port      int    `json:"port"`
}

type RuntimeCreate

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

type RuntimeDelete

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

type RuntimeSearch

type RuntimeSearch struct {
	dto.PageInfo
	Type   string `json:"type"`
	Name   string `json:"name"`
	Status string `json:"status"`
}

type RuntimeUpdate

type RuntimeUpdate struct {
	Name    string                 `json:"name"`
	ID      uint                   `json:"id"`
	Params  map[string]interface{} `json:"params"`
	Image   string                 `json:"image"`
	Version string                 `json:"version"`
}

type SearchUploadWithPage

type SearchUploadWithPage struct {
	dto.PageInfo
	Path string `json:"path" validate:"required"`
}

type WebsiteAcmeAccountCreate

type WebsiteAcmeAccountCreate struct {
	Email string `json:"email" 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"`

	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 WebsiteDNSReq struct {
	Domains       []string `json:"domains" validate:"required"`
	AcmeAccountID uint     `json:"acmeAccountId"  validate:"required"`
}

type WebsiteDefaultUpdate

type WebsiteDefaultUpdate struct {
	ID uint `json:"id" validate:"required"`
}

type WebsiteDelete

type WebsiteDelete struct {
	ID           uint `json:"id" validate:"required"`
	DeleteApp    bool `json:"deleteApp"`
	DeleteBackup bool `json:"deleteBackup"`
	ForceDelete  bool `json:"forceDelete"`
}

type WebsiteDnsAccountCreate

type WebsiteDnsAccountCreate struct {
	Name          string            `json:"name" validate:"required"`
	Type          string            `json:"type" validate:"required"`
	Authorization map[string]string `json:"authorization" validate:"required"`
}

type WebsiteDnsAccountUpdate

type WebsiteDnsAccountUpdate struct {
	ID            uint              `json:"id" validate:"required"`
	Name          string            `json:"name" validate:"required"`
	Type          string            `json:"type" validate:"required"`
	Authorization map[string]string `json:"authorization" validate:"required"`
}

type WebsiteDomainCreate

type WebsiteDomainCreate struct {
	WebsiteID uint   `json:"websiteId" validate:"required"`
	Port      int    `json:"port" validate:"required"`
	Domain    string `json:"domain" validate:"required"`
}

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 WebsiteGroupUpdate struct {
	ID      uint   `json:"id" validate:"required"`
	Name    string `json:"name"`
	Default bool   `json:"default"`
}

type WebsiteHTTPSOp

type WebsiteHTTPSOp struct {
	WebsiteID    uint     `json:"websiteId" validate:"required"`
	Enable       bool     `json:"enable" validate:"required"`
	WebsiteSSLID uint     `json:"websiteSSLId"`
	Type         string   `json:"type"  validate:"oneof=existed auto manual"`
	PrivateKey   string   `json:"privateKey"`
	Certificate  string   `json:"certificate"`
	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" validate:"required"`
}

type WebsiteLogReq

type WebsiteLogReq struct {
	ID      uint   `json:"id" validate:"required"`
	Operate string `json:"operate" validate:"required"`
	LogType string `json:"logType" validate:"required"`
}

type WebsiteNginxUpdate

type WebsiteNginxUpdate struct {
	ID      uint   `json:"id" validate:"required"`
	Content string `json:"content" validate:"required"`
}

type WebsiteOp

type WebsiteOp struct {
	ID      uint   `json:"id" validate:"required"`
	Operate string `json:"operate"`
}

type WebsitePHPConfigUpdate

type WebsitePHPConfigUpdate struct {
	ID     uint              `json:"id" validate:"required"`
	Params map[string]string `json:"params" validate:"required"`
}

type WebsitePHPFileUpdate

type WebsitePHPFileUpdate struct {
	ID      uint   `json:"id" validate:"required"`
	Type    string `json:"type" validate:"required"`
	Content string `json:"content" validate:"required"`
}

type WebsiteProxyConfig

type WebsiteProxyConfig struct {
	ID        uint              `json:"id" validate:"required"`
	Operate   string            `json:"operate" validate:"required"`
	Enable    bool              `json:"enable"  validate:"required"`
	Cache     bool              `json:"cache"  validate:"required"`
	CacheTime int               `json:"cacheTime"  validate:"required"`
	CacheUnit string            `json:"cacheUnit" validate:"required"`
	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

type WebsiteProxyReq struct {
	ID uint `json:"id" validate:"required"`
}

type WebsiteRecover

type WebsiteRecover struct {
	WebsiteName string `json:"websiteName" validate:"required"`
	Type        string `json:"type" validate:"required"`
	BackupName  string `json:"backupName" validate:"required"`
}

type WebsiteRecoverByFile

type WebsiteRecoverByFile struct {
	WebsiteName string `json:"websiteName" validate:"required"`
	Type        string `json:"type" validate:"required"`
	FileDir     string `json:"fileDir" validate:"required"`
	FileName    string `json:"fileName" validate:"required"`
}

type WebsiteResourceReq

type WebsiteResourceReq 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" validate:"required"`
}

type WebsiteSSLRenew

type WebsiteSSLRenew struct {
	SSLID uint `json:"SSLId" validate:"required"`
}

type WebsiteSSLSearch

type WebsiteSSLSearch struct {
	dto.PageInfo
}

type WebsiteSSLUpdate

type WebsiteSSLUpdate struct {
	ID        uint `json:"id" validate:"required"`
	AutoRenew bool `json:"autoRenew" validate:"required"`
}

type WebsiteSearch

type WebsiteSearch struct {
	dto.PageInfo
	Name           string `json:"name"`
	WebsiteGroupID uint   `json:"websiteGroupId"`
}

type WebsiteUpdate

type WebsiteUpdate struct {
	ID             uint   `json:"id" validate:"required"`
	PrimaryDomain  string `json:"primaryDomain" validate:"required"`
	Remark         string `json:"remark"`
	WebsiteGroupID uint   `json:"webSiteGroupID" validate:"required"`
	ExpireDate     string `json:"expireDate"`
}

type WebsiteUpdateDir

type WebsiteUpdateDir struct {
	ID      uint   `json:"id" validate:"required"`
	SiteDir string `json:"siteDir" validate:"required"`
}

type WebsiteUpdateDirPermission

type WebsiteUpdateDirPermission struct {
	ID    uint   `json:"id" validate:"required"`
	User  string `json:"user" validate:"required"`
	Group string `json:"group" validate:"required"`
}

type WebsiteWafReq

type WebsiteWafReq struct {
	WebsiteID uint   `json:"websiteId" validate:"required"`
	Key       string `json:"key" validate:"required"`
	Rule      string `json:"rule" validate:"required"`
}

type WebsiteWafUpdate

type WebsiteWafUpdate struct {
	WebsiteID uint   `json:"websiteId" validate:"required"`
	Key       string `json:"key" validate:"required"`
	Enable    bool   `json:"enable" validate:"required"`
}

Jump to

Keyboard shortcuts

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