refactor(proto): move protobuf generated API to the top-level api/pb package

This commit is contained in:
Pasha Sviderski committed 2026-09-04 10:50:30 +10:00
1 parent 7a88865f64
commit 8aedc2bf19
73 files changed
+1487 -1505

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ import (
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/volume"
"github.com/psviderski/uncloud/internal/machine/api/pb"
"github.com/psviderski/uncloud/api/pb"
)
type Client interface {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"github.com/distribution/reference"
"github.com/docker/docker/api/types/image"
v1 "github.com/opencontainers/image-spec/specs-go/v1"
"github.com/psviderski/uncloud/internal/machine/api/pb"
"github.com/psviderski/uncloud/api/pb"
)
type MachineImage struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"errors"
"time"
"github.com/psviderski/uncloud/internal/machine/api/pb"
"github.com/psviderski/uncloud/api/pb"
)
const (
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"net/netip"
"strings"
"github.com/psviderski/uncloud/internal/machine/api/pb"
"github.com/psviderski/uncloud/api/pb"
)
// MachineFilter defines criteria to filter machines in ListMachines.
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"net/netip"
"testing"
"github.com/psviderski/uncloud/internal/machine/api/pb"
"github.com/psviderski/uncloud/api/pb"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -13,7 +13,7 @@ import (
"github.com/distribution/reference"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/psviderski/uncloud/internal/machine/api/pb"
"github.com/psviderski/uncloud/api/pb"
)
const (