Browse Source

move proto package

pull/3461/head
chrislu 2 years ago
parent
commit
eaeb141b09
  1. 2
      unmaintained/see_log_entry/see_log_entry.go
  2. 2
      unmaintained/see_meta/see_meta.go
  3. 2
      weed/command/filer_meta_tail.go
  4. 2
      weed/command/filer_remote_gateway_buckets.go
  5. 2
      weed/command/filer_remote_sync_dir.go
  6. 2
      weed/filer/entry_codec.go
  7. 2
      weed/filer/filechunk_manifest.go
  8. 2
      weed/filer/filer_conf.go
  9. 2
      weed/filer/filer_notify.go
  10. 2
      weed/filer/filer_notify_test.go
  11. 2
      weed/filer/meta_aggregator.go
  12. 2
      weed/filer/redis3/item_list_serde.go
  13. 2
      weed/filer/redis3/skiplist_element_store.go
  14. 2
      weed/filer/remote_mapping.go
  15. 2
      weed/filer/remote_storage.go
  16. 4
      weed/filer/s3iam_conf.go
  17. 2
      weed/mq/broker/broker_segment_serde.go
  18. 2
      weed/notification/aws_sqs/aws_sqs_pub.go
  19. 2
      weed/notification/configuration.go
  20. 2
      weed/notification/gocdk_pub_sub/gocdk_pub_sub.go
  21. 2
      weed/notification/google_pub_sub/google_pub_sub.go
  22. 2
      weed/notification/kafka/kafka_queue.go
  23. 2
      weed/notification/log/log_queue.go
  24. 2
      weed/pb/filer_pb/filer_pb_helper.go
  25. 2
      weed/pb/filer_pb/filer_pb_helper_test.go
  26. 2
      weed/pb/proto_read_write_test.go
  27. 2
      weed/pb/remote_pb/remote_pb_helper.go
  28. 2
      weed/remote_storage/remote_storage.go
  29. 2
      weed/replication/sub/notification_aws_sqs.go
  30. 2
      weed/replication/sub/notification_gocdk_pub_sub.go
  31. 2
      weed/replication/sub/notification_google_pub_sub.go
  32. 2
      weed/replication/sub/notification_kafka.go
  33. 2
      weed/s3api/auth_credentials_test.go
  34. 2
      weed/server/filer_grpc_server_remote.go
  35. 2
      weed/server/filer_grpc_server_sub_meta.go
  36. 4
      weed/shell/command_fs_meta_cat.go
  37. 2
      weed/shell/command_fs_meta_load.go
  38. 2
      weed/shell/command_fs_meta_save.go
  39. 4
      weed/shell/command_remote_configure.go
  40. 4
      weed/shell/command_remote_mount.go
  41. 2
      weed/shell/command_volume_list_test.go
  42. 2
      weed/storage/super_block/super_block.go
  43. 2
      weed/storage/super_block/super_block_read.go.go
  44. 2
      weed/storage/volume_info/volume_info.go
  45. 2
      weed/util/log_buffer/log_buffer.go
  46. 2
      weed/util/log_buffer/log_read.go
  47. 2
      weed/util/skiplist/name_batch.go
  48. 2
      weed/util/skiplist/name_list_serde.go
  49. 2
      weed/util/skiplist/skiplist.pb.go

2
unmaintained/see_log_entry/see_log_entry.go

@ -7,7 +7,7 @@ import (
"log"
"os"
"github.com/golang/protobuf/proto"
"google.golang.org/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/filer"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"

2
unmaintained/see_meta/see_meta.go

@ -7,7 +7,7 @@ import (
"log"
"os"
"github.com/golang/protobuf/proto"
"google.golang.org/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
"github.com/seaweedfs/seaweedfs/weed/util"

2
weed/command/filer_meta_tail.go

@ -2,8 +2,8 @@ package command
import (
"fmt"
"github.com/golang/protobuf/jsonpb"
"github.com/seaweedfs/seaweedfs/weed/pb"
"google.golang.org/protobuf/jsonpb"
"os"
"path/filepath"
"strings"

2
weed/command/filer_remote_gateway_buckets.go

@ -2,7 +2,6 @@ package command
import (
"fmt"
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/filer"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/pb"
@ -12,6 +11,7 @@ import (
"github.com/seaweedfs/seaweedfs/weed/replication/source"
"github.com/seaweedfs/seaweedfs/weed/s3api/s3_constants"
"github.com/seaweedfs/seaweedfs/weed/util"
"google.golang.org/protobuf/proto"
"math"
"math/rand"
"path/filepath"

2
weed/command/filer_remote_sync_dir.go

@ -7,7 +7,6 @@ import (
"strings"
"time"
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/filer"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/pb"
@ -17,6 +16,7 @@ import (
"github.com/seaweedfs/seaweedfs/weed/replication/source"
"github.com/seaweedfs/seaweedfs/weed/util"
"google.golang.org/grpc"
"google.golang.org/protobuf/proto"
)
func followUpdatesAndUploadToRemote(option *RemoteSyncOptions, filerSource *source.FilerSource, mountedDir string) error {

2
weed/filer/entry_codec.go

@ -6,7 +6,7 @@ import (
"os"
"time"
"github.com/golang/protobuf/proto"
"google.golang.org/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
)

2
weed/filer/filechunk_manifest.go

@ -12,7 +12,7 @@ import (
"github.com/seaweedfs/seaweedfs/weed/wdclient"
"github.com/golang/protobuf/proto"
"google.golang.org/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"

2
weed/filer/filer_conf.go

@ -9,11 +9,11 @@ import (
"google.golang.org/grpc"
"io"
"github.com/golang/protobuf/jsonpb"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
"github.com/seaweedfs/seaweedfs/weed/util"
"github.com/viant/ptrie"
"google.golang.org/protobuf/jsonpb"
)
const (

2
weed/filer/filer_notify.go

@ -8,7 +8,7 @@ import (
"strings"
"time"
"github.com/golang/protobuf/proto"
"google.golang.org/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/notification"

2
weed/filer/filer_notify_test.go

@ -7,7 +7,7 @@ import (
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
"github.com/seaweedfs/seaweedfs/weed/util"
"github.com/golang/protobuf/proto"
"google.golang.org/protobuf/proto"
)
func TestProtoMarshalText(t *testing.T) {

2
weed/filer/meta_aggregator.go

@ -11,8 +11,8 @@ import (
"sync"
"time"
"github.com/golang/protobuf/proto"
"google.golang.org/grpc"
"google.golang.org/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/pb"

2
weed/filer/redis3/item_list_serde.go

@ -2,9 +2,9 @@ package redis3
import (
"github.com/go-redis/redis/v8"
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/util/skiplist"
"google.golang.org/protobuf/proto"
)
func LoadItemList(data []byte, prefix string, client redis.UniversalClient, store skiplist.ListStore, batchSize int) *ItemList {

2
weed/filer/redis3/skiplist_element_store.go

@ -4,9 +4,9 @@ import (
"context"
"fmt"
"github.com/go-redis/redis/v8"
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/util/skiplist"
"google.golang.org/protobuf/proto"
)
type SkipListElementStore struct {

2
weed/filer/remote_mapping.go

@ -2,11 +2,11 @@ package filer
import (
"fmt"
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/pb"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
"github.com/seaweedfs/seaweedfs/weed/pb/remote_pb"
"google.golang.org/grpc"
"google.golang.org/protobuf/proto"
)
func ReadMountMappings(grpcDialOption grpc.DialOption, filerAddress pb.ServerAddress) (mappings *remote_pb.RemoteStorageMapping, readErr error) {

2
weed/filer/remote_storage.go

@ -3,12 +3,12 @@ package filer
import (
"context"
"fmt"
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/pb"
"github.com/seaweedfs/seaweedfs/weed/pb/remote_pb"
"github.com/seaweedfs/seaweedfs/weed/remote_storage"
"github.com/seaweedfs/seaweedfs/weed/util"
"google.golang.org/grpc"
"google.golang.org/protobuf/proto"
"math"
"strings"

4
weed/filer/s3iam_conf.go

@ -5,9 +5,9 @@ import (
"fmt"
"io"
"github.com/golang/protobuf/jsonpb"
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/pb/iam_pb"
"google.golang.org/protobuf/jsonpb"
"google.golang.org/protobuf/proto"
)
func ParseS3ConfigurationFromBytes[T proto.Message](content []byte, config T) error {

2
weed/mq/broker/broker_segment_serde.go

@ -3,12 +3,12 @@ package broker
import (
"bytes"
"fmt"
"github.com/golang/protobuf/jsonpb"
"github.com/seaweedfs/seaweedfs/weed/filer"
"github.com/seaweedfs/seaweedfs/weed/mq"
"github.com/seaweedfs/seaweedfs/weed/pb"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
"github.com/seaweedfs/seaweedfs/weed/pb/mq_pb"
"google.golang.org/protobuf/jsonpb"
"time"
)

2
weed/notification/aws_sqs/aws_sqs_pub.go

@ -8,10 +8,10 @@ import (
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/sqs"
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/notification"
"github.com/seaweedfs/seaweedfs/weed/util"
"google.golang.org/protobuf/proto"
)
func init() {

2
weed/notification/configuration.go

@ -1,9 +1,9 @@
package notification
import (
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/util"
"google.golang.org/protobuf/proto"
)
type MessageQueue interface {

2
weed/notification/gocdk_pub_sub/gocdk_pub_sub.go

@ -20,11 +20,11 @@ package gocdk_pub_sub
import (
"context"
"fmt"
"github.com/golang/protobuf/proto"
"github.com/streadway/amqp"
"gocloud.dev/pubsub"
_ "gocloud.dev/pubsub/awssnssqs"
"gocloud.dev/pubsub/rabbitpubsub"
"google.golang.org/protobuf/proto"
"net/url"
"path"
"time"

2
weed/notification/google_pub_sub/google_pub_sub.go

@ -6,11 +6,11 @@ import (
"os"
"cloud.google.com/go/pubsub"
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/notification"
"github.com/seaweedfs/seaweedfs/weed/util"
"google.golang.org/api/option"
"google.golang.org/protobuf/proto"
)
func init() {

2
weed/notification/kafka/kafka_queue.go

@ -2,10 +2,10 @@ package kafka
import (
"github.com/Shopify/sarama"
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/notification"
"github.com/seaweedfs/seaweedfs/weed/util"
"google.golang.org/protobuf/proto"
)
func init() {

2
weed/notification/log/log_queue.go

@ -1,10 +1,10 @@
package kafka
import (
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/notification"
"github.com/seaweedfs/seaweedfs/weed/util"
"google.golang.org/protobuf/proto"
)
func init() {

2
weed/pb/filer_pb/filer_pb_helper.go

@ -7,10 +7,10 @@ import (
"os"
"strings"
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/storage/needle"
"github.com/viant/ptrie"
"google.golang.org/protobuf/proto"
)
func (entry *Entry) IsInRemoteOnly() bool {

2
weed/pb/filer_pb/filer_pb_helper_test.go

@ -3,7 +3,7 @@ package filer_pb
import (
"testing"
"github.com/golang/protobuf/proto"
"google.golang.org/protobuf/proto"
)
func TestFileIdSize(t *testing.T) {

2
weed/pb/proto_read_write_test.go

@ -4,8 +4,8 @@ import (
"fmt"
"testing"
"github.com/golang/protobuf/jsonpb"
"github.com/seaweedfs/seaweedfs/weed/pb/volume_server_pb"
"google.golang.org/protobuf/jsonpb"
)
func TestJsonpMarshalUnmarshal(t *testing.T) {

2
weed/pb/remote_pb/remote_pb_helper.go

@ -1,6 +1,6 @@
package remote_pb
import "github.com/golang/protobuf/proto"
import "google.golang.org/protobuf/proto"
func (fp *RemoteStorageLocation) Key() interface{} {
key, _ := proto.Marshal(fp)

2
weed/remote_storage/remote_storage.go

@ -2,9 +2,9 @@ package remote_storage
import (
"fmt"
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
"github.com/seaweedfs/seaweedfs/weed/pb/remote_pb"
"google.golang.org/protobuf/proto"
"io"
"sort"
"strings"

2
weed/replication/sub/notification_aws_sqs.go

@ -8,10 +8,10 @@ import (
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/sqs"
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
"github.com/seaweedfs/seaweedfs/weed/util"
"google.golang.org/protobuf/proto"
)
func init() {

2
weed/replication/sub/notification_gocdk_pub_sub.go

@ -5,7 +5,6 @@ package sub
import (
"context"
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
"github.com/seaweedfs/seaweedfs/weed/util"
@ -13,6 +12,7 @@ import (
"gocloud.dev/pubsub"
_ "gocloud.dev/pubsub/awssnssqs"
"gocloud.dev/pubsub/rabbitpubsub"
"google.golang.org/protobuf/proto"
"net/url"
"os"
"path"

2
weed/replication/sub/notification_google_pub_sub.go

@ -6,11 +6,11 @@ import (
"os"
"cloud.google.com/go/pubsub"
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
"github.com/seaweedfs/seaweedfs/weed/util"
"google.golang.org/api/option"
"google.golang.org/protobuf/proto"
)
func init() {

2
weed/replication/sub/notification_kafka.go

@ -8,10 +8,10 @@ import (
"time"
"github.com/Shopify/sarama"
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
"github.com/seaweedfs/seaweedfs/weed/util"
"google.golang.org/protobuf/proto"
)
func init() {

2
weed/s3api/auth_credentials_test.go

@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/assert"
"testing"
"github.com/golang/protobuf/jsonpb"
"google.golang.org/protobuf/jsonpb"
"github.com/seaweedfs/seaweedfs/weed/pb/iam_pb"
)

2
weed/server/filer_grpc_server_remote.go

@ -7,7 +7,6 @@ import (
"sync"
"time"
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/filer"
"github.com/seaweedfs/seaweedfs/weed/operation"
"github.com/seaweedfs/seaweedfs/weed/pb"
@ -16,6 +15,7 @@ import (
"github.com/seaweedfs/seaweedfs/weed/pb/volume_server_pb"
"github.com/seaweedfs/seaweedfs/weed/storage/needle"
"github.com/seaweedfs/seaweedfs/weed/util"
"google.golang.org/protobuf/proto"
)
func (fs *FilerServer) CacheRemoteObjectToLocalCluster(ctx context.Context, req *filer_pb.CacheRemoteObjectToLocalClusterRequest) (*filer_pb.CacheRemoteObjectToLocalClusterResponse, error) {

2
weed/server/filer_grpc_server_sub_meta.go

@ -6,7 +6,7 @@ import (
"strings"
"time"
"github.com/golang/protobuf/proto"
"google.golang.org/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/filer"
"github.com/seaweedfs/seaweedfs/weed/glog"

4
weed/shell/command_fs_meta_cat.go

@ -2,9 +2,9 @@ package shell
import (
"fmt"
"github.com/golang/protobuf/jsonpb"
"github.com/golang/protobuf/proto"
"golang.org/x/exp/slices"
"google.golang.org/protobuf/jsonpb"
"google.golang.org/protobuf/proto"
"io"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"

2
weed/shell/command_fs_meta_load.go

@ -8,7 +8,7 @@ import (
"strings"
"time"
"github.com/golang/protobuf/proto"
"google.golang.org/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
"github.com/seaweedfs/seaweedfs/weed/util"

2
weed/shell/command_fs_meta_save.go

@ -12,7 +12,7 @@ import (
"sync/atomic"
"time"
"github.com/golang/protobuf/proto"
"google.golang.org/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
"github.com/seaweedfs/seaweedfs/weed/util"

4
weed/shell/command_remote_configure.go

@ -4,13 +4,13 @@ import (
"context"
"flag"
"fmt"
"github.com/golang/protobuf/jsonpb"
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/filer"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
"github.com/seaweedfs/seaweedfs/weed/pb/remote_pb"
"github.com/seaweedfs/seaweedfs/weed/remote_storage"
"github.com/seaweedfs/seaweedfs/weed/util"
"google.golang.org/protobuf/jsonpb"
"google.golang.org/protobuf/proto"
"io"
"regexp"
"strings"

4
weed/shell/command_remote_mount.go

@ -4,13 +4,13 @@ import (
"context"
"flag"
"fmt"
"github.com/golang/protobuf/jsonpb"
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/filer"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
"github.com/seaweedfs/seaweedfs/weed/pb/remote_pb"
"github.com/seaweedfs/seaweedfs/weed/remote_storage"
"github.com/seaweedfs/seaweedfs/weed/util"
"google.golang.org/protobuf/jsonpb"
"google.golang.org/protobuf/proto"
"io"
"os"
"strings"

2
weed/shell/command_volume_list_test.go

@ -2,9 +2,9 @@ package shell
import (
_ "embed"
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/storage/types"
"github.com/stretchr/testify/assert"
"google.golang.org/protobuf/proto"
"strconv"
"strings"
"testing"

2
weed/storage/super_block/super_block.go

@ -1,7 +1,7 @@
package super_block
import (
"github.com/golang/protobuf/proto"
"google.golang.org/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/pb/master_pb"

2
weed/storage/super_block/super_block_read.go.go

@ -3,7 +3,7 @@ package super_block
import (
"fmt"
"github.com/golang/protobuf/proto"
"google.golang.org/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/pb/master_pb"
"github.com/seaweedfs/seaweedfs/weed/storage/backend"

2
weed/storage/volume_info/volume_info.go

@ -5,7 +5,7 @@ import (
"fmt"
"os"
"github.com/golang/protobuf/jsonpb"
"google.golang.org/protobuf/jsonpb"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/pb/volume_server_pb"

2
weed/util/log_buffer/log_buffer.go

@ -5,7 +5,7 @@ import (
"sync"
"time"
"github.com/golang/protobuf/proto"
"google.golang.org/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"

2
weed/util/log_buffer/log_read.go

@ -5,7 +5,7 @@ import (
"fmt"
"time"
"github.com/golang/protobuf/proto"
"google.golang.org/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"

2
weed/util/skiplist/name_batch.go

@ -1,9 +1,9 @@
package skiplist
import (
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/glog"
"golang.org/x/exp/slices"
"google.golang.org/protobuf/proto"
"strings"
)

2
weed/util/skiplist/name_list_serde.go

@ -1,8 +1,8 @@
package skiplist
import (
"github.com/golang/protobuf/proto"
"github.com/seaweedfs/seaweedfs/weed/glog"
"google.golang.org/protobuf/proto"
)
func LoadNameList(data []byte, store ListStore, batchSize int) *NameList {

2
weed/util/skiplist/skiplist.pb.go

@ -7,7 +7,7 @@
package skiplist
import (
proto "github.com/golang/protobuf/proto"
proto "google.golang.org/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"

Loading…
Cancel
Save