Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrRootBucketNotFound signals the database has not been properly initialized. ErrRootBucketNotFound = logicerr.New("root bucket not found") ErrGlobalNamespaceBucketNotFound = logicerr.New("global namespace bucket not found") ErrTargetTypeBucketNotFound = logicerr.New("target type bucket not found") ErrTargetNameBucketNotFound = logicerr.New("target name bucket not found") ErrBucketNotContainsChainID = logicerr.New("chain id not found in bucket") )
Functions ¶
This section is empty.
Types ¶
type DatabaseCore ¶
DatabaseCore interface provides methods to initialize and manage local override storage as database.
type LocalOverrideDatabase ¶
type LocalOverrideDatabase interface { DatabaseCore engine.LocalOverrideStorage }
LocalOverrideDatabase interface provides methods to manage local override storage as database and as the APE's local override storage.
func NewBoltLocalOverrideDatabase ¶
func NewBoltLocalOverrideDatabase(opts ...Option) LocalOverrideDatabase
NewBoltLocalOverrideDatabase returns storage wrapper for storing access policy engine local overrides.
chain storage (chainBucket): -> global namespace bucket (nBucket): --> target bucket (tBucket) ---> target name (resource) bucket (rBucket):
| Key | Value | x---------------------x-------------------x | chain id (string) | serialized chain | x---------------------x-------------------x
func NewInmemoryLocalOverrideDatabase ¶
func NewInmemoryLocalOverrideDatabase() LocalOverrideDatabase
type Option ¶
type Option func(*cfg)