Skip to content

Commit

Permalink
rename pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasten committed Jun 24, 2024
1 parent cab08f9 commit 7a593b8
Show file tree
Hide file tree
Showing 85 changed files with 114 additions and 114 deletions.
2 changes: 1 addition & 1 deletion batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion batch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import "github.com/edgelesssys/estore/internal/cache"

Expand Down
2 changes: 1 addition & 1 deletion checkpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"io"
Expand Down
4 changes: 2 additions & 2 deletions checkpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"bytes"
Expand Down Expand Up @@ -255,7 +255,7 @@ func TestCheckpointCompaction(t *testing.T) {
defer cancel()
defer close(check)
defer wg.Done()
for i := 0; ctx.Err() == nil && i < 200; i++ {
for i := 0; ctx.Err() == nil && i < 20; i++ {
dir := fmt.Sprintf("checkpoint%06d", i)
if err := d.Checkpoint(dir); err != nil {
t.Error(err)
Expand Down
2 changes: 1 addition & 1 deletion cleaner.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion cleaner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"runtime"
Expand Down
2 changes: 1 addition & 1 deletion commit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"encoding/binary"
Expand Down
2 changes: 1 addition & 1 deletion compaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion compaction_iter.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion compaction_iter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion compaction_picker.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion compaction_picker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion compaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion comparer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import "github.com/edgelesssys/estore/internal/base"

Expand Down
2 changes: 1 addition & 1 deletion data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"bytes"
Expand Down
4 changes: 2 additions & 2 deletions db.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

// Package kvstore provides an ordered key/value store.
package kvstore // import "github.com/edgelesssys/estore"
// Package estore provides an ordered key/value store.
package estore // import "github.com/edgelesssys/estore"

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion edg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Copyright (c) Edgeless Systems GmbH
SPDX-License-Identifier: AGPL-3.0-only
*/

package kvstore
package estore

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion error_iter.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"github.com/edgelesssys/estore/internal/base"
Expand Down
2 changes: 1 addition & 1 deletion error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion event.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion event_listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"bytes"
Expand Down
8 changes: 4 additions & 4 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore_test
package estore_test

import (
"crypto/rand"
"fmt"
"log"

kvstore "github.com/edgelesssys/estore"
"github.com/edgelesssys/estore"
"github.com/edgelesssys/estore/vfs"
)

Expand All @@ -20,12 +20,12 @@ func Example() {
log.Fatal(err)
}

db, err := kvstore.Open("", &kvstore.Options{EncryptionKey: encryptionKey, FS: vfs.NewMem()})
db, err := estore.Open("", &estore.Options{EncryptionKey: encryptionKey, FS: vfs.NewMem()})
if err != nil {
log.Fatal(err)
}
key := []byte("hello")
if err := db.Set(key, []byte("world"), kvstore.Sync); err != nil {
if err := db.Set(key, []byte("world"), estore.Sync); err != nil {
log.Fatal(err)
}
value, closer, err := db.Get(key)
Expand Down
2 changes: 1 addition & 1 deletion external_iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion external_iterator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion filenames.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion filenames_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion flush_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion flushable.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion flushable_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package kvstore
package estore

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion format_major_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion format_major_version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion get_iter.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion get_iter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion ingest.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion ingest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package kvstore
package estore

import "github.com/edgelesssys/estore/internal/base"

Expand Down
Loading

0 comments on commit 7a593b8

Please sign in to comment.