From 1f143e54bd63c13ca55631eb378598e012b4366b Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Thu, 13 Aug 2020 15:43:47 +0300 Subject: [PATCH] Move api-v2 files into v2 subdir This subdir contains generated proto files and small wrappers. --- {service => pkg}/signature/data.go | 0 {service => pkg}/signature/options.go | 0 {service => pkg}/signature/request.go | 0 {service => pkg}/signature/util.go | 0 service/v2/marshal.go | 21 - service/v2/signature.go | 17 - {accounting/v2 => v2/accounting}/service.go | 6 +- .../v2 => v2/accounting}/service.pb.go | 148 ++-- .../v2 => v2/accounting}/service.proto | 20 +- {acl/v2 => v2/acl}/types.go | 4 +- {acl/v2 => v2/acl}/types.pb.go | 152 ++-- {acl/v2 => v2/acl}/types.proto | 12 +- {container/v2 => v2/container}/marshal.go | 2 +- .../v2 => v2/container}/marshal_test.go | 6 +- {container/v2 => v2/container}/service.go | 8 +- {container/v2 => v2/container}/service.pb.go | 541 ++++++------- {container/v2 => v2/container}/service.proto | 86 +- {container/v2 => v2/container}/signature.go | 2 +- {container/v2 => v2/container}/types.go | 6 +- {container/v2 => v2/container}/types.pb.go | 87 ++- {container/v2 => v2/container}/types.proto | 16 +- {netmap/v2 => v2/netmap}/marshal.go | 2 +- {netmap/v2 => v2/netmap}/types.go | 2 +- {netmap/v2 => v2/netmap}/types.pb.go | 135 ++-- {netmap/v2 => v2/netmap}/types.proto | 4 +- {object/v2 => v2/object}/service.go | 6 +- {object/v2 => v2/object}/service.pb.go | 735 +++++++++--------- {object/v2 => v2/object}/service.proto | 112 +-- {object/v2 => v2/object}/types.go | 6 +- {object/v2 => v2/object}/types.pb.go | 201 ++--- {object/v2 => v2/object}/types.proto | 38 +- {refs/v2 => v2/refs}/marshal.go | 2 +- {refs/v2 => v2/refs}/marshal_test.go | 2 +- {refs/v2 => v2/refs}/types.go | 2 +- {refs/v2 => v2/refs}/types.pb.go | 60 +- {refs/v2 => v2/refs}/types.proto | 6 +- {service/v2 => v2/service}/meta.go | 6 +- {service/v2 => v2/service}/meta.pb.go | 180 ++--- {service/v2 => v2/service}/meta.proto | 18 +- {service/v2 => v2/service}/verify.go | 2 +- {service/v2 => v2/service}/verify.pb.go | 67 +- {service/v2 => v2/service}/verify.proto | 7 +- {session/v2 => v2/session}/service.go | 6 +- {session/v2 => v2/session}/service.pb.go | 155 ++-- {session/v2 => v2/session}/service.proto | 29 +- {storagegroup/v2 => v2/storagegroup}/types.go | 4 +- .../v2 => v2/storagegroup}/types.pb.go | 65 +- .../v2 => v2/storagegroup}/types.proto | 8 +- 48 files changed, 1479 insertions(+), 1515 deletions(-) rename {service => pkg}/signature/data.go (100%) rename {service => pkg}/signature/options.go (100%) rename {service => pkg}/signature/request.go (100%) rename {service => pkg}/signature/util.go (100%) delete mode 100644 service/v2/marshal.go delete mode 100644 service/v2/signature.go rename {accounting/v2 => v2/accounting}/service.go (92%) rename {accounting/v2 => v2/accounting}/service.pb.go (84%) rename {accounting/v2 => v2/accounting}/service.proto (79%) rename {acl/v2 => v2/acl}/types.go (96%) rename {acl/v2 => v2/acl}/types.pb.go (83%) rename {acl/v2 => v2/acl}/types.proto (91%) rename {container/v2 => v2/container}/marshal.go (99%) rename {container/v2 => v2/container}/marshal_test.go (92%) rename {container/v2 => v2/container}/service.go (97%) rename {container/v2 => v2/container}/service.pb.go (87%) rename {container/v2 => v2/container}/service.proto (77%) rename {container/v2 => v2/container}/signature.go (95%) rename {container/v2 => v2/container}/types.go (89%) rename {container/v2 => v2/container}/types.pb.go (84%) rename {container/v2 => v2/container}/types.proto (80%) rename {netmap/v2 => v2/netmap}/marshal.go (99%) rename {netmap/v2 => v2/netmap}/types.go (99%) rename {netmap/v2 => v2/netmap}/types.pb.go (90%) rename {netmap/v2 => v2/netmap}/types.proto (95%) rename {object/v2 => v2/object}/service.go (99%) rename {object/v2 => v2/object}/service.pb.go (88%) rename {object/v2 => v2/object}/service.proto (79%) rename {object/v2 => v2/object}/types.go (96%) rename {object/v2 => v2/object}/types.pb.go (84%) rename {object/v2 => v2/object}/types.proto (71%) rename {refs/v2 => v2/refs}/marshal.go (98%) rename {refs/v2 => v2/refs}/marshal_test.go (98%) rename {refs/v2 => v2/refs}/types.go (98%) rename {refs/v2 => v2/refs}/types.pb.go (90%) rename {refs/v2 => v2/refs}/types.proto (88%) rename {service/v2 => v2/service}/meta.go (97%) rename {service/v2 => v2/service}/meta.pb.go (90%) rename {service/v2 => v2/service}/meta.proto (89%) rename {service/v2 => v2/service}/verify.go (99%) rename {service/v2 => v2/service}/verify.pb.go (90%) rename {service/v2 => v2/service}/verify.proto (88%) rename {session/v2 => v2/session}/service.go (92%) rename {session/v2 => v2/session}/service.pb.go (83%) rename {session/v2 => v2/session}/service.proto (70%) rename {storagegroup/v2 => v2/storagegroup}/types.go (91%) rename {storagegroup/v2 => v2/storagegroup}/types.pb.go (80%) rename {storagegroup/v2 => v2/storagegroup}/types.proto (82%) diff --git a/service/signature/data.go b/pkg/signature/data.go similarity index 100% rename from service/signature/data.go rename to pkg/signature/data.go diff --git a/service/signature/options.go b/pkg/signature/options.go similarity index 100% rename from service/signature/options.go rename to pkg/signature/options.go diff --git a/service/signature/request.go b/pkg/signature/request.go similarity index 100% rename from service/signature/request.go rename to pkg/signature/request.go diff --git a/service/signature/util.go b/pkg/signature/util.go similarity index 100% rename from service/signature/util.go rename to pkg/signature/util.go diff --git a/service/v2/marshal.go b/service/v2/marshal.go deleted file mode 100644 index 54b7d10..0000000 --- a/service/v2/marshal.go +++ /dev/null @@ -1,21 +0,0 @@ -package v2 - -func (m *RequestMetaHeader) StableMarshal(buf []byte) ([]byte, error) { - // fixme: implement stable - return m.Marshal() -} - -func (m *RequestMetaHeader) StableSize() int { - // fixme: implement stable - return m.Size() -} - -func (m *RequestVerificationHeader) StableMarshal(buf []byte) ([]byte, error) { - // fixme: implement stable - return m.Marshal() -} - -func (m *RequestVerificationHeader) StableSize() int { - // fixme: implement stable - return m.Size() -} diff --git a/service/v2/signature.go b/service/v2/signature.go deleted file mode 100644 index 5470bea..0000000 --- a/service/v2/signature.go +++ /dev/null @@ -1,17 +0,0 @@ -package v2 - -func (m *RequestMetaHeader) ReadSignedData(buf []byte) ([]byte, error) { - return m.StableMarshal(buf) -} - -func (m *RequestMetaHeader) SignedDataSize() int { - return m.StableSize() -} - -func (m *RequestVerificationHeader) ReadSignedData(buf []byte) ([]byte, error) { - return m.StableMarshal(buf) -} - -func (m *RequestVerificationHeader) SignedDataSize() int { - return m.StableSize() -} diff --git a/accounting/v2/service.go b/v2/accounting/service.go similarity index 92% rename from accounting/v2/service.go rename to v2/accounting/service.go index 8898217..456d0e2 100644 --- a/accounting/v2/service.go +++ b/v2/accounting/service.go @@ -1,8 +1,8 @@ -package v2 +package accounting import ( - refs "github.com/nspcc-dev/neofs-api-go/refs/v2" - service "github.com/nspcc-dev/neofs-api-go/service/v2" + "github.com/nspcc-dev/neofs-api-go/v2/refs" + "github.com/nspcc-dev/neofs-api-go/v2/service" ) // SetValue sets value of the decimal number. diff --git a/accounting/v2/service.pb.go b/v2/accounting/service.pb.go similarity index 84% rename from accounting/v2/service.pb.go rename to v2/accounting/service.pb.go index 7d8eba9..0a4deda 100644 --- a/accounting/v2/service.pb.go +++ b/v2/accounting/service.pb.go @@ -1,14 +1,14 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: accounting/v2/service.proto +// source: v2/accounting/service.proto -package v2 +package accounting import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" - v21 "github.com/nspcc-dev/neofs-api-go/refs/v2" - v2 "github.com/nspcc-dev/neofs-api-go/service/v2" + refs "github.com/nspcc-dev/neofs-api-go/v2/refs" + service "github.com/nspcc-dev/neofs-api-go/v2/service" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -40,21 +40,21 @@ type BalanceRequest struct { Body *BalanceRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries request meta information. Header data is used only to regulate // message transport and does not affect request execution. - MetaHeader *v2.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries request verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - VerifyHeader *v2.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *BalanceRequest) Reset() { *m = BalanceRequest{} } func (m *BalanceRequest) String() string { return proto.CompactTextString(m) } func (*BalanceRequest) ProtoMessage() {} func (*BalanceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_bac189e9286e823b, []int{0} + return fileDescriptor_484f6b0e24e3172f, []int{0} } func (m *BalanceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -90,14 +90,14 @@ func (m *BalanceRequest) GetBody() *BalanceRequest_Body { return nil } -func (m *BalanceRequest) GetMetaHeader() *v2.RequestMetaHeader { +func (m *BalanceRequest) GetMetaHeader() *service.RequestMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *BalanceRequest) GetVerifyHeader() *v2.RequestVerificationHeader { +func (m *BalanceRequest) GetVerifyHeader() *service.RequestVerificationHeader { if m != nil { return m.VerifyHeader } @@ -107,17 +107,17 @@ func (m *BalanceRequest) GetVerifyHeader() *v2.RequestVerificationHeader { type BalanceRequest_Body struct { // Carries user identifier in NeoFS system for which the balance // is requested. - OwnerId *v21.OwnerID `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + OwnerId *refs.OwnerID `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *BalanceRequest_Body) Reset() { *m = BalanceRequest_Body{} } func (m *BalanceRequest_Body) String() string { return proto.CompactTextString(m) } func (*BalanceRequest_Body) ProtoMessage() {} func (*BalanceRequest_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_bac189e9286e823b, []int{0, 0} + return fileDescriptor_484f6b0e24e3172f, []int{0, 0} } func (m *BalanceRequest_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -146,7 +146,7 @@ func (m *BalanceRequest_Body) XXX_DiscardUnknown() { var xxx_messageInfo_BalanceRequest_Body proto.InternalMessageInfo -func (m *BalanceRequest_Body) GetOwnerId() *v21.OwnerID { +func (m *BalanceRequest_Body) GetOwnerId() *refs.OwnerID { if m != nil { return m.OwnerId } @@ -168,7 +168,7 @@ func (m *Decimal) Reset() { *m = Decimal{} } func (m *Decimal) String() string { return proto.CompactTextString(m) } func (*Decimal) ProtoMessage() {} func (*Decimal) Descriptor() ([]byte, []int) { - return fileDescriptor_bac189e9286e823b, []int{1} + return fileDescriptor_484f6b0e24e3172f, []int{1} } func (m *Decimal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -219,21 +219,21 @@ type BalanceResponse struct { Body *BalanceResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - MetaHeader *v2.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - VerifyHeader *v2.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *BalanceResponse) Reset() { *m = BalanceResponse{} } func (m *BalanceResponse) String() string { return proto.CompactTextString(m) } func (*BalanceResponse) ProtoMessage() {} func (*BalanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_bac189e9286e823b, []int{2} + return fileDescriptor_484f6b0e24e3172f, []int{2} } func (m *BalanceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -269,14 +269,14 @@ func (m *BalanceResponse) GetBody() *BalanceResponse_Body { return nil } -func (m *BalanceResponse) GetMetaHeader() *v2.ResponseMetaHeader { +func (m *BalanceResponse) GetMetaHeader() *service.ResponseMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *BalanceResponse) GetVerifyHeader() *v2.ResponseVerificationHeader { +func (m *BalanceResponse) GetVerifyHeader() *service.ResponseVerificationHeader { if m != nil { return m.VerifyHeader } @@ -295,7 +295,7 @@ func (m *BalanceResponse_Body) Reset() { *m = BalanceResponse_Body{} } func (m *BalanceResponse_Body) String() string { return proto.CompactTextString(m) } func (*BalanceResponse_Body) ProtoMessage() {} func (*BalanceResponse_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_bac189e9286e823b, []int{2, 0} + return fileDescriptor_484f6b0e24e3172f, []int{2, 0} } func (m *BalanceResponse_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -332,46 +332,46 @@ func (m *BalanceResponse_Body) GetBalance() *Decimal { } func init() { - proto.RegisterType((*BalanceRequest)(nil), "accounting.v2.BalanceRequest") - proto.RegisterType((*BalanceRequest_Body)(nil), "accounting.v2.BalanceRequest.Body") - proto.RegisterType((*Decimal)(nil), "accounting.v2.Decimal") - proto.RegisterType((*BalanceResponse)(nil), "accounting.v2.BalanceResponse") - proto.RegisterType((*BalanceResponse_Body)(nil), "accounting.v2.BalanceResponse.Body") + proto.RegisterType((*BalanceRequest)(nil), "neo.fs.v2.accounting.BalanceRequest") + proto.RegisterType((*BalanceRequest_Body)(nil), "neo.fs.v2.accounting.BalanceRequest.Body") + proto.RegisterType((*Decimal)(nil), "neo.fs.v2.accounting.Decimal") + proto.RegisterType((*BalanceResponse)(nil), "neo.fs.v2.accounting.BalanceResponse") + proto.RegisterType((*BalanceResponse_Body)(nil), "neo.fs.v2.accounting.BalanceResponse.Body") } -func init() { proto.RegisterFile("accounting/v2/service.proto", fileDescriptor_bac189e9286e823b) } +func init() { proto.RegisterFile("v2/accounting/service.proto", fileDescriptor_484f6b0e24e3172f) } -var fileDescriptor_bac189e9286e823b = []byte{ - // 457 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xdf, 0x6a, 0x13, 0x41, - 0x14, 0xc6, 0xdd, 0xb4, 0x1a, 0x3d, 0x35, 0x2a, 0x63, 0xd5, 0x12, 0xed, 0x22, 0x11, 0x45, 0x90, - 0xcc, 0xca, 0x16, 0xd4, 0x1b, 0x95, 0x86, 0x22, 0x8d, 0xe2, 0x1f, 0x56, 0x28, 0xe2, 0x4d, 0x99, - 0xcc, 0x9e, 0xa4, 0x03, 0xc9, 0xcc, 0xba, 0xb3, 0x59, 0xc9, 0x23, 0x78, 0xeb, 0x95, 0xcf, 0xe0, - 0x93, 0x78, 0xe9, 0x23, 0x48, 0x7c, 0x11, 0x99, 0x3f, 0x49, 0xba, 0x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 0x17, 0xec, 0xc3, 0xd8, 0xf9, 0x17, 0x00, 0x00, 0xff, - 0xff, 0x07, 0x70, 0x83, 0xd8, 0x8b, 0x03, 0x00, 0x00, +var fileDescriptor_484f6b0e24e3172f = []byte{ + // 464 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xdf, 0x6a, 0x13, 0x41, + 0x18, 0xc5, 0xdd, 0xb4, 0x1a, 0xfd, 0x6a, 0x15, 0xc6, 0x48, 0x4b, 0xd4, 0x20, 0xa1, 0x05, 0x15, + 0x33, 0x03, 0xeb, 0x85, 0x20, 0x54, 0x69, 0xa8, 0xc5, 0x5c, 0xf8, 0x6f, 0x85, 0x22, 0xde, 0x94, + 0xc9, 0xec, 0x97, 0x74, 0x20, 0x99, 0x59, 0x77, 0x36, 0x2b, 0x79, 0x13, 0x5f, 0xc0, 0x1b, 0x2f, + 0x7c, 0x0e, 0x2f, 0x7d, 0x04, 0x89, 0x2f, 0x22, 0x3b, 0x33, 0x49, 0x36, 0xb0, 0x6d, 0x73, 0xb7, + 0x33, 0x73, 0xce, 0x99, 0xef, 0xfc, 0xd8, 0x81, 0x7b, 0x79, 0xc8, 0xb8, 0x10, 0x7a, 0xa2, 0x32, + 0xa9, 0x86, 0xcc, 0x60, 0x9a, 0x4b, 0x81, 0x34, 0x49, 0x75, 0xa6, 0x49, 0x43, 0xa1, 0xa6, 0x03, + 0x43, 0xf3, 0x90, 0x2e, 0x35, 0xcd, 0x3b, 0x79, 0xc8, 0x52, 0x1c, 0x18, 0x96, 0x4d, 0x13, 0x34, + 0x4e, 0xda, 0xbc, 0x9b, 0x87, 0x73, 0x33, 0x1b, 0x63, 0xc6, 0xfd, 0xf6, 0x4e, 0x69, 0x3b, 0xc7, + 0x54, 0x0e, 0xa6, 0xee, 0xa0, 0xfd, 0xa3, 0x06, 0xb7, 0xba, 0x7c, 0xc4, 0x95, 0xc0, 0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, 0xe9, 0xa8, 0x9a, 0x74, 0xe7, 0x82, 0xa4, 0x4b, 0x51, 0xbf, 0xf2, 0xa8, + 0x9f, 0x43, 0xbd, 0xef, 0x1a, 0xf8, 0x9a, 0x0f, 0xaa, 0x6b, 0x7a, 0xb6, 0xd1, 0x5c, 0x1d, 0xc6, + 0x00, 0x87, 0x8b, 0x63, 0x72, 0x02, 0x75, 0x0f, 0x82, 0xec, 0xad, 0xf3, 0x3f, 0x36, 0xf7, 0xd7, + 0xa2, 0xd9, 0xfd, 0xfc, 0x7b, 0xd6, 0x0a, 0xfe, 0xcc, 0x5a, 0xc1, 0xdf, 0x59, 0x2b, 0xf8, 0xfe, + 0xaf, 0x75, 0xe5, 0x0b, 0x1b, 0xca, 0xec, 0x6c, 0xd2, 0xa7, 0x42, 0x8f, 0x99, 0x32, 0x89, 0x10, + 0x9d, 0x18, 0x73, 0xa6, 0x50, 0x0f, 0x4c, 0x87, 0x27, 0xb2, 0x33, 0xd4, 0x6c, 0xe5, 0xa5, 0xfe, + 0xac, 0x35, 0xde, 0xa1, 0x3e, 0xfe, 0x44, 0x0f, 0x3f, 0xf4, 0xe8, 0x72, 0xe2, 0xfe, 0x35, 0xfb, + 0xbc, 0x9e, 0xfd, 0x0f, 0x00, 0x00, 0xff, 0xff, 0x4f, 0x91, 0xf3, 0x3d, 0xd8, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -400,7 +400,7 @@ func NewAccountingClient(cc *grpc.ClientConn) AccountingClient { func (c *accountingClient) Balance(ctx context.Context, in *BalanceRequest, opts ...grpc.CallOption) (*BalanceResponse, error) { out := new(BalanceResponse) - err := c.cc.Invoke(ctx, "/accounting.v2.Accounting/Balance", in, out, opts...) + err := c.cc.Invoke(ctx, "/neo.fs.v2.accounting.Accounting/Balance", in, out, opts...) if err != nil { return nil, err } @@ -435,7 +435,7 @@ func _Accounting_Balance_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/accounting.v2.Accounting/Balance", + FullMethod: "/neo.fs.v2.accounting.Accounting/Balance", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountingServer).Balance(ctx, req.(*BalanceRequest)) @@ -444,7 +444,7 @@ func _Accounting_Balance_Handler(srv interface{}, ctx context.Context, dec func( } var _Accounting_serviceDesc = grpc.ServiceDesc{ - ServiceName: "accounting.v2.Accounting", + ServiceName: "neo.fs.v2.accounting.Accounting", HandlerType: (*AccountingServer)(nil), Methods: []grpc.MethodDesc{ { @@ -453,7 +453,7 @@ var _Accounting_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "accounting/v2/service.proto", + Metadata: "v2/accounting/service.proto", } func (m *BalanceRequest) Marshal() (dAtA []byte, err error) { @@ -907,7 +907,7 @@ func (m *BalanceRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.RequestMetaHeader{} + m.MetaHeader = &service.RequestMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -943,7 +943,7 @@ func (m *BalanceRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.RequestVerificationHeader{} + m.VerifyHeader = &service.RequestVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1033,7 +1033,7 @@ func (m *BalanceRequest_Body) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.OwnerId == nil { - m.OwnerId = &v21.OwnerID{} + m.OwnerId = &refs.OwnerID{} } if err := m.OwnerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1251,7 +1251,7 @@ func (m *BalanceResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.ResponseMetaHeader{} + m.MetaHeader = &service.ResponseMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1287,7 +1287,7 @@ func (m *BalanceResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.ResponseVerificationHeader{} + m.VerifyHeader = &service.ResponseVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/accounting/v2/service.proto b/v2/accounting/service.proto similarity index 79% rename from accounting/v2/service.proto rename to v2/accounting/service.proto index 6c12c6b..35d55a7 100644 --- a/accounting/v2/service.proto +++ b/v2/accounting/service.proto @@ -1,13 +1,13 @@ syntax = "proto3"; -package accounting.v2; +package neo.fs.v2.accounting; -option go_package = "github.com/nspcc-dev/neofs-api-go/accounting/v2"; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/accounting"; option csharp_namespace = "NeoFS.API.Accounting"; -import "refs/v2/types.proto"; -import "service/v2/meta.proto"; -import "service/v2/verify.proto"; +import "v2/refs/types.proto"; +import "v2/service/meta.proto"; +import "v2/service/verify.proto"; // The service provides methods for obtaining information // about the account balance in NeoFS system. @@ -27,7 +27,7 @@ message BalanceRequest { message Body { // Carries user identifier in NeoFS system for which the balance // is requested. - refs.v2.OwnerID owner_id = 1; + neo.fs.v2.refs.OwnerID owner_id = 1; } // Body of the balance request message. @@ -35,12 +35,12 @@ message BalanceRequest { // Carries request meta information. Header data is used only to regulate // message transport and does not affect request execution. - service.v2.RequestMetaHeader meta_header = 2; + neo.fs.v2.service.RequestMetaHeader meta_header = 2; // Carries request verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - service.v2.RequestVerificationHeader verify_header = 3; + neo.fs.v2.service.RequestVerificationHeader verify_header = 3; } // Decimal represents the decimal numbers. @@ -66,10 +66,10 @@ message BalanceResponse { // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - service.v2.ResponseMetaHeader meta_header = 2; + neo.fs.v2.service.ResponseMetaHeader meta_header = 2; // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - service.v2.ResponseVerificationHeader verify_header = 3; + neo.fs.v2.service.ResponseVerificationHeader verify_header = 3; } diff --git a/acl/v2/types.go b/v2/acl/types.go similarity index 96% rename from acl/v2/types.go rename to v2/acl/types.go index 58eaf2e..6374787 100644 --- a/acl/v2/types.go +++ b/v2/acl/types.go @@ -1,7 +1,7 @@ -package v2 +package acl import ( - refs "github.com/nspcc-dev/neofs-api-go/refs/v2" + "github.com/nspcc-dev/neofs-api-go/v2/refs" ) // SetContainerId sets container identifier of the eACL table. diff --git a/acl/v2/types.pb.go b/v2/acl/types.pb.go similarity index 83% rename from acl/v2/types.pb.go rename to v2/acl/types.pb.go index 06711e2..e05fcf5 100644 --- a/acl/v2/types.pb.go +++ b/v2/acl/types.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: acl/v2/types.proto +// source: v2/acl/types.proto -package v2 +package acl import ( fmt "fmt" proto "github.com/golang/protobuf/proto" - v2 "github.com/nspcc-dev/neofs-api-go/refs/v2" + refs "github.com/nspcc-dev/neofs-api-go/v2/refs" io "io" math "math" math_bits "math/bits" @@ -29,7 +29,7 @@ type Target int32 const ( // Unknown target, default value. Target_UNKNOWN Target = 0 - // User target rule is applied if sender is the owner of the container.v2. + // User target rule is applied if sender is the owner of the container. Target_USER Target = 1 // System target rule is applied if sender is the storage node within the // container or inner ring node. @@ -57,7 +57,7 @@ func (x Target) String() string { } func (Target) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_ab60484daff20d3c, []int{0} + return fileDescriptor_d237ab7979f0d6cf, []int{0} } // Operation is an enumeration of operation types. @@ -101,7 +101,7 @@ func (x EACLRecord_Operation) String() string { } func (EACLRecord_Operation) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_ab60484daff20d3c, []int{0, 0} + return fileDescriptor_d237ab7979f0d6cf, []int{0, 0} } // Action is an enumeration of EACL actions. @@ -130,7 +130,7 @@ func (x EACLRecord_Action) String() string { } func (EACLRecord_Action) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_ab60484daff20d3c, []int{0, 1} + return fileDescriptor_d237ab7979f0d6cf, []int{0, 1} } // Header is an enumeration of filtering header types. @@ -159,7 +159,7 @@ func (x EACLRecord_FilterInfo_Header) String() string { } func (EACLRecord_FilterInfo_Header) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_ab60484daff20d3c, []int{0, 0, 0} + return fileDescriptor_d237ab7979f0d6cf, []int{0, 0, 0} } // MatchType is an enumeration of match types. @@ -188,15 +188,15 @@ func (x EACLRecord_FilterInfo_MatchType) String() string { } func (EACLRecord_FilterInfo_MatchType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_ab60484daff20d3c, []int{0, 0, 1} + return fileDescriptor_d237ab7979f0d6cf, []int{0, 0, 1} } // EACLRecord groups information about extended ACL rule. type EACLRecord struct { // Operation carries type of operation. - Operation EACLRecord_Operation `protobuf:"varint,1,opt,name=operation,json=Operation,proto3,enum=acl.v2.EACLRecord_Operation" json:"operation,omitempty"` + Operation EACLRecord_Operation `protobuf:"varint,1,opt,name=operation,json=Operation,proto3,enum=neo.fs.v2.acl.EACLRecord_Operation" json:"operation,omitempty"` // Action carries ACL target action. - Action EACLRecord_Action `protobuf:"varint,2,opt,name=action,json=Action,proto3,enum=acl.v2.EACLRecord_Action" json:"action,omitempty"` + Action EACLRecord_Action `protobuf:"varint,2,opt,name=action,json=Action,proto3,enum=neo.fs.v2.acl.EACLRecord_Action" json:"action,omitempty"` // filters carries set of filters. Filters []*EACLRecord_FilterInfo `protobuf:"bytes,3,rep,name=filters,json=Filters,proto3" json:"filters,omitempty"` // targets carries information about extended ACL target list. @@ -210,7 +210,7 @@ func (m *EACLRecord) Reset() { *m = EACLRecord{} } func (m *EACLRecord) String() string { return proto.CompactTextString(m) } func (*EACLRecord) ProtoMessage() {} func (*EACLRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_ab60484daff20d3c, []int{0} + return fileDescriptor_d237ab7979f0d6cf, []int{0} } func (m *EACLRecord) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -270,9 +270,9 @@ func (m *EACLRecord) GetTargets() []*EACLRecord_TargetInfo { // FilterInfo groups information about filter. type EACLRecord_FilterInfo struct { // Header carries type of header. - Header EACLRecord_FilterInfo_Header `protobuf:"varint,1,opt,name=header,json=HeaderType,proto3,enum=acl.v2.EACLRecord_FilterInfo_Header" json:"header,omitempty"` + Header EACLRecord_FilterInfo_Header `protobuf:"varint,1,opt,name=header,json=HeaderType,proto3,enum=neo.fs.v2.acl.EACLRecord_FilterInfo_Header" json:"header,omitempty"` // MatchType carries type of match. - MatchType EACLRecord_FilterInfo_MatchType `protobuf:"varint,2,opt,name=match_type,json=MatchType,proto3,enum=acl.v2.EACLRecord_FilterInfo_MatchType" json:"match_type,omitempty"` + MatchType EACLRecord_FilterInfo_MatchType `protobuf:"varint,2,opt,name=match_type,json=MatchType,proto3,enum=neo.fs.v2.acl.EACLRecord_FilterInfo_MatchType" json:"match_type,omitempty"` // header_name carries name of filtering header. HeaderName string `protobuf:"bytes,3,opt,name=header_name,json=Name,proto3" json:"header_name,omitempty"` // header_val carries value of filtering header. @@ -286,7 +286,7 @@ func (m *EACLRecord_FilterInfo) Reset() { *m = EACLRecord_FilterInfo{} } func (m *EACLRecord_FilterInfo) String() string { return proto.CompactTextString(m) } func (*EACLRecord_FilterInfo) ProtoMessage() {} func (*EACLRecord_FilterInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_ab60484daff20d3c, []int{0, 0} + return fileDescriptor_d237ab7979f0d6cf, []int{0, 0} } func (m *EACLRecord_FilterInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -346,7 +346,7 @@ func (m *EACLRecord_FilterInfo) GetHeaderVal() string { // TargetInfo groups information about extended ACL target. type EACLRecord_TargetInfo struct { // target carries target of ACL rule. - Target Target `protobuf:"varint,1,opt,name=target,json=Role,proto3,enum=acl.v2.Target" json:"target,omitempty"` + Target Target `protobuf:"varint,1,opt,name=target,json=Role,proto3,enum=neo.fs.v2.acl.Target" json:"target,omitempty"` // key_list carries public keys of ACL target. KeyList [][]byte `protobuf:"bytes,2,rep,name=key_list,json=Keys,proto3" json:"key_list,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -358,7 +358,7 @@ func (m *EACLRecord_TargetInfo) Reset() { *m = EACLRecord_TargetInfo{} } func (m *EACLRecord_TargetInfo) String() string { return proto.CompactTextString(m) } func (*EACLRecord_TargetInfo) ProtoMessage() {} func (*EACLRecord_TargetInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_ab60484daff20d3c, []int{0, 1} + return fileDescriptor_d237ab7979f0d6cf, []int{0, 1} } func (m *EACLRecord_TargetInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -405,7 +405,7 @@ func (m *EACLRecord_TargetInfo) GetKeyList() [][]byte { type EACLTable struct { // Carries identifier of the container that should use given // access control rules. - ContainerId *v2.ContainerID `protobuf:"bytes,1,opt,name=container_id,json=ContainerID,proto3" json:"container_id,omitempty"` + ContainerId *refs.ContainerID `protobuf:"bytes,1,opt,name=container_id,json=ContainerID,proto3" json:"container_id,omitempty"` // Records carries list of extended ACL rule records. Records []*EACLRecord `protobuf:"bytes,2,rep,name=records,json=Records,proto3" json:"records,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -417,7 +417,7 @@ func (m *EACLTable) Reset() { *m = EACLTable{} } func (m *EACLTable) String() string { return proto.CompactTextString(m) } func (*EACLTable) ProtoMessage() {} func (*EACLTable) Descriptor() ([]byte, []int) { - return fileDescriptor_ab60484daff20d3c, []int{1} + return fileDescriptor_d237ab7979f0d6cf, []int{1} } func (m *EACLTable) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -446,7 +446,7 @@ func (m *EACLTable) XXX_DiscardUnknown() { var xxx_messageInfo_EACLTable proto.InternalMessageInfo -func (m *EACLTable) GetContainerId() *v2.ContainerID { +func (m *EACLTable) GetContainerId() *refs.ContainerID { if m != nil { return m.ContainerId } @@ -461,64 +461,64 @@ func (m *EACLTable) GetRecords() []*EACLRecord { } func init() { - proto.RegisterEnum("acl.v2.Target", Target_name, Target_value) - proto.RegisterEnum("acl.v2.EACLRecord_Operation", EACLRecord_Operation_name, EACLRecord_Operation_value) - proto.RegisterEnum("acl.v2.EACLRecord_Action", EACLRecord_Action_name, EACLRecord_Action_value) - proto.RegisterEnum("acl.v2.EACLRecord_FilterInfo_Header", EACLRecord_FilterInfo_Header_name, EACLRecord_FilterInfo_Header_value) - proto.RegisterEnum("acl.v2.EACLRecord_FilterInfo_MatchType", EACLRecord_FilterInfo_MatchType_name, EACLRecord_FilterInfo_MatchType_value) - proto.RegisterType((*EACLRecord)(nil), "acl.v2.EACLRecord") - proto.RegisterType((*EACLRecord_FilterInfo)(nil), "acl.v2.EACLRecord.FilterInfo") - proto.RegisterType((*EACLRecord_TargetInfo)(nil), "acl.v2.EACLRecord.TargetInfo") - proto.RegisterType((*EACLTable)(nil), "acl.v2.EACLTable") + proto.RegisterEnum("neo.fs.v2.acl.Target", Target_name, Target_value) + proto.RegisterEnum("neo.fs.v2.acl.EACLRecord_Operation", EACLRecord_Operation_name, EACLRecord_Operation_value) + proto.RegisterEnum("neo.fs.v2.acl.EACLRecord_Action", EACLRecord_Action_name, EACLRecord_Action_value) + proto.RegisterEnum("neo.fs.v2.acl.EACLRecord_FilterInfo_Header", EACLRecord_FilterInfo_Header_name, EACLRecord_FilterInfo_Header_value) + proto.RegisterEnum("neo.fs.v2.acl.EACLRecord_FilterInfo_MatchType", EACLRecord_FilterInfo_MatchType_name, EACLRecord_FilterInfo_MatchType_value) + proto.RegisterType((*EACLRecord)(nil), "neo.fs.v2.acl.EACLRecord") + proto.RegisterType((*EACLRecord_FilterInfo)(nil), "neo.fs.v2.acl.EACLRecord.FilterInfo") + proto.RegisterType((*EACLRecord_TargetInfo)(nil), "neo.fs.v2.acl.EACLRecord.TargetInfo") + proto.RegisterType((*EACLTable)(nil), "neo.fs.v2.acl.EACLTable") } -func init() { proto.RegisterFile("acl/v2/types.proto", fileDescriptor_ab60484daff20d3c) } +func init() { proto.RegisterFile("v2/acl/types.proto", fileDescriptor_d237ab7979f0d6cf) } -var fileDescriptor_ab60484daff20d3c = []byte{ - // 674 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0xdd, 0x6e, 0xda, 0x4a, - 0x10, 0x8e, 0x8d, 0x63, 0x60, 0x20, 0x68, 0xb3, 0x27, 0xe7, 0x88, 0x44, 0xa7, 0x08, 0xa1, 0x48, - 0x45, 0x55, 0x63, 0x14, 0xaa, 0x2a, 0x52, 0xaf, 0xea, 0xc0, 0xf2, 0x93, 0x10, 0x93, 0xac, 0x4d, - 0xa3, 0xf4, 0x06, 0x6d, 0xcc, 0x92, 0xa0, 0x1a, 0x8c, 0x6c, 0x07, 0x89, 0x37, 0xe9, 0x33, 0xf4, - 0xb2, 0x4f, 0x51, 0xa9, 0x37, 0x7d, 0x84, 0x2a, 0x7d, 0x91, 0x6a, 0xbd, 0x10, 0x50, 0x9a, 0xe6, - 0x6a, 0xc7, 0x33, 0xdf, 0xb7, 0x33, 0xdf, 0xcc, 0x78, 0x01, 0x33, 0xd7, 0xab, 0xcc, 0xaa, 0x95, - 0x68, 0x3e, 0xe5, 0xa1, 0x31, 0x0d, 0xfc, 0xc8, 0xc7, 0x3a, 0x73, 0x3d, 0x63, 0x56, 0xdd, 0xfb, - 0x27, 0xe0, 0xc3, 0xf0, 0x51, 0xb0, 0xf4, 0x55, 0x07, 0x20, 0x66, 0xad, 0x43, 0xb9, 0xeb, 0x07, - 0x03, 0xfc, 0x0e, 0xd2, 0xfe, 0x94, 0x07, 0x2c, 0x1a, 0xf9, 0x93, 0xbc, 0x52, 0x54, 0xca, 0xb9, - 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, 0xec, - 0xda, 0xe3, 0xf8, 0x08, 0xb2, 0xae, 0x3f, 0x89, 0xd8, 0x68, 0xc2, 0x83, 0xfe, 0x68, 0x10, 0x6b, - 0xcf, 0x54, 0x77, 0x0c, 0xf1, 0xb7, 0x09, 0xf1, 0xb5, 0x65, 0xb0, 0x5d, 0xa7, 0x99, 0xb5, 0x0f, - 0xfc, 0x1a, 0x92, 0x41, 0xbc, 0x1b, 0x61, 0xdc, 0x87, 0x4c, 0x15, 0xff, 0xb9, 0x36, 0x34, 0x29, - 0xcf, 0xf0, 0xd5, 0x11, 0xe8, 0xb2, 0x8d, 0x62, 0xaa, 0xab, 0xfa, 0x52, 0xa0, 0xf5, 0x6c, 0x42, - 0xe5, 0x7c, 0xed, 0x2b, 0xdb, 0x21, 0x67, 0x48, 0x8d, 0x67, 0xed, 0xb4, 0x08, 0xb5, 0x51, 0xe2, - 0xf8, 0xe4, 0xdb, 0x7d, 0x41, 0xf9, 0x71, 0x5f, 0x50, 0x7e, 0xde, 0x17, 0x94, 0xcf, 0xbf, 0x0a, - 0x1b, 0x1f, 0xcb, 0x37, 0xa3, 0xe8, 0xf6, 0xee, 0xda, 0x70, 0xfd, 0x71, 0x65, 0x12, 0x4e, 0x5d, - 0xf7, 0x60, 0xc0, 0x67, 0x95, 0x09, 0xf7, 0x87, 0xe1, 0x01, 0x9b, 0x8e, 0x0e, 0x6e, 0xfc, 0x8a, - 0x7c, 0x46, 0xbe, 0xa8, 0x5b, 0x16, 0xf7, 0x1b, 0xb6, 0x61, 0x9e, 0xb7, 0x0d, 0xd3, 0xf5, 0xae, - 0xf5, 0xf8, 0xd1, 0x78, 0xf3, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xc3, 0x1e, 0x3c, 0xb6, 0x67, 0x04, - 0x00, 0x00, +var fileDescriptor_d237ab7979f0d6cf = []byte{ + // 683 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x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5, + 0x2a, 0xb9, 0xda, 0xdb, 0xa7, 0xa9, 0xc7, 0x31, 0xb0, 0xed, 0x8d, 0x7c, 0x9a, 0x16, 0x76, 0xc8, + 0xf9, 0x91, 0x1d, 0x5c, 0xb3, 0x28, 0x2c, 0x28, 0xff, 0xe3, 0x5b, 0x31, 0x50, 0xf0, 0x85, 0x1d, + 0xee, 0xfe, 0x96, 0x01, 0x56, 0x71, 0x71, 0x13, 0xd4, 0x1b, 0x66, 0x0f, 0x59, 0xb0, 0x10, 0x62, + 0xef, 0x39, 0xd5, 0x68, 0xad, 0x98, 0x42, 0x41, 0x9c, 0xd6, 0x7c, 0xca, 0x70, 0x17, 0x60, 0x62, + 0x47, 0xce, 0xcd, 0x80, 0x0b, 0xbf, 0x50, 0x45, 0x7b, 0x56, 0xb0, 0x2e, 0xa7, 0xf1, 0x18, 0x34, + 0xfb, 0x60, 0xe2, 0x1d, 0xc8, 0x89, 0xba, 0x06, 0x9e, 0x3d, 0x61, 0x85, 0x54, 0x49, 0xaa, 0x64, + 0xa9, 0x62, 0xd8, 0x13, 0xee, 0x82, 0x85, 0x6b, 0x66, 0xbb, 0x05, 0x25, 0xf6, 0xac, 0x7f, 0xb6, + 0xdd, 0x5b, 0x56, 0xfe, 0x00, 0xaa, 0x28, 0x09, 0x63, 0xd8, 0x6c, 0x11, 0xbd, 0x41, 0xe8, 0xa0, + 0x6f, 0x9c, 0x1a, 0xbd, 0x0b, 0x03, 0xad, 0xe1, 0x1c, 0xa4, 0x29, 0x39, 0xef, 0x13, 0xd3, 0x42, + 0x12, 0x06, 0x50, 0x7b, 0x47, 0x27, 0xa4, 0x6e, 0x21, 0xb9, 0x7c, 0x0c, 0x89, 0xcc, 0x5b, 0xb0, + 0xd1, 0xd5, 0xad, 0x7a, 0x2b, 0x41, 0x44, 0x90, 0x37, 0x2d, 0xda, 0x36, 0x9a, 0x03, 0x72, 0xde, + 0xd7, 0x3b, 0x48, 0xc2, 0x2f, 0x01, 0x2d, 0x6e, 0x8c, 0x9e, 0xb5, 0xb8, 0x95, 0x77, 0xcf, 0x01, + 0x56, 0x92, 0xe3, 0x3d, 0x50, 0xc5, 0xa4, 0x16, 0xd2, 0x6e, 0x3f, 0x52, 0x43, 0x40, 0xa9, 0x42, + 0x7d, 0x97, 0xe1, 0x57, 0x90, 0xf9, 0xca, 0xe6, 0x03, 0x77, 0x1c, 0x46, 0x05, 0xb9, 0x94, 0xaa, + 0xe4, 0xa9, 0x72, 0xca, 0xe6, 0x61, 0x79, 0x06, 0x89, 0xad, 0xdb, 0x86, 0xad, 0xde, 0x19, 0xa1, + 0xba, 0xd5, 0xee, 0x19, 0x89, 0xf2, 0xd2, 0x90, 0x6a, 0x12, 0xde, 0x53, 0x06, 0x14, 0xde, 0x34, + 0x92, 0xf9, 0xd5, 0x59, 0xdf, 0x42, 0x29, 0xde, 0x66, 0x83, 0x74, 0x88, 0x45, 0x90, 0xc2, 0x6d, + 0x93, 0xe8, 0xb4, 0xde, 0x42, 0xeb, 0x38, 0x0f, 0x99, 0x26, 0xb1, 0xa8, 0x6e, 0x34, 0x09, 0x52, + 0x79, 0x83, 0xcb, 0xaf, 0x96, 0x6e, 0xb6, 0x50, 0xba, 0xfc, 0x1e, 0x96, 0x0b, 0x8b, 0x61, 0x53, + 0xaf, 0x3f, 0xca, 0x98, 0x85, 0x75, 0xbd, 0xd3, 0xe9, 0x5d, 0x88, 0x9c, 0x0d, 0x62, 0x5c, 0x22, + 0xb9, 0xfc, 0x4d, 0x82, 0x2c, 0x9f, 0xb0, 0x65, 0x5f, 0xb9, 0x0c, 0x1f, 0x42, 0xde, 0xf1, 0xbd, + 0xc8, 0x1e, 0x7b, 0x2c, 0x18, 0x8c, 0x87, 0xb1, 0x06, 0xb9, 0xda, 0xeb, 0x84, 0x06, 0xfc, 0x37, + 0xd5, 0xea, 0x4b, 0x4c, 0xbb, 0x41, 0x73, 0x89, 0x0f, 0x7c, 0x00, 0xe9, 0x20, 0x5e, 0x95, 0x30, + 0xd6, 0x23, 0x57, 0xdb, 0x79, 0x72, 0x99, 0x68, 0x5a, 0x9c, 0xe1, 0xbb, 0x8f, 0xa0, 0x0a, 0x55, + 0xf9, 0xac, 0x57, 0xe5, 0x66, 0x40, 0xe9, 0x9b, 0x84, 0x8a, 0xa9, 0x9b, 0x97, 0xa6, 0x45, 0xba, + 0x48, 0x8e, 0x37, 0xc0, 0x6a, 0x11, 0x6a, 0xa2, 0xd4, 0xd1, 0xc9, 0xcf, 0xbb, 0xa2, 0xf4, 0xeb, + 0xae, 0x28, 0xfd, 0xb9, 0x2b, 0x4a, 0xdf, 0xef, 0x8b, 0x6b, 0x5f, 0x2a, 0xd7, 0xe3, 0xe8, 0xe6, + 0xf6, 0x4a, 0x73, 0xfc, 0x49, 0xd5, 0x0b, 0xa7, 0x8e, 0xb3, 0x3f, 0x64, 0xb3, 0xaa, 0xc7, 0xfc, + 0x51, 0xb8, 0x6f, 0x4f, 0xc7, 0xfb, 0xd7, 0x7e, 0x55, 0xbc, 0x46, 0x3f, 0xe4, 0x0d, 0x83, 0xf9, + 0xc7, 0xa6, 0xa6, 0x9f, 0xb5, 0x35, 0xdd, 0x71, 0xaf, 0xd4, 0xf8, 0xd1, 0x39, 0xf8, 0x1b, 0x00, + 0x00, 0xff, 0xff, 0x60, 0xb0, 0x68, 0x1a, 0xae, 0x04, 0x00, 0x00, } func (m *EACLRecord) Marshal() (dAtA []byte, err error) { @@ -1327,7 +1327,7 @@ func (m *EACLTable) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ContainerId == nil { - m.ContainerId = &v2.ContainerID{} + m.ContainerId = &refs.ContainerID{} } if err := m.ContainerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/acl/v2/types.proto b/v2/acl/types.proto similarity index 91% rename from acl/v2/types.proto rename to v2/acl/types.proto index 58bbe25..a0a4c0b 100644 --- a/acl/v2/types.proto +++ b/v2/acl/types.proto @@ -1,18 +1,18 @@ syntax = "proto3"; -package acl.v2; +package neo.fs.v2.acl; -option go_package = "github.com/nspcc-dev/neofs-api-go/acl/v2"; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/acl"; option csharp_namespace = "NeoFS.API.Acl"; -import "refs/v2/types.proto"; +import "v2/refs/types.proto"; // Target of the access control rule in access control list. enum Target { // Unknown target, default value. UNKNOWN = 0; - // User target rule is applied if sender is the owner of the container.v2. + // User target rule is applied if sender is the owner of the container. USER = 1; // System target rule is applied if sender is the storage node within the @@ -85,7 +85,7 @@ message EACLRecord { // TargetInfo groups information about extended ACL target. message TargetInfo { // target carries target of ACL rule. - acl.v2.Target target = 1 [json_name="Role"]; + Target target = 1 [json_name="Role"]; // key_list carries public keys of ACL target. repeated bytes key_list = 2 [json_name="Keys"]; @@ -99,7 +99,7 @@ message EACLRecord { message EACLTable { // Carries identifier of the container that should use given // access control rules. - refs.v2.ContainerID container_id = 1 [json_name="ContainerID"]; + neo.fs.v2.refs.ContainerID container_id = 1 [json_name="ContainerID"]; // Records carries list of extended ACL rule records. repeated EACLRecord records = 2 [json_name="Records"]; diff --git a/container/v2/marshal.go b/v2/container/marshal.go similarity index 99% rename from container/v2/marshal.go rename to v2/container/marshal.go index 7dd25d2..2d8e1d0 100644 --- a/container/v2/marshal.go +++ b/v2/container/marshal.go @@ -1,4 +1,4 @@ -package v2 +package container import ( "encoding/binary" diff --git a/container/v2/marshal_test.go b/v2/container/marshal_test.go similarity index 92% rename from container/v2/marshal_test.go rename to v2/container/marshal_test.go index 180dcb1..43fa57f 100644 --- a/container/v2/marshal_test.go +++ b/v2/container/marshal_test.go @@ -1,10 +1,10 @@ -package v2 +package container import ( "testing" - netmap "github.com/nspcc-dev/neofs-api-go/netmap/v2" - refs "github.com/nspcc-dev/neofs-api-go/refs/v2" + "github.com/nspcc-dev/neofs-api-go/v2/netmap" + "github.com/nspcc-dev/neofs-api-go/v2/refs" "github.com/stretchr/testify/require" ) diff --git a/container/v2/service.go b/v2/container/service.go similarity index 97% rename from container/v2/service.go rename to v2/container/service.go index 1995b48..bde2b48 100644 --- a/container/v2/service.go +++ b/v2/container/service.go @@ -1,9 +1,9 @@ -package v2 +package container import ( - acl "github.com/nspcc-dev/neofs-api-go/acl/v2" - refs "github.com/nspcc-dev/neofs-api-go/refs/v2" - service "github.com/nspcc-dev/neofs-api-go/service/v2" + "github.com/nspcc-dev/neofs-api-go/v2/acl" + "github.com/nspcc-dev/neofs-api-go/v2/refs" + "github.com/nspcc-dev/neofs-api-go/v2/service" ) // SetContainer sets container of the request. diff --git a/container/v2/service.pb.go b/v2/container/service.pb.go similarity index 87% rename from container/v2/service.pb.go rename to v2/container/service.pb.go index 29fd633..2c7861d 100644 --- a/container/v2/service.pb.go +++ b/v2/container/service.pb.go @@ -1,15 +1,15 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: container/v2/service.proto +// source: v2/container/service.proto -package v2 +package container import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" - v22 "github.com/nspcc-dev/neofs-api-go/acl/v2" - v21 "github.com/nspcc-dev/neofs-api-go/refs/v2" - v2 "github.com/nspcc-dev/neofs-api-go/service/v2" + acl "github.com/nspcc-dev/neofs-api-go/v2/acl" + refs "github.com/nspcc-dev/neofs-api-go/v2/refs" + service "github.com/nspcc-dev/neofs-api-go/v2/service" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -34,21 +34,21 @@ type PutRequest struct { Body *PutRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries request meta information. Header data is used only to regulate // message transport and does not affect request execution. - MetaHeader *v2.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries request verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - VerifyHeader *v2.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PutRequest) Reset() { *m = PutRequest{} } func (m *PutRequest) String() string { return proto.CompactTextString(m) } func (*PutRequest) ProtoMessage() {} func (*PutRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{0} + return fileDescriptor_6e23291a5a71033a, []int{0} } func (m *PutRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -84,14 +84,14 @@ func (m *PutRequest) GetBody() *PutRequest_Body { return nil } -func (m *PutRequest) GetMetaHeader() *v2.RequestMetaHeader { +func (m *PutRequest) GetMetaHeader() *service.RequestMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *PutRequest) GetVerifyHeader() *v2.RequestVerificationHeader { +func (m *PutRequest) GetVerifyHeader() *service.RequestVerificationHeader { if m != nil { return m.VerifyHeader } @@ -115,7 +115,7 @@ func (m *PutRequest_Body) Reset() { *m = PutRequest_Body{} } func (m *PutRequest_Body) String() string { return proto.CompactTextString(m) } func (*PutRequest_Body) ProtoMessage() {} func (*PutRequest_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{0, 0} + return fileDescriptor_6e23291a5a71033a, []int{0, 0} } func (m *PutRequest_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -170,21 +170,21 @@ type PutResponse struct { Body *PutResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - MetaHeader *v2.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - VerifyHeader *v2.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PutResponse) Reset() { *m = PutResponse{} } func (m *PutResponse) String() string { return proto.CompactTextString(m) } func (*PutResponse) ProtoMessage() {} func (*PutResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{1} + return fileDescriptor_6e23291a5a71033a, []int{1} } func (m *PutResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -220,14 +220,14 @@ func (m *PutResponse) GetBody() *PutResponse_Body { return nil } -func (m *PutResponse) GetMetaHeader() *v2.ResponseMetaHeader { +func (m *PutResponse) GetMetaHeader() *service.ResponseMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *PutResponse) GetVerifyHeader() *v2.ResponseVerificationHeader { +func (m *PutResponse) GetVerifyHeader() *service.ResponseVerificationHeader { if m != nil { return m.VerifyHeader } @@ -235,18 +235,18 @@ func (m *PutResponse) GetVerifyHeader() *v2.ResponseVerificationHeader { } type PutResponse_Body struct { - // container_id carries identifier of the new container.v2. - ContainerId *v21.ContainerID `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // container_id carries identifier of the new container. + ContainerId *refs.ContainerID `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PutResponse_Body) Reset() { *m = PutResponse_Body{} } func (m *PutResponse_Body) String() string { return proto.CompactTextString(m) } func (*PutResponse_Body) ProtoMessage() {} func (*PutResponse_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{1, 0} + return fileDescriptor_6e23291a5a71033a, []int{1, 0} } func (m *PutResponse_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -275,7 +275,7 @@ func (m *PutResponse_Body) XXX_DiscardUnknown() { var xxx_messageInfo_PutResponse_Body proto.InternalMessageInfo -func (m *PutResponse_Body) GetContainerId() *v21.ContainerID { +func (m *PutResponse_Body) GetContainerId() *refs.ContainerID { if m != nil { return m.ContainerId } @@ -287,21 +287,21 @@ type DeleteRequest struct { Body *DeleteRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries request meta information. Header data is used only to regulate // message transport and does not affect request execution. - MetaHeader *v2.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries request verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - VerifyHeader *v2.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *DeleteRequest) Reset() { *m = DeleteRequest{} } func (m *DeleteRequest) String() string { return proto.CompactTextString(m) } func (*DeleteRequest) ProtoMessage() {} func (*DeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{2} + return fileDescriptor_6e23291a5a71033a, []int{2} } func (m *DeleteRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -337,14 +337,14 @@ func (m *DeleteRequest) GetBody() *DeleteRequest_Body { return nil } -func (m *DeleteRequest) GetMetaHeader() *v2.RequestMetaHeader { +func (m *DeleteRequest) GetMetaHeader() *service.RequestMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *DeleteRequest) GetVerifyHeader() *v2.RequestVerificationHeader { +func (m *DeleteRequest) GetVerifyHeader() *service.RequestVerificationHeader { if m != nil { return m.VerifyHeader } @@ -354,7 +354,7 @@ func (m *DeleteRequest) GetVerifyHeader() *v2.RequestVerificationHeader { type DeleteRequest_Body struct { // container_id carries identifier of the container to delete // from NeoFS. - ContainerId *v21.ContainerID `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` + ContainerId *refs.ContainerID `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` // Signature of container id according to RFC-6979. Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -366,7 +366,7 @@ func (m *DeleteRequest_Body) Reset() { *m = DeleteRequest_Body{} } func (m *DeleteRequest_Body) String() string { return proto.CompactTextString(m) } func (*DeleteRequest_Body) ProtoMessage() {} func (*DeleteRequest_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{2, 0} + return fileDescriptor_6e23291a5a71033a, []int{2, 0} } func (m *DeleteRequest_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -395,7 +395,7 @@ func (m *DeleteRequest_Body) XXX_DiscardUnknown() { var xxx_messageInfo_DeleteRequest_Body proto.InternalMessageInfo -func (m *DeleteRequest_Body) GetContainerId() *v21.ContainerID { +func (m *DeleteRequest_Body) GetContainerId() *refs.ContainerID { if m != nil { return m.ContainerId } @@ -416,21 +416,21 @@ type DeleteResponse struct { Body *DeleteResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - MetaHeader *v2.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - VerifyHeader *v2.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *DeleteResponse) Reset() { *m = DeleteResponse{} } func (m *DeleteResponse) String() string { return proto.CompactTextString(m) } func (*DeleteResponse) ProtoMessage() {} func (*DeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{3} + return fileDescriptor_6e23291a5a71033a, []int{3} } func (m *DeleteResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -466,14 +466,14 @@ func (m *DeleteResponse) GetBody() *DeleteResponse_Body { return nil } -func (m *DeleteResponse) GetMetaHeader() *v2.ResponseMetaHeader { +func (m *DeleteResponse) GetMetaHeader() *service.ResponseMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *DeleteResponse) GetVerifyHeader() *v2.ResponseVerificationHeader { +func (m *DeleteResponse) GetVerifyHeader() *service.ResponseVerificationHeader { if m != nil { return m.VerifyHeader } @@ -490,7 +490,7 @@ func (m *DeleteResponse_Body) Reset() { *m = DeleteResponse_Body{} } func (m *DeleteResponse_Body) String() string { return proto.CompactTextString(m) } func (*DeleteResponse_Body) ProtoMessage() {} func (*DeleteResponse_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{3, 0} + return fileDescriptor_6e23291a5a71033a, []int{3, 0} } func (m *DeleteResponse_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -524,21 +524,21 @@ type GetRequest struct { Body *GetRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries request meta information. Header data is used only to regulate // message transport and does not affect request execution. - MetaHeader *v2.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries request verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - VerifyHeader *v2.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetRequest) Reset() { *m = GetRequest{} } func (m *GetRequest) String() string { return proto.CompactTextString(m) } func (*GetRequest) ProtoMessage() {} func (*GetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{4} + return fileDescriptor_6e23291a5a71033a, []int{4} } func (m *GetRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -574,14 +574,14 @@ func (m *GetRequest) GetBody() *GetRequest_Body { return nil } -func (m *GetRequest) GetMetaHeader() *v2.RequestMetaHeader { +func (m *GetRequest) GetMetaHeader() *service.RequestMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *GetRequest) GetVerifyHeader() *v2.RequestVerificationHeader { +func (m *GetRequest) GetVerifyHeader() *service.RequestVerificationHeader { if m != nil { return m.VerifyHeader } @@ -590,17 +590,17 @@ func (m *GetRequest) GetVerifyHeader() *v2.RequestVerificationHeader { type GetRequest_Body struct { // container_id carries identifier of the container to get. - ContainerId *v21.ContainerID `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ContainerId *refs.ContainerID `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetRequest_Body) Reset() { *m = GetRequest_Body{} } func (m *GetRequest_Body) String() string { return proto.CompactTextString(m) } func (*GetRequest_Body) ProtoMessage() {} func (*GetRequest_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{4, 0} + return fileDescriptor_6e23291a5a71033a, []int{4, 0} } func (m *GetRequest_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -629,7 +629,7 @@ func (m *GetRequest_Body) XXX_DiscardUnknown() { var xxx_messageInfo_GetRequest_Body proto.InternalMessageInfo -func (m *GetRequest_Body) GetContainerId() *v21.ContainerID { +func (m *GetRequest_Body) GetContainerId() *refs.ContainerID { if m != nil { return m.ContainerId } @@ -641,21 +641,21 @@ type GetResponse struct { Body *GetResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - MetaHeader *v2.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - VerifyHeader *v2.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetResponse) Reset() { *m = GetResponse{} } func (m *GetResponse) String() string { return proto.CompactTextString(m) } func (*GetResponse) ProtoMessage() {} func (*GetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{5} + return fileDescriptor_6e23291a5a71033a, []int{5} } func (m *GetResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -691,14 +691,14 @@ func (m *GetResponse) GetBody() *GetResponse_Body { return nil } -func (m *GetResponse) GetMetaHeader() *v2.ResponseMetaHeader { +func (m *GetResponse) GetMetaHeader() *service.ResponseMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *GetResponse) GetVerifyHeader() *v2.ResponseVerificationHeader { +func (m *GetResponse) GetVerifyHeader() *service.ResponseVerificationHeader { if m != nil { return m.VerifyHeader } @@ -717,7 +717,7 @@ func (m *GetResponse_Body) Reset() { *m = GetResponse_Body{} } func (m *GetResponse_Body) String() string { return proto.CompactTextString(m) } func (*GetResponse_Body) ProtoMessage() {} func (*GetResponse_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{5, 0} + return fileDescriptor_6e23291a5a71033a, []int{5, 0} } func (m *GetResponse_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -758,21 +758,21 @@ type ListRequest struct { Body *ListRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries request meta information. Header data is used only to regulate // message transport and does not affect request execution. - MetaHeader *v2.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries request verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - VerifyHeader *v2.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ListRequest) Reset() { *m = ListRequest{} } func (m *ListRequest) String() string { return proto.CompactTextString(m) } func (*ListRequest) ProtoMessage() {} func (*ListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{6} + return fileDescriptor_6e23291a5a71033a, []int{6} } func (m *ListRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -808,14 +808,14 @@ func (m *ListRequest) GetBody() *ListRequest_Body { return nil } -func (m *ListRequest) GetMetaHeader() *v2.RequestMetaHeader { +func (m *ListRequest) GetMetaHeader() *service.RequestMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *ListRequest) GetVerifyHeader() *v2.RequestVerificationHeader { +func (m *ListRequest) GetVerifyHeader() *service.RequestVerificationHeader { if m != nil { return m.VerifyHeader } @@ -824,17 +824,17 @@ func (m *ListRequest) GetVerifyHeader() *v2.RequestVerificationHeader { type ListRequest_Body struct { // owner_id carries identifier of the container owner. - OwnerId *v21.OwnerID `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + OwnerId *refs.OwnerID `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ListRequest_Body) Reset() { *m = ListRequest_Body{} } func (m *ListRequest_Body) String() string { return proto.CompactTextString(m) } func (*ListRequest_Body) ProtoMessage() {} func (*ListRequest_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{6, 0} + return fileDescriptor_6e23291a5a71033a, []int{6, 0} } func (m *ListRequest_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -863,7 +863,7 @@ func (m *ListRequest_Body) XXX_DiscardUnknown() { var xxx_messageInfo_ListRequest_Body proto.InternalMessageInfo -func (m *ListRequest_Body) GetOwnerId() *v21.OwnerID { +func (m *ListRequest_Body) GetOwnerId() *refs.OwnerID { if m != nil { return m.OwnerId } @@ -875,21 +875,21 @@ type ListResponse struct { Body *ListResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - MetaHeader *v2.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - VerifyHeader *v2.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ListResponse) Reset() { *m = ListResponse{} } func (m *ListResponse) String() string { return proto.CompactTextString(m) } func (*ListResponse) ProtoMessage() {} func (*ListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{7} + return fileDescriptor_6e23291a5a71033a, []int{7} } func (m *ListResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -925,14 +925,14 @@ func (m *ListResponse) GetBody() *ListResponse_Body { return nil } -func (m *ListResponse) GetMetaHeader() *v2.ResponseMetaHeader { +func (m *ListResponse) GetMetaHeader() *service.ResponseMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *ListResponse) GetVerifyHeader() *v2.ResponseVerificationHeader { +func (m *ListResponse) GetVerifyHeader() *service.ResponseVerificationHeader { if m != nil { return m.VerifyHeader } @@ -941,17 +941,17 @@ func (m *ListResponse) GetVerifyHeader() *v2.ResponseVerificationHeader { type ListResponse_Body struct { // ContainerIDs carries list of identifiers of the containers that belong to the owner. - ContainerIds []*v21.ContainerID `protobuf:"bytes,1,rep,name=container_ids,json=containerIds,proto3" json:"container_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ContainerIds []*refs.ContainerID `protobuf:"bytes,1,rep,name=container_ids,json=containerIds,proto3" json:"container_ids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ListResponse_Body) Reset() { *m = ListResponse_Body{} } func (m *ListResponse_Body) String() string { return proto.CompactTextString(m) } func (*ListResponse_Body) ProtoMessage() {} func (*ListResponse_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{7, 0} + return fileDescriptor_6e23291a5a71033a, []int{7, 0} } func (m *ListResponse_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -980,7 +980,7 @@ func (m *ListResponse_Body) XXX_DiscardUnknown() { var xxx_messageInfo_ListResponse_Body proto.InternalMessageInfo -func (m *ListResponse_Body) GetContainerIds() []*v21.ContainerID { +func (m *ListResponse_Body) GetContainerIds() []*refs.ContainerID { if m != nil { return m.ContainerIds } @@ -992,21 +992,21 @@ type SetExtendedACLRequest struct { Body *SetExtendedACLRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries request meta information. Header data is used only to regulate // message transport and does not affect request execution. - MetaHeader *v2.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries request verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - VerifyHeader *v2.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SetExtendedACLRequest) Reset() { *m = SetExtendedACLRequest{} } func (m *SetExtendedACLRequest) String() string { return proto.CompactTextString(m) } func (*SetExtendedACLRequest) ProtoMessage() {} func (*SetExtendedACLRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{8} + return fileDescriptor_6e23291a5a71033a, []int{8} } func (m *SetExtendedACLRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1042,14 +1042,14 @@ func (m *SetExtendedACLRequest) GetBody() *SetExtendedACLRequest_Body { return nil } -func (m *SetExtendedACLRequest) GetMetaHeader() *v2.RequestMetaHeader { +func (m *SetExtendedACLRequest) GetMetaHeader() *service.RequestMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *SetExtendedACLRequest) GetVerifyHeader() *v2.RequestVerificationHeader { +func (m *SetExtendedACLRequest) GetVerifyHeader() *service.RequestVerificationHeader { if m != nil { return m.VerifyHeader } @@ -1057,8 +1057,8 @@ func (m *SetExtendedACLRequest) GetVerifyHeader() *v2.RequestVerificationHeader } type SetExtendedACLRequest_Body struct { - // Extended ACL to set for the container.v2. - Eacl *v22.EACLTable `protobuf:"bytes,1,opt,name=eacl,proto3" json:"eacl,omitempty"` + // Extended ACL to set for the container. + Eacl *acl.EACLTable `protobuf:"bytes,1,opt,name=eacl,proto3" json:"eacl,omitempty"` // Signature of stable-marshalled Extended ACL according to RFC-6979. Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1070,7 +1070,7 @@ func (m *SetExtendedACLRequest_Body) Reset() { *m = SetExtendedACLReques func (m *SetExtendedACLRequest_Body) String() string { return proto.CompactTextString(m) } func (*SetExtendedACLRequest_Body) ProtoMessage() {} func (*SetExtendedACLRequest_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{8, 0} + return fileDescriptor_6e23291a5a71033a, []int{8, 0} } func (m *SetExtendedACLRequest_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1099,7 +1099,7 @@ func (m *SetExtendedACLRequest_Body) XXX_DiscardUnknown() { var xxx_messageInfo_SetExtendedACLRequest_Body proto.InternalMessageInfo -func (m *SetExtendedACLRequest_Body) GetEacl() *v22.EACLTable { +func (m *SetExtendedACLRequest_Body) GetEacl() *acl.EACLTable { if m != nil { return m.Eacl } @@ -1118,21 +1118,21 @@ type SetExtendedACLResponse struct { Body *SetExtendedACLResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - MetaHeader *v2.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - VerifyHeader *v2.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SetExtendedACLResponse) Reset() { *m = SetExtendedACLResponse{} } func (m *SetExtendedACLResponse) String() string { return proto.CompactTextString(m) } func (*SetExtendedACLResponse) ProtoMessage() {} func (*SetExtendedACLResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{9} + return fileDescriptor_6e23291a5a71033a, []int{9} } func (m *SetExtendedACLResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1168,14 +1168,14 @@ func (m *SetExtendedACLResponse) GetBody() *SetExtendedACLResponse_Body { return nil } -func (m *SetExtendedACLResponse) GetMetaHeader() *v2.ResponseMetaHeader { +func (m *SetExtendedACLResponse) GetMetaHeader() *service.ResponseMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *SetExtendedACLResponse) GetVerifyHeader() *v2.ResponseVerificationHeader { +func (m *SetExtendedACLResponse) GetVerifyHeader() *service.ResponseVerificationHeader { if m != nil { return m.VerifyHeader } @@ -1192,7 +1192,7 @@ func (m *SetExtendedACLResponse_Body) Reset() { *m = SetExtendedACLRespo func (m *SetExtendedACLResponse_Body) String() string { return proto.CompactTextString(m) } func (*SetExtendedACLResponse_Body) ProtoMessage() {} func (*SetExtendedACLResponse_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{9, 0} + return fileDescriptor_6e23291a5a71033a, []int{9, 0} } func (m *SetExtendedACLResponse_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1226,21 +1226,21 @@ type GetExtendedACLRequest struct { Body *GetExtendedACLRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries request meta information. Header data is used only to regulate // message transport and does not affect request execution. - MetaHeader *v2.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries request verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - VerifyHeader *v2.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetExtendedACLRequest) Reset() { *m = GetExtendedACLRequest{} } func (m *GetExtendedACLRequest) String() string { return proto.CompactTextString(m) } func (*GetExtendedACLRequest) ProtoMessage() {} func (*GetExtendedACLRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{10} + return fileDescriptor_6e23291a5a71033a, []int{10} } func (m *GetExtendedACLRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1276,14 +1276,14 @@ func (m *GetExtendedACLRequest) GetBody() *GetExtendedACLRequest_Body { return nil } -func (m *GetExtendedACLRequest) GetMetaHeader() *v2.RequestMetaHeader { +func (m *GetExtendedACLRequest) GetMetaHeader() *service.RequestMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *GetExtendedACLRequest) GetVerifyHeader() *v2.RequestVerificationHeader { +func (m *GetExtendedACLRequest) GetVerifyHeader() *service.RequestVerificationHeader { if m != nil { return m.VerifyHeader } @@ -1292,17 +1292,17 @@ func (m *GetExtendedACLRequest) GetVerifyHeader() *v2.RequestVerificationHeader type GetExtendedACLRequest_Body struct { // container_id carries identifier of the container that has Extended ACL. - ContainerId *v21.ContainerID `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ContainerId *refs.ContainerID `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetExtendedACLRequest_Body) Reset() { *m = GetExtendedACLRequest_Body{} } func (m *GetExtendedACLRequest_Body) String() string { return proto.CompactTextString(m) } func (*GetExtendedACLRequest_Body) ProtoMessage() {} func (*GetExtendedACLRequest_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{10, 0} + return fileDescriptor_6e23291a5a71033a, []int{10, 0} } func (m *GetExtendedACLRequest_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1331,7 +1331,7 @@ func (m *GetExtendedACLRequest_Body) XXX_DiscardUnknown() { var xxx_messageInfo_GetExtendedACLRequest_Body proto.InternalMessageInfo -func (m *GetExtendedACLRequest_Body) GetContainerId() *v21.ContainerID { +func (m *GetExtendedACLRequest_Body) GetContainerId() *refs.ContainerID { if m != nil { return m.ContainerId } @@ -1343,21 +1343,21 @@ type GetExtendedACLResponse struct { Body *GetExtendedACLResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - MetaHeader *v2.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - VerifyHeader *v2.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetExtendedACLResponse) Reset() { *m = GetExtendedACLResponse{} } func (m *GetExtendedACLResponse) String() string { return proto.CompactTextString(m) } func (*GetExtendedACLResponse) ProtoMessage() {} func (*GetExtendedACLResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{11} + return fileDescriptor_6e23291a5a71033a, []int{11} } func (m *GetExtendedACLResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1393,14 +1393,14 @@ func (m *GetExtendedACLResponse) GetBody() *GetExtendedACLResponse_Body { return nil } -func (m *GetExtendedACLResponse) GetMetaHeader() *v2.ResponseMetaHeader { +func (m *GetExtendedACLResponse) GetMetaHeader() *service.ResponseMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *GetExtendedACLResponse) GetVerifyHeader() *v2.ResponseVerificationHeader { +func (m *GetExtendedACLResponse) GetVerifyHeader() *service.ResponseVerificationHeader { if m != nil { return m.VerifyHeader } @@ -1409,7 +1409,7 @@ func (m *GetExtendedACLResponse) GetVerifyHeader() *v2.ResponseVerificationHeade type GetExtendedACLResponse_Body struct { // Extended ACL that has been requested if it was set up. - Eacl *v22.EACLTable `protobuf:"bytes,1,opt,name=eacl,proto3" json:"eacl,omitempty"` + Eacl *acl.EACLTable `protobuf:"bytes,1,opt,name=eacl,proto3" json:"eacl,omitempty"` // Signature of stable-marshalled Extended ACL according to RFC-6979. Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1421,7 +1421,7 @@ func (m *GetExtendedACLResponse_Body) Reset() { *m = GetExtendedACLRespo func (m *GetExtendedACLResponse_Body) String() string { return proto.CompactTextString(m) } func (*GetExtendedACLResponse_Body) ProtoMessage() {} func (*GetExtendedACLResponse_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_1c484d370787a129, []int{11, 0} + return fileDescriptor_6e23291a5a71033a, []int{11, 0} } func (m *GetExtendedACLResponse_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1450,7 +1450,7 @@ func (m *GetExtendedACLResponse_Body) XXX_DiscardUnknown() { var xxx_messageInfo_GetExtendedACLResponse_Body proto.InternalMessageInfo -func (m *GetExtendedACLResponse_Body) GetEacl() *v22.EACLTable { +func (m *GetExtendedACLResponse_Body) GetEacl() *acl.EACLTable { if m != nil { return m.Eacl } @@ -1465,87 +1465,88 @@ func (m *GetExtendedACLResponse_Body) GetSignature() []byte { } func init() { - proto.RegisterType((*PutRequest)(nil), "container.v2.PutRequest") - proto.RegisterType((*PutRequest_Body)(nil), "container.v2.PutRequest.Body") - proto.RegisterType((*PutResponse)(nil), "container.v2.PutResponse") - proto.RegisterType((*PutResponse_Body)(nil), "container.v2.PutResponse.Body") - proto.RegisterType((*DeleteRequest)(nil), "container.v2.DeleteRequest") - proto.RegisterType((*DeleteRequest_Body)(nil), "container.v2.DeleteRequest.Body") - proto.RegisterType((*DeleteResponse)(nil), "container.v2.DeleteResponse") - proto.RegisterType((*DeleteResponse_Body)(nil), "container.v2.DeleteResponse.Body") - proto.RegisterType((*GetRequest)(nil), "container.v2.GetRequest") - proto.RegisterType((*GetRequest_Body)(nil), "container.v2.GetRequest.Body") - proto.RegisterType((*GetResponse)(nil), "container.v2.GetResponse") - proto.RegisterType((*GetResponse_Body)(nil), "container.v2.GetResponse.Body") - proto.RegisterType((*ListRequest)(nil), "container.v2.ListRequest") - proto.RegisterType((*ListRequest_Body)(nil), "container.v2.ListRequest.Body") - proto.RegisterType((*ListResponse)(nil), "container.v2.ListResponse") - proto.RegisterType((*ListResponse_Body)(nil), "container.v2.ListResponse.Body") - proto.RegisterType((*SetExtendedACLRequest)(nil), "container.v2.SetExtendedACLRequest") - proto.RegisterType((*SetExtendedACLRequest_Body)(nil), "container.v2.SetExtendedACLRequest.Body") - proto.RegisterType((*SetExtendedACLResponse)(nil), "container.v2.SetExtendedACLResponse") - proto.RegisterType((*SetExtendedACLResponse_Body)(nil), "container.v2.SetExtendedACLResponse.Body") - proto.RegisterType((*GetExtendedACLRequest)(nil), "container.v2.GetExtendedACLRequest") - proto.RegisterType((*GetExtendedACLRequest_Body)(nil), "container.v2.GetExtendedACLRequest.Body") - proto.RegisterType((*GetExtendedACLResponse)(nil), "container.v2.GetExtendedACLResponse") - proto.RegisterType((*GetExtendedACLResponse_Body)(nil), "container.v2.GetExtendedACLResponse.Body") + proto.RegisterType((*PutRequest)(nil), "neo.fs.v2.container.PutRequest") + proto.RegisterType((*PutRequest_Body)(nil), "neo.fs.v2.container.PutRequest.Body") + proto.RegisterType((*PutResponse)(nil), "neo.fs.v2.container.PutResponse") + proto.RegisterType((*PutResponse_Body)(nil), "neo.fs.v2.container.PutResponse.Body") + proto.RegisterType((*DeleteRequest)(nil), "neo.fs.v2.container.DeleteRequest") + proto.RegisterType((*DeleteRequest_Body)(nil), "neo.fs.v2.container.DeleteRequest.Body") + proto.RegisterType((*DeleteResponse)(nil), "neo.fs.v2.container.DeleteResponse") + proto.RegisterType((*DeleteResponse_Body)(nil), "neo.fs.v2.container.DeleteResponse.Body") + proto.RegisterType((*GetRequest)(nil), "neo.fs.v2.container.GetRequest") + proto.RegisterType((*GetRequest_Body)(nil), "neo.fs.v2.container.GetRequest.Body") + proto.RegisterType((*GetResponse)(nil), "neo.fs.v2.container.GetResponse") + proto.RegisterType((*GetResponse_Body)(nil), "neo.fs.v2.container.GetResponse.Body") + proto.RegisterType((*ListRequest)(nil), "neo.fs.v2.container.ListRequest") + proto.RegisterType((*ListRequest_Body)(nil), "neo.fs.v2.container.ListRequest.Body") + proto.RegisterType((*ListResponse)(nil), "neo.fs.v2.container.ListResponse") + proto.RegisterType((*ListResponse_Body)(nil), "neo.fs.v2.container.ListResponse.Body") + proto.RegisterType((*SetExtendedACLRequest)(nil), "neo.fs.v2.container.SetExtendedACLRequest") + proto.RegisterType((*SetExtendedACLRequest_Body)(nil), "neo.fs.v2.container.SetExtendedACLRequest.Body") + proto.RegisterType((*SetExtendedACLResponse)(nil), "neo.fs.v2.container.SetExtendedACLResponse") + proto.RegisterType((*SetExtendedACLResponse_Body)(nil), "neo.fs.v2.container.SetExtendedACLResponse.Body") + proto.RegisterType((*GetExtendedACLRequest)(nil), "neo.fs.v2.container.GetExtendedACLRequest") + proto.RegisterType((*GetExtendedACLRequest_Body)(nil), "neo.fs.v2.container.GetExtendedACLRequest.Body") + proto.RegisterType((*GetExtendedACLResponse)(nil), "neo.fs.v2.container.GetExtendedACLResponse") + proto.RegisterType((*GetExtendedACLResponse_Body)(nil), "neo.fs.v2.container.GetExtendedACLResponse.Body") } -func init() { proto.RegisterFile("container/v2/service.proto", fileDescriptor_1c484d370787a129) } +func init() { proto.RegisterFile("v2/container/service.proto", fileDescriptor_6e23291a5a71033a) } -var fileDescriptor_1c484d370787a129 = []byte{ - // 811 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x97, 0x41, 0x4f, 0x13, 0x41, - 0x14, 0xc7, 0xdd, 0x6d, 0x03, 0xf2, 0x5a, 0x88, 0x0e, 0x02, 0x65, 0x85, 0x8a, 0x55, 0x0c, 0xc6, - 0xb0, 0x8d, 0x45, 0x62, 0x34, 0x22, 0x29, 0x05, 0xd7, 0x0a, 0x2a, 0x59, 0x0c, 0x07, 0x8d, 0x21, - 0xdb, 0xdd, 0x07, 0x6c, 0x2c, 0xbb, 0xb5, 0xbb, 0x2d, 0xd6, 0xa3, 0x67, 0x63, 0x3c, 0x78, 0xf0, - 0xec, 0xd1, 0x83, 0x31, 0x7e, 0x01, 0x8f, 0x7a, 0xf4, 0x0b, 0x98, 0x18, 0x3c, 0xfb, 0x1d, 0xcc, - 0xee, 0x4e, 0xdb, 0x9d, 0xba, 0x2d, 0xd5, 0x7a, 0x58, 0x6e, 0xec, 0xcc, 0x7f, 0x1e, 0xef, 0xfd, - 0xfa, 0x9f, 0x99, 0x37, 0x20, 0xa8, 0xa6, 0x61, 0x2b, 0xba, 0x81, 0xe5, 0x74, 0x35, 0x93, 0xb6, - 0xb0, 0x5c, 0xd5, 0x55, 0x14, 0x4b, 0x65, 0xd3, 0x36, 0x49, 0xbc, 0x31, 0x27, 0x56, 0x33, 0x02, - 0x51, 0xd4,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8c, - 0x7e, 0x57, 0x91, 0xd7, 0x52, 0x6f, 0x78, 0x88, 0x7b, 0xb5, 0x51, 0x5b, 0xcc, 0x31, 0x14, 0xce, - 0x04, 0x51, 0x08, 0xbb, 0x2f, 0xb2, 0x14, 0xc4, 0x35, 0x18, 0xf4, 0x6f, 0x15, 0x2b, 0xc1, 0x4d, - 0x45, 0xda, 0xee, 0x95, 0xb8, 0x6f, 0xaf, 0x58, 0xa9, 0x0f, 0x3c, 0x8c, 0x6c, 0xa0, 0xbd, 0xf2, - 0xcc, 0x46, 0x43, 0x43, 0x2d, 0x9b, 0x5b, 0xab, 0xbb, 0xe4, 0x06, 0xc3, 0x67, 0x86, 0xe5, 0x13, - 0xb8, 0x24, 0xac, 0x7e, 0x59, 0xa5, 0x98, 0xa6, 0x21, 0x8a, 0x8a, 0x5a, 0xa4, 0x15, 0x9d, 0x14, - 0x15, 0xb5, 0xe8, 0x84, 0x59, 0xc9, 0xe6, 0xd6, 0x1e, 0x28, 0x85, 0x22, 0xca, 0xee, 0xf4, 0x21, - 0x97, 0xc9, 0x2f, 0x0e, 0x46, 0x5b, 0xab, 0xa7, 0x8e, 0x5a, 0x60, 0x88, 0x5d, 0xec, 0x4c, 0xec, - 0xa8, 0x5c, 0x2e, 0xef, 0x78, 0x18, 0x91, 0xfe, 0xde, 0x20, 0xd2, 0x51, 0x32, 0x48, 0xcf, 0x57, - 0xce, 0x27, 0x1e, 0x46, 0xa5, 0x7f, 0x30, 0x85, 0x74, 0xc4, 0x4c, 0xf1, 0x3f, 0x77, 0x52, 0xe6, - 0x73, 0x04, 0xfa, 0x37, 0xbc, 0x24, 0xc8, 0x75, 0x88, 0xac, 0x57, 0x6c, 0x92, 0x68, 0xf7, 0x38, - 0x12, 0xc6, 0xdb, 0xf6, 0xfa, 0x24, 0x07, 0x7d, 0x5e, 0xc7, 0x46, 0x4e, 0x77, 0xe8, 0x7d, 0x85, - 0x89, 0x4e, 0x4d, 0x9e, 0x93, 0x80, 0x84, 0x7f, 0x24, 0xd0, 0xec, 0x96, 0x5a, 0x13, 0xf0, 0x37, - 0x18, 0x0b, 0x10, 0x75, 0xee, 0x0b, 0x32, 0xde, 0xf6, 0x26, 0x15, 0x84, 0xf6, 0xd7, 0x0b, 0x79, - 0x04, 0x43, 0xec, 0xe1, 0x40, 0xce, 0x75, 0x71, 0xd8, 0x0a, 0xe7, 0xbb, 0x39, 0x5f, 0x9c, 0xe0, - 0x52, 0xc7, 0xe0, 0x52, 0x37, 0xc1, 0x83, 0x7d, 0xba, 0xb4, 0xf9, 0xf5, 0x20, 0xc9, 0x7d, 0x3b, - 0x48, 0x72, 0x3f, 0x0e, 0x92, 0xdc, 0xdb, 0x9f, 0xc9, 0x63, 0x0f, 0xc5, 0x1d, 0xdd, 0xde, 0xad, - 0x14, 0x44, 0xd5, 0xdc, 0x4b, 0x1b, 0x56, 0x49, 0x55, 0x67, 0x35, 0xac, 0xa6, 0x0d, 0x34, 0xb7, - 0xad, 0x59, 0xa5, 0xa4, 0xcf, 0xee, 0x98, 0x69, 0xff, 0xdb, 0xfb, 0x3d, 0x3f, 0x7c, 0x0f, 0xcd, - 0x5b, 0x1b, 0x62, 0x76, 0x3d, 0xdf, 0xdc, 0x5d, 0x85, 0x3e, 0xf7, 0x1d, 0x3d, 0xf7, 0x3b, 0x00, - 0x00, 0xff, 0xff, 0x7e, 0x5a, 0xa3, 0x54, 0xe6, 0x0f, 0x00, 0x00, +var fileDescriptor_6e23291a5a71033a = []byte{ + // 823 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x98, 0xc1, 0x52, 0xd3, 0x5c, + 0x14, 0xc7, 0xbf, 0x84, 0x0e, 0x7c, 0x9c, 0x16, 0x16, 0x97, 0x01, 0x3a, 0x51, 0x6b, 0x8d, 0xa2, + 0x8c, 0xd2, 0xc4, 0x89, 0x1b, 0x45, 0xc6, 0x11, 0x5a, 0x08, 0x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x0a, 0x2a, 0xda, 0xbc, 0x8e, 0x46, 0xd5, 0x2c, 0xc8, 0x75, 0xad, + 0xb0, 0x6f, 0xf0, 0xc1, 0x4f, 0x22, 0xc7, 0xf4, 0xd4, 0x63, 0x34, 0xd6, 0x76, 0xb8, 0xe5, 0xad, + 0xb2, 0xdf, 0xcd, 0x95, 0x51, 0xe7, 0xf3, 0xc6, 0x9d, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xbb, + 0x23, 0x10, 0x87, 0x84, 0x11, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1594,7 +1595,7 @@ func NewServiceClient(cc *grpc.ClientConn) ServiceClient { func (c *serviceClient) Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error) { out := new(PutResponse) - err := c.cc.Invoke(ctx, "/container.v2.Service/Put", in, out, opts...) + err := c.cc.Invoke(ctx, "/neo.fs.v2.container.Service/Put", in, out, opts...) if err != nil { return nil, err } @@ -1603,7 +1604,7 @@ func (c *serviceClient) Put(ctx context.Context, in *PutRequest, opts ...grpc.Ca func (c *serviceClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) { out := new(DeleteResponse) - err := c.cc.Invoke(ctx, "/container.v2.Service/Delete", in, out, opts...) + err := c.cc.Invoke(ctx, "/neo.fs.v2.container.Service/Delete", in, out, opts...) if err != nil { return nil, err } @@ -1612,7 +1613,7 @@ func (c *serviceClient) Delete(ctx context.Context, in *DeleteRequest, opts ...g func (c *serviceClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) { out := new(GetResponse) - err := c.cc.Invoke(ctx, "/container.v2.Service/Get", in, out, opts...) + err := c.cc.Invoke(ctx, "/neo.fs.v2.container.Service/Get", in, out, opts...) if err != nil { return nil, err } @@ -1621,7 +1622,7 @@ func (c *serviceClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.Ca func (c *serviceClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) { out := new(ListResponse) - err := c.cc.Invoke(ctx, "/container.v2.Service/List", in, out, opts...) + err := c.cc.Invoke(ctx, "/neo.fs.v2.container.Service/List", in, out, opts...) if err != nil { return nil, err } @@ -1630,7 +1631,7 @@ func (c *serviceClient) List(ctx context.Context, in *ListRequest, opts ...grpc. func (c *serviceClient) SetExtendedACL(ctx context.Context, in *SetExtendedACLRequest, opts ...grpc.CallOption) (*SetExtendedACLResponse, error) { out := new(SetExtendedACLResponse) - err := c.cc.Invoke(ctx, "/container.v2.Service/SetExtendedACL", in, out, opts...) + err := c.cc.Invoke(ctx, "/neo.fs.v2.container.Service/SetExtendedACL", in, out, opts...) if err != nil { return nil, err } @@ -1639,7 +1640,7 @@ func (c *serviceClient) SetExtendedACL(ctx context.Context, in *SetExtendedACLRe func (c *serviceClient) GetExtendedACL(ctx context.Context, in *GetExtendedACLRequest, opts ...grpc.CallOption) (*GetExtendedACLResponse, error) { out := new(GetExtendedACLResponse) - err := c.cc.Invoke(ctx, "/container.v2.Service/GetExtendedACL", in, out, opts...) + err := c.cc.Invoke(ctx, "/neo.fs.v2.container.Service/GetExtendedACL", in, out, opts...) if err != nil { return nil, err } @@ -1709,7 +1710,7 @@ func _Service_Put_Handler(srv interface{}, ctx context.Context, dec func(interfa } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/container.v2.Service/Put", + FullMethod: "/neo.fs.v2.container.Service/Put", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).Put(ctx, req.(*PutRequest)) @@ -1727,7 +1728,7 @@ func _Service_Delete_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/container.v2.Service/Delete", + FullMethod: "/neo.fs.v2.container.Service/Delete", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).Delete(ctx, req.(*DeleteRequest)) @@ -1745,7 +1746,7 @@ func _Service_Get_Handler(srv interface{}, ctx context.Context, dec func(interfa } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/container.v2.Service/Get", + FullMethod: "/neo.fs.v2.container.Service/Get", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).Get(ctx, req.(*GetRequest)) @@ -1763,7 +1764,7 @@ func _Service_List_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/container.v2.Service/List", + FullMethod: "/neo.fs.v2.container.Service/List", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).List(ctx, req.(*ListRequest)) @@ -1781,7 +1782,7 @@ func _Service_SetExtendedACL_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/container.v2.Service/SetExtendedACL", + FullMethod: "/neo.fs.v2.container.Service/SetExtendedACL", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).SetExtendedACL(ctx, req.(*SetExtendedACLRequest)) @@ -1799,7 +1800,7 @@ func _Service_GetExtendedACL_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/container.v2.Service/GetExtendedACL", + FullMethod: "/neo.fs.v2.container.Service/GetExtendedACL", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).GetExtendedACL(ctx, req.(*GetExtendedACLRequest)) @@ -1808,7 +1809,7 @@ func _Service_GetExtendedACL_Handler(srv interface{}, ctx context.Context, dec f } var _Service_serviceDesc = grpc.ServiceDesc{ - ServiceName: "container.v2.Service", + ServiceName: "neo.fs.v2.container.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -1837,7 +1838,7 @@ var _Service_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "container/v2/service.proto", + Metadata: "v2/container/service.proto", } func (m *PutRequest) Marshal() (dAtA []byte, err error) { @@ -3683,7 +3684,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.RequestMetaHeader{} + m.MetaHeader = &service.RequestMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -3719,7 +3720,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.RequestVerificationHeader{} + m.VerifyHeader = &service.RequestVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -4003,7 +4004,7 @@ func (m *PutResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.ResponseMetaHeader{} + m.MetaHeader = &service.ResponseMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -4039,7 +4040,7 @@ func (m *PutResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.ResponseVerificationHeader{} + m.VerifyHeader = &service.ResponseVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -4129,7 +4130,7 @@ func (m *PutResponse_Body) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ContainerId == nil { - m.ContainerId = &v21.ContainerID{} + m.ContainerId = &refs.ContainerID{} } if err := m.ContainerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -4255,7 +4256,7 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.RequestMetaHeader{} + m.MetaHeader = &service.RequestMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -4291,7 +4292,7 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.RequestVerificationHeader{} + m.VerifyHeader = &service.RequestVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -4381,7 +4382,7 @@ func (m *DeleteRequest_Body) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ContainerId == nil { - m.ContainerId = &v21.ContainerID{} + m.ContainerId = &refs.ContainerID{} } if err := m.ContainerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -4541,7 +4542,7 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.ResponseMetaHeader{} + m.MetaHeader = &service.ResponseMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -4577,7 +4578,7 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.ResponseVerificationHeader{} + m.VerifyHeader = &service.ResponseVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -4757,7 +4758,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.RequestMetaHeader{} + m.MetaHeader = &service.RequestMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -4793,7 +4794,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.RequestVerificationHeader{} + m.VerifyHeader = &service.RequestVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -4883,7 +4884,7 @@ func (m *GetRequest_Body) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ContainerId == nil { - m.ContainerId = &v21.ContainerID{} + m.ContainerId = &refs.ContainerID{} } if err := m.ContainerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -5009,7 +5010,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.ResponseMetaHeader{} + m.MetaHeader = &service.ResponseMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -5045,7 +5046,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.ResponseVerificationHeader{} + m.VerifyHeader = &service.ResponseVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -5261,7 +5262,7 @@ func (m *ListRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.RequestMetaHeader{} + m.MetaHeader = &service.RequestMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -5297,7 +5298,7 @@ func (m *ListRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.RequestVerificationHeader{} + m.VerifyHeader = &service.RequestVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -5387,7 +5388,7 @@ func (m *ListRequest_Body) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.OwnerId == nil { - m.OwnerId = &v21.OwnerID{} + m.OwnerId = &refs.OwnerID{} } if err := m.OwnerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -5513,7 +5514,7 @@ func (m *ListResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.ResponseMetaHeader{} + m.MetaHeader = &service.ResponseMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -5549,7 +5550,7 @@ func (m *ListResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.ResponseVerificationHeader{} + m.VerifyHeader = &service.ResponseVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -5638,7 +5639,7 @@ func (m *ListResponse_Body) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ContainerIds = append(m.ContainerIds, &v21.ContainerID{}) + m.ContainerIds = append(m.ContainerIds, &refs.ContainerID{}) if err := m.ContainerIds[len(m.ContainerIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -5763,7 +5764,7 @@ func (m *SetExtendedACLRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.RequestMetaHeader{} + m.MetaHeader = &service.RequestMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -5799,7 +5800,7 @@ func (m *SetExtendedACLRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.RequestVerificationHeader{} + m.VerifyHeader = &service.RequestVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -5889,7 +5890,7 @@ func (m *SetExtendedACLRequest_Body) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Eacl == nil { - m.Eacl = &v22.EACLTable{} + m.Eacl = &acl.EACLTable{} } if err := m.Eacl.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6049,7 +6050,7 @@ func (m *SetExtendedACLResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.ResponseMetaHeader{} + m.MetaHeader = &service.ResponseMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6085,7 +6086,7 @@ func (m *SetExtendedACLResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.ResponseVerificationHeader{} + m.VerifyHeader = &service.ResponseVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6265,7 +6266,7 @@ func (m *GetExtendedACLRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.RequestMetaHeader{} + m.MetaHeader = &service.RequestMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6301,7 +6302,7 @@ func (m *GetExtendedACLRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.RequestVerificationHeader{} + m.VerifyHeader = &service.RequestVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6391,7 +6392,7 @@ func (m *GetExtendedACLRequest_Body) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ContainerId == nil { - m.ContainerId = &v21.ContainerID{} + m.ContainerId = &refs.ContainerID{} } if err := m.ContainerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6517,7 +6518,7 @@ func (m *GetExtendedACLResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.ResponseMetaHeader{} + m.MetaHeader = &service.ResponseMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6553,7 +6554,7 @@ func (m *GetExtendedACLResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.ResponseVerificationHeader{} + m.VerifyHeader = &service.ResponseVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6643,7 +6644,7 @@ func (m *GetExtendedACLResponse_Body) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Eacl == nil { - m.Eacl = &v22.EACLTable{} + m.Eacl = &acl.EACLTable{} } if err := m.Eacl.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/container/v2/service.proto b/v2/container/service.proto similarity index 77% rename from container/v2/service.proto rename to v2/container/service.proto index 720abc6..3d6c9c2 100644 --- a/container/v2/service.proto +++ b/v2/container/service.proto @@ -1,15 +1,15 @@ syntax = "proto3"; -package container.v2; +package neo.fs.v2.container; -option go_package = "github.com/nspcc-dev/neofs-api-go/container/v2"; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/container"; option csharp_namespace = "NeoFS.API.Container"; -import "acl/v2/types.proto"; -import "container/v2/types.proto"; -import "refs/v2/types.proto"; -import "service/v2/meta.proto"; -import "service/v2/verify.proto"; +import "v2/acl/types.proto"; +import "v2/container/types.proto"; +import "v2/refs/types.proto"; +import "v2/service/meta.proto"; +import "v2/service/verify.proto"; // Service provides API to access container smart-contract in morph chain // via NeoFS node. @@ -46,7 +46,7 @@ service Service { message PutRequest { message Body { // Container to create in NeoFS. - container.v2.Container container = 1; + neo.fs.v2.container.Container container = 1; // Public Key of container owner. It can be public key of the owner // or it can be public key that bound in neofs.id smart-contract. @@ -61,18 +61,18 @@ message PutRequest { // Carries request meta information. Header data is used only to regulate // message transport and does not affect request execution. - service.v2.RequestMetaHeader meta_header = 2; + neo.fs.v2.service.RequestMetaHeader meta_header = 2; // Carries request verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - service.v2.RequestVerificationHeader verify_header = 3; + neo.fs.v2.service.RequestVerificationHeader verify_header = 3; } message PutResponse { message Body { - // container_id carries identifier of the new container.v2. - refs.v2.ContainerID container_id = 1; + // container_id carries identifier of the new container. + neo.fs.v2.refs.ContainerID container_id = 1; } // Body of container put response message. @@ -80,19 +80,19 @@ message PutResponse { // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - service.v2.ResponseMetaHeader meta_header = 2; + neo.fs.v2.service.ResponseMetaHeader meta_header = 2; // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - service.v2.ResponseVerificationHeader verify_header = 3; + neo.fs.v2.service.ResponseVerificationHeader verify_header = 3; } message DeleteRequest { message Body { // container_id carries identifier of the container to delete // from NeoFS. - refs.v2.ContainerID container_id = 1; + neo.fs.v2.refs.ContainerID container_id = 1; // Signature of container id according to RFC-6979. bytes signature = 2; @@ -103,12 +103,12 @@ message DeleteRequest { // Carries request meta information. Header data is used only to regulate // message transport and does not affect request execution. - service.v2.RequestMetaHeader meta_header = 2; + neo.fs.v2.service.RequestMetaHeader meta_header = 2; // Carries request verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - service.v2.RequestVerificationHeader verify_header = 3; + neo.fs.v2.service.RequestVerificationHeader verify_header = 3; } // DeleteResponse is empty because delete operation is asynchronous and done @@ -121,18 +121,18 @@ message DeleteResponse { // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - service.v2.ResponseMetaHeader meta_header = 2; + neo.fs.v2.service.ResponseMetaHeader meta_header = 2; // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - service.v2.ResponseVerificationHeader verify_header = 3; + neo.fs.v2.service.ResponseVerificationHeader verify_header = 3; } message GetRequest { message Body { // container_id carries identifier of the container to get. - refs.v2.ContainerID container_id = 1; + neo.fs.v2.refs.ContainerID container_id = 1; } // Body of container get request message. @@ -140,18 +140,18 @@ message GetRequest { // Carries request meta information. Header data is used only to regulate // message transport and does not affect request execution. - service.v2.RequestMetaHeader meta_header = 2; + neo.fs.v2.service.RequestMetaHeader meta_header = 2; // Carries request verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - service.v2.RequestVerificationHeader verify_header = 3; + neo.fs.v2.service.RequestVerificationHeader verify_header = 3; } message GetResponse { message Body { // Container that has been requested. - container.v2.Container container = 1; + neo.fs.v2.container.Container container = 1; } // Body of container get response message. @@ -159,18 +159,18 @@ message GetResponse { // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - service.v2.ResponseMetaHeader meta_header = 2; + neo.fs.v2.service.ResponseMetaHeader meta_header = 2; // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - service.v2.ResponseVerificationHeader verify_header = 3; + neo.fs.v2.service.ResponseVerificationHeader verify_header = 3; } message ListRequest { message Body { // owner_id carries identifier of the container owner. - refs.v2.OwnerID owner_id = 1; + neo.fs.v2.refs.OwnerID owner_id = 1; } // Body of list containers request message. @@ -178,18 +178,18 @@ message ListRequest { // Carries request meta information. Header data is used only to regulate // message transport and does not affect request execution. - service.v2.RequestMetaHeader meta_header = 2; + neo.fs.v2.service.RequestMetaHeader meta_header = 2; // Carries request verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - service.v2.RequestVerificationHeader verify_header = 3; + neo.fs.v2.service.RequestVerificationHeader verify_header = 3; } message ListResponse { message Body { // ContainerIDs carries list of identifiers of the containers that belong to the owner. - repeated refs.v2.ContainerID container_ids = 1; + repeated refs.ContainerID container_ids = 1; } // Body of list containers response message. @@ -197,18 +197,18 @@ message ListResponse { // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - service.v2.ResponseMetaHeader meta_header = 2; + neo.fs.v2.service.ResponseMetaHeader meta_header = 2; // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - service.v2.ResponseVerificationHeader verify_header = 3; + neo.fs.v2.service.ResponseVerificationHeader verify_header = 3; } message SetExtendedACLRequest { message Body { - // Extended ACL to set for the container.v2. - acl.v2.EACLTable eacl = 1; + // Extended ACL to set for the container. + neo.fs.v2.acl.EACLTable eacl = 1; // Signature of stable-marshalled Extended ACL according to RFC-6979. bytes signature = 2; @@ -219,12 +219,12 @@ message SetExtendedACLRequest { // Carries request meta information. Header data is used only to regulate // message transport and does not affect request execution. - service.v2.RequestMetaHeader meta_header = 2; + neo.fs.v2.service.RequestMetaHeader meta_header = 2; // Carries request verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - service.v2.RequestVerificationHeader verify_header = 3; + neo.fs.v2.service.RequestVerificationHeader verify_header = 3; } message SetExtendedACLResponse { @@ -235,18 +235,18 @@ message SetExtendedACLResponse { // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - service.v2.ResponseMetaHeader meta_header = 2; + neo.fs.v2.service.ResponseMetaHeader meta_header = 2; // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - service.v2.ResponseVerificationHeader verify_header = 3; + neo.fs.v2.service.ResponseVerificationHeader verify_header = 3; } message GetExtendedACLRequest { message Body { // container_id carries identifier of the container that has Extended ACL. - refs.v2.ContainerID container_id = 1; + neo.fs.v2.refs.ContainerID container_id = 1; } // Body of get extended acl request message. @@ -254,18 +254,18 @@ message GetExtendedACLRequest { // Carries request meta information. Header data is used only to regulate // message transport and does not affect request execution. - service.v2.RequestMetaHeader meta_header = 2; + neo.fs.v2.service.RequestMetaHeader meta_header = 2; // Carries request verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - service.v2.RequestVerificationHeader verify_header = 3; + neo.fs.v2.service.RequestVerificationHeader verify_header = 3; } message GetExtendedACLResponse { message Body { // Extended ACL that has been requested if it was set up. - acl.v2.EACLTable eacl = 1; + neo.fs.v2.acl.EACLTable eacl = 1; // Signature of stable-marshalled Extended ACL according to RFC-6979. bytes signature = 2; @@ -276,10 +276,10 @@ message GetExtendedACLResponse { // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - service.v2.ResponseMetaHeader meta_header = 2; + neo.fs.v2.service.ResponseMetaHeader meta_header = 2; // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - service.v2.ResponseVerificationHeader verify_header = 3; + neo.fs.v2.service.ResponseVerificationHeader verify_header = 3; } diff --git a/container/v2/signature.go b/v2/container/signature.go similarity index 95% rename from container/v2/signature.go rename to v2/container/signature.go index ca19ee6..0bdb334 100644 --- a/container/v2/signature.go +++ b/v2/container/signature.go @@ -1,4 +1,4 @@ -package v2 +package container func (m *Container) ReadSignedData(buf []byte) ([]byte, error) { return m.StableMarshal(buf) diff --git a/container/v2/types.go b/v2/container/types.go similarity index 89% rename from container/v2/types.go rename to v2/container/types.go index 1379be9..dd64a54 100644 --- a/container/v2/types.go +++ b/v2/container/types.go @@ -1,8 +1,8 @@ -package v2 +package container import ( - netmap "github.com/nspcc-dev/neofs-api-go/netmap/v2" - refs "github.com/nspcc-dev/neofs-api-go/refs/v2" + "github.com/nspcc-dev/neofs-api-go/v2/netmap" + "github.com/nspcc-dev/neofs-api-go/v2/refs" ) // SetKey sets key to the container attribute. diff --git a/container/v2/types.pb.go b/v2/container/types.pb.go similarity index 84% rename from container/v2/types.pb.go rename to v2/container/types.pb.go index 28c03d7..50a0a36 100644 --- a/container/v2/types.pb.go +++ b/v2/container/types.pb.go @@ -1,13 +1,13 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: container/v2/types.proto +// source: v2/container/types.proto -package v2 +package container import ( fmt "fmt" proto "github.com/golang/protobuf/proto" - v21 "github.com/nspcc-dev/neofs-api-go/netmap/v2" - v2 "github.com/nspcc-dev/neofs-api-go/refs/v2" + netmap "github.com/nspcc-dev/neofs-api-go/v2/netmap" + refs "github.com/nspcc-dev/neofs-api-go/v2/refs" io "io" math "math" math_bits "math/bits" @@ -30,26 +30,26 @@ const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // SHA256 hash of stable-marshalled container message. type Container struct { // OwnerID carries identifier of the container owner. - OwnerId *v2.OwnerID `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + OwnerId *refs.OwnerID `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // Nonce is a 16 byte UUID, used to avoid collisions of container id. Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` // BasicACL contains access control rules for owner, system, others groups and // permission bits for bearer token and Extended ACL. BasicAcl uint32 `protobuf:"varint,3,opt,name=basic_acl,json=basicAcl,proto3" json:"basic_acl,omitempty"` - // Attributes define any immutable characteristics of container.v2. + // Attributes define any immutable characteristics of container. Attributes []*Container_Attribute `protobuf:"bytes,4,rep,name=attributes,proto3" json:"attributes,omitempty"` - // Rules define storage policy for the object inside the container.v2. - Rules *v21.PlacementRule `protobuf:"bytes,5,opt,name=rules,proto3" json:"rules,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // Rules define storage policy for the object inside the container. + Rules *netmap.PlacementRule `protobuf:"bytes,5,opt,name=rules,proto3" json:"rules,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Container) Reset() { *m = Container{} } func (m *Container) String() string { return proto.CompactTextString(m) } func (*Container) ProtoMessage() {} func (*Container) Descriptor() ([]byte, []int) { - return fileDescriptor_4fee8fa43abbe82f, []int{0} + return fileDescriptor_ece71f25e6ae314e, []int{0} } func (m *Container) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -78,7 +78,7 @@ func (m *Container) XXX_DiscardUnknown() { var xxx_messageInfo_Container proto.InternalMessageInfo -func (m *Container) GetOwnerId() *v2.OwnerID { +func (m *Container) GetOwnerId() *refs.OwnerID { if m != nil { return m.OwnerId } @@ -106,7 +106,7 @@ func (m *Container) GetAttributes() []*Container_Attribute { return nil } -func (m *Container) GetRules() *v21.PlacementRule { +func (m *Container) GetRules() *netmap.PlacementRule { if m != nil { return m.Rules } @@ -128,7 +128,7 @@ func (m *Container_Attribute) Reset() { *m = Container_Attribute{} } func (m *Container_Attribute) String() string { return proto.CompactTextString(m) } func (*Container_Attribute) ProtoMessage() {} func (*Container_Attribute) Descriptor() ([]byte, []int) { - return fileDescriptor_4fee8fa43abbe82f, []int{0, 0} + return fileDescriptor_ece71f25e6ae314e, []int{0, 0} } func (m *Container_Attribute) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -172,35 +172,36 @@ func (m *Container_Attribute) GetValue() string { } func init() { - proto.RegisterType((*Container)(nil), "container.v2.Container") - proto.RegisterType((*Container_Attribute)(nil), "container.v2.Container.Attribute") + proto.RegisterType((*Container)(nil), "neo.fs.v2.container.Container") + proto.RegisterType((*Container_Attribute)(nil), "neo.fs.v2.container.Container.Attribute") } -func init() { proto.RegisterFile("container/v2/types.proto", fileDescriptor_4fee8fa43abbe82f) } +func init() { proto.RegisterFile("v2/container/types.proto", fileDescriptor_ece71f25e6ae314e) } -var fileDescriptor_4fee8fa43abbe82f = []byte{ - // 334 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0xd1, 0x4a, 0xc3, 0x30, - 0x18, 0x85, 0xed, 0xe6, 0x74, 0xcd, 0x26, 0x8c, 0x4c, 0x21, 0x4c, 0x28, 0xd5, 0xab, 0x82, 0x2c, - 0x85, 0xee, 0x09, 0xaa, 0x22, 0xec, 0x46, 0x47, 0x04, 0x2f, 0xbc, 0x19, 0x69, 0xf6, 0x6f, 0x16, - 0xbb, 0xa4, 0x34, 0x69, 0x65, 0xcf, 0xe1, 0x8d, 0xcf, 0xe0, 0x93, 0x78, 0xe9, 0x23, 0xc8, 0x7c, - 0x11, 0x69, 0xcb, 0xe6, 0xd8, 0x5d, 0xfe, 0xff, 0x9c, 0x13, 0xce, 0x97, 0x20, 0x22, 0x94, 0x34, - 0x3c, 0x96, 0x90, 0xf9, 0x45, 0xe0, 0x9b, 0x55, 0x0a, 0x9a, 0xa6, 0x99, 0x32, 0x0a, 0x77, 0xb7, - 0x0a, 0x2d, 0x82, 0xc1, 0x99, 0x04, 0xb3, 0xe4, 0xe9, 0x9e, 0x69, 0xd0, 0xcf, 0x60, 0xae, 0xf7, - 0x96, 0x97, 0xef, 0x0d, 0x64, 0xdf, 0x6c, 0xc2, 0xf8, 0x0a, 0xb5, 0xd5, 0x9b, 0x84, 0x6c, 0x1a, - 0xcf, 0x88, 0xe5, 0x5a, 0x5e, 0x27, 0xe8, 0xd1, 0x32, 0x45, 0x8b, 0x80, 0x3e, 0x94, 0xc2, 0xf8, - 0x96, 0x1d, 0x57, 0x8e, 0xf1, 0x0c, 0x9f, 0xa2, 0x96, 0x54, 0x52, 0x00, 0x69, 0xb8, 0x96, 0xd7, - 0x65, 0xf5, 0x80, 0xcf, 0x91, 0x1d, 0x71, 0x1d, 0x8b, 0x29, 0x17, 0x09, 0x69, 0xba, 0x96, 0x77, - 0xc2, 0xda, 0xd5, 0x22, 0x14, 0x09, 0x0e, 0x11, 0xe2, 0xc6, 0x64, 0x71, 0x94, 0x1b, 0xd0, 0xe4, - 0xd0, 0x6d, 0x7a, 0x9d, 0xe0, 0x82, 0xee, 0x96, 0xa7, 0xdb, 0x32, 0x34, 0xdc, 0x38, 0xd9, 0x4e, - 0x08, 0x53, 0xd4, 0xca, 0xf2, 0x04, 0x34, 0x69, 0x55, 0xfd, 0x08, 0xad, 0x61, 0xcb, 0xe8, 0x24, - 0xe1, 0x02, 0x96, 0x20, 0x0d, 0xcb, 0x13, 0x60, 0xb5, 0x6d, 0x30, 0x42, 0xf6, 0xf6, 0x22, 0xdc, - 0x43, 0xcd, 0x57, 0x58, 0x55, 0x68, 0x36, 0x2b, 0x8f, 0x25, 0x44, 0xc1, 0x93, 0xbc, 0x86, 0xb0, - 0x59, 0x3d, 0x5c, 0x3f, 0x7d, 0xad, 0x1d, 0xeb, 0x7b, 0xed, 0x58, 0x3f, 0x6b, 0xc7, 0xfa, 0xf8, - 0x75, 0x0e, 0x9e, 0xe9, 0x22, 0x36, 0x2f, 0x79, 0x44, 0x85, 0x5a, 0xfa, 0x52, 0xa7, 0x42, 0x0c, - 0x67, 0x50, 0xf8, 0x12, 0xd4, 0x5c, 0x0f, 0x79, 0x1a, 0x0f, 0x17, 0xca, 0xdf, 0xfd, 0x9d, 0xcf, - 0x46, 0xff, 0x1e, 0xd4, 0xdd, 0x23, 0x0d, 0x27, 0xe3, 0x7f, 0xa4, 0xe8, 0xa8, 0x7a, 0xf4, 0xd1, - 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x16, 0x73, 0x26, 0x7e, 0xca, 0x01, 0x00, 0x00, +var fileDescriptor_ece71f25e6ae314e = []byte{ + // 345 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0xd1, 0x4a, 0xc3, 0x30, + 0x14, 0x86, 0xed, 0xe6, 0x74, 0xcd, 0x14, 0xa4, 0x53, 0x2c, 0x13, 0x6a, 0xf1, 0xaa, 0x37, 0x4b, + 0x20, 0xc3, 0x07, 0x98, 0x8a, 0xb8, 0x1b, 0x1d, 0x11, 0xbc, 0xf0, 0x66, 0xa4, 0xd9, 0xd9, 0x2c, + 0x76, 0x49, 0x69, 0xd2, 0xca, 0xde, 0xc4, 0x47, 0x10, 0x9f, 0xc4, 0x4b, 0x1f, 0x41, 0xe6, 0x8b, + 0x48, 0x5b, 0xb6, 0xf5, 0xc2, 0xbb, 0x9c, 0x93, 0xff, 0x3f, 0x39, 0x5f, 0x7e, 0xe4, 0xe6, 0x94, + 0x08, 0x25, 0x0d, 0x8f, 0x24, 0xa4, 0xc4, 0x2c, 0x13, 0xd0, 0x38, 0x49, 0x95, 0x51, 0x4e, 0x57, + 0x82, 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x56, 0x9e, 0xf5, 0xfe, 0xeb, 0xed, 0x3c, 0xe3, + 0x79, 0x64, 0x5e, 0xb2, 0x10, 0x0b, 0xb5, 0x20, 0x52, 0x27, 0x42, 0xf4, 0xa7, 0x90, 0x13, 0x09, + 0x6a, 0xa6, 0xfb, 0x3c, 0x89, 0xfa, 0x73, 0x45, 0xea, 0xc9, 0x7d, 0x36, 0xba, 0xf7, 0xa0, 0x6e, + 0x1f, 0xf1, 0x70, 0x3c, 0xda, 0x92, 0x85, 0x7b, 0x65, 0x12, 0x83, 0xbf, 0x00, 0x00, 0x00, 0xff, + 0xff, 0xde, 0x82, 0x60, 0x33, 0xe6, 0x01, 0x00, 0x00, } func (m *Container) Marshal() (dAtA []byte, err error) { @@ -450,7 +451,7 @@ func (m *Container) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.OwnerId == nil { - m.OwnerId = &v2.OwnerID{} + m.OwnerId = &refs.OwnerID{} } if err := m.OwnerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -573,7 +574,7 @@ func (m *Container) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Rules == nil { - m.Rules = &v21.PlacementRule{} + m.Rules = &netmap.PlacementRule{} } if err := m.Rules.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/container/v2/types.proto b/v2/container/types.proto similarity index 80% rename from container/v2/types.proto rename to v2/container/types.proto index 5897b8c..aa9fb2c 100644 --- a/container/v2/types.proto +++ b/v2/container/types.proto @@ -1,12 +1,12 @@ syntax = "proto3"; -package container.v2; +package neo.fs.v2.container; -option go_package = "github.com/nspcc-dev/neofs-api-go/container/v2"; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/container"; option csharp_namespace = "NeoFS.API.Container"; -import "netmap/v2/types.proto"; -import "refs/v2/types.proto"; +import "v2/netmap/types.proto"; +import "v2/refs/types.proto"; // Container is a structure that defines object placement behaviour. Objects // can be stored only within containers. They define placement rule, attributes @@ -14,7 +14,7 @@ import "refs/v2/types.proto"; // SHA256 hash of stable-marshalled container message. message Container { // OwnerID carries identifier of the container owner. - refs.v2.OwnerID owner_id = 1; + neo.fs.v2.refs.OwnerID owner_id = 1; // Nonce is a 16 byte UUID, used to avoid collisions of container id. bytes nonce = 2; @@ -32,9 +32,9 @@ message Container { string value = 2; } - // Attributes define any immutable characteristics of container.v2. + // Attributes define any immutable characteristics of container. repeated Attribute attributes = 4; - // Rules define storage policy for the object inside the container.v2. - netmap.v2.PlacementRule rules = 5; + // Rules define storage policy for the object inside the container. + neo.fs.v2.netmap.PlacementRule rules = 5; } diff --git a/netmap/v2/marshal.go b/v2/netmap/marshal.go similarity index 99% rename from netmap/v2/marshal.go rename to v2/netmap/marshal.go index 11c6e50..f0938c4 100644 --- a/netmap/v2/marshal.go +++ b/v2/netmap/marshal.go @@ -1,4 +1,4 @@ -package v2 +package netmap import ( "encoding/binary" diff --git a/netmap/v2/types.go b/v2/netmap/types.go similarity index 99% rename from netmap/v2/types.go rename to v2/netmap/types.go index 81e63f8..552314d 100644 --- a/netmap/v2/types.go +++ b/v2/netmap/types.go @@ -1,4 +1,4 @@ -package v2 +package netmap // SetOp sets operation of the simple filter. func (m *PlacementRule_SFGroup_Filter_SimpleFilter) SetOp(v PlacementRule_SFGroup_Filter_SimpleFilter_Operation) { diff --git a/netmap/v2/types.pb.go b/v2/netmap/types.pb.go similarity index 90% rename from netmap/v2/types.pb.go rename to v2/netmap/types.pb.go index a83e195..84e68fc 100644 --- a/netmap/v2/types.pb.go +++ b/v2/netmap/types.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: netmap/v2/types.proto +// source: v2/netmap/types.proto -package v2 +package netmap import ( fmt "fmt" @@ -65,7 +65,7 @@ func (x PlacementRule_SFGroup_Filter_SimpleFilter_Operation) String() string { } func (PlacementRule_SFGroup_Filter_SimpleFilter_Operation) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_059adda2b6daaf64, []int{0, 0, 0, 1, 0} + return fileDescriptor_1207dc80bd67ddec, []int{0, 0, 0, 1, 0} } // Represents the enumeration of various states of the NeoFS node. @@ -97,7 +97,7 @@ func (x NodeInfo_State) String() string { } func (NodeInfo_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_059adda2b6daaf64, []int{1, 0} + return fileDescriptor_1207dc80bd67ddec, []int{1, 0} } type PlacementRule struct { @@ -112,7 +112,7 @@ func (m *PlacementRule) Reset() { *m = PlacementRule{} } func (m *PlacementRule) String() string { return proto.CompactTextString(m) } func (*PlacementRule) ProtoMessage() {} func (*PlacementRule) Descriptor() ([]byte, []int) { - return fileDescriptor_059adda2b6daaf64, []int{0} + return fileDescriptor_1207dc80bd67ddec, []int{0} } func (m *PlacementRule) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -168,7 +168,7 @@ func (m *PlacementRule_SFGroup) Reset() { *m = PlacementRule_SFGroup{} } func (m *PlacementRule_SFGroup) String() string { return proto.CompactTextString(m) } func (*PlacementRule_SFGroup) ProtoMessage() {} func (*PlacementRule_SFGroup) Descriptor() ([]byte, []int) { - return fileDescriptor_059adda2b6daaf64, []int{0, 0} + return fileDescriptor_1207dc80bd67ddec, []int{0, 0} } func (m *PlacementRule_SFGroup) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -230,7 +230,7 @@ func (m *PlacementRule_SFGroup_Filter) Reset() { *m = PlacementRule_SFGr func (m *PlacementRule_SFGroup_Filter) String() string { return proto.CompactTextString(m) } func (*PlacementRule_SFGroup_Filter) ProtoMessage() {} func (*PlacementRule_SFGroup_Filter) Descriptor() ([]byte, []int) { - return fileDescriptor_059adda2b6daaf64, []int{0, 0, 0} + return fileDescriptor_1207dc80bd67ddec, []int{0, 0, 0} } func (m *PlacementRule_SFGroup_Filter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -288,7 +288,7 @@ func (m *PlacementRule_SFGroup_Filter_SimpleFilters) String() string { } func (*PlacementRule_SFGroup_Filter_SimpleFilters) ProtoMessage() {} func (*PlacementRule_SFGroup_Filter_SimpleFilters) Descriptor() ([]byte, []int) { - return fileDescriptor_059adda2b6daaf64, []int{0, 0, 0, 0} + return fileDescriptor_1207dc80bd67ddec, []int{0, 0, 0, 0} } func (m *PlacementRule_SFGroup_Filter_SimpleFilters) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -325,7 +325,7 @@ func (m *PlacementRule_SFGroup_Filter_SimpleFilters) GetFilters() []*PlacementRu } type PlacementRule_SFGroup_Filter_SimpleFilter struct { - Op PlacementRule_SFGroup_Filter_SimpleFilter_Operation `protobuf:"varint,1,opt,name=op,proto3,enum=netmap.v2.PlacementRule_SFGroup_Filter_SimpleFilter_Operation" json:"op,omitempty"` + Op PlacementRule_SFGroup_Filter_SimpleFilter_Operation `protobuf:"varint,1,opt,name=op,proto3,enum=neo.fs.v2.netmap.PlacementRule_SFGroup_Filter_SimpleFilter_Operation" json:"op,omitempty"` // Types that are valid to be assigned to Args: // *PlacementRule_SFGroup_Filter_SimpleFilter_Value // *PlacementRule_SFGroup_Filter_SimpleFilter_FArgs @@ -343,7 +343,7 @@ func (m *PlacementRule_SFGroup_Filter_SimpleFilter) String() string { } func (*PlacementRule_SFGroup_Filter_SimpleFilter) ProtoMessage() {} func (*PlacementRule_SFGroup_Filter_SimpleFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_059adda2b6daaf64, []int{0, 0, 0, 1} + return fileDescriptor_1207dc80bd67ddec, []int{0, 0, 0, 1} } func (m *PlacementRule_SFGroup_Filter_SimpleFilter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -438,7 +438,7 @@ func (m *PlacementRule_SFGroup_Selector) Reset() { *m = PlacementRule_SF func (m *PlacementRule_SFGroup_Selector) String() string { return proto.CompactTextString(m) } func (*PlacementRule_SFGroup_Selector) ProtoMessage() {} func (*PlacementRule_SFGroup_Selector) Descriptor() ([]byte, []int) { - return fileDescriptor_059adda2b6daaf64, []int{0, 0, 1} + return fileDescriptor_1207dc80bd67ddec, []int{0, 0, 1} } func (m *PlacementRule_SFGroup_Selector) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -490,7 +490,7 @@ type NodeInfo struct { // Carries list of the NeoFS node attributes in a string key-value format. Attributes []*NodeInfo_Attribute `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty"` // Carries state of the NeoFS node. - State NodeInfo_State `protobuf:"varint,4,opt,name=state,proto3,enum=netmap.v2.NodeInfo_State" json:"state,omitempty"` + State NodeInfo_State `protobuf:"varint,4,opt,name=state,proto3,enum=neo.fs.v2.netmap.NodeInfo_State" json:"state,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -500,7 +500,7 @@ func (m *NodeInfo) Reset() { *m = NodeInfo{} } func (m *NodeInfo) String() string { return proto.CompactTextString(m) } func (*NodeInfo) ProtoMessage() {} func (*NodeInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_059adda2b6daaf64, []int{1} + return fileDescriptor_1207dc80bd67ddec, []int{1} } func (m *NodeInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -572,7 +572,7 @@ func (m *NodeInfo_Attribute) Reset() { *m = NodeInfo_Attribute{} } func (m *NodeInfo_Attribute) String() string { return proto.CompactTextString(m) } func (*NodeInfo_Attribute) ProtoMessage() {} func (*NodeInfo_Attribute) Descriptor() ([]byte, []int) { - return fileDescriptor_059adda2b6daaf64, []int{1, 0} + return fileDescriptor_1207dc80bd67ddec, []int{1, 0} } func (m *NodeInfo_Attribute) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -616,62 +616,63 @@ func (m *NodeInfo_Attribute) GetValue() string { } func init() { - proto.RegisterEnum("netmap.v2.PlacementRule_SFGroup_Filter_SimpleFilter_Operation", PlacementRule_SFGroup_Filter_SimpleFilter_Operation_name, PlacementRule_SFGroup_Filter_SimpleFilter_Operation_value) - proto.RegisterEnum("netmap.v2.NodeInfo_State", NodeInfo_State_name, NodeInfo_State_value) - proto.RegisterType((*PlacementRule)(nil), "netmap.v2.PlacementRule") - proto.RegisterType((*PlacementRule_SFGroup)(nil), "netmap.v2.PlacementRule.SFGroup") - proto.RegisterType((*PlacementRule_SFGroup_Filter)(nil), "netmap.v2.PlacementRule.SFGroup.Filter") - proto.RegisterType((*PlacementRule_SFGroup_Filter_SimpleFilters)(nil), "netmap.v2.PlacementRule.SFGroup.Filter.SimpleFilters") - proto.RegisterType((*PlacementRule_SFGroup_Filter_SimpleFilter)(nil), "netmap.v2.PlacementRule.SFGroup.Filter.SimpleFilter") - proto.RegisterType((*PlacementRule_SFGroup_Selector)(nil), "netmap.v2.PlacementRule.SFGroup.Selector") - proto.RegisterType((*NodeInfo)(nil), "netmap.v2.NodeInfo") - proto.RegisterType((*NodeInfo_Attribute)(nil), "netmap.v2.NodeInfo.Attribute") + proto.RegisterEnum("neo.fs.v2.netmap.PlacementRule_SFGroup_Filter_SimpleFilter_Operation", PlacementRule_SFGroup_Filter_SimpleFilter_Operation_name, PlacementRule_SFGroup_Filter_SimpleFilter_Operation_value) + proto.RegisterEnum("neo.fs.v2.netmap.NodeInfo_State", NodeInfo_State_name, NodeInfo_State_value) + proto.RegisterType((*PlacementRule)(nil), "neo.fs.v2.netmap.PlacementRule") + proto.RegisterType((*PlacementRule_SFGroup)(nil), "neo.fs.v2.netmap.PlacementRule.SFGroup") + proto.RegisterType((*PlacementRule_SFGroup_Filter)(nil), "neo.fs.v2.netmap.PlacementRule.SFGroup.Filter") + proto.RegisterType((*PlacementRule_SFGroup_Filter_SimpleFilters)(nil), "neo.fs.v2.netmap.PlacementRule.SFGroup.Filter.SimpleFilters") + proto.RegisterType((*PlacementRule_SFGroup_Filter_SimpleFilter)(nil), "neo.fs.v2.netmap.PlacementRule.SFGroup.Filter.SimpleFilter") + proto.RegisterType((*PlacementRule_SFGroup_Selector)(nil), "neo.fs.v2.netmap.PlacementRule.SFGroup.Selector") + proto.RegisterType((*NodeInfo)(nil), "neo.fs.v2.netmap.NodeInfo") + proto.RegisterType((*NodeInfo_Attribute)(nil), "neo.fs.v2.netmap.NodeInfo.Attribute") } -func init() { proto.RegisterFile("netmap/v2/types.proto", fileDescriptor_059adda2b6daaf64) } +func init() { proto.RegisterFile("v2/netmap/types.proto", fileDescriptor_1207dc80bd67ddec) } -var fileDescriptor_059adda2b6daaf64 = []byte{ - // 633 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x41, 0x6b, 0xdb, 0x4a, - 0x10, 0xb6, 0xa4, 0x58, 0xb6, 0xc6, 0xf1, 0x43, 0x2c, 0x79, 0x0f, 0x3d, 0x43, 0xfc, 0x8c, 0x2f, - 0xcf, 0xa5, 0x58, 0x06, 0xa5, 0x3d, 0xa6, 0xe0, 0x50, 0x3b, 0x0d, 0x09, 0x6b, 0x77, 0x9d, 0x52, - 0xe8, 0xc5, 0xc8, 0xf2, 0xca, 0x15, 0x95, 0xb5, 0x42, 0xbb, 0x32, 0xcd, 0x2f, 0x69, 0x7f, 0x40, - 0x4f, 0xfd, 0x11, 0x3d, 0xf7, 0xd0, 0x43, 0x7f, 0x42, 0x49, 0xa1, 0xbf, 0xa3, 0xec, 0xda, 0x72, - 0x9d, 0x12, 0x48, 0xc9, 0x69, 0x34, 0xdf, 0xce, 0xf7, 0xcd, 0xec, 0xcc, 0x68, 0xe1, 0xef, 0x84, - 0x8a, 0xa5, 0x9f, 0xf6, 0x56, 0x5e, 0x4f, 0x5c, 0xa5, 0x94, 0xbb, 0x69, 0xc6, 0x04, 0x43, 0xd6, - 0x1a, 0x76, 0x57, 0x5e, 0xfb, 0x93, 0x09, 0xf5, 0x71, 0xec, 0x07, 0x74, 0x49, 0x13, 0x41, 0xf2, - 0x98, 0xa2, 0xff, 0xa0, 0x96, 0xd1, 0x34, 0x9e, 0x86, 0x7e,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xc6, 0x9c, 0xc8, 0x00, 0xb2, 0x8e, 0x6b, 0x1c, 0x81, - 0xb5, 0x55, 0xba, 0x65, 0xa9, 0x0f, 0x6e, 0x8c, 0x73, 0x33, 0xcc, 0x76, 0x17, 0xca, 0x4a, 0x04, - 0xd5, 0xa0, 0xf2, 0x02, 0x9f, 0xe3, 0xd1, 0x4b, 0x6c, 0x97, 0x10, 0x80, 0x39, 0xc2, 0x17, 0x67, - 0x78, 0x60, 0x6b, 0xf2, 0x60, 0x34, 0x1c, 0x2a, 0x47, 0x3f, 0x19, 0x7f, 0xbe, 0x6e, 0x6a, 0x5f, - 0xaf, 0x9b, 0xda, 0xb7, 0xeb, 0xa6, 0xf6, 0xfe, 0x7b, 0xb3, 0xf4, 0xea, 0xe1, 0x22, 0x12, 0xaf, - 0xf3, 0x99, 0x1b, 0xb0, 0x65, 0x2f, 0xe1, 0x69, 0x10, 0x74, 0xe7, 0x74, 0xd5, 0x4b, 0x28, 0x0b, - 0x79, 0xd7, 0x4f, 0xa3, 0xee, 0x82, 0xf5, 0xb6, 0x0f, 0xd6, 0x47, 0xdd, 0xc6, 0x94, 0x0d, 0x27, - 0x6e, 0x7f, 0x7c, 0xe6, 0x62, 0x85, 0xce, 0x4c, 0xf5, 0x7c, 0x1d, 0xfd, 0x0c, 0x00, 0x00, 0xff, - 0xff, 0xb9, 0x8b, 0x54, 0xcf, 0xd7, 0x04, 0x00, 0x00, +var fileDescriptor_1207dc80bd67ddec = []byte{ + // 641 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xc1, 0x6e, 0xd3, 0x4c, + 0x10, 0x8e, 0xed, 0xc4, 0x89, 0x27, 0xcd, 0xaf, 0xd5, 0xaa, 0x3f, 0xb2, 0x22, 0x11, 0xa2, 0x08, + 0x89, 0x48, 0x28, 0x1b, 0xe4, 0x4a, 0x5c, 0xe0, 0x92, 0xaa, 0x49,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 0x46, 0x3c, 0xf6, + 0xbc, 0xce, 0x82, 0xae, 0xbb, 0x11, 0x65, 0x3e, 0xef, 0xb8, 0x71, 0xd0, 0x59, 0xb2, 0xee, 0xee, + 0xd9, 0xfb, 0xa8, 0x22, 0x9b, 0xb2, 0xc1, 0x84, 0xf4, 0xc6, 0x43, 0x62, 0x4b, 0x68, 0xae, 0xcb, + 0x47, 0xf0, 0xe0, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8c, 0x8c, 0xb2, 0x91, 0x1d, 0x05, 0x00, + 0x00, } func (m *PlacementRule) Marshal() (dAtA []byte, err error) { diff --git a/netmap/v2/types.proto b/v2/netmap/types.proto similarity index 95% rename from netmap/v2/types.proto rename to v2/netmap/types.proto index 2d12ea5..0807cf4 100644 --- a/netmap/v2/types.proto +++ b/v2/netmap/types.proto @@ -1,8 +1,8 @@ syntax = "proto3"; -package netmap.v2; +package neo.fs.v2.netmap; -option go_package = "github.com/nspcc-dev/neofs-api-go/netmap/v2"; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/netmap"; option csharp_namespace = "NeoFS.API.Netmap"; message PlacementRule { diff --git a/object/v2/service.go b/v2/object/service.go similarity index 99% rename from object/v2/service.go rename to v2/object/service.go index b6e372f..9ec8941 100644 --- a/object/v2/service.go +++ b/v2/object/service.go @@ -1,8 +1,8 @@ -package v2 +package object import ( - refs "github.com/nspcc-dev/neofs-api-go/refs/v2" - service "github.com/nspcc-dev/neofs-api-go/service/v2" + "github.com/nspcc-dev/neofs-api-go/v2/refs" + "github.com/nspcc-dev/neofs-api-go/v2/service" ) // SetAddress sets address of the requested object. diff --git a/object/v2/service.pb.go b/v2/object/service.pb.go similarity index 88% rename from object/v2/service.pb.go rename to v2/object/service.pb.go index ce67752..18a68ce 100644 --- a/object/v2/service.pb.go +++ b/v2/object/service.pb.go @@ -1,14 +1,14 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: object/v2/service.proto +// source: v2/object/service.proto -package v2 +package object import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" - v21 "github.com/nspcc-dev/neofs-api-go/refs/v2" - v2 "github.com/nspcc-dev/neofs-api-go/service/v2" + refs "github.com/nspcc-dev/neofs-api-go/v2/refs" + service "github.com/nspcc-dev/neofs-api-go/v2/service" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -50,7 +50,7 @@ func (x SearchRequest_Body_Query_Filter_MatchType) String() string { } func (SearchRequest_Body_Query_Filter_MatchType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{8, 0, 0, 0, 0} + return fileDescriptor_6233c87a2945599e, []int{8, 0, 0, 0, 0} } type GetRequest struct { @@ -58,20 +58,20 @@ type GetRequest struct { Body *GetRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries request meta information. Header data is used only to regulate message // transport and does not affect request execution. - MetaHeader *v2.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries request verification information. This header is used to authenticate // the nodes of the message route and check the correctness of transmission. - VerifyHeader *v2.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetRequest) Reset() { *m = GetRequest{} } func (m *GetRequest) String() string { return proto.CompactTextString(m) } func (*GetRequest) ProtoMessage() {} func (*GetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{0} + return fileDescriptor_6233c87a2945599e, []int{0} } func (m *GetRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -107,14 +107,14 @@ func (m *GetRequest) GetBody() *GetRequest_Body { return nil } -func (m *GetRequest) GetMetaHeader() *v2.RequestMetaHeader { +func (m *GetRequest) GetMetaHeader() *service.RequestMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *GetRequest) GetVerifyHeader() *v2.RequestVerificationHeader { +func (m *GetRequest) GetVerifyHeader() *service.RequestVerificationHeader { if m != nil { return m.VerifyHeader } @@ -122,8 +122,8 @@ func (m *GetRequest) GetVerifyHeader() *v2.RequestVerificationHeader { } type GetRequest_Body struct { - // Address of the requested object.v2. - Address *v21.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // Address of the requested object. + Address *refs.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // Carries the raw option flag of the request. // Raw request is sent to receive only the objects // that are physically stored on the server. @@ -137,7 +137,7 @@ func (m *GetRequest_Body) Reset() { *m = GetRequest_Body{} } func (m *GetRequest_Body) String() string { return proto.CompactTextString(m) } func (*GetRequest_Body) ProtoMessage() {} func (*GetRequest_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{0, 0} + return fileDescriptor_6233c87a2945599e, []int{0, 0} } func (m *GetRequest_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -166,7 +166,7 @@ func (m *GetRequest_Body) XXX_DiscardUnknown() { var xxx_messageInfo_GetRequest_Body proto.InternalMessageInfo -func (m *GetRequest_Body) GetAddress() *v21.Address { +func (m *GetRequest_Body) GetAddress() *refs.Address { if m != nil { return m.Address } @@ -185,21 +185,21 @@ type GetResponse struct { Body *GetResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - MetaHeader *v2.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - VerifyHeader *v2.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetResponse) Reset() { *m = GetResponse{} } func (m *GetResponse) String() string { return proto.CompactTextString(m) } func (*GetResponse) ProtoMessage() {} func (*GetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{1} + return fileDescriptor_6233c87a2945599e, []int{1} } func (m *GetResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -235,14 +235,14 @@ func (m *GetResponse) GetBody() *GetResponse_Body { return nil } -func (m *GetResponse) GetMetaHeader() *v2.ResponseMetaHeader { +func (m *GetResponse) GetMetaHeader() *service.ResponseMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *GetResponse) GetVerifyHeader() *v2.ResponseVerificationHeader { +func (m *GetResponse) GetVerifyHeader() *service.ResponseVerificationHeader { if m != nil { return m.VerifyHeader } @@ -265,7 +265,7 @@ func (m *GetResponse_Body) Reset() { *m = GetResponse_Body{} } func (m *GetResponse_Body) String() string { return proto.CompactTextString(m) } func (*GetResponse_Body) ProtoMessage() {} func (*GetResponse_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{1, 0} + return fileDescriptor_6233c87a2945599e, []int{1, 0} } func (m *GetResponse_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -342,9 +342,9 @@ func (*GetResponse_Body) XXX_OneofWrappers() []interface{} { // Initialization parameters of the object got from NeoFS. type GetResponse_Body_Init struct { // Object ID - ObjectId *v21.ObjectID `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` + ObjectId *refs.ObjectID `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` // Object signature - Signature *v2.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` + Signature *service.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // Object header. Header *Header `protobuf:"bytes,3,opt,name=header,proto3" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -356,7 +356,7 @@ func (m *GetResponse_Body_Init) Reset() { *m = GetResponse_Body_Init{} } func (m *GetResponse_Body_Init) String() string { return proto.CompactTextString(m) } func (*GetResponse_Body_Init) ProtoMessage() {} func (*GetResponse_Body_Init) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{1, 0, 0} + return fileDescriptor_6233c87a2945599e, []int{1, 0, 0} } func (m *GetResponse_Body_Init) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -385,14 +385,14 @@ func (m *GetResponse_Body_Init) XXX_DiscardUnknown() { var xxx_messageInfo_GetResponse_Body_Init proto.InternalMessageInfo -func (m *GetResponse_Body_Init) GetObjectId() *v21.ObjectID { +func (m *GetResponse_Body_Init) GetObjectId() *refs.ObjectID { if m != nil { return m.ObjectId } return nil } -func (m *GetResponse_Body_Init) GetSignature() *v2.Signature { +func (m *GetResponse_Body_Init) GetSignature() *service.Signature { if m != nil { return m.Signature } @@ -411,20 +411,20 @@ type PutRequest struct { Body *PutRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries request meta information. Header data is used only to regulate message // transport and does not affect request execution. - MetaHeader *v2.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries request verification information. This header is used to authenticate // the nodes of the message route and check the correctness of transmission. - VerifyHeader *v2.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PutRequest) Reset() { *m = PutRequest{} } func (m *PutRequest) String() string { return proto.CompactTextString(m) } func (*PutRequest) ProtoMessage() {} func (*PutRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{2} + return fileDescriptor_6233c87a2945599e, []int{2} } func (m *PutRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -460,14 +460,14 @@ func (m *PutRequest) GetBody() *PutRequest_Body { return nil } -func (m *PutRequest) GetMetaHeader() *v2.RequestMetaHeader { +func (m *PutRequest) GetMetaHeader() *service.RequestMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *PutRequest) GetVerifyHeader() *v2.RequestVerificationHeader { +func (m *PutRequest) GetVerifyHeader() *service.RequestVerificationHeader { if m != nil { return m.VerifyHeader } @@ -490,7 +490,7 @@ func (m *PutRequest_Body) Reset() { *m = PutRequest_Body{} } func (m *PutRequest_Body) String() string { return proto.CompactTextString(m) } func (*PutRequest_Body) ProtoMessage() {} func (*PutRequest_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{2, 0} + return fileDescriptor_6233c87a2945599e, []int{2, 0} } func (m *PutRequest_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -567,9 +567,9 @@ func (*PutRequest_Body) XXX_OneofWrappers() []interface{} { // Groups initialization parameters of object placement in NeoFS. type PutRequest_Body_Init struct { // Object ID, where available - ObjectId *v21.ObjectID `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` + ObjectId *refs.ObjectID `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` // Object signature, were available - Signature *v2.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` + Signature *service.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // Header of the object to save in the system. Header *Header `protobuf:"bytes,3,opt,name=header,proto3" json:"header,omitempty"` // Number of the object copies to store within the RPC call. @@ -585,7 +585,7 @@ func (m *PutRequest_Body_Init) Reset() { *m = PutRequest_Body_Init{} } func (m *PutRequest_Body_Init) String() string { return proto.CompactTextString(m) } func (*PutRequest_Body_Init) ProtoMessage() {} func (*PutRequest_Body_Init) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{2, 0, 0} + return fileDescriptor_6233c87a2945599e, []int{2, 0, 0} } func (m *PutRequest_Body_Init) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -614,14 +614,14 @@ func (m *PutRequest_Body_Init) XXX_DiscardUnknown() { var xxx_messageInfo_PutRequest_Body_Init proto.InternalMessageInfo -func (m *PutRequest_Body_Init) GetObjectId() *v21.ObjectID { +func (m *PutRequest_Body_Init) GetObjectId() *refs.ObjectID { if m != nil { return m.ObjectId } return nil } -func (m *PutRequest_Body_Init) GetSignature() *v2.Signature { +func (m *PutRequest_Body_Init) GetSignature() *service.Signature { if m != nil { return m.Signature } @@ -647,21 +647,21 @@ type PutResponse struct { Body *PutResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - MetaHeader *v2.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - VerifyHeader *v2.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PutResponse) Reset() { *m = PutResponse{} } func (m *PutResponse) String() string { return proto.CompactTextString(m) } func (*PutResponse) ProtoMessage() {} func (*PutResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{3} + return fileDescriptor_6233c87a2945599e, []int{3} } func (m *PutResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -697,14 +697,14 @@ func (m *PutResponse) GetBody() *PutResponse_Body { return nil } -func (m *PutResponse) GetMetaHeader() *v2.ResponseMetaHeader { +func (m *PutResponse) GetMetaHeader() *service.ResponseMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *PutResponse) GetVerifyHeader() *v2.ResponseVerificationHeader { +func (m *PutResponse) GetVerifyHeader() *service.ResponseVerificationHeader { if m != nil { return m.VerifyHeader } @@ -712,19 +712,19 @@ func (m *PutResponse) GetVerifyHeader() *v2.ResponseVerificationHeader { } type PutResponse_Body struct { - // Carries identifier of the saved object.v2. - // It is used to access an object in the container.v2. - ObjectId *v21.ObjectID `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // Carries identifier of the saved object. + // It is used to access an object in the container. + ObjectId *refs.ObjectID `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PutResponse_Body) Reset() { *m = PutResponse_Body{} } func (m *PutResponse_Body) String() string { return proto.CompactTextString(m) } func (*PutResponse_Body) ProtoMessage() {} func (*PutResponse_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{3, 0} + return fileDescriptor_6233c87a2945599e, []int{3, 0} } func (m *PutResponse_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -753,7 +753,7 @@ func (m *PutResponse_Body) XXX_DiscardUnknown() { var xxx_messageInfo_PutResponse_Body proto.InternalMessageInfo -func (m *PutResponse_Body) GetObjectId() *v21.ObjectID { +func (m *PutResponse_Body) GetObjectId() *refs.ObjectID { if m != nil { return m.ObjectId } @@ -765,20 +765,20 @@ type DeleteRequest struct { Body *DeleteRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries request meta information. Header data is used only to regulate message // transport and does not affect request execution. - MetaHeader *v2.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries request verification information. This header is used to authenticate // the nodes of the message route and check the correctness of transmission. - VerifyHeader *v2.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *DeleteRequest) Reset() { *m = DeleteRequest{} } func (m *DeleteRequest) String() string { return proto.CompactTextString(m) } func (*DeleteRequest) ProtoMessage() {} func (*DeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{4} + return fileDescriptor_6233c87a2945599e, []int{4} } func (m *DeleteRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -814,14 +814,14 @@ func (m *DeleteRequest) GetBody() *DeleteRequest_Body { return nil } -func (m *DeleteRequest) GetMetaHeader() *v2.RequestMetaHeader { +func (m *DeleteRequest) GetMetaHeader() *service.RequestMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *DeleteRequest) GetVerifyHeader() *v2.RequestVerificationHeader { +func (m *DeleteRequest) GetVerifyHeader() *service.RequestVerificationHeader { if m != nil { return m.VerifyHeader } @@ -830,19 +830,19 @@ func (m *DeleteRequest) GetVerifyHeader() *v2.RequestVerificationHeader { type DeleteRequest_Body struct { // Carries the address of the object to be deleted. - Address *v21.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Address *refs.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // Carries identifier the object owner. - OwnerId *v21.OwnerID `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + OwnerId *refs.OwnerID `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *DeleteRequest_Body) Reset() { *m = DeleteRequest_Body{} } func (m *DeleteRequest_Body) String() string { return proto.CompactTextString(m) } func (*DeleteRequest_Body) ProtoMessage() {} func (*DeleteRequest_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{4, 0} + return fileDescriptor_6233c87a2945599e, []int{4, 0} } func (m *DeleteRequest_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -871,14 +871,14 @@ func (m *DeleteRequest_Body) XXX_DiscardUnknown() { var xxx_messageInfo_DeleteRequest_Body proto.InternalMessageInfo -func (m *DeleteRequest_Body) GetAddress() *v21.Address { +func (m *DeleteRequest_Body) GetAddress() *refs.Address { if m != nil { return m.Address } return nil } -func (m *DeleteRequest_Body) GetOwnerId() *v21.OwnerID { +func (m *DeleteRequest_Body) GetOwnerId() *refs.OwnerID { if m != nil { return m.OwnerId } @@ -892,21 +892,21 @@ type DeleteResponse struct { Body *DeleteResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - MetaHeader *v2.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - VerifyHeader *v2.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *DeleteResponse) Reset() { *m = DeleteResponse{} } func (m *DeleteResponse) String() string { return proto.CompactTextString(m) } func (*DeleteResponse) ProtoMessage() {} func (*DeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{5} + return fileDescriptor_6233c87a2945599e, []int{5} } func (m *DeleteResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -942,14 +942,14 @@ func (m *DeleteResponse) GetBody() *DeleteResponse_Body { return nil } -func (m *DeleteResponse) GetMetaHeader() *v2.ResponseMetaHeader { +func (m *DeleteResponse) GetMetaHeader() *service.ResponseMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *DeleteResponse) GetVerifyHeader() *v2.ResponseVerificationHeader { +func (m *DeleteResponse) GetVerifyHeader() *service.ResponseVerificationHeader { if m != nil { return m.VerifyHeader } @@ -966,7 +966,7 @@ func (m *DeleteResponse_Body) Reset() { *m = DeleteResponse_Body{} } func (m *DeleteResponse_Body) String() string { return proto.CompactTextString(m) } func (*DeleteResponse_Body) ProtoMessage() {} func (*DeleteResponse_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{5, 0} + return fileDescriptor_6233c87a2945599e, []int{5, 0} } func (m *DeleteResponse_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1000,20 +1000,20 @@ type HeadRequest struct { Body *HeadRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries request meta information. Header data is used only to regulate message // transport and does not affect request execution. - MetaHeader *v2.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries request verification information. This header is used to authenticate // the nodes of the message route and check the correctness of transmission. - VerifyHeader *v2.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *HeadRequest) Reset() { *m = HeadRequest{} } func (m *HeadRequest) String() string { return proto.CompactTextString(m) } func (*HeadRequest) ProtoMessage() {} func (*HeadRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{6} + return fileDescriptor_6233c87a2945599e, []int{6} } func (m *HeadRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1049,14 +1049,14 @@ func (m *HeadRequest) GetBody() *HeadRequest_Body { return nil } -func (m *HeadRequest) GetMetaHeader() *v2.RequestMetaHeader { +func (m *HeadRequest) GetMetaHeader() *service.RequestMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *HeadRequest) GetVerifyHeader() *v2.RequestVerificationHeader { +func (m *HeadRequest) GetVerifyHeader() *service.RequestVerificationHeader { if m != nil { return m.VerifyHeader } @@ -1065,7 +1065,7 @@ func (m *HeadRequest) GetVerifyHeader() *v2.RequestVerificationHeader { type HeadRequest_Body struct { // Address of the object with the requested header. - Address *v21.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Address *refs.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // Return only minimal header subset MainOnly bool `protobuf:"varint,2,opt,name=main_only,json=mainOnly,proto3" json:"main_only,omitempty"` // Carries the raw option flag of the request. @@ -1081,7 +1081,7 @@ func (m *HeadRequest_Body) Reset() { *m = HeadRequest_Body{} } func (m *HeadRequest_Body) String() string { return proto.CompactTextString(m) } func (*HeadRequest_Body) ProtoMessage() {} func (*HeadRequest_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{6, 0} + return fileDescriptor_6233c87a2945599e, []int{6, 0} } func (m *HeadRequest_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1110,7 +1110,7 @@ func (m *HeadRequest_Body) XXX_DiscardUnknown() { var xxx_messageInfo_HeadRequest_Body proto.InternalMessageInfo -func (m *HeadRequest_Body) GetAddress() *v21.Address { +func (m *HeadRequest_Body) GetAddress() *refs.Address { if m != nil { return m.Address } @@ -1136,21 +1136,21 @@ type HeadResponse struct { Body *HeadResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - MetaHeader *v2.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - VerifyHeader *v2.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *HeadResponse) Reset() { *m = HeadResponse{} } func (m *HeadResponse) String() string { return proto.CompactTextString(m) } func (*HeadResponse) ProtoMessage() {} func (*HeadResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{7} + return fileDescriptor_6233c87a2945599e, []int{7} } func (m *HeadResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1186,14 +1186,14 @@ func (m *HeadResponse) GetBody() *HeadResponse_Body { return nil } -func (m *HeadResponse) GetMetaHeader() *v2.ResponseMetaHeader { +func (m *HeadResponse) GetMetaHeader() *service.ResponseMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *HeadResponse) GetVerifyHeader() *v2.ResponseVerificationHeader { +func (m *HeadResponse) GetVerifyHeader() *service.ResponseVerificationHeader { if m != nil { return m.VerifyHeader } @@ -1216,7 +1216,7 @@ func (m *HeadResponse_Body) Reset() { *m = HeadResponse_Body{} } func (m *HeadResponse_Body) String() string { return proto.CompactTextString(m) } func (*HeadResponse_Body) ProtoMessage() {} func (*HeadResponse_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{7, 0} + return fileDescriptor_6233c87a2945599e, []int{7, 0} } func (m *HeadResponse_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1292,13 +1292,13 @@ func (*HeadResponse_Body) XXX_OneofWrappers() []interface{} { type HeadResponse_Body_ShortHeader struct { // Object format version. - Version *v2.Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + Version *service.Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // Epoch when the object was created CreationEpoch uint64 `protobuf:"varint,2,opt,name=creation_epoch,json=creationEpoch,proto3" json:"creation_epoch,omitempty"` // Object's owner - OwnerId *v21.OwnerID `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + OwnerId *refs.OwnerID `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // Type of the object payload content - ObjectType ObjectType `protobuf:"varint,4,opt,name=object_type,json=objectType,proto3,enum=object.v2.ObjectType" json:"object_type,omitempty"` + ObjectType ObjectType `protobuf:"varint,4,opt,name=object_type,json=objectType,proto3,enum=neo.fs.v2.object.ObjectType" json:"object_type,omitempty"` // Size of payload in bytes. // 0xFFFFFFFFFFFFFFFF means `payload_length` is unknown PayloadLength uint64 `protobuf:"varint,5,opt,name=payload_length,json=payloadLength,proto3" json:"payload_length,omitempty"` @@ -1311,7 +1311,7 @@ func (m *HeadResponse_Body_ShortHeader) Reset() { *m = HeadResponse_Body func (m *HeadResponse_Body_ShortHeader) String() string { return proto.CompactTextString(m) } func (*HeadResponse_Body_ShortHeader) ProtoMessage() {} func (*HeadResponse_Body_ShortHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{7, 0, 0} + return fileDescriptor_6233c87a2945599e, []int{7, 0, 0} } func (m *HeadResponse_Body_ShortHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1340,7 +1340,7 @@ func (m *HeadResponse_Body_ShortHeader) XXX_DiscardUnknown() { var xxx_messageInfo_HeadResponse_Body_ShortHeader proto.InternalMessageInfo -func (m *HeadResponse_Body_ShortHeader) GetVersion() *v2.Version { +func (m *HeadResponse_Body_ShortHeader) GetVersion() *service.Version { if m != nil { return m.Version } @@ -1354,7 +1354,7 @@ func (m *HeadResponse_Body_ShortHeader) GetCreationEpoch() uint64 { return 0 } -func (m *HeadResponse_Body_ShortHeader) GetOwnerId() *v21.OwnerID { +func (m *HeadResponse_Body_ShortHeader) GetOwnerId() *refs.OwnerID { if m != nil { return m.OwnerId } @@ -1380,20 +1380,20 @@ type SearchRequest struct { Body *SearchRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries request meta information. Header data is used only to regulate message // transport and does not affect request execution. - MetaHeader *v2.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries request verification information. This header is used to authenticate // the nodes of the message route and check the correctness of transmission. - VerifyHeader *v2.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SearchRequest) Reset() { *m = SearchRequest{} } func (m *SearchRequest) String() string { return proto.CompactTextString(m) } func (*SearchRequest) ProtoMessage() {} func (*SearchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{8} + return fileDescriptor_6233c87a2945599e, []int{8} } func (m *SearchRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1429,14 +1429,14 @@ func (m *SearchRequest) GetBody() *SearchRequest_Body { return nil } -func (m *SearchRequest) GetMetaHeader() *v2.RequestMetaHeader { +func (m *SearchRequest) GetMetaHeader() *service.RequestMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *SearchRequest) GetVerifyHeader() *v2.RequestVerificationHeader { +func (m *SearchRequest) GetVerifyHeader() *service.RequestVerificationHeader { if m != nil { return m.VerifyHeader } @@ -1445,7 +1445,7 @@ func (m *SearchRequest) GetVerifyHeader() *v2.RequestVerificationHeader { type SearchRequest_Body struct { // Carries search container identifier. - ContainerId *v21.ContainerID `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` + ContainerId *refs.ContainerID `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` Query *SearchRequest_Body_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1456,7 +1456,7 @@ func (m *SearchRequest_Body) Reset() { *m = SearchRequest_Body{} } func (m *SearchRequest_Body) String() string { return proto.CompactTextString(m) } func (*SearchRequest_Body) ProtoMessage() {} func (*SearchRequest_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{8, 0} + return fileDescriptor_6233c87a2945599e, []int{8, 0} } func (m *SearchRequest_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1485,7 +1485,7 @@ func (m *SearchRequest_Body) XXX_DiscardUnknown() { var xxx_messageInfo_SearchRequest_Body proto.InternalMessageInfo -func (m *SearchRequest_Body) GetContainerId() *v21.ContainerID { +func (m *SearchRequest_Body) GetContainerId() *refs.ContainerID { if m != nil { return m.ContainerId } @@ -1511,7 +1511,7 @@ func (m *SearchRequest_Body_Query) Reset() { *m = SearchRequest_Body_Que func (m *SearchRequest_Body_Query) String() string { return proto.CompactTextString(m) } func (*SearchRequest_Body_Query) ProtoMessage() {} func (*SearchRequest_Body_Query) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{8, 0, 0} + return fileDescriptor_6233c87a2945599e, []int{8, 0, 0} } func (m *SearchRequest_Body_Query) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1555,7 +1555,7 @@ func (m *SearchRequest_Body_Query) GetFilters() []*SearchRequest_Body_Query_Filt } type SearchRequest_Body_Query_Filter struct { - MatchType SearchRequest_Body_Query_Filter_MatchType `protobuf:"varint,1,opt,name=match_type,json=matchType,proto3,enum=object.v2.SearchRequest_Body_Query_Filter_MatchType" json:"match_type,omitempty"` + MatchType SearchRequest_Body_Query_Filter_MatchType `protobuf:"varint,1,opt,name=match_type,json=matchType,proto3,enum=neo.fs.v2.object.SearchRequest_Body_Query_Filter_MatchType" json:"match_type,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1567,7 +1567,7 @@ func (m *SearchRequest_Body_Query_Filter) Reset() { *m = SearchRequest_B func (m *SearchRequest_Body_Query_Filter) String() string { return proto.CompactTextString(m) } func (*SearchRequest_Body_Query_Filter) ProtoMessage() {} func (*SearchRequest_Body_Query_Filter) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{8, 0, 0, 0} + return fileDescriptor_6233c87a2945599e, []int{8, 0, 0, 0} } func (m *SearchRequest_Body_Query_Filter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1622,21 +1622,21 @@ type SearchResponse struct { Body *SearchResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - MetaHeader *v2.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - VerifyHeader *v2.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SearchResponse) Reset() { *m = SearchResponse{} } func (m *SearchResponse) String() string { return proto.CompactTextString(m) } func (*SearchResponse) ProtoMessage() {} func (*SearchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{9} + return fileDescriptor_6233c87a2945599e, []int{9} } func (m *SearchResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1672,14 +1672,14 @@ func (m *SearchResponse) GetBody() *SearchResponse_Body { return nil } -func (m *SearchResponse) GetMetaHeader() *v2.ResponseMetaHeader { +func (m *SearchResponse) GetMetaHeader() *service.ResponseMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *SearchResponse) GetVerifyHeader() *v2.ResponseVerificationHeader { +func (m *SearchResponse) GetVerifyHeader() *service.ResponseVerificationHeader { if m != nil { return m.VerifyHeader } @@ -1688,17 +1688,17 @@ func (m *SearchResponse) GetVerifyHeader() *v2.ResponseVerificationHeader { type SearchResponse_Body struct { // Carries list of object identifiers that match the search query. - IdList []*v21.ObjectID `protobuf:"bytes,1,rep,name=id_list,json=idList,proto3" json:"id_list,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + IdList []*refs.ObjectID `protobuf:"bytes,1,rep,name=id_list,json=idList,proto3" json:"id_list,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SearchResponse_Body) Reset() { *m = SearchResponse_Body{} } func (m *SearchResponse_Body) String() string { return proto.CompactTextString(m) } func (*SearchResponse_Body) ProtoMessage() {} func (*SearchResponse_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{9, 0} + return fileDescriptor_6233c87a2945599e, []int{9, 0} } func (m *SearchResponse_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1727,7 +1727,7 @@ func (m *SearchResponse_Body) XXX_DiscardUnknown() { var xxx_messageInfo_SearchResponse_Body proto.InternalMessageInfo -func (m *SearchResponse_Body) GetIdList() []*v21.ObjectID { +func (m *SearchResponse_Body) GetIdList() []*refs.ObjectID { if m != nil { return m.IdList } @@ -1749,7 +1749,7 @@ func (m *Range) Reset() { *m = Range{} } func (m *Range) String() string { return proto.CompactTextString(m) } func (*Range) ProtoMessage() {} func (*Range) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{10} + return fileDescriptor_6233c87a2945599e, []int{10} } func (m *Range) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1797,20 +1797,20 @@ type GetRangeRequest struct { Body *GetRangeRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries request meta information. Header data is used only to regulate message // transport and does not affect request execution. - MetaHeader *v2.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries request verification information. This header is used to authenticate // the nodes of the message route and check the correctness of transmission. - VerifyHeader *v2.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetRangeRequest) Reset() { *m = GetRangeRequest{} } func (m *GetRangeRequest) String() string { return proto.CompactTextString(m) } func (*GetRangeRequest) ProtoMessage() {} func (*GetRangeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{11} + return fileDescriptor_6233c87a2945599e, []int{11} } func (m *GetRangeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1846,14 +1846,14 @@ func (m *GetRangeRequest) GetBody() *GetRangeRequest_Body { return nil } -func (m *GetRangeRequest) GetMetaHeader() *v2.RequestMetaHeader { +func (m *GetRangeRequest) GetMetaHeader() *service.RequestMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *GetRangeRequest) GetVerifyHeader() *v2.RequestVerificationHeader { +func (m *GetRangeRequest) GetVerifyHeader() *service.RequestVerificationHeader { if m != nil { return m.VerifyHeader } @@ -1862,7 +1862,7 @@ func (m *GetRangeRequest) GetVerifyHeader() *v2.RequestVerificationHeader { type GetRangeRequest_Body struct { // Address carries address of the object that contains the requested payload range. - Address *v21.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Address *refs.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // Range carries the parameters of the requested payload range. Range *Range `protobuf:"bytes,2,opt,name=range,proto3" json:"range,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1874,7 +1874,7 @@ func (m *GetRangeRequest_Body) Reset() { *m = GetRangeRequest_Body{} } func (m *GetRangeRequest_Body) String() string { return proto.CompactTextString(m) } func (*GetRangeRequest_Body) ProtoMessage() {} func (*GetRangeRequest_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{11, 0} + return fileDescriptor_6233c87a2945599e, []int{11, 0} } func (m *GetRangeRequest_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1903,7 +1903,7 @@ func (m *GetRangeRequest_Body) XXX_DiscardUnknown() { var xxx_messageInfo_GetRangeRequest_Body proto.InternalMessageInfo -func (m *GetRangeRequest_Body) GetAddress() *v21.Address { +func (m *GetRangeRequest_Body) GetAddress() *refs.Address { if m != nil { return m.Address } @@ -1922,21 +1922,21 @@ type GetRangeResponse struct { Body *GetRangeResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - MetaHeader *v2.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - VerifyHeader *v2.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetRangeResponse) Reset() { *m = GetRangeResponse{} } func (m *GetRangeResponse) String() string { return proto.CompactTextString(m) } func (*GetRangeResponse) ProtoMessage() {} func (*GetRangeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{12} + return fileDescriptor_6233c87a2945599e, []int{12} } func (m *GetRangeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1972,14 +1972,14 @@ func (m *GetRangeResponse) GetBody() *GetRangeResponse_Body { return nil } -func (m *GetRangeResponse) GetMetaHeader() *v2.ResponseMetaHeader { +func (m *GetRangeResponse) GetMetaHeader() *service.ResponseMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *GetRangeResponse) GetVerifyHeader() *v2.ResponseVerificationHeader { +func (m *GetRangeResponse) GetVerifyHeader() *service.ResponseVerificationHeader { if m != nil { return m.VerifyHeader } @@ -1998,7 +1998,7 @@ func (m *GetRangeResponse_Body) Reset() { *m = GetRangeResponse_Body{} } func (m *GetRangeResponse_Body) String() string { return proto.CompactTextString(m) } func (*GetRangeResponse_Body) ProtoMessage() {} func (*GetRangeResponse_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{12, 0} + return fileDescriptor_6233c87a2945599e, []int{12, 0} } func (m *GetRangeResponse_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2039,20 +2039,20 @@ type GetRangeHashRequest struct { Body *GetRangeHashRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries request meta information. Header data is used only to regulate message // transport and does not affect request execution. - MetaHeader *v2.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries request verification information. This header is used to authenticate // the nodes of the message route and check the correctness of transmission. - VerifyHeader *v2.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetRangeHashRequest) Reset() { *m = GetRangeHashRequest{} } func (m *GetRangeHashRequest) String() string { return proto.CompactTextString(m) } func (*GetRangeHashRequest) ProtoMessage() {} func (*GetRangeHashRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{13} + return fileDescriptor_6233c87a2945599e, []int{13} } func (m *GetRangeHashRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2088,14 +2088,14 @@ func (m *GetRangeHashRequest) GetBody() *GetRangeHashRequest_Body { return nil } -func (m *GetRangeHashRequest) GetMetaHeader() *v2.RequestMetaHeader { +func (m *GetRangeHashRequest) GetMetaHeader() *service.RequestMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *GetRangeHashRequest) GetVerifyHeader() *v2.RequestVerificationHeader { +func (m *GetRangeHashRequest) GetVerifyHeader() *service.RequestVerificationHeader { if m != nil { return m.VerifyHeader } @@ -2104,7 +2104,7 @@ func (m *GetRangeHashRequest) GetVerifyHeader() *v2.RequestVerificationHeader { type GetRangeHashRequest_Body struct { // Carries address of the object that contains the requested payload range. - Address *v21.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Address *refs.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // Carries the list of object payload range to calculate homomorphic hash. Ranges []*Range `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"` // Carries binary salt to XOR object payload ranges before hash calculation. @@ -2118,7 +2118,7 @@ func (m *GetRangeHashRequest_Body) Reset() { *m = GetRangeHashRequest_Bo func (m *GetRangeHashRequest_Body) String() string { return proto.CompactTextString(m) } func (*GetRangeHashRequest_Body) ProtoMessage() {} func (*GetRangeHashRequest_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{13, 0} + return fileDescriptor_6233c87a2945599e, []int{13, 0} } func (m *GetRangeHashRequest_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2147,7 +2147,7 @@ func (m *GetRangeHashRequest_Body) XXX_DiscardUnknown() { var xxx_messageInfo_GetRangeHashRequest_Body proto.InternalMessageInfo -func (m *GetRangeHashRequest_Body) GetAddress() *v21.Address { +func (m *GetRangeHashRequest_Body) GetAddress() *refs.Address { if m != nil { return m.Address } @@ -2173,21 +2173,21 @@ type GetRangeHashResponse struct { Body *GetRangeHashResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - MetaHeader *v2.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - VerifyHeader *v2.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetRangeHashResponse) Reset() { *m = GetRangeHashResponse{} } func (m *GetRangeHashResponse) String() string { return proto.CompactTextString(m) } func (*GetRangeHashResponse) ProtoMessage() {} func (*GetRangeHashResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{14} + return fileDescriptor_6233c87a2945599e, []int{14} } func (m *GetRangeHashResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2223,14 +2223,14 @@ func (m *GetRangeHashResponse) GetBody() *GetRangeHashResponse_Body { return nil } -func (m *GetRangeHashResponse) GetMetaHeader() *v2.ResponseMetaHeader { +func (m *GetRangeHashResponse) GetMetaHeader() *service.ResponseMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *GetRangeHashResponse) GetVerifyHeader() *v2.ResponseVerificationHeader { +func (m *GetRangeHashResponse) GetVerifyHeader() *service.ResponseVerificationHeader { if m != nil { return m.VerifyHeader } @@ -2249,7 +2249,7 @@ func (m *GetRangeHashResponse_Body) Reset() { *m = GetRangeHashResponse_ func (m *GetRangeHashResponse_Body) String() string { return proto.CompactTextString(m) } func (*GetRangeHashResponse_Body) ProtoMessage() {} func (*GetRangeHashResponse_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_7c0929a7db2b025b, []int{14, 0} + return fileDescriptor_6233c87a2945599e, []int{14, 0} } func (m *GetRangeHashResponse_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2286,134 +2286,135 @@ func (m *GetRangeHashResponse_Body) GetHashList() [][]byte { } func init() { - proto.RegisterEnum("object.v2.SearchRequest_Body_Query_Filter_MatchType", SearchRequest_Body_Query_Filter_MatchType_name, SearchRequest_Body_Query_Filter_MatchType_value) - proto.RegisterType((*GetRequest)(nil), "object.v2.GetRequest") - proto.RegisterType((*GetRequest_Body)(nil), "object.v2.GetRequest.Body") - proto.RegisterType((*GetResponse)(nil), "object.v2.GetResponse") - proto.RegisterType((*GetResponse_Body)(nil), "object.v2.GetResponse.Body") - proto.RegisterType((*GetResponse_Body_Init)(nil), "object.v2.GetResponse.Body.Init") - proto.RegisterType((*PutRequest)(nil), "object.v2.PutRequest") - proto.RegisterType((*PutRequest_Body)(nil), "object.v2.PutRequest.Body") - proto.RegisterType((*PutRequest_Body_Init)(nil), "object.v2.PutRequest.Body.Init") - proto.RegisterType((*PutResponse)(nil), "object.v2.PutResponse") - proto.RegisterType((*PutResponse_Body)(nil), "object.v2.PutResponse.Body") - proto.RegisterType((*DeleteRequest)(nil), "object.v2.DeleteRequest") - proto.RegisterType((*DeleteRequest_Body)(nil), "object.v2.DeleteRequest.Body") - proto.RegisterType((*DeleteResponse)(nil), "object.v2.DeleteResponse") - proto.RegisterType((*DeleteResponse_Body)(nil), "object.v2.DeleteResponse.Body") - proto.RegisterType((*HeadRequest)(nil), "object.v2.HeadRequest") - proto.RegisterType((*HeadRequest_Body)(nil), "object.v2.HeadRequest.Body") - proto.RegisterType((*HeadResponse)(nil), "object.v2.HeadResponse") - proto.RegisterType((*HeadResponse_Body)(nil), "object.v2.HeadResponse.Body") - proto.RegisterType((*HeadResponse_Body_ShortHeader)(nil), "object.v2.HeadResponse.Body.ShortHeader") - proto.RegisterType((*SearchRequest)(nil), "object.v2.SearchRequest") - proto.RegisterType((*SearchRequest_Body)(nil), "object.v2.SearchRequest.Body") - proto.RegisterType((*SearchRequest_Body_Query)(nil), "object.v2.SearchRequest.Body.Query") - proto.RegisterType((*SearchRequest_Body_Query_Filter)(nil), "object.v2.SearchRequest.Body.Query.Filter") - proto.RegisterType((*SearchResponse)(nil), "object.v2.SearchResponse") - proto.RegisterType((*SearchResponse_Body)(nil), "object.v2.SearchResponse.Body") - proto.RegisterType((*Range)(nil), "object.v2.Range") - proto.RegisterType((*GetRangeRequest)(nil), "object.v2.GetRangeRequest") - proto.RegisterType((*GetRangeRequest_Body)(nil), "object.v2.GetRangeRequest.Body") - proto.RegisterType((*GetRangeResponse)(nil), "object.v2.GetRangeResponse") - proto.RegisterType((*GetRangeResponse_Body)(nil), "object.v2.GetRangeResponse.Body") - proto.RegisterType((*GetRangeHashRequest)(nil), "object.v2.GetRangeHashRequest") - proto.RegisterType((*GetRangeHashRequest_Body)(nil), "object.v2.GetRangeHashRequest.Body") - proto.RegisterType((*GetRangeHashResponse)(nil), "object.v2.GetRangeHashResponse") - proto.RegisterType((*GetRangeHashResponse_Body)(nil), "object.v2.GetRangeHashResponse.Body") + proto.RegisterEnum("neo.fs.v2.object.SearchRequest_Body_Query_Filter_MatchType", SearchRequest_Body_Query_Filter_MatchType_name, SearchRequest_Body_Query_Filter_MatchType_value) + proto.RegisterType((*GetRequest)(nil), "neo.fs.v2.object.GetRequest") + proto.RegisterType((*GetRequest_Body)(nil), "neo.fs.v2.object.GetRequest.Body") + proto.RegisterType((*GetResponse)(nil), "neo.fs.v2.object.GetResponse") + proto.RegisterType((*GetResponse_Body)(nil), "neo.fs.v2.object.GetResponse.Body") + proto.RegisterType((*GetResponse_Body_Init)(nil), "neo.fs.v2.object.GetResponse.Body.Init") + proto.RegisterType((*PutRequest)(nil), "neo.fs.v2.object.PutRequest") + proto.RegisterType((*PutRequest_Body)(nil), "neo.fs.v2.object.PutRequest.Body") + proto.RegisterType((*PutRequest_Body_Init)(nil), "neo.fs.v2.object.PutRequest.Body.Init") + proto.RegisterType((*PutResponse)(nil), "neo.fs.v2.object.PutResponse") + proto.RegisterType((*PutResponse_Body)(nil), "neo.fs.v2.object.PutResponse.Body") + proto.RegisterType((*DeleteRequest)(nil), "neo.fs.v2.object.DeleteRequest") + proto.RegisterType((*DeleteRequest_Body)(nil), "neo.fs.v2.object.DeleteRequest.Body") + proto.RegisterType((*DeleteResponse)(nil), "neo.fs.v2.object.DeleteResponse") + proto.RegisterType((*DeleteResponse_Body)(nil), "neo.fs.v2.object.DeleteResponse.Body") + proto.RegisterType((*HeadRequest)(nil), "neo.fs.v2.object.HeadRequest") + proto.RegisterType((*HeadRequest_Body)(nil), "neo.fs.v2.object.HeadRequest.Body") + proto.RegisterType((*HeadResponse)(nil), "neo.fs.v2.object.HeadResponse") + proto.RegisterType((*HeadResponse_Body)(nil), "neo.fs.v2.object.HeadResponse.Body") + proto.RegisterType((*HeadResponse_Body_ShortHeader)(nil), "neo.fs.v2.object.HeadResponse.Body.ShortHeader") + proto.RegisterType((*SearchRequest)(nil), "neo.fs.v2.object.SearchRequest") + proto.RegisterType((*SearchRequest_Body)(nil), "neo.fs.v2.object.SearchRequest.Body") + proto.RegisterType((*SearchRequest_Body_Query)(nil), "neo.fs.v2.object.SearchRequest.Body.Query") + proto.RegisterType((*SearchRequest_Body_Query_Filter)(nil), "neo.fs.v2.object.SearchRequest.Body.Query.Filter") + proto.RegisterType((*SearchResponse)(nil), "neo.fs.v2.object.SearchResponse") + proto.RegisterType((*SearchResponse_Body)(nil), "neo.fs.v2.object.SearchResponse.Body") + proto.RegisterType((*Range)(nil), "neo.fs.v2.object.Range") + proto.RegisterType((*GetRangeRequest)(nil), "neo.fs.v2.object.GetRangeRequest") + proto.RegisterType((*GetRangeRequest_Body)(nil), "neo.fs.v2.object.GetRangeRequest.Body") + proto.RegisterType((*GetRangeResponse)(nil), "neo.fs.v2.object.GetRangeResponse") + proto.RegisterType((*GetRangeResponse_Body)(nil), "neo.fs.v2.object.GetRangeResponse.Body") + proto.RegisterType((*GetRangeHashRequest)(nil), "neo.fs.v2.object.GetRangeHashRequest") + proto.RegisterType((*GetRangeHashRequest_Body)(nil), "neo.fs.v2.object.GetRangeHashRequest.Body") + proto.RegisterType((*GetRangeHashResponse)(nil), "neo.fs.v2.object.GetRangeHashResponse") + proto.RegisterType((*GetRangeHashResponse_Body)(nil), "neo.fs.v2.object.GetRangeHashResponse.Body") } -func init() { proto.RegisterFile("object/v2/service.proto", fileDescriptor_7c0929a7db2b025b) } +func init() { proto.RegisterFile("v2/object/service.proto", fileDescriptor_6233c87a2945599e) } -var fileDescriptor_7c0929a7db2b025b = []byte{ - // 1387 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcd, 0x6f, 0x1b, 0xc5, - 0x1b, 0xce, 0xae, 0x3f, 0x12, 0xbf, 0xb6, 0xf3, 0x73, 0xa7, 0x49, 0xea, 0xdf, 0xa6, 0x75, 0xa3, - 0x0d, 0xad, 0x42, 0xab, 0x6c, 0x82, 0x5b, 0x52, 0x38, 0x40, 0x95, 0x34, 0x6d, 0x63, 0xda, 0x7c, - 0x74, 0xdd, 0x16, 0xa9, 0x17, 0x6b, 0xb3, 0x3b, 0x89, 0x17, 0xec, 0x5d, 0x77, 0x77, 0xed, 0xca, - 0x67, 0x10, 0x47, 0x8e, 0x88, 0x23, 0x82, 0x1b, 0x12, 0x70, 0x46, 0xfc, 0x03, 0x08, 0x81, 0xc4, - 0x99, 0x13, 0x0a, 0x67, 0x84, 0x90, 0x38, 0x22, 0x84, 0xe6, 0x63, 0xd7, 0x3b, 0xa9, 0x1d, 0x87, - 0x9c, 0xf6, 0xb6, 0xfb, 0xce, 0xf3, 0xce, 0xce, 0xf3, 0xcc, 0x33, 0xef, 0xcc, 0x2c, 0x5c, 0x70, - 0xf7, 0xdf, 0xc3, 0x66, 0xb0, 0xd2, 0xab, 0xae, 0xf8, 0xd8, 0xeb, 0xd9, 0x26, 0xd6, 0x3a, 0x9e, - 0x1b, 0xb8, 0x28, 0xc7, 0x1a, 0xb4, 0x5e, 0x55, 0x99, 0x1d, 0x60, 0x82, 0x7e, 0x07, 0xfb, 0x0c, - 0xa1, 0x9c, 0xf7, 0xf0, 0x81, 0x7f,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 0x9e, 0x30, 0x45, 0x73, - 0xc3, 0xef, 0x15, 0xca, 0x85, 0x11, 0x07, 0x48, 0x74, 0x1b, 0xb2, 0x6c, 0x23, 0x12, 0xbe, 0x2b, - 0xec, 0xac, 0xc2, 0x77, 0xc5, 0x5d, 0x6b, 0x55, 0x42, 0x77, 0x61, 0x2a, 0xb4, 0x02, 0x52, 0x46, - 0xd7, 0x66, 0x65, 0xfe, 0x84, 0x2a, 0xb4, 0x2a, 0xa1, 0x5d, 0x28, 0xc4, 0x1d, 0x85, 0x2a, 0x27, - 0x2f, 0x5d, 0xe5, 0xf2, 0x18, 0x2b, 0x6e, 0xec, 0x7d, 0x7f, 0x54, 0x91, 0x7e, 0x3e, 0xaa, 0x48, - 0xbf, 0x1e, 0x55, 0xa4, 0x4f, 0x7f, 0xab, 0x4c, 0x3c, 0xbb, 0x7e, 0x68, 0x07, 0xcd, 0xee, 0xbe, - 0x66, 0xba, 0xed, 0x15, 0xc7, 0xef, 0x98, 0xe6, 0xb2, 0x85, 0x7b, 0x2b, 0x0e, 0x76, 0x0f, 0xfc, - 0x65, 0xa3, 0x63, 0x2f, 0x1f, 0xba, 0x2b, 0xd1, 0x6f, 0xdf, 0x2f, 0xe5, 0xd2, 0x0e, 0x76, 0xef, - 0xd5, 0xb5, 0xf5, 0xbd, 0x1a, 0xdf, 0xde, 0xf6, 0xb3, 0xf4, 0xff, 0xed, 0x8d, 0x7f, 0x03, 0x00, - 0x00, 0xff, 0xff, 0x6e, 0xcf, 0x5c, 0x4e, 0x41, 0x16, 0x00, 0x00, +var fileDescriptor_6233c87a2945599e = []byte{ + // 1401 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x59, 0xcd, 0x72, 0xdb, 0x54, + 0x14, 0x8e, 0xe4, 0x9f, 0xc4, 0xc7, 0x76, 0x30, 0xb7, 0xa5, 0xf5, 0xa8, 0x6d, 0x48, 0xd5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9a, 0x84, 0xad, + 0x60, 0x02, 0xf3, 0x1b, 0x75, 0x19, 0x12, 0x9d, 0x08, 0xe8, 0x4d, 0x48, 0x6f, 0xad, 0xec, 0xde, + 0xd9, 0x28, 0x3f, 0x2c, 0x6e, 0x16, 0xb7, 0x3f, 0x29, 0x66, 0xa6, 0x50, 0x06, 0x52, 0xa5, 0x5d, + 0x5c, 0x28, 0xde, 0x2b, 0xaf, 0x3f, 0x78, 0xb8, 0x72, 0x3f, 0x23, 0xa9, 0xcf, 0x65, 0x98, 0x0d, + 0x92, 0x1a, 0x77, 0xd4, 0x86, 0xf1, 0x93, 0xd2, 0x30, 0xaf, 0x77, 0x07, 0x90, 0x65, 0x96, 0x6b, + 0x96, 0x47, 0xcf, 0x03, 0x91, 0xa1, 0xdb, 0xbc, 0xb8, 0x65, 0xde, 0xb7, 0x3c, 0x5f, 0xbd, 0x06, + 0x31, 0xac, 0xdb, 0xfb, 0x04, 0x9d, 0x80, 0xb8, 0x53, 0xa9, 0x78, 0x84, 0x1f, 0x25, 0xa2, 0x58, + 0xdc, 0x51, 0xbb, 0xe8, 0x08, 0xbc, 0x57, 0x89, 0x3b, 0xf5, 0x0f, 0x19, 0xde, 0xa0, 0x07, 0x4b, + 0xea, 0x1c, 0x34, 0x81, 0x1b, 0x21, 0x7a, 0x2f, 0xf4, 0x3f, 0x89, 0xf6, 0x38, 0xfc, 0xef, 0xc7, + 0xfb, 0x12, 0xc4, 0x5c, 0x5a, 0x6f, 0x9f, 0xed, 0xa1, 0x60, 0x84, 0xd3, 0xc1, 0x51, 0xea, 0xd7, + 0x32, 0x64, 0xba, 0x14, 0x09, 0xcd, 0xde, 0x0c, 0x91, 0x7a, 0x71, 0x18, 0xa9, 0x93, 0xa5, 0xda, + 0xd3, 0x82, 0xd7, 0xe3, 0xc1, 0x21, 0x94, 0x56, 0x98, 0x12, 0x47, 0x50, 0xf5, 0x95, 0x0c, 0xc7, + 0x82, 0xca, 0x36, 0x74, 0xaf, 0x33, 0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, 0x8c, 0xd5, 0x46, + 0x94, 0x0b, 0xe3, 0x49, 0x7f, 0x75, 0xe7, 0xb7, 0x83, 0x39, 0xe9, 0xe5, 0xc1, 0x9c, 0xf4, 0xd7, + 0xc1, 0x9c, 0xf4, 0xec, 0xef, 0xb9, 0xa9, 0xc7, 0x97, 0xf7, 0x2d, 0xbf, 0xda, 0xdc, 0xd3, 0x0c, + 0xa7, 0x9e, 0xb3, 0xbd, 0x86, 0x61, 0x2c, 0x99, 0xa4, 0x95, 0xb3, 0x89, 0x53, 0xf1, 0x96, 0xf4, + 0x86, 0xb5, 0xb4, 0xef, 0xe4, 0x3a, 0xff, 0x1d, 0xbc, 0x90, 0x33, 0x45, 0xe2, 0xdc, 0x2d, 0x69, + 0x2b, 0x3b, 0x05, 0x31, 0xb0, 0xf7, 0xe2, 0xec, 0x4f, 0x80, 0x77, 0xff, 0x0d, 0x00, 0x00, 0xff, + 0xff, 0xbb, 0xcd, 0x0d, 0x36, 0x8d, 0x18, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2428,13 +2429,13 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type ServiceClient interface { - // Get the object from container.v2. Response uses gRPC stream. First response + // Get the object from container. Response uses gRPC stream. First response // message carry object of requested address. Chunk messages are parts of // the object's payload if it is needed. All messages except first carry // chunks. Requested object can be restored by concatenation of object // message payload and all chunks keeping receiving order. Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (Service_GetClient, error) - // Put the object into container.v2. Request uses gRPC stream. First message + // Put the object into container. Request uses gRPC stream. First message // SHOULD BE type of PutHeader. Container id and Owner id of object SHOULD // BE set. Session token SHOULD BE obtained before put operation (see // session package). Chunk messages considered by server as part of object @@ -2447,7 +2448,7 @@ type ServiceClient interface { // response has system header only. If full headers flag is set, extended // headers are also present. Head(ctx context.Context, in *HeadRequest, opts ...grpc.CallOption) (*HeadResponse, error) - // Search objects in container.v2. Version of query language format SHOULD BE + // Search objects in container. Version of query language format SHOULD BE // set to 1. Search query represented in serialized format (see query // package). Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (Service_SearchClient, error) @@ -2471,7 +2472,7 @@ func NewServiceClient(cc *grpc.ClientConn) ServiceClient { } func (c *serviceClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (Service_GetClient, error) { - stream, err := c.cc.NewStream(ctx, &_Service_serviceDesc.Streams[0], "/object.v2.Service/Get", opts...) + stream, err := c.cc.NewStream(ctx, &_Service_serviceDesc.Streams[0], "/neo.fs.v2.object.Service/Get", opts...) if err != nil { return nil, err } @@ -2503,7 +2504,7 @@ func (x *serviceGetClient) Recv() (*GetResponse, error) { } func (c *serviceClient) Put(ctx context.Context, opts ...grpc.CallOption) (Service_PutClient, error) { - stream, err := c.cc.NewStream(ctx, &_Service_serviceDesc.Streams[1], "/object.v2.Service/Put", opts...) + stream, err := c.cc.NewStream(ctx, &_Service_serviceDesc.Streams[1], "/neo.fs.v2.object.Service/Put", opts...) if err != nil { return nil, err } @@ -2538,7 +2539,7 @@ func (x *servicePutClient) CloseAndRecv() (*PutResponse, error) { func (c *serviceClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) { out := new(DeleteResponse) - err := c.cc.Invoke(ctx, "/object.v2.Service/Delete", in, out, opts...) + err := c.cc.Invoke(ctx, "/neo.fs.v2.object.Service/Delete", in, out, opts...) if err != nil { return nil, err } @@ -2547,7 +2548,7 @@ func (c *serviceClient) Delete(ctx context.Context, in *DeleteRequest, opts ...g func (c *serviceClient) Head(ctx context.Context, in *HeadRequest, opts ...grpc.CallOption) (*HeadResponse, error) { out := new(HeadResponse) - err := c.cc.Invoke(ctx, "/object.v2.Service/Head", in, out, opts...) + err := c.cc.Invoke(ctx, "/neo.fs.v2.object.Service/Head", in, out, opts...) if err != nil { return nil, err } @@ -2555,7 +2556,7 @@ func (c *serviceClient) Head(ctx context.Context, in *HeadRequest, opts ...grpc. } func (c *serviceClient) Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (Service_SearchClient, error) { - stream, err := c.cc.NewStream(ctx, &_Service_serviceDesc.Streams[2], "/object.v2.Service/Search", opts...) + stream, err := c.cc.NewStream(ctx, &_Service_serviceDesc.Streams[2], "/neo.fs.v2.object.Service/Search", opts...) if err != nil { return nil, err } @@ -2587,7 +2588,7 @@ func (x *serviceSearchClient) Recv() (*SearchResponse, error) { } func (c *serviceClient) GetRange(ctx context.Context, in *GetRangeRequest, opts ...grpc.CallOption) (Service_GetRangeClient, error) { - stream, err := c.cc.NewStream(ctx, &_Service_serviceDesc.Streams[3], "/object.v2.Service/GetRange", opts...) + stream, err := c.cc.NewStream(ctx, &_Service_serviceDesc.Streams[3], "/neo.fs.v2.object.Service/GetRange", opts...) if err != nil { return nil, err } @@ -2620,7 +2621,7 @@ func (x *serviceGetRangeClient) Recv() (*GetRangeResponse, error) { func (c *serviceClient) GetRangeHash(ctx context.Context, in *GetRangeHashRequest, opts ...grpc.CallOption) (*GetRangeHashResponse, error) { out := new(GetRangeHashResponse) - err := c.cc.Invoke(ctx, "/object.v2.Service/GetRangeHash", in, out, opts...) + err := c.cc.Invoke(ctx, "/neo.fs.v2.object.Service/GetRangeHash", in, out, opts...) if err != nil { return nil, err } @@ -2629,13 +2630,13 @@ func (c *serviceClient) GetRangeHash(ctx context.Context, in *GetRangeHashReques // ServiceServer is the server API for Service service. type ServiceServer interface { - // Get the object from container.v2. Response uses gRPC stream. First response + // Get the object from container. Response uses gRPC stream. First response // message carry object of requested address. Chunk messages are parts of // the object's payload if it is needed. All messages except first carry // chunks. Requested object can be restored by concatenation of object // message payload and all chunks keeping receiving order. Get(*GetRequest, Service_GetServer) error - // Put the object into container.v2. Request uses gRPC stream. First message + // Put the object into container. Request uses gRPC stream. First message // SHOULD BE type of PutHeader. Container id and Owner id of object SHOULD // BE set. Session token SHOULD BE obtained before put operation (see // session package). Chunk messages considered by server as part of object @@ -2648,7 +2649,7 @@ type ServiceServer interface { // response has system header only. If full headers flag is set, extended // headers are also present. Head(context.Context, *HeadRequest) (*HeadResponse, error) - // Search objects in container.v2. Version of query language format SHOULD BE + // Search objects in container. Version of query language format SHOULD BE // set to 1. Search query represented in serialized format (see query // package). Search(*SearchRequest, Service_SearchServer) error @@ -2750,7 +2751,7 @@ func _Service_Delete_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/object.v2.Service/Delete", + FullMethod: "/neo.fs.v2.object.Service/Delete", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).Delete(ctx, req.(*DeleteRequest)) @@ -2768,7 +2769,7 @@ func _Service_Head_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/object.v2.Service/Head", + FullMethod: "/neo.fs.v2.object.Service/Head", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).Head(ctx, req.(*HeadRequest)) @@ -2828,7 +2829,7 @@ func _Service_GetRangeHash_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/object.v2.Service/GetRangeHash", + FullMethod: "/neo.fs.v2.object.Service/GetRangeHash", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).GetRangeHash(ctx, req.(*GetRangeHashRequest)) @@ -2837,7 +2838,7 @@ func _Service_GetRangeHash_Handler(srv interface{}, ctx context.Context, dec fun } var _Service_serviceDesc = grpc.ServiceDesc{ - ServiceName: "object.v2.Service", + ServiceName: "neo.fs.v2.object.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -2875,7 +2876,7 @@ var _Service_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "object/v2/service.proto", + Metadata: "v2/object/service.proto", } func (m *GetRequest) Marshal() (dAtA []byte, err error) { @@ -5722,7 +5723,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.RequestMetaHeader{} + m.MetaHeader = &service.RequestMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -5758,7 +5759,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.RequestVerificationHeader{} + m.VerifyHeader = &service.RequestVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -5848,7 +5849,7 @@ func (m *GetRequest_Body) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Address == nil { - m.Address = &v21.Address{} + m.Address = &refs.Address{} } if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -5994,7 +5995,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.ResponseMetaHeader{} + m.MetaHeader = &service.ResponseMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6030,7 +6031,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.ResponseVerificationHeader{} + m.VerifyHeader = &service.ResponseVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6242,7 +6243,7 @@ func (m *GetResponse_Body_Init) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ObjectId == nil { - m.ObjectId = &v21.ObjectID{} + m.ObjectId = &refs.ObjectID{} } if err := m.ObjectId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6278,7 +6279,7 @@ func (m *GetResponse_Body_Init) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Signature == nil { - m.Signature = &v2.Signature{} + m.Signature = &service.Signature{} } if err := m.Signature.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6440,7 +6441,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.RequestMetaHeader{} + m.MetaHeader = &service.RequestMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6476,7 +6477,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.RequestVerificationHeader{} + m.VerifyHeader = &service.RequestVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6688,7 +6689,7 @@ func (m *PutRequest_Body_Init) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ObjectId == nil { - m.ObjectId = &v21.ObjectID{} + m.ObjectId = &refs.ObjectID{} } if err := m.ObjectId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6724,7 +6725,7 @@ func (m *PutRequest_Body_Init) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Signature == nil { - m.Signature = &v2.Signature{} + m.Signature = &service.Signature{} } if err := m.Signature.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6905,7 +6906,7 @@ func (m *PutResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.ResponseMetaHeader{} + m.MetaHeader = &service.ResponseMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6941,7 +6942,7 @@ func (m *PutResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.ResponseVerificationHeader{} + m.VerifyHeader = &service.ResponseVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7031,7 +7032,7 @@ func (m *PutResponse_Body) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ObjectId == nil { - m.ObjectId = &v21.ObjectID{} + m.ObjectId = &refs.ObjectID{} } if err := m.ObjectId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7157,7 +7158,7 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.RequestMetaHeader{} + m.MetaHeader = &service.RequestMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7193,7 +7194,7 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.RequestVerificationHeader{} + m.VerifyHeader = &service.RequestVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7283,7 +7284,7 @@ func (m *DeleteRequest_Body) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Address == nil { - m.Address = &v21.Address{} + m.Address = &refs.Address{} } if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7319,7 +7320,7 @@ func (m *DeleteRequest_Body) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.OwnerId == nil { - m.OwnerId = &v21.OwnerID{} + m.OwnerId = &refs.OwnerID{} } if err := m.OwnerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7445,7 +7446,7 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.ResponseMetaHeader{} + m.MetaHeader = &service.ResponseMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7481,7 +7482,7 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.ResponseVerificationHeader{} + m.VerifyHeader = &service.ResponseVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7661,7 +7662,7 @@ func (m *HeadRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.RequestMetaHeader{} + m.MetaHeader = &service.RequestMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7697,7 +7698,7 @@ func (m *HeadRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.RequestVerificationHeader{} + m.VerifyHeader = &service.RequestVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7787,7 +7788,7 @@ func (m *HeadRequest_Body) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Address == nil { - m.Address = &v21.Address{} + m.Address = &refs.Address{} } if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7953,7 +7954,7 @@ func (m *HeadResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.ResponseMetaHeader{} + m.MetaHeader = &service.ResponseMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7989,7 +7990,7 @@ func (m *HeadResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.ResponseVerificationHeader{} + m.VerifyHeader = &service.ResponseVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -8203,7 +8204,7 @@ func (m *HeadResponse_Body_ShortHeader) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Version == nil { - m.Version = &v2.Version{} + m.Version = &service.Version{} } if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -8258,7 +8259,7 @@ func (m *HeadResponse_Body_ShortHeader) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.OwnerId == nil { - m.OwnerId = &v21.OwnerID{} + m.OwnerId = &refs.OwnerID{} } if err := m.OwnerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -8422,7 +8423,7 @@ func (m *SearchRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.RequestMetaHeader{} + m.MetaHeader = &service.RequestMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -8458,7 +8459,7 @@ func (m *SearchRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.RequestVerificationHeader{} + m.VerifyHeader = &service.RequestVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -8548,7 +8549,7 @@ func (m *SearchRequest_Body) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ContainerId == nil { - m.ContainerId = &v21.ContainerID{} + m.ContainerId = &refs.ContainerID{} } if err := m.ContainerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -8954,7 +8955,7 @@ func (m *SearchResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.ResponseMetaHeader{} + m.MetaHeader = &service.ResponseMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -8990,7 +8991,7 @@ func (m *SearchResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.ResponseVerificationHeader{} + m.VerifyHeader = &service.ResponseVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -9079,7 +9080,7 @@ func (m *SearchResponse_Body) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.IdList = append(m.IdList, &v21.ObjectID{}) + m.IdList = append(m.IdList, &refs.ObjectID{}) if err := m.IdList[len(m.IdList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -9296,7 +9297,7 @@ func (m *GetRangeRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.RequestMetaHeader{} + m.MetaHeader = &service.RequestMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -9332,7 +9333,7 @@ func (m *GetRangeRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.RequestVerificationHeader{} + m.VerifyHeader = &service.RequestVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -9422,7 +9423,7 @@ func (m *GetRangeRequest_Body) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Address == nil { - m.Address = &v21.Address{} + m.Address = &refs.Address{} } if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -9584,7 +9585,7 @@ func (m *GetRangeResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.ResponseMetaHeader{} + m.MetaHeader = &service.ResponseMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -9620,7 +9621,7 @@ func (m *GetRangeResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.ResponseVerificationHeader{} + m.VerifyHeader = &service.ResponseVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -9834,7 +9835,7 @@ func (m *GetRangeHashRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.RequestMetaHeader{} + m.MetaHeader = &service.RequestMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -9870,7 +9871,7 @@ func (m *GetRangeHashRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.RequestVerificationHeader{} + m.VerifyHeader = &service.RequestVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -9960,7 +9961,7 @@ func (m *GetRangeHashRequest_Body) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Address == nil { - m.Address = &v21.Address{} + m.Address = &refs.Address{} } if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -10154,7 +10155,7 @@ func (m *GetRangeHashResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.ResponseMetaHeader{} + m.MetaHeader = &service.ResponseMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -10190,7 +10191,7 @@ func (m *GetRangeHashResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.ResponseVerificationHeader{} + m.VerifyHeader = &service.ResponseVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/object/v2/service.proto b/v2/object/service.proto similarity index 79% rename from object/v2/service.proto rename to v2/object/service.proto index 85e6d3e..28051e3 100644 --- a/object/v2/service.proto +++ b/v2/object/service.proto @@ -1,25 +1,25 @@ syntax = "proto3"; -package object.v2; +package neo.fs.v2.object; -option go_package = "github.com/nspcc-dev/neofs-api-go/object/v2"; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/object"; option csharp_namespace = "NeoFS.API.Object"; -import "object/v2/types.proto"; -import "refs/v2/types.proto"; -import "service/v2/meta.proto"; -import "service/v2/verify.proto"; +import "v2/object/types.proto"; +import "v2/refs/types.proto"; +import "v2/service/meta.proto"; +import "v2/service/verify.proto"; -// Object service provides API for manipulating with the object.v2. +// Object service provides API for manipulating with the object. service Service { - // Get the object from container.v2. Response uses gRPC stream. First response + // Get the object from container. Response uses gRPC stream. First response // message carry object of requested address. Chunk messages are parts of // the object's payload if it is needed. All messages except first carry // chunks. Requested object can be restored by concatenation of object // message payload and all chunks keeping receiving order. rpc Get(GetRequest) returns (stream GetResponse); - // Put the object into container.v2. Request uses gRPC stream. First message + // Put the object into container. Request uses gRPC stream. First message // SHOULD BE type of PutHeader. Container id and Owner id of object SHOULD // BE set. Session token SHOULD BE obtained before put operation (see // session package). Chunk messages considered by server as part of object @@ -35,7 +35,7 @@ service Service { // headers are also present. rpc Head(HeadRequest) returns (HeadResponse); - // Search objects in container.v2. Version of query language format SHOULD BE + // Search objects in container. Version of query language format SHOULD BE // set to 1. Search query represented in serialized format (see query // package). rpc Search(SearchRequest) returns (stream SearchResponse); @@ -54,8 +54,8 @@ service Service { message GetRequest { message Body { - // Address of the requested object.v2. - refs.v2.Address address = 1; + // Address of the requested object. + neo.fs.v2.refs.Address address = 1; // Carries the raw option flag of the request. // Raw request is sent to receive only the objects @@ -67,11 +67,11 @@ message GetRequest { // Carries request meta information. Header data is used only to regulate message // transport and does not affect request execution. - service.v2.RequestMetaHeader meta_header = 2; + neo.fs.v2.service.RequestMetaHeader meta_header = 2; // Carries request verification information. This header is used to authenticate // the nodes of the message route and check the correctness of transmission. - service.v2.RequestVerificationHeader verify_header = 3; + neo.fs.v2.service.RequestVerificationHeader verify_header = 3; } message GetResponse { @@ -79,9 +79,9 @@ message GetResponse { // Initialization parameters of the object got from NeoFS. message Init { // Object ID - refs.v2.ObjectID object_id = 1; + neo.fs.v2.refs.ObjectID object_id = 1; // Object signature - service.v2.Signature signature =2; + neo.fs.v2.service.Signature signature =2; // Object header. Header header = 3; } @@ -98,12 +98,12 @@ message GetResponse { // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - service.v2.ResponseMetaHeader meta_header = 2; + neo.fs.v2.service.ResponseMetaHeader meta_header = 2; // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - service.v2.ResponseVerificationHeader verify_header = 3; + neo.fs.v2.service.ResponseVerificationHeader verify_header = 3; } message PutRequest { @@ -111,9 +111,9 @@ message PutRequest { // Groups initialization parameters of object placement in NeoFS. message Init { // Object ID, where available - refs.v2.ObjectID object_id = 1; + neo.fs.v2.refs.ObjectID object_id = 1; // Object signature, were available - service.v2.Signature signature =2; + neo.fs.v2.service.Signature signature =2; // Header of the object to save in the system. Header header = 3; // Number of the object copies to store within the RPC call. @@ -135,49 +135,49 @@ message PutRequest { // Carries request meta information. Header data is used only to regulate message // transport and does not affect request execution. - service.v2.RequestMetaHeader meta_header = 2; + neo.fs.v2.service.RequestMetaHeader meta_header = 2; // Carries request verification information. This header is used to authenticate // the nodes of the message route and check the correctness of transmission. - service.v2.RequestVerificationHeader verify_header = 3; + neo.fs.v2.service.RequestVerificationHeader verify_header = 3; } message PutResponse { message Body { - // Carries identifier of the saved object.v2. - // It is used to access an object in the container.v2. - refs.v2.ObjectID object_id = 1; + // Carries identifier of the saved object. + // It is used to access an object in the container. + neo.fs.v2.refs.ObjectID object_id = 1; } // Body of put object response message. Body body = 1; // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - service.v2.ResponseMetaHeader meta_header = 2; + neo.fs.v2.service.ResponseMetaHeader meta_header = 2; // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - service.v2.ResponseVerificationHeader verify_header = 3; + neo.fs.v2.service.ResponseVerificationHeader verify_header = 3; } message DeleteRequest { message Body { // Carries the address of the object to be deleted. - refs.v2.Address address = 1; + neo.fs.v2.refs.Address address = 1; // Carries identifier the object owner. - refs.v2.OwnerID owner_id = 2; + neo.fs.v2.refs.OwnerID owner_id = 2; } // Body of delete object request message. Body body = 1; // Carries request meta information. Header data is used only to regulate message // transport and does not affect request execution. - service.v2.RequestMetaHeader meta_header = 2; + neo.fs.v2.service.RequestMetaHeader meta_header = 2; // Carries request verification information. This header is used to authenticate // the nodes of the message route and check the correctness of transmission. - service.v2.RequestVerificationHeader verify_header = 3; + neo.fs.v2.service.RequestVerificationHeader verify_header = 3; } // DeleteResponse is empty because we cannot guarantee permanent object removal @@ -190,18 +190,18 @@ message DeleteResponse { // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - service.v2.ResponseMetaHeader meta_header = 2; + neo.fs.v2.service.ResponseMetaHeader meta_header = 2; // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - service.v2.ResponseVerificationHeader verify_header = 3; + neo.fs.v2.service.ResponseVerificationHeader verify_header = 3; } message HeadRequest { message Body { // Address of the object with the requested header. - refs.v2.Address address = 1; + neo.fs.v2.refs.Address address = 1; // Return only minimal header subset bool main_only = 2; // Carries the raw option flag of the request. @@ -214,22 +214,22 @@ message HeadRequest { // Carries request meta information. Header data is used only to regulate message // transport and does not affect request execution. - service.v2.RequestMetaHeader meta_header = 2; + neo.fs.v2.service.RequestMetaHeader meta_header = 2; // Carries request verification information. This header is used to authenticate // the nodes of the message route and check the correctness of transmission. - service.v2.RequestVerificationHeader verify_header = 3; + neo.fs.v2.service.RequestVerificationHeader verify_header = 3; } message HeadResponse { message Body { message ShortHeader { // Object format version. - service.v2.Version version = 1; + neo.fs.v2.service.Version version = 1; // Epoch when the object was created uint64 creation_epoch = 2; // Object's owner - refs.v2.OwnerID owner_id = 3; + neo.fs.v2.refs.OwnerID owner_id = 3; // Type of the object payload content ObjectType object_type = 4; // Size of payload in bytes. @@ -247,18 +247,18 @@ message HeadResponse { // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - service.v2.ResponseMetaHeader meta_header = 2; + neo.fs.v2.service.ResponseMetaHeader meta_header = 2; // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - service.v2.ResponseVerificationHeader verify_header = 3; + neo.fs.v2.service.ResponseVerificationHeader verify_header = 3; } message SearchRequest { message Body { // Carries search container identifier. - refs.v2.ContainerID container_id = 1; + neo.fs.v2.refs.ContainerID container_id = 1; message Query { uint32 version = 1; @@ -287,17 +287,17 @@ message SearchRequest { // Carries request meta information. Header data is used only to regulate message // transport and does not affect request execution. - service.v2.RequestMetaHeader meta_header = 2; + neo.fs.v2.service.RequestMetaHeader meta_header = 2; // Carries request verification information. This header is used to authenticate // the nodes of the message route and check the correctness of transmission. - service.v2.RequestVerificationHeader verify_header = 3; + neo.fs.v2.service.RequestVerificationHeader verify_header = 3; } message SearchResponse { message Body { // Carries list of object identifiers that match the search query. - repeated refs.v2.ObjectID id_list = 1; + repeated neo.fs.v2.refs.ObjectID id_list = 1; } // Body of search object response message. @@ -305,12 +305,12 @@ message SearchResponse { // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - service.v2.ResponseMetaHeader meta_header = 2; + neo.fs.v2.service.ResponseMetaHeader meta_header = 2; // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - service.v2.ResponseVerificationHeader verify_header = 3; + neo.fs.v2.service.ResponseVerificationHeader verify_header = 3; } // Range groups the parameters of object payload range. @@ -325,7 +325,7 @@ message Range { message GetRangeRequest { message Body { // Address carries address of the object that contains the requested payload range. - refs.v2.Address address = 1; + neo.fs.v2.refs.Address address = 1; // Range carries the parameters of the requested payload range. Range range = 2; @@ -336,11 +336,11 @@ message GetRangeRequest { // Carries request meta information. Header data is used only to regulate message // transport and does not affect request execution. - service.v2.RequestMetaHeader meta_header = 2; + neo.fs.v2.service.RequestMetaHeader meta_header = 2; // Carries request verification information. This header is used to authenticate // the nodes of the message route and check the correctness of transmission. - service.v2.RequestVerificationHeader verify_header = 3; + neo.fs.v2.service.RequestVerificationHeader verify_header = 3; } message GetRangeResponse { @@ -354,18 +354,18 @@ message GetRangeResponse { // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - service.v2.ResponseMetaHeader meta_header = 2; + neo.fs.v2.service.ResponseMetaHeader meta_header = 2; // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - service.v2.ResponseVerificationHeader verify_header = 3; + neo.fs.v2.service.ResponseVerificationHeader verify_header = 3; } message GetRangeHashRequest { message Body { // Carries address of the object that contains the requested payload range. - refs.v2.Address address = 1; + neo.fs.v2.refs.Address address = 1; // Carries the list of object payload range to calculate homomorphic hash. repeated Range ranges = 2; @@ -379,11 +379,11 @@ message GetRangeHashRequest { // Carries request meta information. Header data is used only to regulate message // transport and does not affect request execution. - service.v2.RequestMetaHeader meta_header = 2; + neo.fs.v2.service.RequestMetaHeader meta_header = 2; // Carries request verification information. This header is used to authenticate // the nodes of the message route and check the correctness of transmission. - service.v2.RequestVerificationHeader verify_header = 3; + neo.fs.v2.service.RequestVerificationHeader verify_header = 3; } message GetRangeHashResponse { @@ -397,11 +397,11 @@ message GetRangeHashResponse { // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - service.v2.ResponseMetaHeader meta_header = 2; + neo.fs.v2.service.ResponseMetaHeader meta_header = 2; // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - service.v2.ResponseVerificationHeader verify_header = 3; + neo.fs.v2.service.ResponseVerificationHeader verify_header = 3; } diff --git a/object/v2/types.go b/v2/object/types.go similarity index 96% rename from object/v2/types.go rename to v2/object/types.go index 9acd3fd..7a97531 100644 --- a/object/v2/types.go +++ b/v2/object/types.go @@ -1,8 +1,8 @@ -package v2 +package object import ( - refs "github.com/nspcc-dev/neofs-api-go/refs/v2" - service "github.com/nspcc-dev/neofs-api-go/service/v2" + "github.com/nspcc-dev/neofs-api-go/v2/refs" + "github.com/nspcc-dev/neofs-api-go/v2/service" ) // SetKey sets key to the object attribute. diff --git a/object/v2/types.pb.go b/v2/object/types.pb.go similarity index 84% rename from object/v2/types.pb.go rename to v2/object/types.pb.go index bae2d04..0f083d3 100644 --- a/object/v2/types.pb.go +++ b/v2/object/types.pb.go @@ -1,13 +1,13 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: object/v2/types.proto +// source: v2/object/types.proto -package v2 +package object import ( fmt "fmt" proto "github.com/golang/protobuf/proto" - v2 "github.com/nspcc-dev/neofs-api-go/refs/v2" - v21 "github.com/nspcc-dev/neofs-api-go/service/v2" + refs "github.com/nspcc-dev/neofs-api-go/v2/refs" + service "github.com/nspcc-dev/neofs-api-go/v2/service" io "io" math "math" math_bits "math/bits" @@ -53,31 +53,31 @@ func (x ObjectType) String() string { } func (ObjectType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_666bf7c1dc0e676f, []int{0} + return fileDescriptor_fcb9e8df342f43c6, []int{0} } type Header struct { // Object's container - ContainerId *v2.ContainerID `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` + ContainerId *refs.ContainerID `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` // Object's owner - OwnerId *v2.OwnerID `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + OwnerId *refs.OwnerID `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // Epoch when the object was created CreationEpoch uint64 `protobuf:"varint,3,opt,name=creation_epoch,json=creationEpoch,proto3" json:"creation_epoch,omitempty"` // Object format version. // Effectively the version of API library used to create particular object - Version *v21.Version `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` + Version *service.Version `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // Size of payload in bytes. // 0xFFFFFFFFFFFFFFFF means `payload_length` is unknown PayloadLength uint64 `protobuf:"varint,5,opt,name=payload_length,json=payloadLength,proto3" json:"payload_length,omitempty"` // Hash of payload bytes PayloadHash []byte `protobuf:"bytes,6,opt,name=payload_hash,json=payloadHash,proto3" json:"payload_hash,omitempty"` - ObjectType ObjectType `protobuf:"varint,7,opt,name=object_type,json=objectType,proto3,enum=object.v2.ObjectType" json:"object_type,omitempty"` + ObjectType ObjectType `protobuf:"varint,7,opt,name=object_type,json=objectType,proto3,enum=neo.fs.v2.object.ObjectType" json:"object_type,omitempty"` // Homomorphic hash of the object payload. HomomorphicHash []byte `protobuf:"bytes,8,opt,name=homomorphic_hash,json=homomorphicHash,proto3" json:"homomorphic_hash,omitempty"` // Session token, if it was used during Object creation. // Need it to verify integrity and authenticity out of Request scope. - SessionToken *v21.SessionToken `protobuf:"bytes,9,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"` - Attributes []*Header_Attribute `protobuf:"bytes,10,rep,name=attributes,proto3" json:"attributes,omitempty"` + SessionToken *service.SessionToken `protobuf:"bytes,9,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"` + Attributes []*Header_Attribute `protobuf:"bytes,10,rep,name=attributes,proto3" json:"attributes,omitempty"` // Position of the object in the split hierarchy. Split *Header_Split `protobuf:"bytes,11,opt,name=split,proto3" json:"split,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -89,7 +89,7 @@ func (m *Header) Reset() { *m = Header{} } func (m *Header) String() string { return proto.CompactTextString(m) } func (*Header) ProtoMessage() {} func (*Header) Descriptor() ([]byte, []int) { - return fileDescriptor_666bf7c1dc0e676f, []int{0} + return fileDescriptor_fcb9e8df342f43c6, []int{0} } func (m *Header) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -118,14 +118,14 @@ func (m *Header) XXX_DiscardUnknown() { var xxx_messageInfo_Header proto.InternalMessageInfo -func (m *Header) GetContainerId() *v2.ContainerID { +func (m *Header) GetContainerId() *refs.ContainerID { if m != nil { return m.ContainerId } return nil } -func (m *Header) GetOwnerId() *v2.OwnerID { +func (m *Header) GetOwnerId() *refs.OwnerID { if m != nil { return m.OwnerId } @@ -139,7 +139,7 @@ func (m *Header) GetCreationEpoch() uint64 { return 0 } -func (m *Header) GetVersion() *v21.Version { +func (m *Header) GetVersion() *service.Version { if m != nil { return m.Version } @@ -174,7 +174,7 @@ func (m *Header) GetHomomorphicHash() []byte { return nil } -func (m *Header) GetSessionToken() *v21.SessionToken { +func (m *Header) GetSessionToken() *service.SessionToken { if m != nil { return m.SessionToken } @@ -210,7 +210,7 @@ func (m *Header_Attribute) Reset() { *m = Header_Attribute{} } func (m *Header_Attribute) String() string { return proto.CompactTextString(m) } func (*Header_Attribute) ProtoMessage() {} func (*Header_Attribute) Descriptor() ([]byte, []int) { - return fileDescriptor_666bf7c1dc0e676f, []int{0, 0} + return fileDescriptor_fcb9e8df342f43c6, []int{0, 0} } func (m *Header_Attribute) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -255,28 +255,28 @@ func (m *Header_Attribute) GetValue() string { // Information about spawning the objects through a payload splitting. type Header_Split struct { - // Identifier of the origin object.v2. - // Parent and children objects must be within the same container.v2. + // Identifier of the origin object. + // Parent and children objects must be within the same container. // Parent object_id is known only to the minor child. - Parent *v2.ObjectID `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + Parent *refs.ObjectID `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Previous carries identifier of the left split neighbor. - Previous *v2.ObjectID `protobuf:"bytes,2,opt,name=previous,proto3" json:"previous,omitempty"` - // `signature` field of the parent object.v2. Used to reconstruct parent. - ParentSignature *v21.Signature `protobuf:"bytes,3,opt,name=parent_signature,json=parentSignature,proto3" json:"parent_signature,omitempty"` - // `header` field of the parent object.v2. Used to reconstruct parent. + Previous *refs.ObjectID `protobuf:"bytes,2,opt,name=previous,proto3" json:"previous,omitempty"` + // `signature` field of the parent object. Used to reconstruct parent. + ParentSignature *service.Signature `protobuf:"bytes,3,opt,name=parent_signature,json=parentSignature,proto3" json:"parent_signature,omitempty"` + // `header` field of the parent object. Used to reconstruct parent. ParentHeader *Header `protobuf:"bytes,4,opt,name=parent_header,json=parentHeader,proto3" json:"parent_header,omitempty"` // Children carries list of identifiers of the objects generated by splitting the current. - Children []*v2.ObjectID `protobuf:"bytes,5,rep,name=children,proto3" json:"children,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Children []*refs.ObjectID `protobuf:"bytes,5,rep,name=children,proto3" json:"children,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Header_Split) Reset() { *m = Header_Split{} } func (m *Header_Split) String() string { return proto.CompactTextString(m) } func (*Header_Split) ProtoMessage() {} func (*Header_Split) Descriptor() ([]byte, []int) { - return fileDescriptor_666bf7c1dc0e676f, []int{0, 1} + return fileDescriptor_fcb9e8df342f43c6, []int{0, 1} } func (m *Header_Split) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -305,21 +305,21 @@ func (m *Header_Split) XXX_DiscardUnknown() { var xxx_messageInfo_Header_Split proto.InternalMessageInfo -func (m *Header_Split) GetParent() *v2.ObjectID { +func (m *Header_Split) GetParent() *refs.ObjectID { if m != nil { return m.Parent } return nil } -func (m *Header_Split) GetPrevious() *v2.ObjectID { +func (m *Header_Split) GetPrevious() *refs.ObjectID { if m != nil { return m.Previous } return nil } -func (m *Header_Split) GetParentSignature() *v21.Signature { +func (m *Header_Split) GetParentSignature() *service.Signature { if m != nil { return m.ParentSignature } @@ -333,7 +333,7 @@ func (m *Header_Split) GetParentHeader() *Header { return nil } -func (m *Header_Split) GetChildren() []*v2.ObjectID { +func (m *Header_Split) GetChildren() []*refs.ObjectID { if m != nil { return m.Children } @@ -346,9 +346,9 @@ type Object struct { // Object is content-addressed. It means id will change if header or payload // changes. It's calculated as a hash of header field, which contains hash of // object's payload - ObjectId *v2.ObjectID `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` + ObjectId *refs.ObjectID `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` // Signed object_id - Signature *v21.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` + Signature *service.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // Object metadata headers Header *Header `protobuf:"bytes,3,opt,name=header,proto3" json:"header,omitempty"` // Payload bytes. @@ -362,7 +362,7 @@ func (m *Object) Reset() { *m = Object{} } func (m *Object) String() string { return proto.CompactTextString(m) } func (*Object) ProtoMessage() {} func (*Object) Descriptor() ([]byte, []int) { - return fileDescriptor_666bf7c1dc0e676f, []int{1} + return fileDescriptor_fcb9e8df342f43c6, []int{1} } func (m *Object) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -391,14 +391,14 @@ func (m *Object) XXX_DiscardUnknown() { var xxx_messageInfo_Object proto.InternalMessageInfo -func (m *Object) GetObjectId() *v2.ObjectID { +func (m *Object) GetObjectId() *refs.ObjectID { if m != nil { return m.ObjectId } return nil } -func (m *Object) GetSignature() *v21.Signature { +func (m *Object) GetSignature() *service.Signature { if m != nil { return m.Signature } @@ -420,61 +420,62 @@ func (m *Object) GetPayload() []byte { } func init() { - proto.RegisterEnum("object.v2.ObjectType", ObjectType_name, ObjectType_value) - proto.RegisterType((*Header)(nil), "object.v2.Header") - proto.RegisterType((*Header_Attribute)(nil), "object.v2.Header.Attribute") - proto.RegisterType((*Header_Split)(nil), "object.v2.Header.Split") - proto.RegisterType((*Object)(nil), "object.v2.Object") + proto.RegisterEnum("neo.fs.v2.object.ObjectType", ObjectType_name, ObjectType_value) + proto.RegisterType((*Header)(nil), "neo.fs.v2.object.Header") + proto.RegisterType((*Header_Attribute)(nil), "neo.fs.v2.object.Header.Attribute") + proto.RegisterType((*Header_Split)(nil), "neo.fs.v2.object.Header.Split") + proto.RegisterType((*Object)(nil), "neo.fs.v2.object.Object") } -func init() { proto.RegisterFile("object/v2/types.proto", fileDescriptor_666bf7c1dc0e676f) } +func init() { proto.RegisterFile("v2/object/types.proto", fileDescriptor_fcb9e8df342f43c6) } -var fileDescriptor_666bf7c1dc0e676f = []byte{ - // 704 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0x5f, 0x4e, 0xdb, 0x4a, - 0x14, 0xc6, 0x71, 0x42, 0xfe, 0x1d, 0x27, 0x60, 0x06, 0x22, 0xac, 0x5c, 0x29, 0xca, 0x45, 0xba, - 0x52, 0xb8, 0x28, 0x8e, 0x14, 0x24, 0xee, 0x03, 0xba, 0x52, 0x43, 0x49, 0x21, 0x12, 0x25, 0x68, - 0x12, 0xfa, 0xd0, 0x97, 0xc8, 0xb1, 0x87, 0xd8, 0x25, 0xf1, 0x58, 0xf6, 0xc4, 0x28, 0x5b, 0xe8, - 0x0a, 0xba, 0x86, 0x3e, 0x76, 0x15, 0x7d, 0xec, 0x0a, 0xaa, 0x8a, 0x6e, 0xa4, 0xf2, 0xcc, 0xd8, - 0x49, 0x0b, 0xed, 0xdb, 0xcc, 0x77, 0x7e, 0xe7, 0xcc, 0x7c, 0xc7, 0x67, 0x0c, 0x55, 0x3a, 0x79, - 0x47, 0x2c, 0xd6, 0x8e, 0x3a, 0x6d, 0xb6, 0xf4, 0x49, 0x68, 0xf8, 0x01, 0x65, 0x14, 0x95, 0x84, - 0x6c, 0x44, 0x9d, 0xda, 0x6e, 0x40, 0xee, 0xc2, 0x5f, 0xe2, 0xb5, 0x6a, 0x48, 0x82, 0xc8, 0xb5, - 0x48, 0xac, 0xcf, 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6b, 0x42, 0x5f, 0x0d, 0x8d, 0xee, 0x4d, 0x5f, 0x36, 0x65, 0x92, 0xe7, 0xff, - 0xaa, 0xe3, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xeb, 0x34, 0x17, 0x81, 0x14, 0x05, 0x00, 0x00, +var fileDescriptor_fcb9e8df342f43c6 = []byte{ + // 718 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xdf, 0x6e, 0xda, 0x48, + 0x14, 0xc6, 0x63, 0x08, 0xff, 0x8e, 0x21, 0xf1, 0xce, 0xee, 0x2a, 0x16, 0xbb, 0x62, 0xd9, 0x48, + 0x2b, 0xb1, 0xbb, 0x8a, 0x59, 0x11, 0xf6, 0xa6, 0x55, 0x2a, 0x91, 0x86, 0x12, 0xa4, 0x34, 0x44, + 0x03, 0xe9, 0x45, 0x6f, 0x90, 0xb1, 0x07, 0xec, 0x06, 0x3c, 0x96, 0xc7, 0x38, 0xe2, 0x4d, 0xfa, + 0x0c, 0x95, 0x7a, 0xd3, 0x97, 0x68, 0x2f, 0xfb, 0x08, 0x55, 0xfa, 0x22, 0x95, 0x67, 0xc6, 0x86, + 0x26, 0x4d, 0xda, 0x2b, 0x7b, 0x3e, 0xff, 0xbe, 0x73, 0xe6, 0x9c, 0x39, 0x63, 0xf8, 0x35, 0x6a, + 0x35, 0xe9, 0xe4, 0x15, 0xb1, 0xc2, 0x66, 0xb8, 0xf2, 0x09, 0x33, 0xfc, 0x80, 0x86, 0x14, 0x69, + 0x1e, 0xa1, 0xc6, 0x94, 0x19, 0x51, 0xcb, 0x10, 0x5f, 0xab, 0x3f, 0x47, 0xad, 0x66, 0x40, 0xa6, + 0x6c, 0x13, 0xab, 0xc6, 0x6e, 0x46, 0x82, 0xc8, 0xb5, 0x48, 0x73, 0x41, 0x42, 0x53, 0xca, 0x7b, + 0x1b, 0x72, 0x44, 0x02, 0x77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2f, 0x5b, 0x34, 0xc9, 0xf3, 0x9f, 0xe2, 0xe1, + 0x97, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0xd0, 0xe4, 0x6c, 0x84, 0x05, 0x00, 0x00, } func (m *Header) Marshal() (dAtA []byte, err error) { @@ -1020,7 +1021,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ContainerId == nil { - m.ContainerId = &v2.ContainerID{} + m.ContainerId = &refs.ContainerID{} } if err := m.ContainerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1056,7 +1057,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.OwnerId == nil { - m.OwnerId = &v2.OwnerID{} + m.OwnerId = &refs.OwnerID{} } if err := m.OwnerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1111,7 +1112,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Version == nil { - m.Version = &v21.Version{} + m.Version = &service.Version{} } if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1253,7 +1254,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.SessionToken == nil { - m.SessionToken = &v21.SessionToken{} + m.SessionToken = &service.SessionToken{} } if err := m.SessionToken.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1531,7 +1532,7 @@ func (m *Header_Split) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Parent == nil { - m.Parent = &v2.ObjectID{} + m.Parent = &refs.ObjectID{} } if err := m.Parent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1567,7 +1568,7 @@ func (m *Header_Split) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Previous == nil { - m.Previous = &v2.ObjectID{} + m.Previous = &refs.ObjectID{} } if err := m.Previous.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1603,7 +1604,7 @@ func (m *Header_Split) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ParentSignature == nil { - m.ParentSignature = &v21.Signature{} + m.ParentSignature = &service.Signature{} } if err := m.ParentSignature.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1674,7 +1675,7 @@ func (m *Header_Split) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Children = append(m.Children, &v2.ObjectID{}) + m.Children = append(m.Children, &refs.ObjectID{}) if err := m.Children[len(m.Children)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -1763,7 +1764,7 @@ func (m *Object) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ObjectId == nil { - m.ObjectId = &v2.ObjectID{} + m.ObjectId = &refs.ObjectID{} } if err := m.ObjectId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1799,7 +1800,7 @@ func (m *Object) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Signature == nil { - m.Signature = &v21.Signature{} + m.Signature = &service.Signature{} } if err := m.Signature.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/object/v2/types.proto b/v2/object/types.proto similarity index 71% rename from object/v2/types.proto rename to v2/object/types.proto index 9462bc0..2881f0f 100644 --- a/object/v2/types.proto +++ b/v2/object/types.proto @@ -1,13 +1,13 @@ syntax = "proto3"; -package object.v2; +package neo.fs.v2.object; -option go_package = "github.com/nspcc-dev/neofs-api-go/object/v2"; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/object"; option csharp_namespace = "NeoFS.API.Object"; -import "refs/v2/types.proto"; -import "service/v2/meta.proto"; -import "service/v2/verify.proto"; +import "v2/refs/types.proto"; +import "v2/service/meta.proto"; +import "v2/service/verify.proto"; // Type of the object payload content enum ObjectType { @@ -21,14 +21,14 @@ enum ObjectType { message Header { // Object's container - refs.v2.ContainerID container_id = 1; + neo.fs.v2.refs.ContainerID container_id = 1; // Object's owner - refs.v2.OwnerID owner_id = 2; + neo.fs.v2.refs.OwnerID owner_id = 2; // Epoch when the object was created uint64 creation_epoch = 3; // Object format version. // Effectively the version of API library used to create particular object - service.v2.Version version = 4; + neo.fs.v2.service.Version version = 4; // Size of payload in bytes. // 0xFFFFFFFFFFFFFFFF means `payload_length` is unknown uint64 payload_length = 5; @@ -39,7 +39,7 @@ message Header { bytes homomorphic_hash = 8; // Session token, if it was used during Object creation. // Need it to verify integrity and authenticity out of Request scope. - service.v2.SessionToken session_token = 9; + neo.fs.v2.service.SessionToken session_token = 9; // Attribute groups the user-defined Key-Value pairs attached to the object message Attribute { @@ -52,18 +52,18 @@ message Header { // Information about spawning the objects through a payload splitting. message Split { - // Identifier of the origin object.v2. - // Parent and children objects must be within the same container.v2. + // Identifier of the origin object. + // Parent and children objects must be within the same container. // Parent object_id is known only to the minor child. - refs.v2.ObjectID parent = 1; + neo.fs.v2.refs.ObjectID parent = 1; // Previous carries identifier of the left split neighbor. - refs.v2.ObjectID previous = 2; - // `signature` field of the parent object.v2. Used to reconstruct parent. - service.v2.Signature parent_signature = 3; - // `header` field of the parent object.v2. Used to reconstruct parent. + neo.fs.v2.refs.ObjectID previous = 2; + // `signature` field of the parent object. Used to reconstruct parent. + neo.fs.v2.service.Signature parent_signature = 3; + // `header` field of the parent object. Used to reconstruct parent. Header parent_header = 4; // Children carries list of identifiers of the objects generated by splitting the current. - repeated refs.v2.ObjectID children = 5; + repeated neo.fs.v2.refs.ObjectID children = 5; } // Position of the object in the split hierarchy. Split split = 11; @@ -75,9 +75,9 @@ message Object { // Object is content-addressed. It means id will change if header or payload // changes. It's calculated as a hash of header field, which contains hash of // object's payload - refs.v2.ObjectID object_id = 1; + neo.fs.v2.refs.ObjectID object_id = 1; // Signed object_id - service.v2.Signature signature = 2; + neo.fs.v2.service.Signature signature = 2; // Object metadata headers Header header = 3; // Payload bytes. diff --git a/refs/v2/marshal.go b/v2/refs/marshal.go similarity index 98% rename from refs/v2/marshal.go rename to v2/refs/marshal.go index e2abec1..3503a44 100644 --- a/refs/v2/marshal.go +++ b/v2/refs/marshal.go @@ -1,4 +1,4 @@ -package v2 +package refs import ( "encoding/binary" diff --git a/refs/v2/marshal_test.go b/v2/refs/marshal_test.go similarity index 98% rename from refs/v2/marshal_test.go rename to v2/refs/marshal_test.go index c38b3ec..7bf3d6f 100644 --- a/refs/v2/marshal_test.go +++ b/v2/refs/marshal_test.go @@ -1,4 +1,4 @@ -package v2 +package refs import ( "crypto/rand" diff --git a/refs/v2/types.go b/v2/refs/types.go similarity index 98% rename from refs/v2/types.go rename to v2/refs/types.go index 9381202..357b4da 100644 --- a/refs/v2/types.go +++ b/v2/refs/types.go @@ -1,4 +1,4 @@ -package v2 +package refs // SetValue sets container identifier in a binary format. func (m *ContainerID) SetValue(v []byte) { diff --git a/refs/v2/types.pb.go b/v2/refs/types.pb.go similarity index 90% rename from refs/v2/types.pb.go rename to v2/refs/types.pb.go index c76f97c..d5ecec6 100644 --- a/refs/v2/types.pb.go +++ b/v2/refs/types.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: refs/v2/types.proto +// source: v2/refs/types.proto -package v2 +package refs import ( fmt "fmt" @@ -37,7 +37,7 @@ func (m *Address) Reset() { *m = Address{} } func (m *Address) String() string { return proto.CompactTextString(m) } func (*Address) ProtoMessage() {} func (*Address) Descriptor() ([]byte, []int) { - return fileDescriptor_e9faa6bee2355acc, []int{0} + return fileDescriptor_8ea16029b13f1cfa, []int{0} } func (m *Address) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -93,7 +93,7 @@ func (m *ObjectID) Reset() { *m = ObjectID{} } func (m *ObjectID) String() string { return proto.CompactTextString(m) } func (*ObjectID) ProtoMessage() {} func (*ObjectID) Descriptor() ([]byte, []int) { - return fileDescriptor_e9faa6bee2355acc, []int{1} + return fileDescriptor_8ea16029b13f1cfa, []int{1} } func (m *ObjectID) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -142,7 +142,7 @@ func (m *ContainerID) Reset() { *m = ContainerID{} } func (m *ContainerID) String() string { return proto.CompactTextString(m) } func (*ContainerID) ProtoMessage() {} func (*ContainerID) Descriptor() ([]byte, []int) { - return fileDescriptor_e9faa6bee2355acc, []int{2} + return fileDescriptor_8ea16029b13f1cfa, []int{2} } func (m *ContainerID) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -178,7 +178,7 @@ func (m *ContainerID) GetValue() []byte { return nil } -// OwnerID group information about the owner of the NeoFS container.v2. +// OwnerID group information about the owner of the NeoFS container. type OwnerID struct { // value carries the identifier of the container owner in a binary format. Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` @@ -191,7 +191,7 @@ func (m *OwnerID) Reset() { *m = OwnerID{} } func (m *OwnerID) String() string { return proto.CompactTextString(m) } func (*OwnerID) ProtoMessage() {} func (*OwnerID) Descriptor() ([]byte, []int) { - return fileDescriptor_e9faa6bee2355acc, []int{3} + return fileDescriptor_8ea16029b13f1cfa, []int{3} } func (m *OwnerID) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -228,32 +228,32 @@ func (m *OwnerID) GetValue() []byte { } func init() { - proto.RegisterType((*Address)(nil), "refs.v2.Address") - proto.RegisterType((*ObjectID)(nil), "refs.v2.ObjectID") - proto.RegisterType((*ContainerID)(nil), "refs.v2.ContainerID") - proto.RegisterType((*OwnerID)(nil), "refs.v2.OwnerID") + proto.RegisterType((*Address)(nil), "neo.fs.v2.refs.Address") + proto.RegisterType((*ObjectID)(nil), "neo.fs.v2.refs.ObjectID") + proto.RegisterType((*ContainerID)(nil), "neo.fs.v2.refs.ContainerID") + proto.RegisterType((*OwnerID)(nil), "neo.fs.v2.refs.OwnerID") } -func init() { proto.RegisterFile("refs/v2/types.proto", fileDescriptor_e9faa6bee2355acc) } +func init() { proto.RegisterFile("v2/refs/types.proto", fileDescriptor_8ea16029b13f1cfa) } -var fileDescriptor_e9faa6bee2355acc = []byte{ - // 247 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2e, 0x4a, 0x4d, 0x2b, - 0xd6, 0x2f, 0x33, 0xd2, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, - 0x62, 0x07, 0x09, 0xea, 0x95, 0x19, 0x29, 0x15, 0x71, 0xb1, 0x3b, 0xa6, 0xa4, 0x14, 0xa5, 0x16, - 0x17, 0x0b, 0x99, 0x73, 0xf1, 0x24, 0xe7, 0xe7, 0x95, 0x24, 0x66, 0xe6, 0xa5, 0x16, 0xc5, 0x67, - 0xa6, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x89, 0xe8, 0x41, 0x95, 0xea, 0x39, 0xc3, 0x24, - 0x3d, 0x5d, 0x82, 0xb8, 0xe1, 0x2a, 0x3d, 0x53, 0x84, 0xf4, 0xb8, 0x38, 0xf3, 0x93, 0xb2, 0x52, - 0x93, 0x4b, 0x40, 0xba, 0x98, 0xc0, 0xba, 0x04, 0xe1, 0xba, 0xfc, 0xc1, 0x32, 0x9e, 0x2e, 0x41, - 0x1c, 0x10, 0x35, 0x9e, 0x29, 0x4a, 0x0a, 0x5c, 0x1c, 0x30, 0x51, 0x21, 0x11, 0x2e, 0xd6, 0xb2, - 0xc4, 0x9c, 0xd2, 0x54, 0xb0, 0x6d, 0x3c, 0x41, 0x10, 0x8e, 0x92, 0x32, 0x17, 0x37, 0x92, 0x6d, - 0x38, 0x14, 0xc9, 0x73, 0xb1, 0xfb, 0x97, 0xe3, 0x51, 0xe0, 0xe4, 0x73, 0xe2, 0x91, 0x1c, 0xe3, - 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0xce, 0x78, 0x2c, 0xc7, 0x10, 0xa5, 0x99, 0x9e, - 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x9f, 0x57, 0x5c, 0x90, 0x9c, 0xac, 0x9b, - 0x92, 0x5a, 0xa6, 0x9f, 0x97, 0x9a, 0x9f, 0x56, 0xac, 0x9b, 0x58, 0x90, 0xa9, 0x9b, 0x9e, 0xaf, - 0x0f, 0x0d, 0xad, 0x55, 0x4c, 0x7c, 0x7e, 0xa9, 0xf9, 0x6e, 0xc1, 0x7a, 0x8e, 0x01, 0x9e, 0x7a, - 0x41, 0xa9, 0x69, 0xc5, 0x49, 0x6c, 0xe0, 0x90, 0x33, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xd2, - 0xd4, 0x5b, 0x91, 0x50, 0x01, 0x00, 0x00, +var fileDescriptor_8ea16029b13f1cfa = []byte{ + // 256 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2e, 0x33, 0xd2, 0x2f, + 0x4a, 0x4d, 0x2b, 0xd6, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0xe2, 0xcb, 0x4b, 0xcd, 0xd7, 0x4b, 0x2b, 0xd6, 0x2b, 0x33, 0xd2, 0x03, 0xc9, 0x29, 0x35, 0x30, + 0x72, 0xb1, 0x3b, 0xa6, 0xa4, 0x14, 0xa5, 0x16, 0x17, 0x0b, 0xd9, 0x71, 0xf1, 0x24, 0xe7, 0xe7, + 0x95, 0x24, 0x66, 0xe6, 0xa5, 0x16, 0xc5, 0x67, 0xa6, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, + 0x49, 0xeb, 0xa1, 0x6a, 0xd1, 0x73, 0x86, 0xa9, 0xf1, 0x74, 0x09, 0xe2, 0x86, 0x6b, 0xf0, 0x4c, + 0x11, 0x32, 0xe5, 0xe2, 0xcc, 0x4f, 0xca, 0x4a, 0x4d, 0x2e, 0x01, 0x69, 0x66, 0x02, 0x6b, 0x96, + 0x40, 0xd7, 0xec, 0x0f, 0x56, 0xe0, 0xe9, 0x12, 0xc4, 0x01, 0x51, 0xea, 0x99, 0xa2, 0xa4, 0xc0, + 0xc5, 0x01, 0x13, 0x15, 0x12, 0xe1, 0x62, 0x2d, 0x4b, 0xcc, 0x29, 0x4d, 0x05, 0xdb, 0xcd, 0x13, + 0x04, 0xe1, 0x28, 0x29, 0x73, 0x71, 0x23, 0x59, 0x8a, 0x43, 0x91, 0x3c, 0x17, 0xbb, 0x7f, 0x39, + 0x1e, 0x05, 0x4e, 0x3e, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, + 0xe3, 0x8c, 0xc7, 0x72, 0x0c, 0x51, 0x9a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, + 0xb9, 0xfa, 0x79, 0xc5, 0x05, 0xc9, 0xc9, 0xba, 0x29, 0xa9, 0x65, 0xfa, 0x79, 0xa9, 0xf9, 0x69, + 0xc5, 0xba, 0x89, 0x05, 0x99, 0xba, 0xe9, 0xf9, 0xfa, 0xd0, 0x30, 0x5c, 0xc5, 0xc4, 0xe7, 0x97, + 0x9a, 0xef, 0x16, 0xac, 0xe7, 0x18, 0xe0, 0xa9, 0x17, 0x94, 0x9a, 0x56, 0x9c, 0xc4, 0x06, 0x0e, + 0x4f, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x4f, 0x72, 0xf0, 0x66, 0x01, 0x00, 0x00, } func (m *Address) Marshal() (dAtA []byte, err error) { diff --git a/refs/v2/types.proto b/v2/refs/types.proto similarity index 88% rename from refs/v2/types.proto rename to v2/refs/types.proto index 82049b4..eab1044 100644 --- a/refs/v2/types.proto +++ b/v2/refs/types.proto @@ -1,8 +1,8 @@ syntax = "proto3"; -package refs.v2; +package neo.fs.v2.refs; -option go_package = "github.com/nspcc-dev/neofs-api-go/refs/v2"; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/refs"; option csharp_namespace = "NeoFS.API.Refs"; // Address of object (container id + object id) @@ -25,7 +25,7 @@ message ContainerID { bytes value = 1; } -// OwnerID group information about the owner of the NeoFS container.v2. +// OwnerID group information about the owner of the NeoFS container. message OwnerID { // value carries the identifier of the container owner in a binary format. bytes value = 1; diff --git a/service/v2/meta.go b/v2/service/meta.go similarity index 97% rename from service/v2/meta.go rename to v2/service/meta.go index b9ac619..61da3fa 100644 --- a/service/v2/meta.go +++ b/v2/service/meta.go @@ -1,8 +1,8 @@ -package v2 +package service import ( - acl "github.com/nspcc-dev/neofs-api-go/acl/v2" - refs "github.com/nspcc-dev/neofs-api-go/refs/v2" + "github.com/nspcc-dev/neofs-api-go/v2/acl" + "github.com/nspcc-dev/neofs-api-go/v2/refs" ) // SetKey sets key to the X-Header. diff --git a/service/v2/meta.pb.go b/v2/service/meta.pb.go similarity index 90% rename from service/v2/meta.pb.go rename to v2/service/meta.pb.go index 34d2eb7..88d56b3 100644 --- a/service/v2/meta.pb.go +++ b/v2/service/meta.pb.go @@ -1,13 +1,13 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: service/v2/meta.proto +// source: v2/service/meta.proto -package v2 +package service import ( fmt "fmt" proto "github.com/golang/protobuf/proto" - v21 "github.com/nspcc-dev/neofs-api-go/acl/v2" - v2 "github.com/nspcc-dev/neofs-api-go/refs/v2" + acl "github.com/nspcc-dev/neofs-api-go/v2/acl" + refs "github.com/nspcc-dev/neofs-api-go/v2/refs" io "io" math "math" math_bits "math/bits" @@ -69,7 +69,7 @@ func (x SessionToken_Body_Verb) String() string { } func (SessionToken_Body_Verb) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_44cb230373b42f12, []int{3, 0, 0} + return fileDescriptor_932e020d69aee3f0, []int{3, 0, 0} } type XHeader struct { @@ -86,7 +86,7 @@ func (m *XHeader) Reset() { *m = XHeader{} } func (m *XHeader) String() string { return proto.CompactTextString(m) } func (*XHeader) ProtoMessage() {} func (*XHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_44cb230373b42f12, []int{0} + return fileDescriptor_932e020d69aee3f0, []int{0} } func (m *XHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -144,7 +144,7 @@ func (m *Version) Reset() { *m = Version{} } func (m *Version) String() string { return proto.CompactTextString(m) } func (*Version) ProtoMessage() {} func (*Version) Descriptor() ([]byte, []int) { - return fileDescriptor_44cb230373b42f12, []int{1} + return fileDescriptor_932e020d69aee3f0, []int{1} } func (m *Version) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -204,7 +204,7 @@ func (m *TokenLifetime) Reset() { *m = TokenLifetime{} } func (m *TokenLifetime) String() string { return proto.CompactTextString(m) } func (*TokenLifetime) ProtoMessage() {} func (*TokenLifetime) Descriptor() ([]byte, []int) { - return fileDescriptor_44cb230373b42f12, []int{2} + return fileDescriptor_932e020d69aee3f0, []int{2} } func (m *TokenLifetime) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -269,7 +269,7 @@ func (m *SessionToken) Reset() { *m = SessionToken{} } func (m *SessionToken) String() string { return proto.CompactTextString(m) } func (*SessionToken) ProtoMessage() {} func (*SessionToken) Descriptor() ([]byte, []int) { - return fileDescriptor_44cb230373b42f12, []int{3} + return fileDescriptor_932e020d69aee3f0, []int{3} } func (m *SessionToken) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -316,9 +316,9 @@ type SessionToken_Body struct { // ID is a token identifier. valid UUIDv4 represented in bytes Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // OwnerID carries identifier of the session initiator. - OwnerId *v2.OwnerID `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + OwnerId *refs.OwnerID `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // Verb is a type of request for which the token is issued - Verb SessionToken_Body_Verb `protobuf:"varint,3,opt,name=verb,proto3,enum=service.v2.SessionToken_Body_Verb" json:"verb,omitempty"` + Verb SessionToken_Body_Verb `protobuf:"varint,3,opt,name=verb,proto3,enum=neo.fs.v2.service.SessionToken_Body_Verb" json:"verb,omitempty"` // Lifetime is a lifetime of the session Lifetime *TokenLifetime `protobuf:"bytes,4,opt,name=lifetime,proto3" json:"lifetime,omitempty"` // SessionKey is a public key of session key @@ -337,7 +337,7 @@ func (m *SessionToken_Body) Reset() { *m = SessionToken_Body{} } func (m *SessionToken_Body) String() string { return proto.CompactTextString(m) } func (*SessionToken_Body) ProtoMessage() {} func (*SessionToken_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_44cb230373b42f12, []int{3, 0} + return fileDescriptor_932e020d69aee3f0, []int{3, 0} } func (m *SessionToken_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -373,7 +373,7 @@ type isSessionToken_Body_Context interface { } type SessionToken_Body_ObjectAddress struct { - ObjectAddress *v2.Address `protobuf:"bytes,6,opt,name=object_address,json=objectAddress,proto3,oneof" json:"object_address,omitempty"` + ObjectAddress *refs.Address `protobuf:"bytes,6,opt,name=object_address,json=objectAddress,proto3,oneof" json:"object_address,omitempty"` } func (*SessionToken_Body_ObjectAddress) isSessionToken_Body_Context() {} @@ -392,7 +392,7 @@ func (m *SessionToken_Body) GetId() []byte { return nil } -func (m *SessionToken_Body) GetOwnerId() *v2.OwnerID { +func (m *SessionToken_Body) GetOwnerId() *refs.OwnerID { if m != nil { return m.OwnerId } @@ -420,7 +420,7 @@ func (m *SessionToken_Body) GetSessionKey() []byte { return nil } -func (m *SessionToken_Body) GetObjectAddress() *v2.Address { +func (m *SessionToken_Body) GetObjectAddress() *refs.Address { if x, ok := m.GetContext().(*SessionToken_Body_ObjectAddress); ok { return x.ObjectAddress } @@ -449,7 +449,7 @@ func (m *BearerToken) Reset() { *m = BearerToken{} } func (m *BearerToken) String() string { return proto.CompactTextString(m) } func (*BearerToken) ProtoMessage() {} func (*BearerToken) Descriptor() ([]byte, []int) { - return fileDescriptor_44cb230373b42f12, []int{4} + return fileDescriptor_932e020d69aee3f0, []int{4} } func (m *BearerToken) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -494,9 +494,9 @@ func (m *BearerToken) GetSignature() *Signature { type BearerToken_Body struct { // EACLTable carries table of extended ACL rules - EaclTable *v21.EACLTable `protobuf:"bytes,1,opt,name=eacl_table,json=eaclTable,proto3" json:"eacl_table,omitempty"` + EaclTable *acl.EACLTable `protobuf:"bytes,1,opt,name=eacl_table,json=eaclTable,proto3" json:"eacl_table,omitempty"` // OwnerID carries identifier of the token owner - OwnerId *v2.OwnerID `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + OwnerId *refs.OwnerID `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // Token expiration and valid time period parameters Lifetime *TokenLifetime `protobuf:"bytes,3,opt,name=lifetime,proto3" json:"lifetime,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -508,7 +508,7 @@ func (m *BearerToken_Body) Reset() { *m = BearerToken_Body{} } func (m *BearerToken_Body) String() string { return proto.CompactTextString(m) } func (*BearerToken_Body) ProtoMessage() {} func (*BearerToken_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_44cb230373b42f12, []int{4, 0} + return fileDescriptor_932e020d69aee3f0, []int{4, 0} } func (m *BearerToken_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -537,14 +537,14 @@ func (m *BearerToken_Body) XXX_DiscardUnknown() { var xxx_messageInfo_BearerToken_Body proto.InternalMessageInfo -func (m *BearerToken_Body) GetEaclTable() *v21.EACLTable { +func (m *BearerToken_Body) GetEaclTable() *acl.EACLTable { if m != nil { return m.EaclTable } return nil } -func (m *BearerToken_Body) GetOwnerId() *v2.OwnerID { +func (m *BearerToken_Body) GetOwnerId() *refs.OwnerID { if m != nil { return m.OwnerId } @@ -583,7 +583,7 @@ func (m *RequestMetaHeader) Reset() { *m = RequestMetaHeader{} } func (m *RequestMetaHeader) String() string { return proto.CompactTextString(m) } func (*RequestMetaHeader) ProtoMessage() {} func (*RequestMetaHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_44cb230373b42f12, []int{5} + return fileDescriptor_932e020d69aee3f0, []int{5} } func (m *RequestMetaHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -682,7 +682,7 @@ func (m *ResponseMetaHeader) Reset() { *m = ResponseMetaHeader{} } func (m *ResponseMetaHeader) String() string { return proto.CompactTextString(m) } func (*ResponseMetaHeader) ProtoMessage() {} func (*ResponseMetaHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_44cb230373b42f12, []int{6} + return fileDescriptor_932e020d69aee3f0, []int{6} } func (m *ResponseMetaHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -747,71 +747,73 @@ func (m *ResponseMetaHeader) GetOrigin() *ResponseMetaHeader { } func init() { - proto.RegisterEnum("service.v2.SessionToken_Body_Verb", SessionToken_Body_Verb_name, SessionToken_Body_Verb_value) - proto.RegisterType((*XHeader)(nil), "service.v2.XHeader") - proto.RegisterType((*Version)(nil), "service.v2.Version") - proto.RegisterType((*TokenLifetime)(nil), "service.v2.TokenLifetime") - proto.RegisterType((*SessionToken)(nil), "service.v2.SessionToken") - proto.RegisterType((*SessionToken_Body)(nil), "service.v2.SessionToken.Body") - proto.RegisterType((*BearerToken)(nil), "service.v2.BearerToken") - proto.RegisterType((*BearerToken_Body)(nil), "service.v2.BearerToken.Body") - proto.RegisterType((*RequestMetaHeader)(nil), "service.v2.RequestMetaHeader") - proto.RegisterType((*ResponseMetaHeader)(nil), "service.v2.ResponseMetaHeader") + proto.RegisterEnum("neo.fs.v2.service.SessionToken_Body_Verb", SessionToken_Body_Verb_name, SessionToken_Body_Verb_value) + proto.RegisterType((*XHeader)(nil), "neo.fs.v2.service.XHeader") + proto.RegisterType((*Version)(nil), "neo.fs.v2.service.Version") + proto.RegisterType((*TokenLifetime)(nil), "neo.fs.v2.service.TokenLifetime") + proto.RegisterType((*SessionToken)(nil), "neo.fs.v2.service.SessionToken") + proto.RegisterType((*SessionToken_Body)(nil), "neo.fs.v2.service.SessionToken.Body") + proto.RegisterType((*BearerToken)(nil), "neo.fs.v2.service.BearerToken") + proto.RegisterType((*BearerToken_Body)(nil), "neo.fs.v2.service.BearerToken.Body") + proto.RegisterType((*RequestMetaHeader)(nil), "neo.fs.v2.service.RequestMetaHeader") + proto.RegisterType((*ResponseMetaHeader)(nil), "neo.fs.v2.service.ResponseMetaHeader") } -func init() { proto.RegisterFile("service/v2/meta.proto", fileDescriptor_44cb230373b42f12) } +func init() { proto.RegisterFile("v2/service/meta.proto", fileDescriptor_932e020d69aee3f0) } -var fileDescriptor_44cb230373b42f12 = []byte{ - // 778 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x55, 0x4f, 0x6f, 0x1b, 0x45, - 0x14, 0xcf, 0xda, 0x6b, 0x3b, 0x7e, 0x8e, 0xc3, 0x66, 0xda, 0xaa, 0x26, 0x02, 0x53, 0xed, 0x09, - 0x09, 0xb2, 0x2e, 0x8e, 0x52, 0x89, 0xa3, 0x9d, 0x2c, 0x75, 0x20, 0xb4, 0xd5, 0xd8, 0x54, 0x88, - 0x8b, 0xb5, 0xde, 0x7d, 0x4e, 0xa6, 0x75, 0x76, 0xcc, 0xcc, 0x64, 0x89, 0x3f, 0x00, 0x1f, 0x01, - 0x89, 0x43, 0x2f, 0x5c, 0x39, 0xf3, 0x21, 0x38, 0x72, 0xe1, 0x8e, 0xc2, 0x17, 0x41, 0xf3, 0xc7, - 0xcd, 0x26, 0x55, 0x11, 0x88, 0x0b, 0xb7, 0x37, 0xbf, 0xf7, 0x7b, 0xff, 0xdf, 0xdb, 0x85, 0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, 0x1e, - 0xd4, 0x67, 0x66, 0x7a, 0x6e, 0x59, 0xef, 0xbf, 0x65, 0xae, 0xd4, 0xd1, 0xc8, 0x01, 0xd4, 0xb9, - 0x60, 0xa7, 0x2c, 0xef, 0x34, 0xde, 0xfc, 0x4c, 0xbc, 0xd1, 0x18, 0xea, 0xc8, 0xe1, 0xef, 0x1e, - 0x10, 0x8a, 0x72, 0xc9, 0x73, 0x89, 0xff, 0xc7, 0xbe, 0x3d, 0x7a, 0x5d, 0x96, 0x6d, 0x5c, 0xf7, - 0x66, 0x59, 0xb7, 0x13, 0x5f, 0xd7, 0x35, 0xa4, 0xbf, 0x5e, 0x75, 0xbd, 0xdf, 0xae, 0xba, 0xde, - 0x1f, 0x57, 0x5d, 0xef, 0xc7, 0x3f, 0xbb, 0x1b, 0xdf, 0x7c, 0x7c, 0xca, 0xd4, 0xd9, 0xc5, 0x2c, - 0x4a, 0xf9, 0x79, 0x2f, 0x97, 0xcb, 0x34, 0xdd, 0xcb, 0xb0, 0xe8, 0xe5, 0xc8, 0xe7, 0x72, 0x2f, - 0x59, 0xb2, 0xbd, 0x53, 0xde, 0xbb, 0xfe, 0x87, 0xfc, 0x5c, 0xd9, 0x79, 0x82, 0xfc, 0xb3, 0x71, - 0x34, 0x78, 0x76, 0x1c, 0x8d, 0x2d, 0x3c, 0xab, 0x9b, 0x3f, 0xca, 0xfe, 0x5f, 0x01, 0x00, 0x00, - 0xff, 0xff, 0x35, 0x2b, 0x57, 0xef, 0xb8, 0x06, 0x00, 0x00, +var fileDescriptor_932e020d69aee3f0 = []byte{ + // 801 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x55, 0xcd, 0x8e, 0x1b, 0x45, + 0x10, 0xde, 0xb1, 0xc7, 0xf6, 0xba, 0xbc, 0x5e, 0x66, 0x9b, 0xa0, 0x58, 0x2b, 0xe4, 0xac, 0x0c, + 0x48, 0x20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x7e, 0x38, 0x4f, 0xf7, 0x4f, 0x58, 0xf7, 0xd9, 0x8f, 0xec, + 0xdb, 0xd2, 0xce, 0x7d, 0x64, 0x1f, 0x8d, 0xfc, 0xfe, 0xc3, 0x23, 0x7f, 0x64, 0xb0, 0xa8, 0xaa, + 0x7f, 0x6b, 0xef, 0xfe, 0x11, 0x00, 0x00, 0xff, 0xff, 0x1a, 0xf8, 0x0e, 0x53, 0x44, 0x07, 0x00, + 0x00, } func (m *XHeader) Marshal() (dAtA []byte, err error) { @@ -2171,7 +2173,7 @@ func (m *SessionToken_Body) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.OwnerId == nil { - m.OwnerId = &v2.OwnerID{} + m.OwnerId = &refs.OwnerID{} } if err := m.OwnerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -2295,7 +2297,7 @@ func (m *SessionToken_Body) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v2.Address{} + v := &refs.Address{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -2511,7 +2513,7 @@ func (m *BearerToken_Body) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.EaclTable == nil { - m.EaclTable = &v21.EACLTable{} + m.EaclTable = &acl.EACLTable{} } if err := m.EaclTable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -2547,7 +2549,7 @@ func (m *BearerToken_Body) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.OwnerId == nil { - m.OwnerId = &v2.OwnerID{} + m.OwnerId = &refs.OwnerID{} } if err := m.OwnerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/service/v2/meta.proto b/v2/service/meta.proto similarity index 89% rename from service/v2/meta.proto rename to v2/service/meta.proto index c1a4ddf..203e7ce 100644 --- a/service/v2/meta.proto +++ b/v2/service/meta.proto @@ -1,13 +1,13 @@ syntax = "proto3"; -package service.v2; +package neo.fs.v2.service; -option go_package = "github.com/nspcc-dev/neofs-api-go/service/v2"; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/service"; option csharp_namespace = "NeoFS.API.Service"; -import "acl/v2/types.proto"; -import "refs/v2/types.proto"; -import "service/v2/verify.proto"; +import "v2/acl/types.proto"; +import "v2/refs/types.proto"; +import "v2/service/verify.proto"; message XHeader { // Key of the X-Header. @@ -40,7 +40,7 @@ message SessionToken { // ID is a token identifier. valid UUIDv4 represented in bytes bytes id = 1; // OwnerID carries identifier of the session initiator. - refs.v2.OwnerID owner_id = 2; + neo.fs.v2.refs.OwnerID owner_id = 2; // Verb is an enumeration of session request types enum Verb { // Refers to object.Put RPC call @@ -67,7 +67,7 @@ message SessionToken { // Carries context of the session. oneof context { // object_address represents the object session context. - refs.v2.Address object_address = 6; + neo.fs.v2.refs.Address object_address = 6; } } // Session Token body @@ -81,9 +81,9 @@ message SessionToken { message BearerToken { message Body { // EACLTable carries table of extended ACL rules - acl.v2.EACLTable eacl_table = 1; + neo.fs.v2.acl.EACLTable eacl_table = 1; // OwnerID carries identifier of the token owner - refs.v2.OwnerID owner_id = 2; + neo.fs.v2.refs.OwnerID owner_id = 2; // Token expiration and valid time period parameters TokenLifetime lifetime = 3; } diff --git a/service/v2/verify.go b/v2/service/verify.go similarity index 99% rename from service/v2/verify.go rename to v2/service/verify.go index 8e7e2cf..c9081fd 100644 --- a/service/v2/verify.go +++ b/v2/service/verify.go @@ -1,4 +1,4 @@ -package v2 +package service // SetKey sets public key in a binary format. func (m *Signature) SetKey(v []byte) { diff --git a/service/v2/verify.pb.go b/v2/service/verify.pb.go similarity index 90% rename from service/v2/verify.pb.go rename to v2/service/verify.pb.go index 6f1cd42..34913d7 100644 --- a/service/v2/verify.pb.go +++ b/v2/service/verify.pb.go @@ -1,13 +1,11 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: service/v2/verify.proto +// source: v2/service/verify.proto -package v2 +package service import ( fmt "fmt" proto "github.com/golang/protobuf/proto" - _ "github.com/nspcc-dev/neofs-api-go/acl/v2" - _ "github.com/nspcc-dev/neofs-api-go/refs/v2" io "io" math "math" math_bits "math/bits" @@ -39,7 +37,7 @@ func (m *Signature) Reset() { *m = Signature{} } func (m *Signature) String() string { return proto.CompactTextString(m) } func (*Signature) ProtoMessage() {} func (*Signature) Descriptor() ([]byte, []int) { - return fileDescriptor_7ea2d606af3f2456, []int{0} + return fileDescriptor_848d62e0ecc8b6b6, []int{0} } func (m *Signature) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -101,7 +99,7 @@ func (m *RequestVerificationHeader) Reset() { *m = RequestVerificationHe func (m *RequestVerificationHeader) String() string { return proto.CompactTextString(m) } func (*RequestVerificationHeader) ProtoMessage() {} func (*RequestVerificationHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_7ea2d606af3f2456, []int{1} + return fileDescriptor_848d62e0ecc8b6b6, []int{1} } func (m *RequestVerificationHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -177,7 +175,7 @@ func (m *ResponseVerificationHeader) Reset() { *m = ResponseVerification func (m *ResponseVerificationHeader) String() string { return proto.CompactTextString(m) } func (*ResponseVerificationHeader) ProtoMessage() {} func (*ResponseVerificationHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_7ea2d606af3f2456, []int{2} + return fileDescriptor_848d62e0ecc8b6b6, []int{2} } func (m *ResponseVerificationHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -235,37 +233,36 @@ func (m *ResponseVerificationHeader) GetOrigin() *ResponseVerificationHeader { } func init() { - proto.RegisterType((*Signature)(nil), "service.v2.Signature") - proto.RegisterType((*RequestVerificationHeader)(nil), "service.v2.RequestVerificationHeader") - proto.RegisterType((*ResponseVerificationHeader)(nil), "service.v2.ResponseVerificationHeader") + proto.RegisterType((*Signature)(nil), "neo.fs.v2.service.Signature") + proto.RegisterType((*RequestVerificationHeader)(nil), "neo.fs.v2.service.RequestVerificationHeader") + proto.RegisterType((*ResponseVerificationHeader)(nil), "neo.fs.v2.service.ResponseVerificationHeader") } -func init() { proto.RegisterFile("service/v2/verify.proto", fileDescriptor_7ea2d606af3f2456) } +func init() { proto.RegisterFile("v2/service/verify.proto", fileDescriptor_848d62e0ecc8b6b6) } -var fileDescriptor_7ea2d606af3f2456 = []byte{ - // 339 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2f, 0x4e, 0x2d, 0x2a, - 0xcb, 0x4c, 0x4e, 0xd5, 0x2f, 0x33, 0xd2, 0x2f, 0x4b, 0x2d, 0xca, 0x4c, 0xab, 0xd4, 0x2b, 0x28, - 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x82, 0x4a, 0xe8, 0x95, 0x19, 0x49, 0x09, 0x25, 0x26, 0xe7, 0x80, - 0x14, 0x94, 0x54, 0x16, 0xa4, 0x16, 0x43, 0xe4, 0xa5, 0x84, 0x8b, 0x52, 0xd3, 0x8a, 0xd1, 0x04, - 0x95, 0x0c, 0xb9, 0x38, 0x83, 0x33, 0xd3, 0xf3, 0x12, 0x4b, 0x4a, 0x8b, 0x52, 0x85, 0x04, 0xb8, - 0x98, 0xb3, 0x53, 0x2b, 0x25, 0x18, 0x15, 0x18, 0x35, 0x78, 0x82, 0x40, 0x4c, 0x21, 0x21, 0x2e, - 0x96, 0xe2, 0xcc, 0xf4, 0x3c, 0x09, 0x26, 0xb0, 0x10, 0x98, 0xad, 0x34, 0x83, 0x89, 0x4b, 0x32, - 0x28, 0xb5, 0xb0, 0x34, 0xb5, 0xb8, 0x24, 0x0c, 0x64, 0x7f, 0x66, 0x72, 0x62, 0x49, 0x66, 0x7e, - 0x9e, 0x47, 0x6a, 0x62, 0x4a, 0x6a, 0x91, 0x90, 0x0d, 0x17, 0x5f, 0x52, 0x7e, 0x4a, 0x65, 0x7c, - 0x31, 0xcc, 0x54, 0xb0, 0x71, 0xdc, 0x46,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 0x4c, 0x15, - 0x03, 0x00, 0x00, +var fileDescriptor_848d62e0ecc8b6b6 = []byte{ + // 325 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2f, 0x33, 0xd2, 0x2f, + 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2f, 0x4b, 0x2d, 0xca, 0x4c, 0xab, 0xd4, 0x2b, 0x28, + 0xca, 0x2f, 0xc9, 0x17, 0x12, 0xcc, 0x4b, 0xcd, 0xd7, 0x4b, 0x2b, 0xd6, 0x2b, 0x33, 0xd2, 0x83, + 0xca, 0x2b, 0x19, 0x72, 0x71, 0x06, 0x67, 0xa6, 0xe7, 0x25, 0x96, 0x94, 0x16, 0xa5, 0x0a, 0x09, + 0x70, 0x31, 0x67, 0xa7, 0x56, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0xf0, 0x04, 0x81, 0x98, 0x42, 0x42, + 0x5c, 0x2c, 0xc5, 0x99, 0xe9, 0x79, 0x12, 0x4c, 0x60, 0x21, 0x30, 0x5b, 0x69, 0x0b, 0x13, 0x97, + 0x64, 0x50, 0x6a, 0x61, 0x69, 0x6a, 0x71, 0x49, 0x18, 0xc8, 0xf4, 0xcc, 0xe4, 0xc4, 0x92, 0xcc, + 0xfc, 0x3c, 0x8f, 0xd4, 0xc4, 0x94, 0xd4, 0x22, 0x21, 0x67, 0x2e, 0xbe, 0xa4, 0xfc, 0x94, 0xca, + 0xf8, 0x62, 0x98, 0xa9, 0x60, 0xe3, 0xb8, 0x8d, 0x64, 0xf4, 0x30, 0x2c, 0xd7, 0x83, 0xdb, 0x1c, + 0xc4, 0x0b, 0xd2, 0x83, 0x70, 0x88, 0x33, 0x17, 0x5f, 0x6e, 0x6a, 0x49, 0x22, 0x92, 0x21, 0x4c, + 0xc4, 0x18, 0x02, 0xd2, 0x83, 0x30, 0xc4, 0x9d, 0x4b, 0x20, 0xbf, 0x28, 0x33, 0x3d, 0x33, 0x0f, + 0xc9, 0x18, 0x66, 0x22, 0x8c, 0xe1, 0x87, 0xe8, 0x42, 0x18, 0xe4, 0xc2, 0xc5, 0x06, 0x11, 0x92, + 0x60, 0x01, 0x6b, 0xd7, 0xc1, 0xa2, 0x1d, 0x67, 0x80, 0x04, 0x41, 0xf5, 0x2a, 0x6d, 0x63, 0xe2, + 0x92, 0x0a, 0x4a, 0x2d, 0x2e, 0xc8, 0xcf, 0x2b, 0x4e, 0x1d, 0x19, 0xe1, 0xe6, 0x8a, 0x16, 0x6e, + 0xba, 0x58, 0xc3, 0x0d, 0x57, 0x88, 0xc0, 0x02, 0xce, 0x29, 0xe8, 0xc4, 0x23, 0x39, 0xc6, 0x0b, + 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0x27, 0x3d, 0xb3, + 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x3f, 0xaf, 0xb8, 0x20, 0x39, 0x59, 0x37, 0x25, + 0xb5, 0x4c, 0x3f, 0x2f, 0x35, 0x3f, 0xad, 0x58, 0x37, 0xb1, 0x20, 0x53, 0x37, 0x3d, 0x5f, 0x1f, + 0x91, 0x05, 0x56, 0x31, 0x09, 0xfa, 0xa5, 0xe6, 0xbb, 0x05, 0xeb, 0x39, 0x06, 0x78, 0xea, 0x05, + 0x43, 0xc4, 0x92, 0xd8, 0xc0, 0x19, 0xc2, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x93, 0x01, 0xa7, + 0xcb, 0x2b, 0x03, 0x00, 0x00, } func (m *Signature) Marshal() (dAtA []byte, err error) { diff --git a/service/v2/verify.proto b/v2/service/verify.proto similarity index 88% rename from service/v2/verify.proto rename to v2/service/verify.proto index 2933896..0b9b87c 100644 --- a/service/v2/verify.proto +++ b/v2/service/verify.proto @@ -1,13 +1,10 @@ syntax = "proto3"; -package service.v2; +package neo.fs.v2.service; -option go_package = "github.com/nspcc-dev/neofs-api-go/service/v2"; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/service"; option csharp_namespace = "NeoFS.API.Service"; -import "acl/v2/types.proto"; -import "refs/v2/types.proto"; - // Signature of something in NeoFS message Signature { // Public key used for signing. diff --git a/session/v2/service.go b/v2/session/service.go similarity index 92% rename from session/v2/service.go rename to v2/session/service.go index 3c1b812..41a050d 100644 --- a/session/v2/service.go +++ b/v2/session/service.go @@ -1,8 +1,8 @@ -package v2 +package session import ( - refs "github.com/nspcc-dev/neofs-api-go/refs/v2" - service "github.com/nspcc-dev/neofs-api-go/service/v2" + "github.com/nspcc-dev/neofs-api-go/v2/refs" + "github.com/nspcc-dev/neofs-api-go/v2/service" ) // SetOwnerId sets identifier of the session initiator. diff --git a/session/v2/service.pb.go b/v2/session/service.pb.go similarity index 83% rename from session/v2/service.pb.go rename to v2/session/service.pb.go index 9d5d8af..7759f67 100644 --- a/session/v2/service.pb.go +++ b/v2/session/service.pb.go @@ -1,14 +1,14 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: session/v2/service.proto +// source: v2/session/service.proto -package v2 +package session import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" - v21 "github.com/nspcc-dev/neofs-api-go/refs/v2" - v2 "github.com/nspcc-dev/neofs-api-go/service/v2" + refs "github.com/nspcc-dev/neofs-api-go/v2/refs" + service "github.com/nspcc-dev/neofs-api-go/v2/service" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -28,26 +28,26 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package -// CreateRequest carries an information necessary for opening a session.v2. +// CreateRequest carries an information necessary for opening a session. type CreateRequest struct { // Body of create session token request message. Body *CreateRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries request meta information. Header data is used only to regulate message // transport and does not affect request execution. - MetaHeader *v2.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries request verification information. This header is used to authenticate // the nodes of the message route and check the correctness of transmission. - VerifyHeader *v2.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CreateRequest) Reset() { *m = CreateRequest{} } func (m *CreateRequest) String() string { return proto.CompactTextString(m) } func (*CreateRequest) ProtoMessage() {} func (*CreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dc9d885cd3f2324e, []int{0} + return fileDescriptor_ab0074a16885b32c, []int{0} } func (m *CreateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -83,14 +83,14 @@ func (m *CreateRequest) GetBody() *CreateRequest_Body { return nil } -func (m *CreateRequest) GetMetaHeader() *v2.RequestMetaHeader { +func (m *CreateRequest) GetMetaHeader() *service.RequestMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *CreateRequest) GetVerifyHeader() *v2.RequestVerificationHeader { +func (m *CreateRequest) GetVerifyHeader() *service.RequestVerificationHeader { if m != nil { return m.VerifyHeader } @@ -99,19 +99,19 @@ func (m *CreateRequest) GetVerifyHeader() *v2.RequestVerificationHeader { type CreateRequest_Body struct { // Carries an identifier of a session initiator. - OwnerId *v21.OwnerID `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` - // Carries a lifetime of the session.v2. - Lifetime *v2.TokenLifetime `protobuf:"bytes,2,opt,name=lifetime,proto3" json:"lifetime,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + OwnerId *refs.OwnerID `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + // Carries a lifetime of the session. + Lifetime *service.TokenLifetime `protobuf:"bytes,2,opt,name=lifetime,proto3" json:"lifetime,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CreateRequest_Body) Reset() { *m = CreateRequest_Body{} } func (m *CreateRequest_Body) String() string { return proto.CompactTextString(m) } func (*CreateRequest_Body) ProtoMessage() {} func (*CreateRequest_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_dc9d885cd3f2324e, []int{0, 0} + return fileDescriptor_ab0074a16885b32c, []int{0, 0} } func (m *CreateRequest_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -140,41 +140,41 @@ func (m *CreateRequest_Body) XXX_DiscardUnknown() { var xxx_messageInfo_CreateRequest_Body proto.InternalMessageInfo -func (m *CreateRequest_Body) GetOwnerId() *v21.OwnerID { +func (m *CreateRequest_Body) GetOwnerId() *refs.OwnerID { if m != nil { return m.OwnerId } return nil } -func (m *CreateRequest_Body) GetLifetime() *v2.TokenLifetime { +func (m *CreateRequest_Body) GetLifetime() *service.TokenLifetime { if m != nil { return m.Lifetime } return nil } -// CreateResponse carries an information about the opened session.v2. +// CreateResponse carries an information about the opened session. type CreateResponse struct { // Body of create session token response message. Body *CreateResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - MetaHeader *v2.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` + MetaHeader *service.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - VerifyHeader *v2.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + VerifyHeader *service.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CreateResponse) Reset() { *m = CreateResponse{} } func (m *CreateResponse) String() string { return proto.CompactTextString(m) } func (*CreateResponse) ProtoMessage() {} func (*CreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dc9d885cd3f2324e, []int{1} + return fileDescriptor_ab0074a16885b32c, []int{1} } func (m *CreateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -210,14 +210,14 @@ func (m *CreateResponse) GetBody() *CreateResponse_Body { return nil } -func (m *CreateResponse) GetMetaHeader() *v2.ResponseMetaHeader { +func (m *CreateResponse) GetMetaHeader() *service.ResponseMetaHeader { if m != nil { return m.MetaHeader } return nil } -func (m *CreateResponse) GetVerifyHeader() *v2.ResponseVerificationHeader { +func (m *CreateResponse) GetVerifyHeader() *service.ResponseVerificationHeader { if m != nil { return m.VerifyHeader } @@ -238,7 +238,7 @@ func (m *CreateResponse_Body) Reset() { *m = CreateResponse_Body{} } func (m *CreateResponse_Body) String() string { return proto.CompactTextString(m) } func (*CreateResponse_Body) ProtoMessage() {} func (*CreateResponse_Body) Descriptor() ([]byte, []int) { - return fileDescriptor_dc9d885cd3f2324e, []int{1, 0} + return fileDescriptor_ab0074a16885b32c, []int{1, 0} } func (m *CreateResponse_Body) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -282,44 +282,45 @@ func (m *CreateResponse_Body) GetSessionKey() []byte { } func init() { - proto.RegisterType((*CreateRequest)(nil), "session.v2.CreateRequest") - proto.RegisterType((*CreateRequest_Body)(nil), "session.v2.CreateRequest.Body") - proto.RegisterType((*CreateResponse)(nil), "session.v2.CreateResponse") - proto.RegisterType((*CreateResponse_Body)(nil), "session.v2.CreateResponse.Body") + proto.RegisterType((*CreateRequest)(nil), "neo.fs.v2.session.CreateRequest") + proto.RegisterType((*CreateRequest_Body)(nil), "neo.fs.v2.session.CreateRequest.Body") + proto.RegisterType((*CreateResponse)(nil), "neo.fs.v2.session.CreateResponse") + proto.RegisterType((*CreateResponse_Body)(nil), "neo.fs.v2.session.CreateResponse.Body") } -func init() { proto.RegisterFile("session/v2/service.proto", fileDescriptor_dc9d885cd3f2324e) } +func init() { proto.RegisterFile("v2/session/service.proto", fileDescriptor_ab0074a16885b32c) } -var fileDescriptor_dc9d885cd3f2324e = []byte{ - // 448 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xdf, 0x8a, 0xd3, 0x40, - 0x14, 0xc6, 0x4d, 0x5c, 0x76, 0x97, 0x69, 0x77, 0xd1, 0x11, 0xb1, 0x1b, 0x30, 0x2b, 0x0b, 0x8a, - 0xa0, 0x9d, 0x40, 0x16, 0xf1, 0xce, 0x62, 0x15, 0xb1, 0xad, 0xff, 0x98, 0x8a, 0x17, 0xde, 0x94, - 0x34, 0x39, 0x69, 0xc7, 0x9a, 0x4c, 0xcc, 0x4c, 0x23, 0x79, 0x07, 0x1f, 0xc0, 0x67, 0xf0, 0x15, - 0x7c, 0x01, 0x2f, 0x7d, 0x04, 0xa9, 0x2f, 0x22, 0x93, 0x99, 0xf4, 0x0f, 0xa4, 0x78, 0x97, 0x99, - 0xf9, 0xce, 0x77, 0xbe, 0xf3, 0xe3, 0x04, 0x75, 0x04, 0x08, 0xc1, 0x78, 0xea, 0x15, 0xbe, 0x27, - 0x20, 0x2f, 0x58, 0x08, 0x24, 0xcb, 0xb9, 0xe4, 0x18, 0x99, 0x17, 0x52, 0xf8, 0xce, 0x8d, 0x1c, - 0x62, 0xa1, 0x24, 0xb2, 0xcc, 0x40, 0x68, 0x81, 0x73, 0xd3, 0xe8, 0xd5, 0x7d, 0x02, 0x32, 0x30, - 0xd7, 0xb7, 0xb6, 0xae, 0x0b, 0xc8, 0x59, 0x5c, 0xea, 0x87, 0x8b, 0x9f, 0x36, 0x3a, 0x79, 0x96, - 0x43, 0x20, 0x81, 0xc2, 0x97, 0x25, 0x08, 0x89, 0x7d, 0x74, 0x30, 0xe5, 0x51, 0xd9, 0xb1, 0xee, - 0x58, 0xf7, 0x5b, 0xbe, 0x4b, 0x36, 0x1d, 0xc9, 0x8e, 0x90, 0xf4, 0x79, 0x54, 0xd2, 0x4a, 0x8b, - 0x9f, 0xa0, 0x96, 0x6a, 0x36, 0x99, 0x43, 0x10, 0x41, 0xde, 0xb1, 0xab, 0xd2, 0xdb, 0xa4, 0xce, - 0x5e, 0xf8, 0xc4, 0x14, 0xbd, 0x06, 0x19, 0xbc, 0xac, 0x44, 0x14, 0x25, 0xeb, 0x6f, 0x3c, 0x44, - 0x27, 0x3a, 0x55, 0xed, 0x70, 0xb5, 0x72, 0xb8, 0xdb, 0xe0, 0xf0, 0x41, 0xe9, 0x58, 0x18, 0x48, - 0xc6, 0x53, 0xe3, 0xd4, 0xd6, 0xb5, 0xfa, 0xe4, 0x7c, 0x42, 0x07, 0x2a, 0x19, 0x7e, 0x80, 0x8e, - 0xf9, 0xd7, 0x14, 0xf2, 0x09, 0x8b, 0xcc, 0x2c, 0xd7, 0x88, 0x22, 0xa6, 0xbc, 0xde, 0xaa, 0x87, - 0xc1, 0x73, 0x7a, 0x54, 0x29, 0x06, 0x11, 0x7e, 0x84, 0x8e, 0x3f, 0xb3, 0x18, 0x24, 0x4b, 0xc0, - 0xa4, 0x3f, 0xdb, 0xee, 0xfd, 0x9e, 0x2f, 0x20, 0x7d, 0x65, 0x04, 0x74, 0x2d, 0xbd, 0xf8, 0x66, - 0xa3, 0xd3, 0x1a, 0x8a, 0xc8, 0x78, 0x2a, 0x00, 0x5f, 0xee, 0xe0, 0x3b, 0x6f, 0xc2, 0xa7, 0x95, - 0xdb, 0xfc, 0x7a, 0x4d, 0xfc, 0xdc, 0xdd, 0xe9, 0x75, 0xd5, 0x1e, 0x80, 0xa3, 0x66, 0x80, 0xf7, - 0x9a, 0x2c, 0xfe, 0x4b, 0xf0, 0xb1, 0x21, 0x78, 0x8a, 0x6c, 0xc3, 0xae, 0x4d, 0x6d, 0x16, 0xe1, - 0x73, 0xd4, 0x32, 0xd3, 0x4c, 0x16, 0x50, 0x56, 0x29, 0xdb, 0xb4, 0xde, 0xc8, 0x11, 0x94, 0xfe, - 0x10, 0x1d, 0x8d, 0xf5, 0x09, 0xf7, 0xd0, 0xa1, 0x1e, 0x17, 0x9f, 0xed, 0xdd, 0x20, 0xc7, 0xd9, - 0x4f, 0xa7, 0x4f, 0x7f, 0xad, 0x5c, 0xeb, 0xf7, 0xca, 0xb5, 0xfe, 0xac, 0x5c, 0xeb, 0xfb, 0x5f, - 0xf7, 0xca, 0xc7, 0x87, 0x33, 0x26, 0xe7, 0xcb, 0x29, 0x09, 0x79, 0xe2, 0xa5, 0x22, 0x0b, 0xc3, - 0x6e, 0x04, 0x85, 0x97, 0x02, 0x8f, 0x45, 0x37, 0xc8, 0x58, 0x77, 0xc6, 0xbd, 0xcd, 0x7f, 0xf3, - 0xc3, 0xbe, 0xfe, 0x06, 0xf8, 0x8b, 0x31, 0x79, 0xfa, 0x6e, 0x40, 0x4c, 0xa8, 0xe9, 0x61, 0xb5, - 0xf3, 0x97, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x41, 0x43, 0x09, 0xb3, 0x60, 0x03, 0x00, 0x00, +var fileDescriptor_ab0074a16885b32c = []byte{ + // 454 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0x4f, 0x6f, 0xd3, 0x30, + 0x18, 0xc6, 0x49, 0x98, 0xb6, 0xc9, 0xed, 0x26, 0xcd, 0x08, 0xad, 0xca, 0x21, 0x94, 0x89, 0x21, + 0x0e, 0x8b, 0x2d, 0x85, 0x03, 0x02, 0x71, 0x61, 0xc0, 0x44, 0x05, 0xe3, 0x8f, 0x87, 0x10, 0xe2, + 0x52, 0xa5, 0xc9, 0x9b, 0xcd, 0x1a, 0xb1, 0x43, 0xec, 0x05, 0xf2, 0x4d, 0xb8, 0x72, 0xe5, 0x93, + 0x70, 0xe4, 0x13, 0x20, 0x54, 0xbe, 0x08, 0x8a, 0xed, 0x8d, 0x56, 0x64, 0xed, 0x2d, 0xb6, 0x9f, + 0xe7, 0xf1, 0xfb, 0xfc, 0x14, 0xa3, 0x41, 0x1d, 0x53, 0x05, 0x4a, 0x71, 0x29, 0xa8, 0x82, 0xaa, + 0xe6, 0x29, 0x90, 0xb2, 0x92, 0x5a, 0xe2, 0x2d, 0x01, 0x92, 0xe4, 0x8a, 0xd4, 0x31, 0x71, 0x82, + 0xe0, 0x5a, 0x1d, 0xd3, 0x0a, 0x72, 0x45, 0x75, 0x53, 0x82, 0xb2, 0xba, 0xe0, 0xba, 0x49, 0x30, + 0x4e, 0x5a, 0x80, 0x4e, 0xdc, 0xf6, 0xf6, 0xcc, 0x76, 0x0d, 0x15, 0xcf, 0x1b, 0x7b, 0xb0, 0xf3, + 0xcb, 0x47, 0x1b, 0x8f, 0x2b, 0x48, 0x34, 0x30, 0xf8, 0x74, 0x06, 0x4a, 0xe3, 0xfb, 0x68, 0x65, + 0x22, 0xb3, 0x66, 0xe0, 0x0d, 0xbd, 0x3b, 0xbd, 0x78, 0x97, 0xfc, 0x77, 0x31, 0x99, 0xd3, 0x93, + 0x7d, 0x99, 0x35, 0xcc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 0xb2, 0x2b, 0x7c, 0x88, 0x56, 0x6d, 0x79, + 0x3c, 0x5c, 0xf6, 0xe7, 0x05, 0x37, 0x97, 0x92, 0xdb, 0x67, 0x3f, 0xa6, 0xa1, 0xf7, 0x73, 0x1a, + 0x7a, 0xbf, 0xa7, 0xa1, 0xf7, 0xf5, 0x4f, 0x78, 0xe5, 0xc3, 0xde, 0x31, 0xd7, 0x27, 0x67, 0x13, + 0x92, 0xca, 0x82, 0x0a, 0x55, 0xa6, 0x69, 0x94, 0x41, 0x4d, 0x05, 0xc8, 0x5c, 0x45, 0x49, 0xc9, + 0xa3, 0x63, 0x49, 0xff, 0x3d, 0xc2, 0xef, 0xfe, 0xd6, 0x4b, 0x90, 0x07, 0x47, 0xe4, 0xd1, 0xeb, + 0x11, 0x71, 0x23, 0x4e, 0x56, 0xcd, 0xcb, 0xb9, 0xfb, 0x37, 0x00, 0x00, 0xff, 0xff, 0xf2, 0xbe, + 0x3b, 0xbe, 0xad, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -348,7 +349,7 @@ func NewSessionClient(cc *grpc.ClientConn) SessionClient { func (c *sessionClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) { out := new(CreateResponse) - err := c.cc.Invoke(ctx, "/session.v2.Session/Create", in, out, opts...) + err := c.cc.Invoke(ctx, "/neo.fs.v2.session.Session/Create", in, out, opts...) if err != nil { return nil, err } @@ -383,7 +384,7 @@ func _Session_Create_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/session.v2.Session/Create", + FullMethod: "/neo.fs.v2.session.Session/Create", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SessionServer).Create(ctx, req.(*CreateRequest)) @@ -392,7 +393,7 @@ func _Session_Create_Handler(srv interface{}, ctx context.Context, dec func(inte } var _Session_serviceDesc = grpc.ServiceDesc{ - ServiceName: "session.v2.Session", + ServiceName: "neo.fs.v2.session.Session", HandlerType: (*SessionServer)(nil), Methods: []grpc.MethodDesc{ { @@ -401,7 +402,7 @@ var _Session_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "session/v2/service.proto", + Metadata: "v2/session/service.proto", } func (m *CreateRequest) Marshal() (dAtA []byte, err error) { @@ -822,7 +823,7 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.RequestMetaHeader{} + m.MetaHeader = &service.RequestMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -858,7 +859,7 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.RequestVerificationHeader{} + m.VerifyHeader = &service.RequestVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -948,7 +949,7 @@ func (m *CreateRequest_Body) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.OwnerId == nil { - m.OwnerId = &v21.OwnerID{} + m.OwnerId = &refs.OwnerID{} } if err := m.OwnerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -984,7 +985,7 @@ func (m *CreateRequest_Body) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Lifetime == nil { - m.Lifetime = &v2.TokenLifetime{} + m.Lifetime = &service.TokenLifetime{} } if err := m.Lifetime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1110,7 +1111,7 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.MetaHeader == nil { - m.MetaHeader = &v2.ResponseMetaHeader{} + m.MetaHeader = &service.ResponseMetaHeader{} } if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1146,7 +1147,7 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.VerifyHeader == nil { - m.VerifyHeader = &v2.ResponseVerificationHeader{} + m.VerifyHeader = &service.ResponseVerificationHeader{} } if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/session/v2/service.proto b/v2/session/service.proto similarity index 70% rename from session/v2/service.proto rename to v2/session/service.proto index c980dcf..39650cf 100644 --- a/session/v2/service.proto +++ b/v2/session/service.proto @@ -1,27 +1,26 @@ syntax = "proto3"; -package session.v2; - -option go_package = "github.com/nspcc-dev/neofs-api-go/session/v2"; +package neo.fs.v2.session; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/session"; option csharp_namespace = "NeoFS.API.Session"; -import "refs/v2/types.proto"; -import "service/v2/meta.proto"; -import "service/v2/verify.proto"; +import "v2/refs/types.proto"; +import "v2/service/meta.proto"; +import "v2/service/verify.proto"; service Session { // Create opens new session between the client and the server. rpc Create (CreateRequest) returns (CreateResponse); } -// CreateRequest carries an information necessary for opening a session.v2. +// CreateRequest carries an information necessary for opening a session. message CreateRequest { message Body { // Carries an identifier of a session initiator. - refs.v2.OwnerID owner_id = 1; + neo.fs.v2.refs.OwnerID owner_id = 1; - // Carries a lifetime of the session.v2. - service.v2.TokenLifetime lifetime = 2; + // Carries a lifetime of the session. + neo.fs.v2.service.TokenLifetime lifetime = 2; } // Body of create session token request message. @@ -29,14 +28,14 @@ message CreateRequest { // Carries request meta information. Header data is used only to regulate message // transport and does not affect request execution. - service.v2.RequestMetaHeader meta_header = 2; + neo.fs.v2.service.RequestMetaHeader meta_header = 2; // Carries request verification information. This header is used to authenticate // the nodes of the message route and check the correctness of transmission. - service.v2.RequestVerificationHeader verify_header = 3; + neo.fs.v2.service.RequestVerificationHeader verify_header = 3; } -// CreateResponse carries an information about the opened session.v2. +// CreateResponse carries an information about the opened session. message CreateResponse { message Body { // id carries an identifier of session token. @@ -51,10 +50,10 @@ message CreateResponse { // Carries response meta information. Header data is used only to regulate // message transport and does not affect request execution. - service.v2.ResponseMetaHeader meta_header = 2; + neo.fs.v2.service.ResponseMetaHeader meta_header = 2; // Carries response verification information. This header is used to // authenticate the nodes of the message route and check the correctness // of transmission. - service.v2.ResponseVerificationHeader verify_header = 3; + neo.fs.v2.service.ResponseVerificationHeader verify_header = 3; } diff --git a/storagegroup/v2/types.go b/v2/storagegroup/types.go similarity index 91% rename from storagegroup/v2/types.go rename to v2/storagegroup/types.go index a46acfb..5f4bd37 100644 --- a/storagegroup/v2/types.go +++ b/v2/storagegroup/types.go @@ -1,7 +1,7 @@ -package v2 +package storagegroup import ( - refs "github.com/nspcc-dev/neofs-api-go/refs/v2" + "github.com/nspcc-dev/neofs-api-go/v2/refs" ) // SetValidationDataSize sets the total size of the payloads of the storage group. diff --git a/storagegroup/v2/types.pb.go b/v2/storagegroup/types.pb.go similarity index 80% rename from storagegroup/v2/types.pb.go rename to v2/storagegroup/types.pb.go index e099149..e206d31 100644 --- a/storagegroup/v2/types.pb.go +++ b/v2/storagegroup/types.pb.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: storagegroup/v2/types.proto +// source: v2/storagegroup/types.proto -package v2 +package storagegroup import ( fmt "fmt" proto "github.com/golang/protobuf/proto" - v2 "github.com/nspcc-dev/neofs-api-go/refs/v2" + refs "github.com/nspcc-dev/neofs-api-go/v2/refs" io "io" math "math" math_bits "math/bits" @@ -39,17 +39,17 @@ type StorageGroup struct { ExpirationEpoch uint64 `protobuf:"varint,3,opt,name=expiration_epoch,json=expirationEpoch,proto3" json:"expiration_epoch,omitempty"` // Members carries the list of identifiers of the object storage group members. // The list is strictly ordered. - Members []*v2.ObjectID `protobuf:"bytes,4,rep,name=members,proto3" json:"members,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Members []*refs.ObjectID `protobuf:"bytes,4,rep,name=members,proto3" json:"members,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *StorageGroup) Reset() { *m = StorageGroup{} } func (m *StorageGroup) String() string { return proto.CompactTextString(m) } func (*StorageGroup) ProtoMessage() {} func (*StorageGroup) Descriptor() ([]byte, []int) { - return fileDescriptor_e6cea1f26229f4f1, []int{0} + return fileDescriptor_593772eae6c18cdf, []int{0} } func (m *StorageGroup) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -99,7 +99,7 @@ func (m *StorageGroup) GetExpirationEpoch() uint64 { return 0 } -func (m *StorageGroup) GetMembers() []*v2.ObjectID { +func (m *StorageGroup) GetMembers() []*refs.ObjectID { if m != nil { return m.Members } @@ -107,31 +107,32 @@ func (m *StorageGroup) GetMembers() []*v2.ObjectID { } func init() { - proto.RegisterType((*StorageGroup)(nil), "storagegroup.v2.StorageGroup") + proto.RegisterType((*StorageGroup)(nil), "neo.fs.v2.storagegroup.StorageGroup") } -func init() { proto.RegisterFile("storagegroup/v2/types.proto", fileDescriptor_e6cea1f26229f4f1) } +func init() { proto.RegisterFile("v2/storagegroup/types.proto", fileDescriptor_593772eae6c18cdf) } -var fileDescriptor_e6cea1f26229f4f1 = []byte{ - // 287 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2e, 0x2e, 0xc9, 0x2f, - 0x4a, 0x4c, 0x4f, 0x4d, 0x2f, 0xca, 0x2f, 0x2d, 0xd0, 0x2f, 0x33, 0xd2, 0x2f, 0xa9, 0x2c, 0x48, - 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x47, 0x96, 0xd4, 0x2b, 0x33, 0x92, 0x12, - 0x2e, 0x4a, 0x4d, 0x2b, 0x46, 0x53, 0xa5, 0x74, 0x90, 0x91, 0x8b, 0x27, 0x18, 0xa2, 0xd0, 0x1d, - 0xa4, 0x50, 0xc8, 0x80, 0x4b, 0xa4, 0x2c, 0x31, 0x27, 0x33, 0x25, 0xb1, 0x24, 0x33, 0x3f, 0x2f, - 0x3e, 0x25, 0xb1, 0x24, 0x31, 0xbe, 0x38, 0xb3, 0x2a, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x25, - 0x48, 0x08, 0x21, 0xe7, 0x92, 0x58, 0x92, 0x18, 0x9c, 0x59, 0x95, 0x2a, 0xa4, 0xce, 0xc5, 0x8f, - 0xa4, 0x23, 0x23, 0xb1, 0x38, 0x43, 0x82, 0x49, 0x81, 0x51, 0x83, 0x27, 0x88, 0x0f, 0x21, 0xec, - 0x91, 0x58, 0x9c, 0x21, 0xa4, 0xc9, 0x25, 0x90, 0x5a, 0x51, 0x90, 0x59, 0x04, 0x51, 0x98, 0x5a, - 0x90, 0x9f, 0x9c, 0x21, 0xc1, 0x0c, 0x36, 0x96, 0x1f, 0x21, 0xee, 0x0a, 0x12, 0x16, 0xd2, 0xe6, - 0x62, 0xcf, 0x4d, 0xcd, 0x4d, 0x4a, 0x2d, 0x2a, 0x96, 0x60, 0x51, 0x60, 0xd6, 0xe0, 0x36, 0x12, - 0xd4, 0x03, 0xb9, 0x5e, 0xaf, 0xcc, 0x48, 0xcf, 0x3f, 0x29, 0x2b, 0x35, 0xb9, 0xc4, 0xd3, 0x25, - 0x08, 0xa6, 0xc2, 0x29, 0xe6, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, - 0x63, 0x9c, 0xf1, 0x58, 0x8e, 0x21, 0xca, 0x30, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, - 0x3f, 0x57, 0x3f, 0xaf, 0xb8, 0x20, 0x39, 0x59, 0x37, 0x25, 0xb5, 0x4c, 0x3f, 0x2f, 0x35, 0x3f, - 0xad, 0x58, 0x37, 0xb1, 0x20, 0x53, 0x37, 0x3d, 0x5f, 0x1f, 0x2d, 0xe8, 0x56, 0x31, 0x89, 0xf9, - 0xa5, 0xe6, 0xbb, 0x05, 0xeb, 0x39, 0x06, 0x78, 0xea, 0x21, 0x07, 0x48, 0x12, 0x1b, 0x38, 0xa0, - 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xe8, 0xae, 0xc0, 0x6d, 0x6d, 0x01, 0x00, 0x00, +var fileDescriptor_593772eae6c18cdf = []byte{ + // 293 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0xd0, 0xdf, 0x4a, 0xf3, 0x30, + 0x18, 0x06, 0xf0, 0x2f, 0xdb, 0xf8, 0x84, 0x38, 0x9c, 0x44, 0x19, 0x45, 0xa1, 0x0c, 0x4f, 0x9c, + 0x07, 0x4b, 0xb4, 0x5e, 0x81, 0x32, 0xff, 0xec, 0x44, 0xa5, 0x3d, 0x13, 0x61, 0xa4, 0xed, 0xdb, + 0x36, 0x62, 0x9b, 0x90, 0x64, 0x45, 0x77, 0x25, 0x5e, 0x83, 0x57, 0xb2, 0x43, 0x2f, 0x41, 0xea, + 0x8d, 0x48, 0x37, 0xa4, 0xc5, 0xd3, 0x27, 0xbf, 0xbc, 0xf0, 0x3c, 0xf8, 0xb0, 0xf4, 0x98, 0xb1, + 0x52, 0xf3, 0x14, 0x52, 0x2d, 0x17, 0x8a, 0xd9, 0x37, 0x05, 0x86, 0x2a, 0x2d, 0xad, 0x24, 0xc3, + 0x02, 0x24, 0x4d, 0x0c, 0x2d, 0x3d, 0xda, 0x36, 0x07, 0x7b, 0xa5, 0xc7, 0x34, 0x24, 0xa6, 0x8d, + 0x8f, 0x56, 0x08, 0xf7, 0x83, 0x8d, 0xba, 0xa9, 0x15, 0x39, 0xc5, 0xfb, 0x25, 0x7f, 0x11, 0x31, + 0xb7, 0x42, 0x16, 0xf3, 0x98, 0x5b, 0x3e, 0x37, 0x62, 0x09, 0x0e, 0x1a, 0xa1, 0x71, 0xcf, 0x27, + 0xcd, 0xdb, 0x94, 0x5b, 0x1e, 0x88, 0x25, 0x90, 0x63, 0x3c, 0x68, 0xfd, 0xc8, 0xb8, 0xc9, 0x9c, + 0xce, 0x08, 0x8d, 0xfb, 0xfe, 0x4e, 0x13, 0xdf, 0x72, 0x93, 0x91, 0x13, 0xbc, 0x0b, 0xaf, 0x4a, + 0xe8, 0x0d, 0x04, 0x25, 0xa3, 0xcc, 0xe9, 0xae, 0xcf, 0x0e, 0x9a, 0xfc, 0xaa, 0x8e, 0x89, 0x87, + 0xb7, 0x72, 0xc8, 0x43, 0xd0, 0xc6, 0xe9, 0x8d, 0xba, 0xe3, 0x6d, 0xcf, 0xa1, 0x4d, 0xab, 0xba, + 0x04, 0xbd, 0x0f, 0x9f, 0x21, 0xb2, 0xb3, 0xa9, 0xff, 0x0b, 0x2f, 0x9f, 0x56, 0x95, 0x8b, 0x3e, + 0x2b, 0x17, 0x7d, 0x55, 0x2e, 0x7a, 0xff, 0x76, 0xff, 0x3d, 0x9e, 0xa5, 0xc2, 0x66, 0x8b, 0x90, + 0x46, 0x32, 0x67, 0x85, 0x51, 0x51, 0x34, 0x89, 0xa1, 0x64, 0x05, 0xc8, 0xc4, 0x4c, 0xb8, 0x12, + 0x93, 0x54, 0xb2, 0x3f, 0x43, 0x7e, 0x74, 0x86, 0x77, 0x20, 0xaf, 0x03, 0x7a, 0xf1, 0x30, 0xa3, + 0xed, 0x5d, 0xc2, 0xff, 0xeb, 0xbd, 0xce, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xe7, 0x71, 0xf1, + 0x6b, 0x7b, 0x01, 0x00, 0x00, } func (m *StorageGroup) Marshal() (dAtA []byte, err error) { @@ -367,7 +368,7 @@ func (m *StorageGroup) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Members = append(m.Members, &v2.ObjectID{}) + m.Members = append(m.Members, &refs.ObjectID{}) if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } diff --git a/storagegroup/v2/types.proto b/v2/storagegroup/types.proto similarity index 82% rename from storagegroup/v2/types.proto rename to v2/storagegroup/types.proto index 3d89a67..5086621 100644 --- a/storagegroup/v2/types.proto +++ b/v2/storagegroup/types.proto @@ -1,11 +1,11 @@ syntax = "proto3"; -package storagegroup.v2; +package neo.fs.v2.storagegroup; -option go_package = "github.com/nspcc-dev/neofs-api-go/storagegroup/v2"; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/storagegroup"; option csharp_namespace = "NeoFS.API.StorageGroup"; -import "refs/v2/types.proto"; +import "v2/refs/types.proto"; // StorageGroup groups the information about the NeoFS storage group. // The storage group consists of objects from single container. @@ -26,5 +26,5 @@ message StorageGroup { // Members carries the list of identifiers of the object storage group members. // The list is strictly ordered. - repeated refs.v2.ObjectID members = 4; + repeated neo.fs.v2.refs.ObjectID members = 4; }