Documentation ¶
Index ¶
- func Compare(src, dst ACL) (map[uint32]Diff, error)
- func CompareWithPIN(src, dst ACL) (map[uint32]Diff, error)
- func GetCard(u uhppote.IUHPPOTE, devices []uhppote.Device, cardID uint32) (map[string]Permission, error)
- func Grant(u uhppote.IUHPPOTE, devices []uhppote.Device, cardID uint32, ...) error
- func MakeFlatFile(acl ACL, devices []uhppote.Device, f io.Writer) error
- func MakeFlatFileWithPIN(acl ACL, devices []uhppote.Device, f io.Writer) error
- func MakeTSV(acl ACL, devices []uhppote.Device, f io.Writer) error
- func MakeTSVWithPIN(acl ACL, devices []uhppote.Device, f io.Writer) error
- func PutACL(u uhppote.IUHPPOTE, acl ACL, dryrun bool, formats ...types.CardFormat) (map[uint32]Report, []error)
- func PutACLWithPIN(u uhppote.IUHPPOTE, acl ACL, dryrun bool, formats ...types.CardFormat) (map[uint32]Report, []error)
- func Revoke(u uhppote.IUHPPOTE, devices []uhppote.Device, cardID uint32, doors []string) error
- type ACL
- type ConsolidatedDiff
- type ConsolidatedReport
- type Diff
- type DuplicateCardError
- type Permission
- type Report
- type ReportSummary
- type SystemDiff
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeFlatFileWithPIN ¶ added in v0.8.4
func MakeTSVWithPIN ¶ added in v0.8.4
func PutACLWithPIN ¶ added in v0.8.4
Types ¶
type ConsolidatedDiff ¶
type ConsolidatedReport ¶
type ConsolidatedReport struct { Unchanged []uint32 `json:"unchanged"` Updated []uint32 `json:"updated"` Added []uint32 `json:"added"` Deleted []uint32 `json:"deleted"` Failed []uint32 `json:"failed"` Errored []uint32 `json:"errored"` }
func Consolidate ¶
func Consolidate(report map[uint32]Report) ConsolidatedReport
type Diff ¶
type Diff struct { Unchanged []types.Card Updated []types.Card Added []types.Card Deleted []types.Card }
func (*Diff) HasChanges ¶
type DuplicateCardError ¶
type DuplicateCardError struct {
CardNumber uint32
}
func (*DuplicateCardError) Error ¶
func (e *DuplicateCardError) Error() string
type ReportSummary ¶
type ReportSummary []struct { DeviceID uint32 `json:"device-id"` Unchanged int `json:"unchanged"` Updated int `json:"updated"` Added int `json:"added"` Deleted int `json:"deleted"` Failed int `json:"failed"` Errored int `json:"errored"` }
func Summarize ¶
func Summarize(report map[uint32]Report) ReportSummary
type SystemDiff ¶
func (*SystemDiff) Consolidate ¶
func (diff *SystemDiff) Consolidate() *ConsolidatedDiff
func (*SystemDiff) HasChanges ¶
func (diff *SystemDiff) HasChanges() bool
type Table ¶
func MakeTableWithPIN ¶ added in v0.8.4
func (*Table) MarshalText ¶
func (*Table) MarshalTextIndent ¶
Click to show internal directories.
Click to hide internal directories.