Documentation
¶
Index ¶
- Constants
- Variables
- func AppendIfMissing[T comparable](slice []T, value T) ([]T, bool)
- func GetMetadataProject(metadata api.Metadata) string
- func GetNameParameter(ctx echo.Context) string
- func GetProjectParameter(ctx echo.Context) string
- func ValidateMetadata(ctx echo.Context, metadata api.Metadata) error
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" AuthKindNative = "native" AuthKindOIDC = "oidc" AuthKindOAuth = "oauth" APIV1Prefix = "/api/v1" PathDashboard = "dashboards" PathDatasource = "datasources" 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" )
Variables ¶
View Source
var ProjectResourcePathList = []string{ PathDashboard, PathDatasource, PathFolder, PathRole, PathRoleBinding, PathSecret, PathVariable, }
ProjectResourcePathList is containing the list of the resource path that is part of a project.
Functions ¶
func AppendIfMissing ¶ added in v0.43.0
func AppendIfMissing[T comparable](slice []T, value T) ([]T, bool)
AppendIfMissing will append the value in the slice, only if not already present. Will return a boolean saying if the value has been appended or not.
func GetMetadataProject ¶
GetMetadataProject Retrieve project from entity metadata
func GetNameParameter ¶
func GetProjectParameter ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.