az

package
v0.0.0-...-8150c2d Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2019 License: AGPL-3.0 Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Az

type Az interface {
	Authenticate(username string) string
	Identify(r *http.Request) (Principal, error)
}

type Directory

type Directory interface {
	Lookup(username string) (Principal, error)
}

type Principal

type Principal interface {
	Id() int64
	WorkgroupId() int64
	Name() string
	Password() string
	IsActive() bool
	IsSuperuser() bool
	HasPermission(code int64) bool
	CheckPermission(code int64) error
	Owns(entityTypeId, entityId int64) (bool, error)
	CanEdit(entityTypeId, entityId int64) (bool, error)
	CanView(entityTypeId, entityId int64) (bool, error)
	CheckOwns(entityTypeId, entityId int64) error
	CheckEdit(entityTypeId, entityId int64) error
	CheckView(entityTypeId, entityId int64) error
}

Jump to

Keyboard shortcuts

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