utils

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ParamDashboard         = "dashboard"
	ParamName              = "name"
	ParamProject           = "project"
	APIPrefix              = "/api"
	PathAuth               = "auth"
	PathAuthProviders      = "auth/providers"
	PathLogin              = "login"
	PathCallback           = "callback"
	PathLogout             = "logout"
	PathRefresh            = "refresh"
	PathDeviceCode         = "device/code"
	PathToken              = "token"
	AuthKindNative         = "native"
	AuthKindOIDC           = "oidc"
	AuthKindOAuth          = "oauth"
	APIV1Prefix            = "/api/v1"
	PathDashboard          = "dashboards"
	PathDatasource         = "datasources"
	PathEphemeralDashboard = "ephemeraldashboards"
	PathFolder             = "folders"
	PathGlobalDatasource   = "globaldatasources"
	PathGlobalRole         = "globalroles"
	PathGlobalRoleBinding  = "globalrolebindings"
	PathGlobalSecret       = "globalsecrets"
	PathGlobalVariable     = "globalvariables"
	PathProject            = "projects"
	PathRole               = "roles"
	PathRoleBinding        = "rolebindings"
	PathSecret             = "secrets"
	PathUnsaved            = "unsaved"
	PathUser               = "users"
	PathVariable           = "variables"
	PathView               = "view"
	ContextKeyAnonymous    = "anonymous"
)
View Source
const MetricNamespace = "perses"

Variables

ProjectResourcePathList is containing the list of the resource path that is part of a project.

Functions

func GetMetadataProject

func GetMetadataProject(metadata api.Metadata) string

GetMetadataProject Retrieve project from entity metadata

func GetNameParameter

func GetNameParameter(ctx echo.Context) string

func GetProjectParameter

func GetProjectParameter(ctx echo.Context) string

func IsAnonymous added in v0.52.0

func IsAnonymous(ctx echo.Context) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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