utils

package
v0.51.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 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"
)
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

Types

This section is empty.

Jump to

Keyboard shortcuts

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