Documentation ¶
Index ¶
- Variables
- func CheckTicketExist(key Ticket) func(*bolt.Tx) error
- func DeleteTickets(ts ...Ticket) func(*bolt.Tx) error
- func Incept(key Ticket, l *auth.Login, db *bolt.DB) error
- func InceptNoTicket(l *auth.Login, db *bolt.DB) error
- func NewTicket(t Ticket) func(*bolt.Tx) error
- func NewTickets(ts ...Ticket) func(*bolt.Tx) error
- func PunchTicket(key Ticket) func(*bolt.Tx) error
- type ErrTicketMissing
- type Ticket
Constants ¶
This section is empty.
Variables ¶
View Source
var TicketBucket = store.Bucket("tickets")
Functions ¶
func Incept ¶
Incept checks that the given Ticket exists, and that the given User does not (by name.) Then it tries to create the given user, and delete the given key. Any error will cause this to roll back.
func InceptNoTicket ¶
InceptNoTicket is a method for admins to create a user without punching a Ticket.
Types ¶
type ErrTicketMissing ¶
type ErrTicketMissing string
func (ErrTicketMissing) Error ¶
func (e ErrTicketMissing) Error() string
Click to show internal directories.
Click to hide internal directories.