-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
38 lines (33 loc) · 980 Bytes
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package models
type AuthResource struct {
Name *string `db:"name,pk"`
Application *string `db:"application,pk"`
Enabled *bool `db:"enabled"`
}
type AuthRole struct {
Name *string `db:"name,pk"`
Enabled *bool `db:"enabled"`
}
type AuthAccessControlList struct {
Role *string `db:"role,pk"`
Resource *string `db:"resource,pk"`
Permission *string `db:"permission,pk"`
Enabled *bool `db:"enabled"`
}
type AuthUser struct {
Username *string `db:"username,pk"`
Role *string `db:"role"`
Password *string `db:"password"`
Passphrase *string `db:"passphrase"`
Enabled *bool `db:"enabled"`
}
type AuthPrincipal struct {
Username *string `db:"username,pk"`
Role *string `db:"role"`
Application *string `db:"application,pk"`
Resource *string `db:"resource"`
Permission *string `db:"permission"`
Password *string `db:"password"`
Passphrase *string `db:"passphrase"`
Enabled *bool `db:"enabled"`
}