aarifullin
0f45e3d344
All checks were successful
DCO action / DCO (pull_request) Successful in 2m10s
Vulncheck / Vulncheck (pull_request) Successful in 3m26s
Build / Build Components (1.20) (pull_request) Successful in 5m41s
Build / Build Components (1.21) (pull_request) Successful in 5m44s
Tests and linters / Staticcheck (pull_request) Successful in 7m10s
Tests and linters / Lint (pull_request) Successful in 8m14s
Tests and linters / Tests (1.21) (pull_request) Successful in 14m24s
Tests and linters / Tests (1.20) (pull_request) Successful in 14m41s
Tests and linters / Tests with -race (pull_request) Successful in 14m38s
Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
22 lines
524 B
Go
22 lines
524 B
Go
package chainbase
|
|
|
|
import (
|
|
"context"
|
|
|
|
"git.frostfs.info/TrueCloudLab/policy-engine/pkg/engine"
|
|
)
|
|
|
|
// DatabaseCore interface provides methods to initialize and manage local override storage
|
|
// as database.
|
|
type DatabaseCore interface {
|
|
Init() error
|
|
Open(context.Context) error
|
|
Close() error
|
|
}
|
|
|
|
// LocalOverrideDatabase interface provides methods to manage local override storage
|
|
// as database and as the APE's local override storage.
|
|
type LocalOverrideDatabase interface {
|
|
DatabaseCore
|
|
engine.LocalOverrideStorage
|
|
}
|