domain
go
import "github.com/prescriptoo/prescriptoo-api/services/authorization/internal/domain"1
Package domain defines private authorization snapshots.
Index
type Member
Member binds versioned assignments and overrides to a membership incarnation.
go
type Member struct {
MembershipID string
Version int64
RoleIDs []string
Overrides []p.PermissionOverride
}1
2
3
4
5
6
2
3
4
5
6
type State
State contains one consistent scope snapshot.
go
type State struct {
Roles map[string]p.Role
Members map[string]Member
}1
2
3
4
2
3
4
func Clone
go
func Clone(source *State) *State1
Clone copies a scope snapshot without sharing mutable grant slices.
func Empty
go
func Empty() *State1
Empty creates an empty scope snapshot.
Generated by gomarkdoc