Documentation
¶
Index ¶
- Constants
- func AILearning(ctx *context.Context)
- func AILearningDelete(ctx *context.Context)
- func AILearningDeleteMultiple(ctx *context.Context)
- func AILearningEdit(ctx *context.Context)
- func AILearningEditPost(ctx *context.Context)
- func ActivateEmail(ctx *context.Context)
- func AdoptOrDeleteRepository(ctx *context.Context)
- func Applications(ctx *context.Context)
- func ApplicationsPost(ctx *context.Context)
- func ApplicationsRegenerateSecret(ctx *context.Context)
- func Authentications(ctx *context.Context)
- func AvatarPost(ctx *context.Context)
- func ChangeConfig(ctx *context.Context)
- func ChangeThemeIcon(ctx *context.Context)
- func ChangeThemeLogo(ctx *context.Context)
- func CleanupExpiredData(ctx *context.Context)
- func Config(ctx *context.Context)
- func ConfigSettings(ctx *context.Context)
- func CronTasks(ctx *context.Context)
- func Dashboard(ctx *context.Context)
- func DashboardPost(ctx *context.Context)
- func DashboardServerStats(ctx *context.Context)
- func DefaultOrSystemWebhooks(ctx *context.Context)
- func DeleteApplication(ctx *context.Context)
- func DeleteAuthSource(ctx *context.Context)
- func DeleteAvatar(ctx *context.Context)
- func DeleteDefaultOrSystemWebhook(ctx *context.Context)
- func DeleteEmail(ctx *context.Context)
- func DeleteNotices(ctx *context.Context)
- func DeletePackageVersion(ctx *context.Context)
- func DeleteRepo(ctx *context.Context)
- func DeleteUser(ctx *context.Context)
- func EditApplication(ctx *context.Context)
- func EditApplicationPost(ctx *context.Context)
- func EditAuthSource(ctx *context.Context)
- func EditAuthSourcePost(ctx *context.Context)
- func EditUser(ctx *context.Context)
- func EditUserPost(ctx *context.Context)
- func Emails(ctx *context.Context)
- func EmptyNotices(ctx *context.Context)
- func FormatBytes(bytes uint64) string
- func MonitorDiagnosis(ctx *context.Context)
- func MonitorStats(ctx *context.Context)
- func NewAuthSource(ctx *context.Context)
- func NewAuthSourcePost(ctx *context.Context)
- func NewUser(ctx *context.Context)
- func NewUserPost(ctx *context.Context)
- func Notices(ctx *context.Context)
- func Organizations(ctx *context.Context)
- func Packages(ctx *context.Context)
- func PerfTrace(ctx *context.Context)
- func Plugins(ctx *context.Context)
- func QueueManage(ctx *context.Context)
- func QueueRemoveAllItems(ctx *context.Context)
- func QueueSet(ctx *context.Context)
- func Queues(ctx *context.Context)
- func RedirectToDefaultSetting(ctx *context.Context)
- func Repos(ctx *context.Context)
- func SelfCheck(ctx *context.Context)
- func SelfCheckPost(ctx *context.Context)
- func SendTestMail(ctx *context.Context)
- func Stacktrace(ctx *context.Context)
- func StacktraceCancel(ctx *context.Context)
- func SystemStatus(ctx *context.Context)
- func TestCache(ctx *context.Context)
- func UnadoptedRepos(ctx *context.Context)
- func Users(ctx *context.Context)
- func ViewUser(ctx *context.Context)
- type AILearningStats
- type PluginInfo
- type ServerStats
Constants ¶
const UserSearchDefaultAdminSort = "alphabetically"
UserSearchDefaultAdminSort is the default sort type for admin view
Variables ¶
This section is empty.
Functions ¶
func AILearning ¶
AILearning shows the AI Learning patterns admin page
func AILearningDelete ¶
AILearningDelete handles deletion of error patterns
func AILearningDeleteMultiple ¶
AILearningDeleteMultiple handles bulk deletion of error patterns
func AILearningEdit ¶
AILearningEdit shows the edit form for an error pattern
func AILearningEditPost ¶
AILearningEditPost handles the edit form submission
func ActivateEmail ¶
ActivateEmail serves a POST request for activating/deactivating a user's email
func AdoptOrDeleteRepository ¶
AdoptOrDeleteRepository adopts or deletes a repository
func Applications ¶
Applications render org applications page (for org, at the moment, there are only OAuth2 applications)
func ApplicationsPost ¶
ApplicationsPost response for adding an oauth2 application
func ApplicationsRegenerateSecret ¶
ApplicationsRegenerateSecret handles the post request for regenerating the secret
func Authentications ¶
Authentications show authentication config page
func AvatarPost ¶
AvatarPost response for change user's avatar request
func ChangeThemeIcon ¶
ChangeThemeIcon handles site icon (favicon + navbar) upload and custom URL
func ChangeThemeLogo ¶
ChangeThemeLogo handles homepage logo upload and custom URL
func DashboardServerStats ¶
ServerStats returns the server stats partial for HTMX refresh
func DefaultOrSystemWebhooks ¶
DefaultOrSystemWebhooks renders both admin default and system webhook list pages
func DeleteApplication ¶
DeleteApplication deletes the given oauth2 application
func DeleteAuthSource ¶
DeleteAuthSource response for deleting an auth source
func DeleteDefaultOrSystemWebhook ¶
DeleteDefaultOrSystemWebhook handler to delete an admin-defined system or default webhook
func DeleteEmail ¶
DeleteEmail serves a POST request for delete a user's email
func DeleteNotices ¶
DeleteNotices delete the specific notices
func DeletePackageVersion ¶
DeletePackageVersion deletes a package version
func EditApplication ¶
EditApplication displays the given application
func EditApplicationPost ¶
EditApplicationPost response for editing oauth2 application
func EditAuthSource ¶
EditAuthSource render editing auth source page
func EditAuthSourcePost ¶
EditAuthSourcePost response for editing auth source
func FormatBytes ¶
FormatBytes formats bytes to human readable string
func NewAuthSource ¶
NewAuthSource render adding a new auth source page
func NewAuthSourcePost ¶
NewAuthSourcePost response for adding an auth source
func NewUserPost ¶
NewUserPost response for adding a new user
func Organizations ¶
Organizations show all the organizations
func QueueManage ¶
QueueManage shows details for a specific queue
func QueueSet ¶
QueueSet sets the maximum number of workers and other settings for this queue
func SendTestMail ¶
SendTestMail send test mail to confirm mail service is OK
func Stacktrace ¶
Stacktrace show admin monitor goroutines page
func StacktraceCancel ¶
StacktraceCancel cancels a process
func UnadoptedRepos ¶
UnadoptedRepos lists the unadopted repositories
Types ¶
type AILearningStats ¶
type AILearningStats struct {
TotalPatterns int64
TotalOccurrences int64
TotalSuccesses int64
SuccessRate float64
TopRunnerTypes []string
TopProjectTypes []string
}
AILearningStats holds statistics for the AI Learning dashboard
type PluginInfo ¶
type PluginInfo struct {
Name string
Version string
Description string
Features []string
LicenseInfo *plugins.LicenseInfo
}
PluginInfo contains display information about a plugin
type ServerStats ¶
type ServerStats struct {
CPULoad float64
NumCPU int
NumGoroutine int
MemTotal int64
MemUsed int64
MemPercent float64
DiskTotal int64
DiskUsed int64
DiskFree int64
DiskPercent float64
Uptime time.Duration
StartTime time.Time
Status string
}
ServerStats holds server system statistics
func GetServerStats ¶
func GetServerStats() *ServerStats
GetServerStats collects current server statistics
Source Files
¶
- admin.go
- ai_learning.go
- applications.go
- auths.go
- config.go
- diagnosis.go
- emails.go
- hooks.go
- notice.go
- orgs.go
- packages.go
- perftrace.go
- plugins.go
- queue.go
- queue_tester.go
- repos.go
- runners.go
- server_stats.go
- server_stats_unix.go
- stacktrace.go
- users.go