constant

package
v0.0.0-...-9970c52 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagConfigPath                    = "config-path"
	EmptyRoleSentinel                 = "__empty__"
	OAuth2ProviderList                = "oauth2:provider:list"
	TenantIDHeader                    = "X-Tenant-Id"
	TenantOptionsCacheKey             = "options"
	AlertStatusResolved               = "resolved"
	AlertStatusFiring                 = "firing"
	AlertChannelTopicUpdate           = "alert:channel:update"
	AlertChannelTopicDelete           = "alert:channel:delete"
	AlertDBTenantKey                  = "cluster"
	AlertCleanDuplicateHistoryLockKey = "alert:clean:duplicate:history"
	AlertCleanExpiredSilencesLockKey  = "alert:clean:expired:silences"
	AlertCleanInhibitLockKey          = "alert:clean:expired:inhibit"
)

Variables

View Source
var (
	UserContextKey      = userContextKey{}
	ProviderContextKey  = providerContextKey{}
	RequestIDContextKey = requestIDContextKey{}
	TenantIDContextKey  = tenantIDContextKey{}
	ApiData             apitypes.ServerApiData
)
View Source
var (
	ErrAuthFailed    = errors.New("auth failed")
	ErrNoPermission  = errors.New("access forbidden")
	ErrLoginFailed   = errors.New("incorrect username or password")
	ErrUserNotFound  = errors.New("user not found")
	ErrPasswordWrong = errors.New("password incorrect")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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