liststorage

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownAclId  = errors.New("acl does not exist")
	ErrAclExists     = errors.New("acl already exists")
	ErrUnknownRecord = errors.New("record doesn't exist")
)

Functions

This section is empty.

Types

type Exporter

type Exporter interface {
	ListStorage(root *aclrecordproto.RawAclRecordWithId) (ListStorage, error)
}

type ListStorage

type ListStorage interface {
	Id() string
	Root() (*aclrecordproto.RawAclRecordWithId, error)
	Head() (string, error)
	SetHead(headId string) error

	GetRawRecord(ctx context.Context, id string) (*aclrecordproto.RawAclRecordWithId, error)
	AddRawRecord(ctx context.Context, rec *aclrecordproto.RawAclRecordWithId) error
}

func NewInMemoryAclListStorage

func NewInMemoryAclListStorage(
	id string,
	records []*aclrecordproto.RawAclRecordWithId) (ListStorage, error)

Directories

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

Jump to

Keyboard shortcuts

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