Pre-compile globs for matching during authorization in acl

This commit is contained in:
Kelvin Clement Mwinuka
2024-01-06 20:58:26 +03:00
parent 90782ea5ff
commit 5668b759e5
4 changed files with 63 additions and 29 deletions

View File

@@ -6,6 +6,11 @@ import (
"strings"
)
type Password struct {
PasswordType string `json:"PasswordType" yaml:"PasswordType"` // plaintext, SHA256
PasswordValue string `json:"PasswordValue" yaml:"PasswordValue"`
}
type User struct {
Username string `json:"Username" yaml:"Username"`
Enabled bool `json:"Enabled" yaml:"Enabled"`