admin

package
Version: v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package admin contains controllers for system wide administrative actions.

Index

Constants

View Source
const (
	// QueryFromSearch is the query key for a starting time.
	QueryFromSearch = "from"

	// QueryToSearch is the query key for an ending time.
	QueryToSearch = "to"

	// QueryRealmIDSearch is the query key to filter by realmID.
	QueryRealmIDSearch = "realm_id"

	// QueryIncludeTest is the query key to filter on events from test or not.
	QueryIncludeTest = "include_test"
)
View Source
const (
	// QueryKeySearch is the query key where the search query exists.
	QueryKeySearch = "q"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func New

func New(
	config *config.ServerConfig,
	cacher cache.Cacher,
	db *database.Database,
	authProvider auth.Provider,
	limiter limiter.Store,
	h *render.Renderer,
) *Controller

func (*Controller) HandleCachesClear added in v0.12.1

func (c *Controller) HandleCachesClear() http.Handler

HandleCachesClear clears the given caches.

func (*Controller) HandleCachesIndex added in v0.12.1

func (c *Controller) HandleCachesIndex() http.Handler

HandleCachesIndex shows the caches page.

func (*Controller) HandleEmailUpdate added in v0.14.0

func (c *Controller) HandleEmailUpdate() http.Handler

HandleEmailUpdate creates or updates the Email config.

func (*Controller) HandleEventsShow added in v0.16.0

func (c *Controller) HandleEventsShow() http.Handler

HandleEventsShow shows event logs.

func (*Controller) HandleInfoShow added in v0.9.0

func (c *Controller) HandleInfoShow() http.Handler

HandleInfoShow renders the list of system admins.

func (*Controller) HandleMobileAppsIndex added in v0.32.0

func (c *Controller) HandleMobileAppsIndex() http.Handler

HandleMobileAppsIndex displays a list of all mobile apps.

func (*Controller) HandleMobileAppsShow added in v0.16.0

func (c *Controller) HandleMobileAppsShow() http.Handler

func (*Controller) HandleRealmsAdd added in v0.16.0

func (c *Controller) HandleRealmsAdd() http.Handler

func (*Controller) HandleRealmsCreate added in v0.9.0

func (c *Controller) HandleRealmsCreate() http.Handler

func (*Controller) HandleRealmsIndex added in v0.9.0

func (c *Controller) HandleRealmsIndex() http.Handler

func (*Controller) HandleRealmsRemove added in v0.16.0

func (c *Controller) HandleRealmsRemove() http.Handler

func (*Controller) HandleRealmsUpdate added in v0.10.0

func (c *Controller) HandleRealmsUpdate() http.Handler

func (*Controller) HandleSMSUpdate added in v0.10.0

func (c *Controller) HandleSMSUpdate() http.Handler

HandleSMSUpdate creates or updates the SMS config.

func (*Controller) HandleSystemAdminCreate added in v0.16.0

func (c *Controller) HandleSystemAdminCreate() http.Handler

HandleSystemAdminCreate creates a new system admin.

func (*Controller) HandleSystemAdminRevoke added in v0.16.0

func (c *Controller) HandleSystemAdminRevoke() http.Handler

HandleSystemAdminRevoke removes admin from a system admin.

func (*Controller) HandleUserDelete added in v0.16.0

func (c *Controller) HandleUserDelete() http.Handler

HandleUserDelete deletes a user from the system.

func (*Controller) HandleUserReportIndex added in v1.2.0

func (c *Controller) HandleUserReportIndex() http.Handler

func (*Controller) HandleUserReportPurge added in v1.2.0

func (c *Controller) HandleUserReportPurge() http.Handler

func (*Controller) HandleUserShow added in v0.16.0

func (c *Controller) HandleUserShow() http.Handler

HandleUserShow renders details about a user.

func (*Controller) HandleUsersIndex added in v0.9.0

func (c *Controller) HandleUsersIndex() http.Handler

HandleUsersIndex renders the list of all non-system-admin users.

Jump to

Keyboard shortcuts

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