Skip to content

Commit

Permalink
Move common storage implementation to internal (#287)
Browse files Browse the repository at this point in the history
This may need to come out of internal if we ever need to support a third party storage that lives outside of this repo, but at the moment this can safely be moved to internal to delay any API concerns. Towards #280.
  • Loading branch information
mhutchinson authored Nov 4, 2024
1 parent 32dc3f4 commit a7143fc
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion storage/gcp/gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import (
tessera "github.com/transparency-dev/trillian-tessera"
"github.com/transparency-dev/trillian-tessera/api"
"github.com/transparency-dev/trillian-tessera/api/layout"
"github.com/transparency-dev/trillian-tessera/storage"
"github.com/transparency-dev/trillian-tessera/storage/internal"
"golang.org/x/sync/errgroup"
"google.golang.org/api/googleapi"
"google.golang.org/api/iterator"
Expand Down
2 changes: 1 addition & 1 deletion storage/gcp/gcp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
tessera "github.com/transparency-dev/trillian-tessera"
"github.com/transparency-dev/trillian-tessera/api"
"github.com/transparency-dev/trillian-tessera/api/layout"
"github.com/transparency-dev/trillian-tessera/storage"
"github.com/transparency-dev/trillian-tessera/storage/internal"
)

func newSpannerDB(t *testing.T) func() {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion storage/queue_test.go → storage/internal/queue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"time"

tessera "github.com/transparency-dev/trillian-tessera"
"github.com/transparency-dev/trillian-tessera/storage"
"github.com/transparency-dev/trillian-tessera/storage/internal"
)

func TestQueue(t *testing.T) {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion storage/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/transparency-dev/merkle/rfc6962"
tessera "github.com/transparency-dev/trillian-tessera"
"github.com/transparency-dev/trillian-tessera/api"
"github.com/transparency-dev/trillian-tessera/storage"
"github.com/transparency-dev/trillian-tessera/storage/internal"
"k8s.io/klog/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion storage/posix/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
tessera "github.com/transparency-dev/trillian-tessera"
"github.com/transparency-dev/trillian-tessera/api"
"github.com/transparency-dev/trillian-tessera/api/layout"
"github.com/transparency-dev/trillian-tessera/storage"
"github.com/transparency-dev/trillian-tessera/storage/internal"
"k8s.io/klog/v2"
)

Expand Down

0 comments on commit a7143fc

Please sign in to comment.