roles

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Admin role
	Admin es.Role = "admin"

	// User role
	User es.Role = "user"

	// OnCall role
	OnCall es.Role = "oncall"

	// K8sOperator role
	K8sOperator es.Role = "k8soperator"
)

Roles

Variables

View Source
var AvailableRoles = []es.Role{
	Admin,
	User,
	K8sOperator,
	OnCall,
}

A list of all existing roles.

View Source
var AvailableRolesMap = make(map[uuid.UUID]es.Role)

A list of all existing roles.

Functions

func IdFromRole added in v0.3.0

func IdFromRole(role es.Role) uuid.UUID

func ToRole added in v0.3.0

func ToRole(role string) (es.Role, error)

func ValidateRole

func ValidateRole(role string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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