Documentation
¶
Index ¶
- type ApiInterfaceConfig
- type AppstoreConfig
- type AppstoreUpdate
- type BackupClientInfo
- type BackupInfo
- type BackupOperate
- type BindInfo
- type CaptchaResponse
- type Clean
- type CleanData
- type CleanLog
- type CleanTree
- type CommandDelete
- type CommandImport
- type CommandInfo
- type CommandOperate
- type CommandTree
- type CurrentUserInfo
- type CurrentUserNodeRole
- type CurrentUserUpdate
- type ForBuckets
- type GroupCreate
- type GroupInfo
- type GroupSearch
- type GroupUpdate
- type Login
- type LoginLog
- type LoginSetting
- type MFALogin
- type MemoUpdate
- type MenuLabelSort
- type MfaCredential
- type MfaRequest
- type OperateByID
- type OperateByIDs
- type OperateByName
- type OperateByTaskID
- type OperateByType
- type OperationLog
- type Options
- type PageInfo
- type PageResult
- type PasskeyBeginResponse
- type PasskeyID
- type PasskeyInfo
- type PasskeyRegisterRequest
- type PasswordUpdate
- type PortUpdate
- type ProxyUpdate
- type ReleasesNotes
- type Response
- type SSLInfo
- type SSLUpdate
- type ScriptInfo
- type ScriptOperate
- type SearchCommandWithPage
- type SearchLgLogWithPage
- type SearchOpLogWithPage
- type SearchPageWithGroup
- type SearchPageWithType
- type SearchWithPage
- type SettingBaseInfo
- type SettingInfo
- type SettingUpdate
- type ShowMenu
- type SnapshotBatchDelete
- type SnapshotCreate
- type SnapshotImport
- type SnapshotInfo
- type SnapshotRecover
- type SyncTime
- type SyncToAgent
- type SystemSetting
- type TerminalInfo
- type Upgrade
- type UpgradeInfo
- type UserLoginInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiInterfaceConfig ¶
type AppstoreConfig ¶
type AppstoreUpdate ¶
type BackupClientInfo ¶
type BackupInfo ¶
type BackupInfo struct {
ID uint `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
IsPublic bool `json:"isPublic"`
Bucket string `json:"bucket"`
AccessKey string `json:"accessKey"`
Credential string `json:"credential"`
BackupPath string `json:"backupPath"`
Vars string `json:"vars"`
CreatedAt time.Time `json:"createdAt"`
RememberAuth bool `json:"rememberAuth"`
}
type BackupOperate ¶
type BackupOperate struct {
ID uint `json:"id"`
Name string `json:"name"`
Type string `json:"type" validate:"required"`
IsPublic bool `json:"isPublic"`
Bucket string `json:"bucket"`
AccessKey string `json:"accessKey"`
Credential string `json:"credential"`
BackupPath string `json:"backupPath"`
Vars string `json:"vars" validate:"required"`
RememberAuth bool `json:"rememberAuth"`
}
type CaptchaResponse ¶
type CleanLog ¶
type CleanLog struct {
LogType string `json:"logType" validate:"required,oneof=login operation"`
}
type CommandDelete ¶
type CommandImport ¶
type CommandImport struct {
Items []CommandOperate `json:"items"`
}
type CommandInfo ¶
type CommandOperate ¶
type CommandTree ¶
type CommandTree struct {
Label string `json:"label"`
Value string `json:"value"`
Children []CommandTree `json:"children"`
}
type CurrentUserInfo ¶
type CurrentUserInfo struct {
Name string `json:"name"`
MFAStatus string `json:"mfaStatus"`
MFAInterval int `json:"mfaInterval"`
ComplexitySetting string `json:"complexitySetting"`
ApiInterfaceStatus string `json:"apiInterfaceStatus"`
ApiKey string `json:"apiKey"`
IpWhiteList string `json:"ipWhiteList"`
ApiKeyValidityTime int `json:"apiKeyValidityTime"`
Role string `json:"role"`
Permissions []string `json:"permissions"`
NodeRoles []CurrentUserNodeRole `json:"nodeRoles"`
}
type CurrentUserNodeRole ¶
type CurrentUserUpdate ¶
type ForBuckets ¶
type GroupCreate ¶
type GroupSearch ¶
type GroupSearch struct {
Type string `json:"type" validate:"required"`
}
type GroupUpdate ¶
type LoginSetting ¶
type LoginSetting struct {
IsDemo bool `json:"isDemo"`
IsIntl bool `json:"isIntl"`
IsOffline bool `json:"isOffline"`
IsFxplay bool `json:"isFxplay"`
IsEnterprise bool `json:"isEnterprise"`
Language string `json:"language"`
MenuTabs string `json:"menuTabs"`
PanelName string `json:"panelName"`
Theme string `json:"theme"`
NeedCaptcha bool `json:"needCaptcha"`
PasskeySetting bool `json:"passkeySetting"`
}
type MFALogin ¶
type MFALogin struct {
SessionID string `json:"sessionId" validate:"required"`
Code string `json:"code" validate:"required"`
}
mfa
type MemoUpdate ¶
type MemoUpdate struct {
Content string `json:"content" validate:"max=500"`
}
type MenuLabelSort ¶
type MfaCredential ¶
type MfaRequest ¶
type OperateByID ¶
type OperateByID struct {
ID uint `json:"id"`
}
type OperateByIDs ¶
type OperateByIDs struct {
IDs []uint `json:"ids"`
}
type OperateByName ¶
type OperateByName struct {
Name string `json:"name"`
}
type OperateByTaskID ¶
type OperateByTaskID struct {
TaskID string `json:"taskID"`
}
type OperateByType ¶
type OperateByType struct {
Type string `json:"type"`
}
type OperationLog ¶
type OperationLog struct {
ID uint `json:"id"`
Source string `json:"source"`
User string `json:"user"`
Node string `json:"node"`
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 PageResult ¶
type PageResult struct {
Total int64 `json:"total"`
Items interface{} `json:"items"`
}
type PasskeyBeginResponse ¶
type PasskeyBeginResponse struct {
SessionID string `json:"sessionId"`
PublicKey interface{} `json:"publicKey"`
}
type PasskeyInfo ¶
type PasskeyRegisterRequest ¶
type PasskeyRegisterRequest struct {
Name string `json:"name" validate:"required"`
}
type PasswordUpdate ¶
type PortUpdate ¶
type PortUpdate struct {
ServerPort uint `json:"serverPort" validate:"required,number,max=65535,min=1"`
}
type ProxyUpdate ¶
type ProxyUpdate struct {
ProxyUrl string `json:"proxyUrl"`
ProxyType string `json:"proxyType"`
ProxyPort string `json:"proxyPort"`
ProxyUser string `json:"proxyUser"`
ProxyPasswd string `json:"proxyPasswd"`
ProxyPasswdKeep string `json:"proxyPasswdKeep"`
ProxyDocker bool `json:"proxyDocker"`
WithDockerRestart bool `json:"withDockerRestart"`
}
type ReleasesNotes ¶
type SSLUpdate ¶
type SSLUpdate struct {
SSLType string `json:"sslType" validate:"required,oneof=self select import import-paste import-local"`
Domain string `json:"domain"`
SSL string `json:"ssl" validate:"required,oneof=Enable Disable Mux"`
Cert string `json:"cert"`
Key string `json:"key"`
SSLID uint `json:"sslID"`
}
type ScriptInfo ¶
type ScriptInfo struct {
ID uint `json:"id"`
Name string `json:"name"`
IsInteractive bool `json:"isInteractive"`
Lable string `json:"lable"`
Script string `json:"script"`
GroupList []uint `json:"groupList"`
GroupBelong []string `json:"groupBelong"`
IsSystem bool `json:"isSystem"`
Description string `json:"description"`
CreatedAt time.Time `json:"createdAt"`
}
type ScriptOperate ¶
type SearchCommandWithPage ¶
type SearchCommandWithPage struct {
PageInfo
OrderBy string `json:"orderBy" validate:"required,oneof=name command createdAt"`
Order string `json:"order" validate:"required,oneof=null ascending descending"`
GroupID uint `json:"groupID"`
Type string `json:"type" validate:"required,oneof=redis command"`
Info string `json:"info"`
}
type SearchLgLogWithPage ¶
type SearchOpLogWithPage ¶
type SearchPageWithGroup ¶
type SearchPageWithType ¶
type SearchWithPage ¶
type SettingBaseInfo ¶
type SettingBaseInfo struct {
SystemVersion string `json:"systemVersion"`
DeveloperMode string `json:"developerMode"`
UpgradeBackupCopies string `json:"upgradeBackupCopies"`
Port string `json:"port"`
Ipv6 string `json:"ipv6"`
BindAddress string `json:"bindAddress"`
PanelName string `json:"panelName"`
Edition string `json:"edition"`
Theme string `json:"theme"`
MenuTabs string `json:"menuTabs"`
Language string `json:"language"`
HideMenu string `json:"hideMenu"`
DocSource string `json:"docSource"`
ServerPort string `json:"serverPort"`
SecurityEntrance string `json:"securityEntrance"`
ComplexityVerification string `json:"complexityVerification"`
NoAuthSetting string `json:"noAuthSetting"`
ProxyType string `json:"proxyType"`
ScriptSync string `json:"scriptSync"`
DashboardMemoVisible string `json:"dashboardMemoVisible"`
DashboardSimpleNodeVisible string `json:"dashboardSimpleNodeVisible"`
}
type SettingInfo ¶
type SettingInfo struct {
SystemVersion string `json:"systemVersion"`
DeveloperMode string `json:"developerMode"`
UpgradeBackupCopies string `json:"upgradeBackupCopies"`
SessionTimeout string `json:"sessionTimeout"`
Port string `json:"port"`
Ipv6 string `json:"ipv6"`
BindAddress string `json:"bindAddress"`
PanelName string `json:"panelName"`
Edition string `json:"edition"`
Theme string `json:"theme"`
MenuTabs string `json:"menuTabs"`
Language string `json:"language"`
DocSource string `json:"docSource"`
IsOffline string `json:"isOffline"`
ServerPort string `json:"serverPort"`
SSL string `json:"ssl"`
SSLType string `json:"sslType"`
BindDomain string `json:"bindDomain"`
PasskeyTrustedProxies string `json:"passkeyTrustedProxies"`
AllowIPs string `json:"allowIPs"`
SecurityEntrance string `json:"securityEntrance"`
DashboardMemoVisible string `json:"dashboardMemoVisible"`
DashboardSimpleNodeVisible string `json:"dashboardSimpleNodeVisible"`
ExpirationDays string `json:"expirationDays"`
ComplexityVerification string `json:"complexityVerification"`
AppStoreVersion string `json:"appStoreVersion"`
AppStoreLastModified string `json:"appStoreLastModified"`
AppStoreSyncStatus string `json:"appStoreSyncStatus"`
HideMenu string `json:"hideMenu"`
NoAuthSetting string `json:"noAuthSetting"`
ProxyUrl string `json:"proxyUrl"`
ProxyType string `json:"proxyType"`
ProxyPort string `json:"proxyPort"`
ProxyUser string `json:"proxyUser"`
ProxyPasswd string `json:"proxyPasswd"`
ProxyPasswdKeep string `json:"proxyPasswdKeep"`
}
type SettingUpdate ¶
type SnapshotBatchDelete ¶
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"`
DefaultDownload string `json:"defaultDownload"`
Status string `json:"status"`
Message string `json:"message"`
CreatedAt time.Time `json:"createdAt"`
Version string `json:"version"`
Size int64 `json:"size"`
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 SyncToAgent ¶
type SystemSetting ¶
type TerminalInfo ¶
type TerminalInfo struct {
LineHeight string `json:"lineHeight"`
LetterSpacing string `json:"letterSpacing"`
FontSize string `json:"fontSize"`
FontFamily string `json:"fontFamily"`
BackgroundColor string `json:"backgroundColor"`
ForegroundColor string `json:"foregroundColor"`
CursorBlink string `json:"cursorBlink"`
CursorStyle string `json:"cursorStyle"`
Scrollback string `json:"scrollback"`
ScrollSensitivity string `json:"scrollSensitivity"`
}
type UpgradeInfo ¶
Click to show internal directories.
Click to hide internal directories.