roles

package
v0.0.0-...-2cf57f6 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Role

type Role struct {
	Name        string                    `json:"name" yaml:"name"`
	Type        permissions.NamespaceType `json:"type" yaml:"type"`
	Permissions []*permissions.Permission `json:"permissions" yaml:"permissions"`
}

func FindRole

func FindRole(name string) *Role

func NewRole

func NewRole(name string, nsType permissions.NamespaceType, perms ...*permissions.Permission) *Role

type SystemRole

type SystemRole struct {
	Name        string                    `json:"name" yaml:"name"`
	Permissions []*permissions.Permission `json:"permissions" yaml:"permissions"`
}

func FindSystemRole

func FindSystemRole(name string) *SystemRole

func NewSystemRole

func NewSystemRole(name string, perms ...*permissions.Permission) *SystemRole

Jump to

Keyboard shortcuts

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