Skip to content

Commit

Permalink
Move fieldmask package to proto dir (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
maratori authored Dec 10, 2024
1 parent 11e61c1 commit 572d0d7
Show file tree
Hide file tree
Showing 54 changed files with 52 additions and 52 deletions.
6 changes: 3 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -360,18 +360,18 @@ issues:
- wrapcheck

## specific to gosdk
- path: "^fieldmask"
- path: "^proto/fieldmask"
linters:
- nestif
- path: "^fieldmask/.+_test.go"
- path: "^proto/fieldmask/.+_test.go"
linters:
- lll
- path: "^example_test.go$"
linters:
- testableexamples
- path: "operations/alphaops"
text: "SA1019: .+ is deprecated"
- path: "fieldmask"
- path: "^proto/fieldmask"
linters:
- nilnil # TODO: fix or ignore
- recvcheck # TODO: fix or ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"google.golang.org/grpc/metadata"

"github.com/nebius/gosdk/fieldmask/mask"
"github.com/nebius/gosdk/proto/fieldmask/mask"
)

// IsInOutgoingContext checks if a metadata key (grpc header) exists in the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"google.golang.org/grpc/metadata"

"github.com/nebius/gosdk/fieldmask/mask"
"github.com/nebius/gosdk/proto/fieldmask/mask"
)

func TestIsInOutgoingContext(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

"google.golang.org/protobuf/proto"

"github.com/nebius/gosdk/fieldmask/mask"
"github.com/nebius/gosdk/fieldmask/protobuf"
"github.com/nebius/gosdk/proto/fieldmask/mask"
"github.com/nebius/gosdk/proto/fieldmask/protobuf"
)

// ResetMask is the gRPC header name where the reset mask will be added.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/stretchr/testify/assert"
"google.golang.org/grpc/metadata"

"github.com/nebius/gosdk/fieldmask/mask"
"github.com/nebius/gosdk/fieldmask/protobuf/testdata"
"github.com/nebius/gosdk/proto/fieldmask/mask"
"github.com/nebius/gosdk/proto/fieldmask/protobuf/testdata"
)

func TestIsResetMaskInOutgoingContext(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package grpcheader
import (
"context"

"github.com/nebius/gosdk/fieldmask/mask"
"github.com/nebius/gosdk/proto/fieldmask/mask"
)

// SelectMask is the gRPC header name where the select mask will be added.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"google.golang.org/grpc/metadata"

"github.com/nebius/gosdk/fieldmask/mask"
"github.com/nebius/gosdk/proto/fieldmask/mask"
)

func TestIsSelectMaskInOutgoingContext(t *testing.T) {
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.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/reflect/protoreflect"

"github.com/nebius/gosdk/fieldmask/mask"
"github.com/nebius/gosdk/proto/fieldmask/mask"
)

func recursiveFilterListWithSelectMask( //nolint:gocognit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/stretchr/testify/assert"
"google.golang.org/protobuf/proto"

"github.com/nebius/gosdk/fieldmask/mask"
"github.com/nebius/gosdk/fieldmask/protobuf/testdata"
"github.com/nebius/gosdk/proto/fieldmask/mask"
"github.com/nebius/gosdk/proto/fieldmask/protobuf/testdata"
)

func TestFilterWithSelectMask(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/reflect/protoreflect"

"github.com/nebius/gosdk/fieldmask/mask"
"github.com/nebius/gosdk/proto/fieldmask/mask"
)

const recursionTooDeep = 1000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"google.golang.org/protobuf/proto"

"github.com/nebius/gosdk/fieldmask/protobuf/testdata"
"github.com/nebius/gosdk/proto/fieldmask/protobuf/testdata"
)

func TestKnownFieldsFromMessage(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/reflect/protoreflect"

"github.com/nebius/gosdk/fieldmask/mask"
"github.com/nebius/gosdk/proto/fieldmask/mask"
)

func rmFromMessageRecursive( //nolint:gocognit // TODO: simplify
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"google.golang.org/protobuf/proto"

"github.com/nebius/gosdk/fieldmask/protobuf/testdata"
"github.com/nebius/gosdk/proto/fieldmask/protobuf/testdata"
)

func TestResetMaskFromMessage(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/reflect/protoreflect"

"github.com/nebius/gosdk/fieldmask/mask"
"github.com/nebius/gosdk/proto/fieldmask/mask"
)

func rmFrom2ListsRecursive(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"google.golang.org/protobuf/proto"

"github.com/nebius/gosdk/fieldmask/protobuf/testdata"
"github.com/nebius/gosdk/proto/fieldmask/protobuf/testdata"
)

func TestResetMaskFromModified(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/reflect/protoreflect"

"github.com/nebius/gosdk/fieldmask/mask"
"github.com/nebius/gosdk/proto/fieldmask/mask"
)

var ErrBasicTypeInTheMiddle = errors.New("found basic type in the middle of the path, can't descend deeper")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/reflect/protoreflect"

"github.com/nebius/gosdk/fieldmask/mask"
"github.com/nebius/gosdk/fieldmask/protobuf/testdata"
"github.com/nebius/gosdk/proto/fieldmask/mask"
"github.com/nebius/gosdk/proto/fieldmask/protobuf/testdata"
)

func TestGetAtFieldPath(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/reflect/protoreflect"

"github.com/nebius/gosdk/fieldmask/mask"
"github.com/nebius/gosdk/proto/fieldmask/mask"
"github.com/nebius/gosdk/proto/nebius"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/proto"

"github.com/nebius/gosdk/fieldmask/mask"
"github.com/nebius/gosdk/fieldmask/protobuf/testdata"
"github.com/nebius/gosdk/proto/fieldmask/mask"
"github.com/nebius/gosdk/proto/fieldmask/protobuf/testdata"
)

func TestPatchWithResetMask(t *testing.T) {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/nebius/compute/v1/disk_service.sdk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/nebius/compute/v1/filesystem_service.sdk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/nebius/compute/v1/gpu_cluster_service.sdk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/nebius/compute/v1/instance_service.sdk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/nebius/compute/v1alpha1/disk_service.sdk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/nebius/compute/v1alpha1/filesystem_service.sdk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/nebius/compute/v1alpha1/instance_service.sdk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/nebius/iam/v1/access_key_service.sdk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/nebius/iam/v1/auth_public_key_service.sdk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/nebius/iam/v1/federation_service.sdk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/nebius/iam/v1/invitation_service.sdk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/nebius/iam/v1/service_account_service.sdk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/nebius/mk8s/v1/cluster_service.sdk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/nebius/mk8s/v1/node_group_service.sdk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 572d0d7

Please sign in to comment.