Skip to content

Commit

Permalink
refactor: move files to pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
avtakkar committed Apr 15, 2024
1 parent b67c616 commit 7de1462
Show file tree
Hide file tree
Showing 14 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cmd/proxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import (
"time"

"github.com/alexflint/go-arg"
"github.com/azure/peerd/internal/files/store"
"github.com/azure/peerd/internal/handlers"
"github.com/azure/peerd/pkg/containerd"
pcontext "github.com/azure/peerd/pkg/context"
"github.com/azure/peerd/pkg/discovery/content/provider"
"github.com/azure/peerd/pkg/discovery/routing"
"github.com/azure/peerd/pkg/files/store"
"github.com/azure/peerd/pkg/k8s"
"github.com/azure/peerd/pkg/k8s/events"
"github.com/azure/peerd/pkg/metrics"
Expand Down
2 changes: 1 addition & 1 deletion internal/handlers/files/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"os"
"time"

"github.com/azure/peerd/internal/files/store"
pcontext "github.com/azure/peerd/pkg/context"
"github.com/azure/peerd/pkg/files/store"
"github.com/azure/peerd/pkg/metrics"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/handlers/files/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
"net/http/httptest"
"testing"

"github.com/azure/peerd/internal/files"
"github.com/azure/peerd/internal/files/store"
pcontext "github.com/azure/peerd/pkg/context"
"github.com/azure/peerd/pkg/discovery/routing/mocks"
"github.com/azure/peerd/pkg/files"
"github.com/azure/peerd/pkg/files/store"
"github.com/azure/peerd/pkg/metrics"
"github.com/gin-gonic/gin"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/handlers/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"net/http"
"time"

filesStore "github.com/azure/peerd/internal/files/store"
"github.com/azure/peerd/internal/handlers/files"
v2 "github.com/azure/peerd/internal/handlers/v2"
"github.com/azure/peerd/pkg/containerd"
pcontext "github.com/azure/peerd/pkg/context"
"github.com/azure/peerd/pkg/discovery/routing"
filesStore "github.com/azure/peerd/pkg/files/store"
"github.com/gin-gonic/gin"
"github.com/rs/zerolog"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/handlers/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"net/http/httptest"
"testing"

"github.com/azure/peerd/internal/files/store"
"github.com/azure/peerd/pkg/containerd"
"github.com/azure/peerd/pkg/discovery/routing/mocks"
"github.com/azure/peerd/pkg/files/store"
"github.com/azure/peerd/pkg/metrics"
"github.com/gin-gonic/gin"
)
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion internal/files/store/file.go → pkg/files/store/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"sync"

"github.com/azure/peerd/internal/files"
"github.com/azure/peerd/pkg/discovery/content/reader"
"github.com/azure/peerd/pkg/files"
"github.com/azure/peerd/pkg/math"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"strings"
"testing"

"github.com/azure/peerd/internal/files"
"github.com/azure/peerd/pkg/cache"
readermocks "github.com/azure/peerd/pkg/discovery/content/reader/mocks"
"github.com/azure/peerd/pkg/discovery/routing/mocks"
"github.com/azure/peerd/pkg/files"
)

func TestReadAtWithChunkOffset(t *testing.T) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion internal/files/store/store.go → pkg/files/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
"strings"
"time"

"github.com/azure/peerd/internal/files"
"github.com/azure/peerd/pkg/cache"
pcontext "github.com/azure/peerd/pkg/context"
"github.com/azure/peerd/pkg/discovery/content/reader"
"github.com/azure/peerd/pkg/discovery/routing"
"github.com/azure/peerd/pkg/files"
"github.com/azure/peerd/pkg/metrics"
"github.com/azure/peerd/pkg/urlparser"
"github.com/opencontainers/go-digest"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"os"
"testing"

"github.com/azure/peerd/internal/files"
pcontext "github.com/azure/peerd/pkg/context"
"github.com/azure/peerd/pkg/discovery/routing/mocks"
"github.com/azure/peerd/pkg/files"
"github.com/gin-gonic/gin"
"github.com/opencontainers/go-digest"
)
Expand Down

0 comments on commit 7de1462

Please sign in to comment.