MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / roleImpl

Struct roleImpl

auth/role.go:27–40  ·  view source on GitHub ↗

** A group that users can belong to, with associated channel permissions. */

Source from the content-addressed store, hash-verified

25
26/** A group that users can belong to, with associated channel permissions. */
27type 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
42type TimedSetHistory map[string]GrantHistory
43

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected