Skip to content

Commit 5eb1166

Browse files
authored
Moving all non-public packages to internal (#401)
Signed-off-by: Eder Ignatowicz <[email protected]>
1 parent dde9afb commit 5eb1166

38 files changed

+30
-36
lines changed

clients/ui/bff/Dockerfile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,8 @@ COPY go.mod go.sum ./
1212
RUN go mod download
1313

1414
# Copy the go source files
15-
COPY cmd/ cmd/
16-
COPY api/ api/
17-
COPY config/ config/
18-
COPY data/ data/
19-
COPY integrations/ integrations/
20-
COPY internals/ internals/
21-
COPY validation/ validation/
15+
COPY cmd/main.go cmd/main.go
16+
COPY internal/ internal/
2217

2318

2419

clients/ui/bff/cmd/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package main
33
import (
44
"flag"
55
"fmt"
6-
"github.com/kubeflow/model-registry/ui/bff/api"
7-
"github.com/kubeflow/model-registry/ui/bff/config"
6+
"github.com/kubeflow/model-registry/ui/bff/internal/api"
7+
"github.com/kubeflow/model-registry/ui/bff/internal/config"
88

99
"log/slog"
1010
"net/http"

clients/ui/bff/api/app.go renamed to clients/ui/bff/internal/api/app.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ package api
22

33
import (
44
"fmt"
5+
"github.com/kubeflow/model-registry/ui/bff/internal/config"
6+
"github.com/kubeflow/model-registry/ui/bff/internal/data"
7+
"github.com/kubeflow/model-registry/ui/bff/internal/integrations"
58
"log/slog"
69
"net/http"
710

811
"github.com/julienschmidt/httprouter"
9-
"github.com/kubeflow/model-registry/ui/bff/config"
10-
"github.com/kubeflow/model-registry/ui/bff/data"
11-
"github.com/kubeflow/model-registry/ui/bff/integrations"
12-
"github.com/kubeflow/model-registry/ui/bff/internals/mocks"
12+
"github.com/kubeflow/model-registry/ui/bff/internal/mocks"
1313
)
1414

1515
const (

clients/ui/bff/api/errors.go renamed to clients/ui/bff/internal/api/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package api
33
import (
44
"encoding/json"
55
"fmt"
6-
"github.com/kubeflow/model-registry/ui/bff/integrations"
6+
"github.com/kubeflow/model-registry/ui/bff/internal/integrations"
77
"net/http"
88
"strconv"
99
)

clients/ui/bff/api/healthcheck__handler_test.go renamed to clients/ui/bff/internal/api/healthcheck__handler_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package api
22

33
import (
44
"encoding/json"
5-
"github.com/kubeflow/model-registry/ui/bff/config"
6-
"github.com/kubeflow/model-registry/ui/bff/data"
5+
"github.com/kubeflow/model-registry/ui/bff/internal/config"
6+
"github.com/kubeflow/model-registry/ui/bff/internal/data"
77
"github.com/stretchr/testify/assert"
88
"io"
99
"net/http"
File renamed without changes.
File renamed without changes.
File renamed without changes.

clients/ui/bff/api/middleware.go renamed to clients/ui/bff/internal/api/middleware.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"fmt"
66
"github.com/julienschmidt/httprouter"
7-
"github.com/kubeflow/model-registry/ui/bff/integrations"
7+
"github.com/kubeflow/model-registry/ui/bff/internal/integrations"
88
"k8s.io/client-go/rest"
99
"net/http"
1010
)

clients/ui/bff/api/model_registry_handler.go renamed to clients/ui/bff/internal/api/model_registry_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package api
22

33
import (
44
"github.com/julienschmidt/httprouter"
5-
"github.com/kubeflow/model-registry/ui/bff/data"
5+
"github.com/kubeflow/model-registry/ui/bff/internal/data"
66
"net/http"
77
)
88

0 commit comments

Comments
 (0)