config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	GrafanaAdmin bool  `json:"grafanaAdmin,omitempty"`
	Orgs         []Org `json:"orgs"`
}

type Groups

type Groups map[string]Group

func ValidUserGroups

func ValidUserGroups(userGroups []string, groups Groups) Groups

UserGroupsInConfig matches the user groups (from claims) that are present in config and returns a filtered set of Groups

type Org

type Org struct {
	ID   int64  `json:"id"`
	Role string `json:"role"`
}

Jump to

Keyboard shortcuts

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