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

Struct CollectionAccess

auth/collection_access.go:137–144  ·  view source on GitHub ↗

Defines channel grants and history for a single collection

Source from the content-addressed store, hash-verified

135
136// Defines channel grants and history for a single collection
137type CollectionAccess struct {
138 ExplicitChannels_ ch.TimedSet `json:"admin_channels,omitempty"`
139 Channels_ ch.TimedSet `json:"all_channels,omitempty"`
140 ChannelHistory_ TimedSetHistory `json:"channel_history,omitempty"` // Added to when a previously granted channel is revoked. Calculated inside of RebuildChannels.
141 ChannelInvalSeq uint64 `json:"channel_inval_seq,omitempty"` // Sequence at which the channels were invalidated. Data remains in Channels_ for history calculation.
142 JWTChannels_ ch.TimedSet `json:"jwt_channels,omitempty"` // TODO: JWT properties should only be populated for user but would like to share scope/collection map
143 JWTLastUpdated *time.Time `json:"jwt_last_updated,omitempty"`
144}
145
146func (ca *CollectionAccess) ExplicitChannels() ch.TimedSet {
147 return ca.ExplicitChannels_

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected