Skip to content

Commit 7de1462

Browse files
committed
refactor: move files to pkg
1 parent b67c616 commit 7de1462

File tree

14 files changed

+10
-10
lines changed

14 files changed

+10
-10
lines changed

cmd/proxy/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ import (
1515
"time"
1616

1717
"github.com/alexflint/go-arg"
18-
"github.com/azure/peerd/internal/files/store"
1918
"github.com/azure/peerd/internal/handlers"
2019
"github.com/azure/peerd/pkg/containerd"
2120
pcontext "github.com/azure/peerd/pkg/context"
2221
"github.com/azure/peerd/pkg/discovery/content/provider"
2322
"github.com/azure/peerd/pkg/discovery/routing"
23+
"github.com/azure/peerd/pkg/files/store"
2424
"github.com/azure/peerd/pkg/k8s"
2525
"github.com/azure/peerd/pkg/k8s/events"
2626
"github.com/azure/peerd/pkg/metrics"

internal/handlers/files/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"os"
99
"time"
1010

11-
"github.com/azure/peerd/internal/files/store"
1211
pcontext "github.com/azure/peerd/pkg/context"
12+
"github.com/azure/peerd/pkg/files/store"
1313
"github.com/azure/peerd/pkg/metrics"
1414
)
1515

internal/handlers/files/handler_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import (
1010
"net/http/httptest"
1111
"testing"
1212

13-
"github.com/azure/peerd/internal/files"
14-
"github.com/azure/peerd/internal/files/store"
1513
pcontext "github.com/azure/peerd/pkg/context"
1614
"github.com/azure/peerd/pkg/discovery/routing/mocks"
15+
"github.com/azure/peerd/pkg/files"
16+
"github.com/azure/peerd/pkg/files/store"
1717
"github.com/azure/peerd/pkg/metrics"
1818
"github.com/gin-gonic/gin"
1919
)

internal/handlers/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import (
77
"net/http"
88
"time"
99

10-
filesStore "github.com/azure/peerd/internal/files/store"
1110
"github.com/azure/peerd/internal/handlers/files"
1211
v2 "github.com/azure/peerd/internal/handlers/v2"
1312
"github.com/azure/peerd/pkg/containerd"
1413
pcontext "github.com/azure/peerd/pkg/context"
1514
"github.com/azure/peerd/pkg/discovery/routing"
15+
filesStore "github.com/azure/peerd/pkg/files/store"
1616
"github.com/gin-gonic/gin"
1717
"github.com/rs/zerolog"
1818
)

internal/handlers/root_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"net/http/httptest"
77
"testing"
88

9-
"github.com/azure/peerd/internal/files/store"
109
"github.com/azure/peerd/pkg/containerd"
1110
"github.com/azure/peerd/pkg/discovery/routing/mocks"
11+
"github.com/azure/peerd/pkg/files/store"
1212
"github.com/azure/peerd/pkg/metrics"
1313
"github.com/gin-gonic/gin"
1414
)
File renamed without changes.
File renamed without changes.

internal/files/store/file.go renamed to pkg/files/store/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88

99
"sync"
1010

11-
"github.com/azure/peerd/internal/files"
1211
"github.com/azure/peerd/pkg/discovery/content/reader"
12+
"github.com/azure/peerd/pkg/files"
1313
"github.com/azure/peerd/pkg/math"
1414
)
1515

internal/files/store/file_test.go renamed to pkg/files/store/file_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import (
99
"strings"
1010
"testing"
1111

12-
"github.com/azure/peerd/internal/files"
1312
"github.com/azure/peerd/pkg/cache"
1413
readermocks "github.com/azure/peerd/pkg/discovery/content/reader/mocks"
1514
"github.com/azure/peerd/pkg/discovery/routing/mocks"
15+
"github.com/azure/peerd/pkg/files"
1616
)
1717

1818
func TestReadAtWithChunkOffset(t *testing.T) {
File renamed without changes.
File renamed without changes.
File renamed without changes.

internal/files/store/store.go renamed to pkg/files/store/store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import (
99
"strings"
1010
"time"
1111

12-
"github.com/azure/peerd/internal/files"
1312
"github.com/azure/peerd/pkg/cache"
1413
pcontext "github.com/azure/peerd/pkg/context"
1514
"github.com/azure/peerd/pkg/discovery/content/reader"
1615
"github.com/azure/peerd/pkg/discovery/routing"
16+
"github.com/azure/peerd/pkg/files"
1717
"github.com/azure/peerd/pkg/metrics"
1818
"github.com/azure/peerd/pkg/urlparser"
1919
"github.com/opencontainers/go-digest"

internal/files/store/store_test.go renamed to pkg/files/store/store_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"os"
1010
"testing"
1111

12-
"github.com/azure/peerd/internal/files"
1312
pcontext "github.com/azure/peerd/pkg/context"
1413
"github.com/azure/peerd/pkg/discovery/routing/mocks"
14+
"github.com/azure/peerd/pkg/files"
1515
"github.com/gin-gonic/gin"
1616
"github.com/opencontainers/go-digest"
1717
)

0 commit comments

Comments
 (0)