acleventlog

package
v0.3.28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2024 License: MIT Imports: 9 Imported by: 0

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
	EntryTypeSpaceShared       EventLogEntryType = 1
	EntryTypeSpaceUnshared     EventLogEntryType = 2
	EntryTypeSpaceAclAddRecord EventLogEntryType = 3
)

Directories

Path Synopsis
Package mock_acleventlog is a generated GoMock package.
Package mock_acleventlog is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL