** A group that users can belong to, with associated channel permissions. */
| 25 | |
| 26 | /** A group that users can belong to, with associated channel permissions. */ |
| 27 | type roleImpl struct { |
| 28 | Name_ string `json:"name,omitempty"` |
| 29 | ExplicitChannels_ ch.TimedSet `json:"admin_channels,omitempty"` |
| 30 | Channels_ ch.TimedSet `json:"all_channels"` |
| 31 | Sequence_ uint64 `json:"sequence"` |
| 32 | ChannelHistory_ TimedSetHistory `json:"channel_history,omitempty"` // Added to when a previously granted channel is revoked. Calculated inside of RebuildChannels. |
| 33 | ChannelInvalSeq uint64 `json:"channel_inval_seq,omitempty"` // Sequence at which the channels were invalidated. Data remains in Channels_ for history calculation. |
| 34 | Deleted bool `json:"deleted,omitempty"` |
| 35 | CollectionsAccess map[string]map[string]*CollectionAccess `json:"collection_access,omitempty"` // Nested maps of CollectionAccess, indexed by scope and collection name |
| 36 | UpdatedAt time.Time `json:"updated_at"` |
| 37 | CreatedAt time.Time `json:"created_at"` |
| 38 | cas uint64 |
| 39 | docID string // key used to store the roleImpl |
| 40 | } |
| 41 | |
| 42 | type TimedSetHistory map[string]GrantHistory |
| 43 |
nothing calls this directly
no outgoing calls
no test coverage detected