Documentation
¶
Index ¶
- func AppendEvents(list types.EventsList)
- func Cards(uid, role string, start int, count int) []schema.Object
- func Controllers(uid, role string) []schema.Object
- func Doors(uid, role string) []schema.Object
- func Events(uid, role string, start, count int) []schema.Object
- func GetUser(uid string) (auth.IUser, bool)
- func Groups(uid, role string) []schema.Object
- func HasAdmin(role string) bool
- func Init(cfg config.Config, conf string, mode types.RunMode, debug bool) error
- func Interfaces(uid, role string) []schema.Object
- func Logs(uid, role string, start, count int) []schema.Object
- func MakeAdminUser(name, uid, pwd, role string) error
- func RevokeOTP(uid, role string) error
- func SetDefaultCardEndDate(v string)
- func SetDefaultCardStartDate(v string)
- func SetOTP(uid, role, secret string) error
- func SetPassword(uid, role, pwd string) error
- func SynchronizeACL() error
- func SynchronizeDateTime() error
- func SynchronizeDoors() error
- func UpdateCards(uid, role string, m map[string]interface{}) (interface{}, error)
- func UpdateControllers(m map[string]interface{}, a *auth.Authorizator) (interface{}, error)
- func UpdateDoors(uid, role string, m map[string]interface{}) (interface{}, error)
- func UpdateGroups(uid, role string, m map[string]interface{}) (interface{}, error)
- func UpdateInterfaces(uid, role string, m map[string]interface{}) (interface{}, error)
- func UpdateUsers(uid, role string, m map[string]interface{}) (interface{}, error)
- func UserLogin(uid, role string, err error)
- func Users(uid, role string) []schema.Object
- type Tag
- type Task
- type TaskQ
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendEvents ¶
func AppendEvents(list types.EventsList)
func Controllers ¶
func Interfaces ¶
func MakeAdminUser ¶ added in v0.8.9
func SetDefaultCardEndDate ¶ added in v0.8.9
func SetDefaultCardEndDate(v string)
func SetDefaultCardStartDate ¶ added in v0.8.9
func SetDefaultCardStartDate(v string)
func SetPassword ¶
func SynchronizeACL ¶
func SynchronizeACL() error
func SynchronizeDateTime ¶
func SynchronizeDateTime() error
func SynchronizeDoors ¶
func SynchronizeDoors() error
func UpdateCards ¶
func UpdateControllers ¶
func UpdateControllers(m map[string]interface{}, a *auth.Authorizator) (interface{}, error)
func UpdateDoors ¶
func UpdateGroups ¶
func UpdateInterfaces ¶
func UpdateUsers ¶
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.