acl

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusInternalServerError = uhppoted.StatusInternalServerError
	StatusBadRequest          = uhppoted.StatusBadRequest
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ACL

type ACL struct {
	UHPPOTE     uhppote.IUHPPOTE
	Devices     []uhppote.Device
	RSA         *auth.RSA
	Credentials *credentials.Credentials
	Region      string
	Verify      map[Verification]bool
}

func (*ACL) Compare

func (a *ACL) Compare(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)

func (*ACL) Download

func (a *ACL) Download(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)

func (*ACL) Grant

func (a *ACL) Grant(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)

func (*ACL) Revoke

func (a *ACL) Revoke(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)

func (*ACL) Show

func (a *ACL) Show(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)

func (*ACL) Upload

func (a *ACL) Upload(impl uhppoted.IUHPPOTED, request []byte) (interface{}, error)

type Permission

type Permission struct {
	Door      string     `json:"door"`
	StartDate types.Date `json:"start-date"`
	EndDate   types.Date `json:"end-date"`
	Profile   int        `json:"profile,omitempty"`
}

type Permissions

type Permissions struct {
	CardNumber  uint32       `json:"card-number"`
	Permissions []Permission `json:"permissions"`
}

type Report

type Report struct {
	DateTime types.DateTime
	Diffs    map[uint32]api.Diff
}

type Verification added in v0.8.2

type Verification int
const (
	None Verification = iota
	NotEmpty
	RSA
)

func (Verification) String added in v0.8.2

func (v Verification) String() string

Jump to

Keyboard shortcuts

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