auth_permissions

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBQuerier

type DBQuerier interface {
	permissions_models.Querier
	DB() *sql.DB
	BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)
}

func NewQueries

func NewQueries(db *sql.DB) (DBQuerier, error)

type PermissionsBackend

type PermissionsBackend struct {
	// contains filtered or unexported fields
}

func NewPermissionsBackend

func NewPermissionsBackend(db DBQuerier) *PermissionsBackend

func (*PermissionsBackend) HasObjectPermission

func (pb *PermissionsBackend) HasObjectPermission(r *http.Request, obj interface{}, perms ...string) bool

func (*PermissionsBackend) HasPermission

func (pb *PermissionsBackend) HasPermission(r *http.Request, perms ...string) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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