Skip to content

Commit

Permalink
internal to package for exportability
Browse files Browse the repository at this point in the history
  • Loading branch information
notque committed May 4, 2024
1 parent e00d9b6 commit c489152
Show file tree
Hide file tree
Showing 29 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# build artifacts
build/hermes
.gopath/internal/
.gopath/pkg/
build/install/
build/docker.tar

Expand Down
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ import (
"github.com/sapcc/go-bits/osext"
"github.com/spf13/viper"

"github.com/sapcc/hermes/internal/api"
"github.com/sapcc/hermes/internal/identity"
"github.com/sapcc/hermes/internal/storage"
"github.com/sapcc/hermes/internal/util"
"github.com/sapcc/hermes/pkg/api"
"github.com/sapcc/hermes/pkg/identity"
"github.com/sapcc/hermes/pkg/storage"
"github.com/sapcc/hermes/pkg/util"
)

const version = "1.2.0"
Expand Down
6 changes: 3 additions & 3 deletions internal/api/api_test.go → pkg/api/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/spf13/viper"

"github.com/sapcc/hermes/internal/identity"
"github.com/sapcc/hermes/internal/storage"
"github.com/sapcc/hermes/internal/test"
"github.com/sapcc/hermes/pkg/identity"
"github.com/sapcc/hermes/pkg/storage"
"github.com/sapcc/hermes/pkg/test"
)

func setupTest(t *testing.T) http.Handler {
Expand Down
4 changes: 2 additions & 2 deletions internal/api/core.go → pkg/api/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (

"github.com/gorilla/mux"

"github.com/sapcc/hermes/internal/identity"
"github.com/sapcc/hermes/internal/storage"
"github.com/sapcc/hermes/pkg/identity"
"github.com/sapcc/hermes/pkg/storage"
)

type v1Provider struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/api/events.go → pkg/api/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
"github.com/pkg/errors"
"github.com/sapcc/go-bits/logg"

"github.com/sapcc/hermes/internal/hermes"
"github.com/sapcc/hermes/pkg/hermes"
)

// EventList is the model for JSON returned by the ListEvents API call
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions internal/api/server.go → pkg/api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ import (
"github.com/sapcc/go-bits/httpext"
"github.com/sapcc/go-bits/logg"

"github.com/sapcc/hermes/internal/identity"
"github.com/sapcc/hermes/internal/storage"
"github.com/sapcc/hermes/pkg/identity"
"github.com/sapcc/hermes/pkg/storage"
)

// Server Set up and start the API server, hooking it up to the API router
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions internal/hermes/events.go → pkg/hermes/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
"github.com/sapcc/go-api-declarations/cadf"
"github.com/sapcc/go-bits/logg"

"github.com/sapcc/hermes/internal/identity"
"github.com/sapcc/hermes/internal/storage"
"github.com/sapcc/hermes/pkg/identity"
"github.com/sapcc/hermes/pkg/storage"
)

// ListEvent contains high-level data about an event, intended as a list item
Expand Down
4 changes: 2 additions & 2 deletions internal/hermes/events_test.go → pkg/hermes/events_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/sapcc/hermes/internal/identity"
"github.com/sapcc/hermes/internal/storage"
"github.com/sapcc/hermes/pkg/identity"
"github.com/sapcc/hermes/pkg/storage"
)

func Test_GetEvent(t *testing.T) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (

"github.com/sapcc/go-bits/logg"

"github.com/sapcc/hermes/internal/util"
"github.com/sapcc/hermes/pkg/util"
)

// Setup test
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c489152

Please sign in to comment.