Documentation ¶
Index ¶
Constants ¶
View Source
const CName = "coordinator.aclEventLog"
Variables ¶
View Source
var (
ErrNoIdentity = errors.New("no identity")
)
Functions ¶
This section is empty.
Types ¶
type AclEventLog ¶
type AclEventLog interface { AddLog(ctx context.Context, event AclEventLogEntry) (err error) GetAfter(ctx context.Context, identity, afterId string, limit uint32) (records []AclEventLogEntry, hasMore bool, err error) app.ComponentRunnable }
func New ¶
func New() AclEventLog
type AclEventLogEntry ¶
type AclEventLogEntry struct { Id *primitive.ObjectID `bson:"_id,omitempty"` SpaceId string `bson:"spaceId"` PeerId string `bson:"peerId"` Owner string `bson:"owner"` Timestamp int64 `bson:"timestamp"` EntryType EventLogEntryType `bson:"entryType"` // only for EntryTypeSpaceAclAddRecord AclChangeId string `bson:"aclChangeId"` }
type EventLogEntryType ¶
type EventLogEntryType uint8
const ( EntryTypeSpaceReceipt EventLogEntryType = 0 EntryTypeSpaceAclAddRecord EventLogEntryType = 3 )
Directories ¶
Path | Synopsis |
---|---|
Package mock_acleventlog is a generated GoMock package.
|
Package mock_acleventlog is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.