system

package
v0.8.10 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendEvents

func AppendEvents(list types.EventsList)

func Cards

func Cards(uid, role string, start int, count int) []schema.Object

func Controllers

func Controllers(uid, role string) []schema.Object

func Doors

func Doors(uid, role string) []schema.Object

func Events

func Events(uid, role string, start, count int) []schema.Object

func GetUser added in v0.8.3

func GetUser(uid string) (auth.IUser, bool)

func Groups

func Groups(uid, role string) []schema.Object

func HasAdmin added in v0.8.9

func HasAdmin(role string) bool

func Init

func Init(cfg config.Config, conf string, mode types.RunMode, debug bool) error

func Interfaces

func Interfaces(uid, role string) []schema.Object

func Logs

func Logs(uid, role string, start, count int) []schema.Object

func MakeAdminUser added in v0.8.9

func MakeAdminUser(name, uid, pwd, role string) error

func RevokeOTP added in v0.8.3

func RevokeOTP(uid, role string) error

func SetDefaultCardEndDate added in v0.8.9

func SetDefaultCardEndDate(v string)

func SetDefaultCardStartDate added in v0.8.9

func SetDefaultCardStartDate(v string)

func SetOTP added in v0.8.3

func SetOTP(uid, role, secret string) error

func SetPassword

func SetPassword(uid, role, pwd string) error

func SynchronizeACL

func SynchronizeACL() error

func SynchronizeDateTime

func SynchronizeDateTime() error

func SynchronizeDoors

func SynchronizeDoors() error

func UpdateCards

func UpdateCards(uid, role string, m map[string]interface{}) (interface{}, error)

func UpdateControllers

func UpdateControllers(m map[string]interface{}, a *auth.Authorizator) (interface{}, error)

func UpdateDoors

func UpdateDoors(uid, role string, m map[string]interface{}) (interface{}, error)

func UpdateGroups

func UpdateGroups(uid, role string, m map[string]interface{}) (interface{}, error)

func UpdateInterfaces

func UpdateInterfaces(uid, role string, m map[string]interface{}) (interface{}, error)

func UpdateUsers

func UpdateUsers(uid, role string, m map[string]interface{}) (interface{}, error)

func UserLogin added in v0.8.3

func UserLogin(uid, role string, err error)

func Users

func Users(uid, role string) []schema.Object

Types

type Tag

type Tag string
const (
	TagInterfaces  Tag = "interfaces"
	TagControllers Tag = "controllers"
	TagDoors       Tag = "doors"
	TagCards       Tag = "cards"
	TagGroups      Tag = "groups"
	TagEvents      Tag = "events"
	TagLogs        Tag = "logs"
	TagUsers       Tag = "users"
	TagHistory     Tag = "history"
)

type Task

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

type TaskQ

type TaskQ interface {
	Add(task Task)
}

func NewTaskQ

func NewTaskQ() TaskQ

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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