scope

package
v0.0.0-...-5ff450b Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scope

type Scope string

Scope defines a permission attached to a role an required to perform an operation.

const (
	ListProblemSets       Scope = "problem-sets:list"
	ReadProblemSet        Scope = "problem-sets:read:one"
	CreateProblemSet      Scope = "problem-sets:create:one"
	UpdateProblemSet      Scope = "problem-sets:update:one"
	DeleteProblemSet      Scope = "problem-sets:delete:one"
	ListProblemSetCycles  Scope = "problem-sets:cycles:list"
	CreateProblemSetCycle Scope = "problem-sets:cycles:create:one"
)

Problem set scopes

const (
	ReadCycle   Scope = "cycles:read:one"
	UpdateCycle Scope = "cycles:update:one"
)

Cycle scopes

Jump to

Keyboard shortcuts

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