acl

package
v0.5.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const CName = "coordinator.acl"

Variables

View Source
var ErrLimitExceed = errors.New("limit exceed")

Functions

This section is empty.

Types

type AclService

type AclService interface {
	AddRecord(ctx context.Context, spaceId string, rec *consensusproto.RawRecord, limits Limits) (result *consensusproto.RawRecordWithId, err error)
	RecordsAfter(ctx context.Context, spaceId, aclHead string) (result []*consensusproto.RawRecordWithId, err error)
	Permissions(ctx context.Context, identity crypto.PubKey, spaceId string) (res list.AclPermissions, err error)
	OwnerPubKey(ctx context.Context, spaceId string) (ownerIdentity crypto.PubKey, err error)
	ReadState(ctx context.Context, spaceId string, f func(s *list.AclState) error) (err error)
	HasRecord(ctx context.Context, spaceId, recordId string) (has bool, err error)
	app.ComponentRunnable
}

func New

func New() AclService

type Limits

type Limits struct {
	ReadMembers  uint32
	WriteMembers uint32
}

Directories

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

Jump to

Keyboard shortcuts

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