Skip to content

Commit 2585128

Browse files
authored
refactor: registry package types (#2615)
* refactor: registry alias * fix: registry alias on config * refactor: comment on registry_types * fix: removed lint file * docs: update
1 parent d783c01 commit 2585128

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+645
-645
lines changed

cmd/regup/app/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

1717
"github.com/stacklok/toolhive/pkg/container/verifier"
1818
"github.com/stacklok/toolhive/pkg/logger"
19-
regtypes "github.com/stacklok/toolhive/pkg/registry/types"
19+
regtypes "github.com/stacklok/toolhive/pkg/registry/registry"
2020
)
2121

2222
var (

cmd/regup/app/update_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/stretchr/testify/require"
1111

1212
"github.com/stacklok/toolhive/pkg/logger"
13-
regtypes "github.com/stacklok/toolhive/pkg/registry/types"
13+
regtypes "github.com/stacklok/toolhive/pkg/registry/registry"
1414
)
1515

1616
//nolint:paralleltest // This test manages temporary directories and cannot run in parallel

cmd/thv-operator/pkg/validation/image_validation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"sigs.k8s.io/controller-runtime/pkg/client"
1414

1515
mcpv1alpha1 "github.com/stacklok/toolhive/cmd/thv-operator/api/v1alpha1"
16-
regtypes "github.com/stacklok/toolhive/pkg/registry/types"
16+
regtypes "github.com/stacklok/toolhive/pkg/registry/registry"
1717
)
1818

1919
// Sentinel errors for image validation.

cmd/thv-operator/pkg/validation/image_validation_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"sigs.k8s.io/controller-runtime/pkg/client/fake"
1414

1515
mcpv1alpha1 "github.com/stacklok/toolhive/cmd/thv-operator/api/v1alpha1"
16-
regtypes "github.com/stacklok/toolhive/pkg/registry/types"
16+
regtypes "github.com/stacklok/toolhive/pkg/registry/registry"
1717
)
1818

1919
func TestAlwaysAllowValidator(t *testing.T) {

cmd/thv-proxyrunner/app/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/stacklok/toolhive/pkg/container"
1212
"github.com/stacklok/toolhive/pkg/container/runtime"
1313
"github.com/stacklok/toolhive/pkg/logger"
14-
regtypes "github.com/stacklok/toolhive/pkg/registry/types"
14+
regtypes "github.com/stacklok/toolhive/pkg/registry/registry"
1515
"github.com/stacklok/toolhive/pkg/runner"
1616
"github.com/stacklok/toolhive/pkg/workloads"
1717
)

cmd/thv/app/group.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"github.com/stacklok/toolhive/pkg/core"
1717
"github.com/stacklok/toolhive/pkg/groups"
1818
"github.com/stacklok/toolhive/pkg/registry"
19-
"github.com/stacklok/toolhive/pkg/registry/types"
19+
types "github.com/stacklok/toolhive/pkg/registry/registry"
2020
"github.com/stacklok/toolhive/pkg/runner/retriever"
2121
"github.com/stacklok/toolhive/pkg/transport"
2222
"github.com/stacklok/toolhive/pkg/validation"

cmd/thv/app/registry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/spf13/cobra"
1111

1212
"github.com/stacklok/toolhive/pkg/registry"
13-
"github.com/stacklok/toolhive/pkg/registry/types"
13+
types "github.com/stacklok/toolhive/pkg/registry/registry"
1414
transtypes "github.com/stacklok/toolhive/pkg/transport/types"
1515
)
1616

cmd/thv/app/run_flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"github.com/stacklok/toolhive/pkg/logger"
2121
"github.com/stacklok/toolhive/pkg/networking"
2222
"github.com/stacklok/toolhive/pkg/process"
23-
regtypes "github.com/stacklok/toolhive/pkg/registry/types"
23+
regtypes "github.com/stacklok/toolhive/pkg/registry/registry"
2424
"github.com/stacklok/toolhive/pkg/runner"
2525
"github.com/stacklok/toolhive/pkg/runner/retriever"
2626
"github.com/stacklok/toolhive/pkg/telemetry"

cmd/thv/app/search.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/spf13/cobra"
1010

1111
"github.com/stacklok/toolhive/pkg/registry"
12-
"github.com/stacklok/toolhive/pkg/registry/types"
12+
types "github.com/stacklok/toolhive/pkg/registry/registry"
1313
)
1414

1515
var searchCmd = &cobra.Command{

docs/server/docs.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)