Skip to content

Commit 4889b0a

Browse files
move internal to pkg
1 parent e733841 commit 4889b0a

File tree

138 files changed

+137
-136
lines changed

Some content is hidden

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

138 files changed

+137
-136
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
*
22
!/cmd
3+
!/pkg
34
!/tools/docker-mcp-bridge/**/*
45
!/go.mod
56
!/go.sum

cmd/docker-mcp/backup/dump.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"encoding/json"
66

77
"github.com/docker/mcp-gateway/cmd/docker-mcp/catalog"
8-
"github.com/docker/mcp-gateway/cmd/docker-mcp/internal/config"
9-
"github.com/docker/mcp-gateway/cmd/docker-mcp/internal/desktop"
10-
"github.com/docker/mcp-gateway/cmd/docker-mcp/internal/docker"
8+
"github.com/docker/mcp-gateway/pkg/config"
9+
"github.com/docker/mcp-gateway/pkg/desktop"
10+
"github.com/docker/mcp-gateway/pkg/docker"
1111
)
1212

1313
func Dump(ctx context.Context, docker docker.Client) ([]byte, error) {

cmd/docker-mcp/backup/restore.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"encoding/json"
66

77
"github.com/docker/mcp-gateway/cmd/docker-mcp/catalog"
8-
"github.com/docker/mcp-gateway/cmd/docker-mcp/internal/config"
9-
"github.com/docker/mcp-gateway/cmd/docker-mcp/internal/desktop"
8+
"github.com/docker/mcp-gateway/pkg/config"
9+
"github.com/docker/mcp-gateway/pkg/desktop"
1010
)
1111

1212
func Restore(ctx context.Context, backupData []byte) error {

cmd/docker-mcp/backup/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package backup
22

3-
import "github.com/docker/mcp-gateway/cmd/docker-mcp/internal/desktop"
3+
import "github.com/docker/mcp-gateway/pkg/desktop"
44

55
type Backup struct {
66
Config string `json:"config"`

cmd/docker-mcp/catalog/add.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"os"
88
"time"
99

10-
"github.com/docker/mcp-gateway/cmd/docker-mcp/internal/telemetry"
11-
"github.com/docker/mcp-gateway/cmd/docker-mcp/internal/yq"
10+
"github.com/docker/mcp-gateway/pkg/telemetry"
11+
"github.com/docker/mcp-gateway/pkg/yq"
1212
)
1313

1414
type ParsedAddArgs struct {

cmd/docker-mcp/catalog/catalog.go

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

66
"gopkg.in/yaml.v3"
77

8-
"github.com/docker/mcp-gateway/cmd/docker-mcp/internal/yq"
8+
"github.com/docker/mcp-gateway/pkg/yq"
99
)
1010

1111
const (

cmd/docker-mcp/catalog/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"encoding/json"
66

7-
"github.com/docker/mcp-gateway/cmd/docker-mcp/internal/config"
7+
"github.com/docker/mcp-gateway/pkg/config"
88
)
99

1010
type Config struct {

cmd/docker-mcp/catalog/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"time"
77

8-
"github.com/docker/mcp-gateway/cmd/docker-mcp/internal/telemetry"
8+
"github.com/docker/mcp-gateway/pkg/telemetry"
99
)
1010

1111
func Create(name string) error {

cmd/docker-mcp/catalog/export.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99

1010
"gopkg.in/yaml.v3"
1111

12-
"github.com/docker/mcp-gateway/cmd/docker-mcp/internal/catalog"
13-
"github.com/docker/mcp-gateway/cmd/docker-mcp/internal/user"
12+
"github.com/docker/mcp-gateway/pkg/catalog"
13+
"github.com/docker/mcp-gateway/pkg/user"
1414
)
1515

1616
// Export exports a configured catalog to a file

cmd/docker-mcp/catalog/import.go

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

12-
"github.com/docker/mcp-gateway/cmd/docker-mcp/internal/tui"
12+
"github.com/docker/mcp-gateway/pkg/tui"
1313
)
1414

1515
func isValidURL(u string) bool {

0 commit comments

Comments
 (0)