enforce

package
v0.0.0-...-8fb0621 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enforce

func Enforce(tenantDatabaseClient *gorm.DB, u models.User, d models.Domain, o models.Object, a models.Action) bool

func GetDomains

func GetDomains(tenantDatabaseClient *gorm.DB, domain models.Domain) []models.Domain

func GetObjects

func GetObjects(tenantDatabaseClient *gorm.DB, object models.Object) []models.Object

func GetPermissions

func GetPermissions(tenantDatabaseClient *gorm.DB, role models.Role, domain models.Domain, object models.Object, action models.Action) (permissions []models.Permission)

func GetRoles

func GetRoles(tenantDatabaseClient *gorm.DB, user models.User, domain models.Domain) (roles []models.Role)

func InDomainsObject

func InDomainsObject(d models.Domain, domains []models.Domain) bool

func IsDomainAncestor

func IsDomainAncestor(tenantDatabaseClient *gorm.DB, domain models.Domain, d models.Domain) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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