Documentation ¶
Index ¶
- Constants
- Variables
- type AddrRuleOperate
- type AddrRuleUpdate
- type AnalysisRes
- type BackupInfo
- type BackupOperate
- type BackupRecords
- type BackupSearchFile
- type BatchDelete
- type BatchDeleteReq
- type BatchRuleOperate
- type ChangeDBInfo
- type ChangeHostGroup
- type ChangeRedisPass
- type Clean
- type CleanData
- type CleanLog
- type CleanTree
- type CommandInfo
- type CommandOperate
- type CommonBackup
- type CommonRecover
- type ComposeContainer
- type ComposeCreate
- type ComposeInfo
- type ComposeOperation
- type ComposeTemplateCreate
- type ComposeTemplateInfo
- type ComposeTemplateUpdate
- type ComposeUpdate
- type ContainerInfo
- type ContainerListStats
- type ContainerOperate
- type ContainerOperation
- type ContainerPrune
- type ContainerPruneReport
- type ContainerStats
- type ContainerUpgrade
- type CronjobBatchDelete
- type CronjobClean
- type CronjobCreate
- type CronjobDownload
- type CronjobInfo
- type CronjobUpdate
- type CronjobUpdateStatus
- type DBBaseInfo
- type DaemonJsonConf
- type DaemonJsonUpdateByFile
- type DashboardBase
- type DashboardCurrent
- type DatabaseCreate
- type DatabaseDelete
- type DatabaseFileRecords
- type DatabaseInfo
- type DatabaseOption
- type DatabaseSearch
- type DatabaseUpdate
- type DeleteByName
- type DiskInfo
- type DockerOperation
- type DownloadRecord
- type FilePath
- type FirewallBaseInfo
- type FirewallOperation
- type ForBuckets
- type GenerateLoad
- type GenerateSSH
- type GroupCreate
- type GroupInfo
- type GroupSearch
- type GroupUpdate
- type HostConnTest
- type HostInfo
- type HostOperate
- type HostTree
- type ImageBuild
- type ImageInfo
- type ImageLoad
- type ImagePull
- type ImagePush
- type ImageRepoCreate
- type ImageRepoDelete
- type ImageRepoInfo
- type ImageRepoOption
- type ImageRepoUpdate
- type ImageSave
- type ImageTag
- type InspectReq
- type LogOption
- type LoginLog
- type MonitorData
- type MonitorSearch
- type MysqlConfUpdateByFile
- type MysqlDBCreate
- type MysqlDBDelete
- type MysqlDBDeleteCheck
- type MysqlDBInfo
- type MysqlDBSearch
- type MysqlLoadDB
- type MysqlOption
- type MysqlStatus
- type MysqlVariables
- type MysqlVariablesUpdate
- type MysqlVariablesUpdateHelper
- type Network
- type NetworkCreate
- type Operate
- type OperateByID
- type OperationLog
- type OperationWithName
- type OperationWithNameAndType
- type Options
- type PageContainer
- type PageInfo
- type PageResult
- type PasswordUpdate
- type PortHelper
- type PortRuleOperate
- type PortRuleUpdate
- type PortUpdate
- type Record
- type RecordSearch
- type RedisBackupRecover
- type RedisConf
- type RedisConfPersistenceUpdate
- type RedisConfUpdate
- type RedisConfUpdateByFile
- type RedisPersistence
- type RedisStatus
- type ResourceLimit
- type Response
- type RuleSearch
- type SSHConf
- type SSHHistory
- type SSHInfo
- type SSHLog
- type SSHLogAnalysis
- type SSLInfo
- type SSLUpdate
- type SearchForAnalysis
- type SearchForTree
- type SearchHostWithPage
- type SearchLgLogWithPage
- type SearchOpLogWithPage
- type SearchRecord
- type SearchSSHLog
- type SearchWithPage
- type SettingInfo
- type SettingUpdate
- type SnapshotCreate
- type SnapshotImport
- type SnapshotInfo
- type SnapshotRecover
- type SnapshotStatus
- type SyncTime
- type TreeChild
- type Type
- type UpdateDescription
- type UpdateFirewallDescription
- type Upgrade
- type UpgradeInfo
- type Volume
- type VolumeCreate
- type VolumeHelper
Constants ¶
View Source
const ( CodeSuccess = 200 CodeErrBadRequest = 400 CodeErrUnSafety = 402 CodeErrForbidden = 403 CodeErrNotFound = 404 CodePasswordExpired = 405 CodeAuth = 406 CodeGlobalLoading = 407 CodeErrIP = 408 CodeErrDomain = 409 CodeErrInternalServer = 500 CodeErrHeader = 406 )
Variables ¶
View Source
var ( ErrCaptchaCode = errors.New("ErrCaptchaCode") ErrAuth = errors.New("ErrAuth") ErrRecordExist = errors.New("ErrRecordExist") ErrRecordNotFound = errors.New("ErrRecordNotFound") ErrStructTransform = errors.New("ErrStructTransform") ErrInitialPassword = errors.New("ErrInitialPassword") ErrNotSupportType = errors.New("ErrNotSupportType") ErrInvalidParams = errors.New("ErrInvalidParams") ErrTokenParse = errors.New("ErrTokenParse") )
internal
View Source
var ( ErrTypeInternalServer = "ErrInternalServer" ErrTypeInvalidParams = "ErrInvalidParams" ErrTypeNotLogin = "ErrNotLogin" ErrTypePasswordExpired = "ErrPasswordExpired" ErrNameIsExist = "ErrNameIsExist" ErrDemoEnvironment = "ErrDemoEnvironment" ErrCmdIllegal = "ErrCmdIllegal" )
api
View Source
var ( ErrPortInUsed = "ErrPortInUsed" ErrAppLimit = "ErrAppLimit" ErrFileCanNotRead = "ErrFileCanNotRead" ErrNotInstall = "ErrNotInstall" ErrPortInOtherApp = "ErrPortInOtherApp" ErrDbUserNotValid = "ErrDbUserNotValid" ErrUpdateBuWebsite = "ErrUpdateBuWebsite" Err1PanelNetworkFailed = "Err1PanelNetworkFailed" ErrCmdTimeout = "ErrCmdTimeout" ErrFileParse = "ErrFileParse" ErrInstallDirNotFound = "ErrInstallDirNotFound" ErrContainerName = "ErrContainerName" ErrAppNameExist = "ErrAppNameExist" )
app
View Source
var ( ErrDomainIsExist = "ErrDomainIsExist" ErrAliasIsExist = "ErrAliasIsExist" ErrGroupIsUsed = "ErrGroupIsUsed" ErrUsernameIsExist = "ErrUsernameIsExist" ErrUsernameIsNotExist = "ErrUsernameIsNotExist" ErrBackupMatch = "ErrBackupMatch" ErrBackupExist = "ErrBackupExist" )
website
View Source
var ( ErrSSLCannotDelete = "ErrSSLCannotDelete" ErrAccountCannotDelete = "ErrAccountCannotDelete" ErrSSLApply = "ErrSSLApply" ErrEmailIsExist = "ErrEmailIsExist" )
ssl
View Source
var ( ErrPathNotFound = "ErrPathNotFound" ErrMovePathFailed = "ErrMovePathFailed" ErrLinkPathNotFound = "ErrLinkPathNotFound" ErrFileIsExit = "ErrFileIsExit" ErrFileUpload = "ErrFileUpload" ErrFileDownloadDir = "ErrFileDownloadDir" ErrCmdNotFound = "ErrCmdNotFound" ErrFavoriteExist = "ErrFavoriteExist" )
file
View Source
var ( ErrUserIsExist = "ErrUserIsExist" ErrDatabaseIsExist = "ErrDatabaseIsExist" ErrExecTimeOut = "ErrExecTimeOut" ErrRemoteExist = "ErrRemoteExist" ErrLocalExist = "ErrLocalExist" )
mysql
View Source
var ( ErrInUsed = "ErrInUsed" ErrObjectInUsed = "ErrObjectInUsed" ErrPortRules = "ErrPortRules" )
container
View Source
var ( ErrDirNotFound = "ErrDirNotFound" ErrFileNotExist = "ErrFileNotExist" ErrImageBuildErr = "ErrImageBuildErr" ErrImageExist = "ErrImageExist" ErrDelWithWebsite = "ErrDelWithWebsite" ErrRuntimeStart = "ErrRuntimeStart" ErrPackageJsonNotFound = "ErrPackageJsonNotFound" ErrScriptsNotFound = "ErrScriptsNotFound" )
runtime
View Source
var ( ErrBackupInUsed = "ErrBackupInUsed" ErrOSSConn = "ErrOSSConn" ErrEntrance = "ErrEntrance" )
View Source
var (
ErrBashExecute = "ErrBashExecute"
)
cronjob
View Source
var (
ErrFirewall = "ErrFirewall"
)
View Source
var (
ErrTypeOfRedis = "ErrTypeOfRedis"
)
redis
Functions ¶
This section is empty.
Types ¶
type AddrRuleOperate ¶
type AddrRuleUpdate ¶
type AddrRuleUpdate struct { OldRule AddrRuleOperate `json:"oldRule"` NewRule AddrRuleOperate `json:"newRule"` }
type AnalysisRes ¶
type AnalysisRes struct { Total int64 `json:"total"` Items []SSHLogAnalysis `json:"items"` SuccessfulCount int `json:"successfulCount"` FailedCount int `json:"failedCount"` }
type BackupInfo ¶
type BackupOperate ¶
type BackupRecords ¶
type BackupSearchFile ¶
type BackupSearchFile struct {
Type string `json:"type" validate:"required"`
}
type BatchDelete ¶
type BatchDelete struct {
Names []string `json:"names" validate:"required"`
}
type BatchDeleteReq ¶
type BatchDeleteReq struct {
Ids []uint `json:"ids" validate:"required"`
}
type BatchRuleOperate ¶
type BatchRuleOperate struct { Type string `json:"type" validate:"required"` Rules []PortRuleOperate `json:"rules"` }
type ChangeDBInfo ¶
type ChangeHostGroup ¶
type ChangeRedisPass ¶
type ChangeRedisPass struct {
Value string `json:"value" validate:"required"`
}
redis
type CleanLog ¶
type CleanLog struct {
LogType string `json:"logType" validate:"required,oneof=login operation"`
}
type CommandInfo ¶
type CommandOperate ¶
type CommonBackup ¶
type CommonRecover ¶
type CommonRecover struct { Source string `json:"source" validate:"required,oneof=OSS S3 SFTP MINIO LOCAL COS KODO OneDrive"` Type string `json:"type" validate:"required,oneof=app mysql mariadb redis website"` Name string `json:"name"` DetailName string `json:"detailName"` File string `json:"file"` }
type ComposeContainer ¶
type ComposeCreate ¶
type ComposeInfo ¶
type ComposeInfo struct { Name string `json:"name"` CreatedAt string `json:"createdAt"` CreatedBy string `json:"createdBy"` ContainerNumber int `json:"containerNumber"` ConfigFile string `json:"configFile"` Workdir string `json:"workdir"` Path string `json:"path"` Containers []ComposeContainer `json:"containers"` }
type ComposeOperation ¶
type ComposeTemplateCreate ¶
type ComposeTemplateInfo ¶
type ComposeTemplateUpdate ¶
type ComposeUpdate ¶
type ContainerInfo ¶
type ContainerInfo struct { ContainerID string `json:"containerID"` Name string `json:"name"` ImageId string `json:"imageID"` ImageName string `json:"imageName"` CreateTime string `json:"createTime"` State string `json:"state"` RunTime string `json:"runTime"` Network []string `json:"network"` Ports []string `json:"ports"` IsFromApp bool `json:"isFromApp"` IsFromCompose bool `json:"isFromCompose"` }
type ContainerListStats ¶
type ContainerListStats struct { ContainerID string `json:"containerID"` CPUTotalUsage uint64 `json:"cpuTotalUsage"` SystemUsage uint64 `json:"systemUsage"` CPUPercent float64 `json:"cpuPercent"` PercpuUsage int `json:"percpuUsage"` MemoryCache uint64 `json:"memoryCache"` MemoryUsage uint64 `json:"memoryUsage"` MemoryLimit uint64 `json:"memoryLimit"` MemoryPercent float64 `json:"memoryPercent"` }
type ContainerOperate ¶
type ContainerOperate struct { ContainerID string `json:"containerID"` ForcePull bool `json:"forcePull"` Name string `json:"name"` Image string `json:"image"` Network string `json:"network"` PublishAllPorts bool `json:"publishAllPorts"` ExposedPorts []PortHelper `json:"exposedPorts"` Tty bool `json:"tty"` OpenStdin bool `json:"openStdin"` Cmd []string `json:"cmd"` Entrypoint []string `json:"entrypoint"` NanoCPUs float64 `json:"nanoCPUs"` Memory float64 `json:"memory"` AutoRemove bool `json:"autoRemove"` Volumes []VolumeHelper `json:"volumes"` Labels []string `json:"labels"` Env []string `json:"env"` RestartPolicy string `json:"restartPolicy"` }
type ContainerOperation ¶
type ContainerPrune ¶
type ContainerPruneReport ¶
type ContainerStats ¶
type ContainerStats struct { CPUPercent float64 `json:"cpuPercent"` Memory float64 `json:"memory"` Cache float64 `json:"cache"` IORead float64 `json:"ioRead"` IOWrite float64 `json:"ioWrite"` NetworkRX float64 `json:"networkRX"` NetworkTX float64 `json:"networkTX"` ShotTime time.Time `json:"shotTime"` }
type ContainerUpgrade ¶
type CronjobBatchDelete ¶
type CronjobClean ¶
type CronjobCreate ¶
type CronjobCreate struct { Name string `json:"name" validate:"required"` Type string `json:"type" validate:"required"` SpecType string `json:"specType" validate:"required"` Week int `json:"week" validate:"number,max=6,min=0"` Day int `json:"day" validate:"number"` Hour int `json:"hour" validate:"number"` Minute int `json:"minute" validate:"number"` Second int `json:"second" validate:"number"` Script string `json:"script"` ContainerName string `json:"containerName"` AppID string `json:"appID"` Website string `json:"website"` ExclusionRules string `json:"exclusionRules"` DBName string `json:"dbName"` URL string `json:"url"` SourceDir string `json:"sourceDir"` KeepLocal bool `json:"keepLocal"` TargetDirID int `json:"targetDirID"` RetainCopies int `json:"retainCopies" validate:"number,min=1"` }
type CronjobDownload ¶
type CronjobInfo ¶
type CronjobInfo struct { ID uint `json:"id"` Name string `json:"name"` Type string `json:"type"` SpecType string `json:"specType"` Week int `json:"week"` Day int `json:"day"` Hour int `json:"hour"` Minute int `json:"minute"` Second int `json:"second"` Script string `json:"script"` ContainerName string `json:"containerName"` AppID string `json:"appID"` Website string `json:"website"` ExclusionRules string `json:"exclusionRules"` DBName string `json:"dbName"` URL string `json:"url"` SourceDir string `json:"sourceDir"` KeepLocal bool `json:"keepLocal"` TargetDir string `json:"targetDir"` TargetDirID int `json:"targetDirID"` RetainCopies int `json:"retainCopies"` LastRecordTime string `json:"lastRecordTime"` Status string `json:"status"` }
type CronjobUpdate ¶
type CronjobUpdate struct { ID uint `json:"id" validate:"required"` Name string `json:"name" validate:"required"` SpecType string `json:"specType" validate:"required"` Week int `json:"week" validate:"number,max=6,min=0"` Day int `json:"day" validate:"number"` Hour int `json:"hour" validate:"number"` Minute int `json:"minute" validate:"number"` Second int `json:"second" validate:"number"` Script string `json:"script"` ContainerName string `json:"containerName"` AppID string `json:"appID"` Website string `json:"website"` ExclusionRules string `json:"exclusionRules"` DBName string `json:"dbName"` URL string `json:"url"` SourceDir string `json:"sourceDir"` KeepLocal bool `json:"keepLocal"` TargetDirID int `json:"targetDirID"` RetainCopies int `json:"retainCopies" validate:"number,min=1"` }
type CronjobUpdateStatus ¶
type DBBaseInfo ¶
type DaemonJsonConf ¶
type DaemonJsonConf struct { IsSwarm bool `json:"isSwarm"` Status string `json:"status"` Version string `json:"version"` Mirrors []string `json:"registryMirrors"` Registries []string `json:"insecureRegistries"` LiveRestore bool `json:"liveRestore"` IPTables bool `json:"iptables"` CgroupDriver string `json:"cgroupDriver"` LogMaxSize string `json:"logMaxSize"` LogMaxFile string `json:"logMaxFile"` }
type DaemonJsonUpdateByFile ¶
type DaemonJsonUpdateByFile struct {
File string `json:"file"`
}
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"` 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"` 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"` ShotTime time.Time `json:"shotTime"` }
type DatabaseCreate ¶
type DatabaseCreate struct { Name string `json:"name" validate:"required,max=256"` Type string `json:"type" validate:"required"` From string `json:"from" validate:"required,oneof=local remote"` Version string `json:"version" validate:"required"` Address string `json:"address"` Port uint `json:"port"` Username string `json:"username" validate:"required"` Password string `json:"password" validate:"required"` Description string `json:"description"` }
type DatabaseDelete ¶
type DatabaseFileRecords ¶
type DatabaseInfo ¶
type DatabaseInfo struct { ID uint `json:"id"` CreatedAt time.Time `json:"createdAt"` Name string `json:"name" validate:"max=256"` From string `json:"from"` Type string `json:"type"` Version string `json:"version"` Address string `json:"address"` Port uint `json:"port"` Username string `json:"username"` Password string `json:"password"` Description string `json:"description"` }
type DatabaseOption ¶
type DatabaseSearch ¶
type DatabaseSearch struct { PageInfo Info string `json:"info"` Type string `json:"type"` OrderBy string `json:"orderBy"` Order string `json:"order"` }
database
type DatabaseUpdate ¶
type DatabaseUpdate struct { ID uint `json:"id"` Type string `json:"type" validate:"required"` Version string `json:"version" validate:"required"` Address string `json:"address"` Port uint `json:"port"` Username string `json:"username" validate:"required"` Password string `json:"password" validate:"required"` Description string `json:"description"` }
type DeleteByName ¶
type DeleteByName struct {
Name string `json:"name" validate:"required"`
}
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 DockerOperation ¶
type DockerOperation struct {
Operation string `json:"operation" validate:"required,oneof=start restart stop"`
}
type DownloadRecord ¶
type FirewallBaseInfo ¶
type FirewallOperation ¶
type FirewallOperation struct {
Operation string `json:"operation" validate:"required,oneof=start stop disablePing enablePing"`
}
type ForBuckets ¶
type GenerateLoad ¶
type GenerateLoad struct {
EncryptionMode string `json:"encryptionMode" validate:"required,oneof=rsa ed25519 ecdsa dsa"`
}
type GenerateSSH ¶
type GroupCreate ¶
type GroupSearch ¶
type GroupSearch struct {
Type string `json:"type" validate:"required"`
}
type GroupUpdate ¶
type HostConnTest ¶
type HostConnTest struct { Addr string `json:"addr" validate:"required"` Port uint `json:"port" validate:"required,number,max=65535,min=1"` User string `json:"user" validate:"required"` AuthMode string `json:"authMode" validate:"oneof=password key"` Password string `json:"password"` PrivateKey string `json:"privateKey"` PassPhrase string `json:"passPhrase"` }
type HostInfo ¶
type HostInfo struct { ID uint `json:"id"` CreatedAt time.Time `json:"createdAt"` GroupID uint `json:"groupID"` GroupBelong string `json:"groupBelong"` Name string `json:"name"` Addr string `json:"addr"` Port uint `json:"port"` User string `json:"user"` AuthMode string `json:"authMode"` Password string `json:"password"` PrivateKey string `json:"privateKey"` PassPhrase string `json:"passPhrase"` RememberPassword bool `json:"rememberPassword"` Description string `json:"description"` }
type HostOperate ¶
type HostOperate struct { ID uint `json:"id"` GroupID uint `json:"groupID"` Name string `json:"name"` Addr string `json:"addr" validate:"required"` Port uint `json:"port" validate:"required,number,max=65535,min=1"` User string `json:"user" validate:"required"` AuthMode string `json:"authMode" validate:"oneof=password key"` Password string `json:"password"` PrivateKey string `json:"privateKey"` PassPhrase string `json:"passPhrase"` RememberPassword bool `json:"rememberPassword"` Description string `json:"description"` }
type ImageBuild ¶
type ImageRepoCreate ¶
type ImageRepoDelete ¶
type ImageRepoDelete struct {
Ids []uint `json:"ids" validate:"required"`
}
type ImageRepoInfo ¶
type ImageRepoInfo struct { ID uint `json:"id"` CreatedAt time.Time `json:"createdAt"` Name string `json:"name"` DownloadUrl string `json:"downloadUrl"` Protocol string `json:"protocol"` Username string `json:"username"` Auth bool `json:"auth"` Status string `json:"status"` Message string `json:"message"` }
type ImageRepoOption ¶
type ImageRepoUpdate ¶
type InspectReq ¶
type MonitorData ¶
type MonitorSearch ¶
type MysqlConfUpdateByFile ¶
type MysqlDBCreate ¶
type MysqlDBCreate struct { Name string `json:"name" validate:"required"` From string `json:"from" validate:"required,oneof=local remote"` Database string `json:"database" validate:"required"` Format string `json:"format" validate:"required,oneof=utf8mb4 utf8 gbk big5"` Username string `json:"username" validate:"required"` Password string `json:"password" validate:"required"` Permission string `json:"permission" validate:"required"` Description string `json:"description"` }
type MysqlDBDelete ¶
type MysqlDBDeleteCheck ¶
type MysqlDBInfo ¶
type MysqlDBInfo struct { ID uint `json:"id"` CreatedAt time.Time `json:"createdAt"` Name string `json:"name"` From string `json:"from"` MysqlName string `json:"mysqlName"` Format string `json:"format"` Username string `json:"username"` Password string `json:"password"` Permission string `json:"permission"` BackupCount int `json:"backupCount"` Description string `json:"description"` }
type MysqlDBSearch ¶
type MysqlLoadDB ¶
type MysqlOption ¶
type MysqlStatus ¶
type MysqlStatus struct { AbortedClients string `json:"Aborted_clients"` AbortedConnects string `json:"Aborted_connects"` BytesReceived string `json:"Bytes_received"` BytesSent string `json:"Bytes_sent"` ComCommit string `json:"Com_commit"` ComRollback string `json:"Com_rollback"` Connections string `json:"Connections"` CreatedTmpDiskTables string `json:"Created_tmp_disk_tables"` CreatedTmpTables string `json:"Created_tmp_tables"` InnodbBufferPoolPagesDirty string `json:"Innodb_buffer_pool_pages_dirty"` InnodbBufferPoolReadRequests string `json:"Innodb_buffer_pool_read_requests"` InnodbBufferPoolReads string `json:"Innodb_buffer_pool_reads"` KeyReadRequests string `json:"Key_read_requests"` KeyReads string `json:"Key_reads"` KeyWriteEequests string `json:"Key_write_requests"` KeyWrites string `json:"Key_writes"` MaxUsedConnections string `json:"Max_used_connections"` OpenTables string `json:"Open_tables"` OpenedFiles string `json:"Opened_files"` OpenedTables string `json:"Opened_tables"` QcacheHits string `json:"Qcache_hits"` QcacheInserts string `json:"Qcache_inserts"` Questions string `json:"Questions"` SelectFullJoin string `json:"Select_full_join"` SelectRangeCheck string `json:"Select_range_check"` SortMergePasses string `json:"Sort_merge_passes"` TableLocksWaited string `json:"Table_locks_waited"` ThreadsCached string `json:"Threads_cached"` ThreadsConnected string `json:"Threads_connected"` ThreadsCreated string `json:"Threads_created"` ThreadsRunning string `json:"Threads_running"` Uptime string `json:"Uptime"` Run string `json:"Run"` File string `json:"File"` Position string `json:"Position"` }
type MysqlVariables ¶
type MysqlVariables struct { BinlogCachSize string `json:"binlog_cache_size"` InnodbBufferPoolSize string `json:"innodb_buffer_pool_size"` InnodbLogBufferSize string `json:"innodb_log_buffer_size"` JoinBufferSize string `json:"join_buffer_size"` KeyBufferSize string `json:"key_buffer_size"` MaxConnections string `json:"max_connections"` MaxHeapTableSize string `json:"max_heap_table_size"` QueryCacheSize string `json:"query_cache_size"` QueryCache_type string `json:"query_cache_type"` ReadBufferSize string `json:"read_buffer_size"` ReadRndBufferSize string `json:"read_rnd_buffer_size"` SortBufferSize string `json:"sort_buffer_size"` TableOpenCache string `json:"table_open_cache"` ThreadCacheSize string `json:"thread_cache_size"` ThreadStack string `json:"thread_stack"` TmpTableSize string `json:"tmp_table_size"` SlowQueryLog string `json:"slow_query_log"` LongQueryTime string `json:"long_query_time"` }
type MysqlVariablesUpdate ¶
type MysqlVariablesUpdate struct { Type string `json:"type" validate:"required,oneof=mysql mariadb"` Database string `json:"database" validate:"required"` Variables []MysqlVariablesUpdateHelper `json:"variables"` }
type MysqlVariablesUpdateHelper ¶
type MysqlVariablesUpdateHelper struct { Param string `json:"param"` Value interface{} `json:"value"` }
type Network ¶
type Network struct { ID string `json:"id"` Name string `json:"name"` Labels []string `json:"labels"` Driver string `json:"driver"` IPAMDriver string `json:"ipamDriver"` Subnet string `json:"subnet"` Gateway string `json:"gateway"` CreatedAt time.Time `json:"createdAt"` Attachable bool `json:"attachable"` }
type NetworkCreate ¶
type OperateByID ¶
type OperateByID struct {
ID uint `json:"id" validate:"required"`
}
type OperationLog ¶
type OperationLog struct { ID uint `json:"id"` Source string `json:"source"` IP string `json:"ip"` Path string `json:"path"` Method string `json:"method"` UserAgent string `json:"userAgent"` Latency time.Duration `json:"latency"` Status string `json:"status"` Message string `json:"message"` DetailZH string `json:"detailZH"` DetailEN string `json:"detailEN"` CreatedAt time.Time `json:"createdAt"` }
type OperationWithName ¶
type OperationWithName struct {
Name string `json:"name" validate:"required"`
}
type PageContainer ¶
type PageResult ¶
type PasswordUpdate ¶
type PortHelper ¶
type PortRuleOperate ¶
type PortRuleOperate struct { Operation string `json:"operation" validate:"required,oneof=add remove"` Address string `json:"address"` Port string `json:"port" validate:"required"` Protocol string `json:"protocol" validate:"required,oneof=tcp udp tcp/udp"` Strategy string `json:"strategy" validate:"required,oneof=accept drop"` Description string `json:"description"` }
type PortRuleUpdate ¶
type PortRuleUpdate struct { OldRule PortRuleOperate `json:"oldRule"` NewRule PortRuleOperate `json:"newRule"` }
type PortUpdate ¶
type PortUpdate struct {
ServerPort uint `json:"serverPort" validate:"required,number,max=65535,min=1"`
}
type RecordSearch ¶
type RedisBackupRecover ¶
type RedisConfUpdate ¶
type RedisConfUpdateByFile ¶
type RedisPersistence ¶
type RedisStatus ¶
type RedisStatus struct { TcpPort string `json:"tcp_port"` UptimeInDays string `json:"uptime_in_days"` ConnectedClients string `json:"connected_clients"` UsedMemory string `json:"used_memory"` UsedMemory_rss string `json:"used_memory_rss"` UsedMemory_peak string `json:"used_memory_peak"` MemFragmentationRatio string `json:"mem_fragmentation_ratio"` TotalConnectionsReceived string `json:"total_connections_received"` TotalCommandsProcessed string `json:"total_commands_processed"` InstantaneousOpsPerSec string `json:"instantaneous_ops_per_sec"` KeyspaceHits string `json:"keyspace_hits"` KeyspaceMisses string `json:"keyspace_misses"` LatestForkUsec string `json:"latest_fork_usec"` }
type ResourceLimit ¶
type RuleSearch ¶
type SSHHistory ¶
type SSHInfo ¶
type SSHInfo struct { AutoStart bool `json:"authStart"` Status string `json:"status"` Message string `json:"message"` Port string `json:"port"` ListenAddress string `json:"listenAddress"` PasswordAuthentication string `json:"passwordAuthentication"` PubkeyAuthentication string `json:"pubkeyAuthentication"` PermitRootLogin string `json:"permitRootLogin"` UseDNS string `json:"useDNS"` }
type SSHLog ¶
type SSHLog struct { Logs []SSHHistory `json:"logs"` TotalCount int `json:"totalCount"` SuccessfulCount int `json:"successfulCount"` FailedCount int `json:"failedCount"` }
type SSHLogAnalysis ¶
type SearchForAnalysis ¶
type SearchForTree ¶
type SearchForTree struct {
Info string `json:"info"`
}
type SearchHostWithPage ¶
type SearchLgLogWithPage ¶
type SearchOpLogWithPage ¶
type SearchRecord ¶
type SearchSSHLog ¶
type SearchWithPage ¶
type SearchWithPage struct { PageInfo Info string `json:"info"` OrderBy string `json:"orderBy"` Order string `json:"order"` Type Type `json:"type"` }
import "gitee.com/daka1004/artifactory/app/models/Type"
type SettingInfo ¶
type SettingInfo struct { UserName string `json:"userName"` Email string `json:"email"` SystemIP string `json:"systemIP"` SystemVersion string `json:"systemVersion"` SessionTimeout string `json:"sessionTimeout"` LocalTime string `json:"localTime"` TimeZone string `json:"timeZone"` NtpSite string `json:"ntpSite"` Port string `json:"port"` PanelName string `json:"panelName"` Theme string `json:"theme"` Language string `json:"language"` DefaultNetwork string `json:"defaultNetwork"` LastCleanTime string `json:"lastCleanTime"` LastCleanSize string `json:"lastCleanSize"` LastCleanData string `json:"lastCleanData"` ServerPort string `json:"serverPort"` SSL string `json:"ssl"` SSLType string `json:"sslType"` BindDomain string `json:"bindDomain"` AllowIPs string `json:"allowIPs"` SecurityEntrance string `json:"securityEntrance"` ExpirationDays string `json:"expirationDays"` ExpirationTime string `json:"expirationTime"` ComplexityVerification string `json:"complexityVerification"` MFAStatus string `json:"mfaStatus"` MFASecret string `json:"mfaSecret"` MFAInterval string `json:"mfaInterval"` MonitorStatus string `json:"monitorStatus"` MonitorInterval string `json:"monitorInterval"` MonitorStoreDays string `json:"monitorStoreDays"` MessageType string `json:"messageType"` EmailVars string `json:"emailVars"` WeChatVars string `json:"weChatVars"` DingVars string `json:"dingVars"` AppStoreVersion string `json:"appStoreVersion"` AppStoreLastModified string `json:"appStoreLastModified"` }
type SettingUpdate ¶
type SnapshotCreate ¶
type SnapshotImport ¶
type SnapshotInfo ¶
type SnapshotInfo struct { ID uint `json:"id"` Name string `json:"name"` Description string `json:"description" validate:"max=256"` From string `json:"from"` Status string `json:"status"` Message string `json:"message"` CreatedAt time.Time `json:"createdAt"` Version string `json:"version"` InterruptStep string `json:"interruptStep"` RecoverStatus string `json:"recoverStatus"` RecoverMessage string `json:"recoverMessage"` LastRecoveredAt string `json:"lastRecoveredAt"` RollbackStatus string `json:"rollbackStatus"` RollbackMessage string `json:"rollbackMessage"` LastRollbackedAt string `json:"lastRollbackedAt"` }
type SnapshotRecover ¶
type SnapshotStatus ¶
type SnapshotStatus struct { Panel string `json:"panel"` PanelInfo string `json:"panelInfo"` DaemonJson string `json:"daemonJson"` AppData string `json:"appData"` PanelData string `json:"panelData"` BackupData string `json:"backupData"` Compress string `json:"compress"` Size string `json:"size"` Upload string `json:"upload"` }
type Type ¶
type Type string
Type of a packages
const ( TypeAlpine Type = "alpine" TypeCargo Type = "cargo" TypeChef Type = "chef" TypeComposer Type = "composer" TypeConan Type = "conan" TypeConda Type = "conda" TypeContainer Type = "container" TypeCran Type = "cran" TypeDebian Type = "debian" TypeGeneric Type = "generic" TypeGo Type = "go" TypeHelm Type = "helm" TypeMaven Type = "maven" TypeNpm Type = "npm" TypeNuGet Type = "nuget" TypePub Type = "pub" TypePyPI Type = "pypi" TypeRpm Type = "rpm" TypeRubyGems Type = "rubygems" TypeSwift Type = "swift" TypeVagrant Type = "vagrant" )
List of supported packages
type UpdateDescription ¶
type UpgradeInfo ¶
type VolumeCreate ¶
type VolumeHelper ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.