From 42355df2a25274f2af80b091eb991449c3691a19 Mon Sep 17 00:00:00 2001 From: Jean Date: Fri, 22 Mar 2024 03:44:58 +0100 Subject: [PATCH] renamed to purbkv --- store/kv/blob.go | 2 +- store/kv/bucket.go | 2 +- store/kv/controller/controller.go | 4 ++-- store/kv/db.go | 2 +- store/kv/db_test.go | 2 +- store/kv/example_test.go | 2 +- store/kv/keyloader.go | 2 +- store/kv/keyloader_test.go | 2 +- store/kv/purbdb_test.go | 2 +- store/kv/{kv.go => purbkv.go} | 2 +- store/kv/transaction.go | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) rename store/kv/{kv.go => purbkv.go} (99%) diff --git a/store/kv/blob.go b/store/kv/blob.go index 0754583..8a5cc0f 100644 --- a/store/kv/blob.go +++ b/store/kv/blob.go @@ -1,5 +1,5 @@ // Blob is a wrapper around libpurb.Purb -package kv +package purbkv import ( "go.dedis.ch/kyber/v3/group/curve25519" diff --git a/store/kv/bucket.go b/store/kv/bucket.go index 1b228be..8b57ced 100644 --- a/store/kv/bucket.go +++ b/store/kv/bucket.go @@ -1,4 +1,4 @@ -package kv +package purbkv import ( "slices" diff --git a/store/kv/controller/controller.go b/store/kv/controller/controller.go index 4e59c6a..47c1981 100644 --- a/store/kv/controller/controller.go +++ b/store/kv/controller/controller.go @@ -39,7 +39,7 @@ func (m minimalController) SetCommands(builder node.Builder) {} // OnStart implements node.Initializer. It opens the database in a file using // the config path as the base. func (m minimalController) OnStart(flags cli.Flags, inj node.Injector) error { - db, err := kv.NewDB(flags.String("config"), m.purbIsOn) + db, err := purbkv.NewDB(flags.String("config"), m.purbIsOn) if err != nil { return xerrors.Errorf("db: %v", err) } @@ -51,7 +51,7 @@ func (m minimalController) OnStart(flags cli.Flags, inj node.Injector) error { // OnStop implements node.Initializer. It closes the database. func (m minimalController) OnStop(inj node.Injector) error { - var db kv.DB + var db purbkv.DB err := inj.Resolve(&db) if err != nil { return xerrors.Errorf("injector: %v", err) diff --git a/store/kv/db.go b/store/kv/db.go index fc8d6a9..6d073ac 100644 --- a/store/kv/db.go +++ b/store/kv/db.go @@ -1,4 +1,4 @@ -package kv +package purbkv import ( "bytes" diff --git a/store/kv/db_test.go b/store/kv/db_test.go index fa04d87..9ad0a51 100644 --- a/store/kv/db_test.go +++ b/store/kv/db_test.go @@ -1,4 +1,4 @@ -package kv +package purbkv import ( "os" diff --git a/store/kv/example_test.go b/store/kv/example_test.go index 3a00b6c..c6a62a1 100644 --- a/store/kv/example_test.go +++ b/store/kv/example_test.go @@ -1,4 +1,4 @@ -package kv +package purbkv import ( "fmt" diff --git a/store/kv/keyloader.go b/store/kv/keyloader.go index 446d2cc..351f0cf 100644 --- a/store/kv/keyloader.go +++ b/store/kv/keyloader.go @@ -1,4 +1,4 @@ -package kv +package purbkv import ( "bufio" diff --git a/store/kv/keyloader_test.go b/store/kv/keyloader_test.go index cf42a8e..124a2d9 100644 --- a/store/kv/keyloader_test.go +++ b/store/kv/keyloader_test.go @@ -1,4 +1,4 @@ -package kv +package purbkv import ( "github.com/stretchr/testify/require" diff --git a/store/kv/purbdb_test.go b/store/kv/purbdb_test.go index d0c1b70..c054cf1 100644 --- a/store/kv/purbdb_test.go +++ b/store/kv/purbdb_test.go @@ -1,4 +1,4 @@ -package kv +package purbkv import ( "os" diff --git a/store/kv/kv.go b/store/kv/purbkv.go similarity index 99% rename from store/kv/kv.go rename to store/kv/purbkv.go index 19a57ec..97b9c3f 100644 --- a/store/kv/kv.go +++ b/store/kv/purbkv.go @@ -4,7 +4,7 @@ // bbolt as the engine (https://github.com/etcd-io/bbolt). // // Documentation Last Review: 08.10.2020 -package kv +package purbkv import "go.dedis.ch/dela/core/store" diff --git a/store/kv/transaction.go b/store/kv/transaction.go index c867bef..85626aa 100644 --- a/store/kv/transaction.go +++ b/store/kv/transaction.go @@ -1,4 +1,4 @@ -package kv +package purbkv import ( "golang.org/x/exp/maps"