constant

package
v0.0.0-...-e7f4e31 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WeChat   = "wechat"
	SMS      = "sms"
	Email    = "mail"
	WeCom    = "weCom"
	DingTalk = "dingTalk"
	FeiShu   = "feiShu"
)
View Source
const (
	TimeOut5s  = 5
	TimeOut20s = 20
	TimeOut5m  = 300

	DateLayout         = "2006-01-02" // or use time.DateOnly while go version >= 1.20
	DefaultDate        = "1970-01-01"
	DateTimeLayout     = "2006-01-02 15:04:05" // or use time.DateTime while go version >= 1.20
	DateTimeSlimLayout = "20060102150405"

	OrderDesc = "descending"
	OrderAsc  = "ascending"

	// backup
	S3          = "S3"
	OSS         = "OSS"
	Sftp        = "SFTP"
	OneDrive    = "OneDrive"
	MinIo       = "MINIO"
	Cos         = "COS"
	Kodo        = "KODO"
	WebDAV      = "WebDAV"
	Local       = "LOCAL"
	UPYUN       = "UPYUN"
	ALIYUN      = "ALIYUN"
	GoogleDrive = "GoogleDrive"

	OneDriveRedirectURI = "http://localhost/login/authorized"
)
View Source
const (
	DirPerm  = 0755
	FilePerm = 0644
)
View Source
const (
	SyncSystemProxy                  = "SyncSystemProxy"
	SyncScripts                      = "SyncScripts"
	SyncBackupAccounts               = "SyncBackupAccounts"
	SyncAlertSetting                 = "SyncAlertSetting"
	SyncCustomApp                    = "SyncCustomApp"
	SyncLanguage                     = "SyncLanguage"
	SyncSystemProxyWithRestartDocker = "SyncSystemProxyWithRestartDocker"
)
View Source
const (
	RoleMaster = "master"
	RoleSlave  = "slave"
)
View Source
const (
	AuthMethodSession = "session"
	SessionName       = "psession"

	PasswordExpiredName = "expired"
)
View Source
const (
	StatusSuccess = "Success"
	StatusFailed  = "Failed"

	// node
	StatusWaiting        = "Waiting"
	StatusHealthy        = "Healthy"
	StatusStarting       = "Starting"
	StatusUnhealthy      = "Unhealthy"
	StatusWaitForUpgrade = "WaitForUpgrade"
	StatusUpgrading      = "Upgrading"
	StatusRunning        = "Running"
	StatusFree           = "Free"
	StatusBound          = "Bound"
	StatusExceptional    = "Exceptional"
	StatusRetrying       = "Retrying"
	StatusLost           = "Lost"
	StatusExecuting      = "Executing"

	StatusEnable  = "Enable"
	StatusDisable = "Disable"
	StatusMux     = "Mux"

	StatusInstalling = "Installing"
	StatusNormal     = "Normal"
	StatusDeleted    = "Deleted"
	StatusLoading    = "Loading"
)

Variables

View Source
var CertStore atomic.Value
View Source
var DaemonJsonPath = "/etc/docker/daemon.json"
View Source
var DynamicRoutes = []string{
	`^/containers/composeDetail/[^/]+$`,
	`^/databases/mysql/setting/[^/]+/[^/]+$`,
	`^/databases/postgresql/setting/[^/]+/[^/]+$`,
	`^/websites/[^/]+/config/[^/]+$`,
}
View Source
var WebUrlMap = map[string]struct{}{}/* 112 elements not displayed */

Functions

This section is empty.

Types

type DBContext

type DBContext string

Jump to

Keyboard shortcuts

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