Update structure with grpc subdir

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-08-14 19:00:16 +03:00 committed by Stanislav Bogatyrev
parent 6191903326
commit 60e9c3d0d3
40 changed files with 1624 additions and 1595 deletions

View file

@ -16,13 +16,16 @@ cd $API_PATH
ARGS=$(find ./ -name '*.proto' -not -path './vendor/*') ARGS=$(find ./ -name '*.proto' -not -path './vendor/*')
for file in $ARGS; do for file in $ARGS; do
dir=$(dirname $file) dir=$(dirname $file)
cp -r $dir $API_GO_PATH/$prefix mkdir -p $API_GO_PATH/$prefix/$dir/grpc
cp -r $dir/* $API_GO_PATH/$prefix/$dir/grpc
done done
# MODIFY FILES # MODIFY FILES
cd $API_GO_PATH/$prefix cd $API_GO_PATH/$prefix
for file in $ARGS; do ARGS2=$(find ./ -name '*.proto')
sed -i "s/import\ \"\(.*\)\";/import\ \"$prefix\/\1\";/" $file for file in $ARGS2; do
echo $file
sed -i "s/import\ \"\(.*\)\/\(.*\)\.proto\";/import\ \"$prefix\/\1\/grpc\/\2\.proto\";/" $file
done done
cd $API_GO_PATH cd $API_GO_PATH
@ -30,7 +33,7 @@ cd $API_GO_PATH
make protoc make protoc
# REMOVE PROTO DEFINITIONS # REMOVE PROTO DEFINITIONS
ARGS=$(find ./ -name '*.proto' -not -path './vendor/*') ARGS=$(find ./$prefix -name '*.proto' -not -path './vendor/*')
for file in $ARGS; do for file in $ARGS; do
rm $file rm $file
done done

View file

@ -1,18 +1,23 @@
package v2 package accounting
import (
"github.com/nspcc-dev/neofs-api-go/v2/refs"
"github.com/nspcc-dev/neofs-api-go/v2/service"
)
type BalanceRequestBody struct { type BalanceRequestBody struct {
ownerID *OwnerID ownerID *refs.OwnerID
} }
type BalanceRequest struct { type BalanceRequest struct {
body *BalanceRequestBody body *BalanceRequestBody
metaHeader *RequestMetaHeader metaHeader *service.RequestMetaHeader
verifyHeader *RequestVerificationHeader verifyHeader *service.RequestVerificationHeader
} }
func (b *BalanceRequestBody) GetOwnerID() *OwnerID { func (b *BalanceRequestBody) GetOwnerID() *refs.OwnerID {
if b != nil { if b != nil {
return b.ownerID return b.ownerID
} }
@ -20,7 +25,7 @@ func (b *BalanceRequestBody) GetOwnerID() *OwnerID {
return nil return nil
} }
func (b *BalanceRequestBody) SetOwnerID(v *OwnerID) { func (b *BalanceRequestBody) SetOwnerID(v *refs.OwnerID) {
if b != nil { if b != nil {
b.ownerID = v b.ownerID = v
} }
@ -56,7 +61,7 @@ func (b *BalanceRequest) SetBody(v *BalanceRequestBody) {
} }
} }
func (b *BalanceRequest) GetRequestMetaHeader() *RequestMetaHeader { func (b *BalanceRequest) GetRequestMetaHeader() *service.RequestMetaHeader {
if b != nil { if b != nil {
return b.metaHeader return b.metaHeader
} }
@ -64,13 +69,13 @@ func (b *BalanceRequest) GetRequestMetaHeader() *RequestMetaHeader {
return nil return nil
} }
func (b *BalanceRequest) SetRequestMetaHeader(v *RequestMetaHeader) { func (b *BalanceRequest) SetRequestMetaHeader(v *service.RequestMetaHeader) {
if b != nil { if b != nil {
b.metaHeader = v b.metaHeader = v
} }
} }
func (b *BalanceRequest) GetRequestVerificationHeader() *RequestVerificationHeader { func (b *BalanceRequest) GetRequestVerificationHeader() *service.RequestVerificationHeader {
if b != nil { if b != nil {
return b.verifyHeader return b.verifyHeader
} }
@ -78,7 +83,7 @@ func (b *BalanceRequest) GetRequestVerificationHeader() *RequestVerificationHead
return nil return nil
} }
func (b *BalanceRequest) SetRequestVerificationHeader(v *RequestVerificationHeader) { func (b *BalanceRequest) SetRequestVerificationHeader(v *service.RequestVerificationHeader) {
if b != nil { if b != nil {
b.verifyHeader = v b.verifyHeader = v
} }

106
v2/accounting/convert.go Normal file
View file

@ -0,0 +1,106 @@
package accounting
import (
accounting "github.com/nspcc-dev/neofs-api-go/v2/accounting/grpc"
"github.com/nspcc-dev/neofs-api-go/v2/refs"
"github.com/nspcc-dev/neofs-api-go/v2/service"
grpcService "github.com/nspcc-dev/neofs-api-go/v2/service/grpc"
)
func BalanceRequestBodyToGRPCMessage(b *BalanceRequestBody) *accounting.BalanceRequest_Body {
if b == nil {
return nil
}
m := new(accounting.BalanceRequest_Body)
m.SetOwnerId(
refs.OwnerIDToGRPCMessage(b.GetOwnerID()),
)
return m
}
func BalanceRequestBodyFromGRPCMessage(m *accounting.BalanceRequest_Body) *BalanceRequestBody {
if m == nil {
return nil
}
b := new(BalanceRequestBody)
b.SetOwnerID(
refs.OwnerIDFromGRPCMessage(m.GetOwnerId()),
)
return b
}
func headersToGRPC(
src interface {
GetRequestMetaHeader() *service.RequestMetaHeader
GetRequestVerificationHeader() *service.RequestVerificationHeader
},
dst interface {
SetMetaHeader(*grpcService.RequestMetaHeader)
SetVerifyHeader(*grpcService.RequestVerificationHeader)
},
) {
dst.SetMetaHeader(
service.RequestMetaHeaderToGRPCMessage(src.GetRequestMetaHeader()),
)
dst.SetVerifyHeader(
service.RequestVerificationHeaderToGRPCMessage(src.GetRequestVerificationHeader()),
)
}
func headersFromGRPC(
src interface {
GetMetaHeader() *grpcService.RequestMetaHeader
GetVerifyHeader() *grpcService.RequestVerificationHeader
},
dst interface {
SetRequestMetaHeader(*service.RequestMetaHeader)
SetRequestVerificationHeader(*service.RequestVerificationHeader)
},
) {
dst.SetRequestMetaHeader(
service.RequestMetaHeaderFromGRPCMessage(src.GetMetaHeader()),
)
dst.SetRequestVerificationHeader(
service.RequestVerificationHeaderFromGRPCMessage(src.GetVerifyHeader()),
)
}
func BalanceRequestToGRPCMessage(b *BalanceRequest) *accounting.BalanceRequest {
if b == nil {
return nil
}
m := new(accounting.BalanceRequest)
m.SetBody(
BalanceRequestBodyToGRPCMessage(b.GetBody()),
)
headersToGRPC(b, m)
return m
}
func BalanceRequestFromGRPCMessage(m *accounting.BalanceRequest) *BalanceRequest {
if m == nil {
return nil
}
b := new(BalanceRequest)
b.SetBody(
BalanceRequestBodyFromGRPCMessage(m.GetBody()),
)
headersFromGRPC(m, b)
return b
}

View file

@ -1,8 +1,8 @@
package accounting package accounting
import ( import (
"github.com/nspcc-dev/neofs-api-go/v2/refs" refs "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
"github.com/nspcc-dev/neofs-api-go/v2/service" service "github.com/nspcc-dev/neofs-api-go/v2/service/grpc"
) )
// SetValue sets value of the decimal number. // SetValue sets value of the decimal number.

View file

@ -1,5 +1,5 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT. // Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: v2/accounting/service.proto // source: v2/accounting/grpc/service.proto
package accounting package accounting
@ -7,9 +7,9 @@ import (
context "context" context "context"
fmt "fmt" fmt "fmt"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
refs "github.com/nspcc-dev/neofs-api-go/v2/refs" grpc1 "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
service "github.com/nspcc-dev/neofs-api-go/v2/service" grpc "github.com/nspcc-dev/neofs-api-go/v2/service/grpc"
grpc "google.golang.org/grpc" grpc2 "google.golang.org/grpc"
codes "google.golang.org/grpc/codes" codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status" status "google.golang.org/grpc/status"
io "io" io "io"
@ -40,11 +40,11 @@ type BalanceRequest struct {
Body *BalanceRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` Body *BalanceRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
// Carries request meta information. Header data is used only to regulate // Carries request meta information. Header data is used only to regulate
// message transport and does not affect request execution. // message transport and does not affect request execution.
MetaHeader *service.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` MetaHeader *grpc.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"`
// Carries request verification information. This header is used to // Carries request verification information. This header is used to
// authenticate the nodes of the message route and check the correctness // authenticate the nodes of the message route and check the correctness
// of transmission. // of transmission.
VerifyHeader *service.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` VerifyHeader *grpc.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
@ -54,7 +54,7 @@ func (m *BalanceRequest) Reset() { *m = BalanceRequest{} }
func (m *BalanceRequest) String() string { return proto.CompactTextString(m) } func (m *BalanceRequest) String() string { return proto.CompactTextString(m) }
func (*BalanceRequest) ProtoMessage() {} func (*BalanceRequest) ProtoMessage() {}
func (*BalanceRequest) Descriptor() ([]byte, []int) { func (*BalanceRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_484f6b0e24e3172f, []int{0} return fileDescriptor_d9dd5af2ff2bbb25, []int{0}
} }
func (m *BalanceRequest) XXX_Unmarshal(b []byte) error { func (m *BalanceRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -90,14 +90,14 @@ func (m *BalanceRequest) GetBody() *BalanceRequest_Body {
return nil return nil
} }
func (m *BalanceRequest) GetMetaHeader() *service.RequestMetaHeader { func (m *BalanceRequest) GetMetaHeader() *grpc.RequestMetaHeader {
if m != nil { if m != nil {
return m.MetaHeader return m.MetaHeader
} }
return nil return nil
} }
func (m *BalanceRequest) GetVerifyHeader() *service.RequestVerificationHeader { func (m *BalanceRequest) GetVerifyHeader() *grpc.RequestVerificationHeader {
if m != nil { if m != nil {
return m.VerifyHeader return m.VerifyHeader
} }
@ -108,7 +108,7 @@ func (m *BalanceRequest) GetVerifyHeader() *service.RequestVerificationHeader {
type BalanceRequest_Body struct { type BalanceRequest_Body struct {
// Carries user identifier in NeoFS system for which the balance // Carries user identifier in NeoFS system for which the balance
// is requested. // is requested.
OwnerId *refs.OwnerID `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` OwnerId *grpc1.OwnerID `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
@ -118,7 +118,7 @@ func (m *BalanceRequest_Body) Reset() { *m = BalanceRequest_Body{} }
func (m *BalanceRequest_Body) String() string { return proto.CompactTextString(m) } func (m *BalanceRequest_Body) String() string { return proto.CompactTextString(m) }
func (*BalanceRequest_Body) ProtoMessage() {} func (*BalanceRequest_Body) ProtoMessage() {}
func (*BalanceRequest_Body) Descriptor() ([]byte, []int) { func (*BalanceRequest_Body) Descriptor() ([]byte, []int) {
return fileDescriptor_484f6b0e24e3172f, []int{0, 0} return fileDescriptor_d9dd5af2ff2bbb25, []int{0, 0}
} }
func (m *BalanceRequest_Body) XXX_Unmarshal(b []byte) error { func (m *BalanceRequest_Body) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -147,7 +147,7 @@ func (m *BalanceRequest_Body) XXX_DiscardUnknown() {
var xxx_messageInfo_BalanceRequest_Body proto.InternalMessageInfo var xxx_messageInfo_BalanceRequest_Body proto.InternalMessageInfo
func (m *BalanceRequest_Body) GetOwnerId() *refs.OwnerID { func (m *BalanceRequest_Body) GetOwnerId() *grpc1.OwnerID {
if m != nil { if m != nil {
return m.OwnerId return m.OwnerId
} }
@ -169,7 +169,7 @@ func (m *Decimal) Reset() { *m = Decimal{} }
func (m *Decimal) String() string { return proto.CompactTextString(m) } func (m *Decimal) String() string { return proto.CompactTextString(m) }
func (*Decimal) ProtoMessage() {} func (*Decimal) ProtoMessage() {}
func (*Decimal) Descriptor() ([]byte, []int) { func (*Decimal) Descriptor() ([]byte, []int) {
return fileDescriptor_484f6b0e24e3172f, []int{1} return fileDescriptor_d9dd5af2ff2bbb25, []int{1}
} }
func (m *Decimal) XXX_Unmarshal(b []byte) error { func (m *Decimal) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -220,11 +220,11 @@ type BalanceResponse struct {
Body *BalanceResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` Body *BalanceResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
// Carries response meta information. Header data is used only to regulate // Carries response meta information. Header data is used only to regulate
// message transport and does not affect request execution. // message transport and does not affect request execution.
MetaHeader *service.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` MetaHeader *grpc.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"`
// Carries response verification information. This header is used to // Carries response verification information. This header is used to
// authenticate the nodes of the message route and check the correctness // authenticate the nodes of the message route and check the correctness
// of transmission. // of transmission.
VerifyHeader *service.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` VerifyHeader *grpc.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
@ -234,7 +234,7 @@ func (m *BalanceResponse) Reset() { *m = BalanceResponse{} }
func (m *BalanceResponse) String() string { return proto.CompactTextString(m) } func (m *BalanceResponse) String() string { return proto.CompactTextString(m) }
func (*BalanceResponse) ProtoMessage() {} func (*BalanceResponse) ProtoMessage() {}
func (*BalanceResponse) Descriptor() ([]byte, []int) { func (*BalanceResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_484f6b0e24e3172f, []int{2} return fileDescriptor_d9dd5af2ff2bbb25, []int{2}
} }
func (m *BalanceResponse) XXX_Unmarshal(b []byte) error { func (m *BalanceResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -270,14 +270,14 @@ func (m *BalanceResponse) GetBody() *BalanceResponse_Body {
return nil return nil
} }
func (m *BalanceResponse) GetMetaHeader() *service.ResponseMetaHeader { func (m *BalanceResponse) GetMetaHeader() *grpc.ResponseMetaHeader {
if m != nil { if m != nil {
return m.MetaHeader return m.MetaHeader
} }
return nil return nil
} }
func (m *BalanceResponse) GetVerifyHeader() *service.ResponseVerificationHeader { func (m *BalanceResponse) GetVerifyHeader() *grpc.ResponseVerificationHeader {
if m != nil { if m != nil {
return m.VerifyHeader return m.VerifyHeader
} }
@ -297,7 +297,7 @@ func (m *BalanceResponse_Body) Reset() { *m = BalanceResponse_Body{} }
func (m *BalanceResponse_Body) String() string { return proto.CompactTextString(m) } func (m *BalanceResponse_Body) String() string { return proto.CompactTextString(m) }
func (*BalanceResponse_Body) ProtoMessage() {} func (*BalanceResponse_Body) ProtoMessage() {}
func (*BalanceResponse_Body) Descriptor() ([]byte, []int) { func (*BalanceResponse_Body) Descriptor() ([]byte, []int) {
return fileDescriptor_484f6b0e24e3172f, []int{2, 0} return fileDescriptor_d9dd5af2ff2bbb25, []int{2, 0}
} }
func (m *BalanceResponse_Body) XXX_Unmarshal(b []byte) error { func (m *BalanceResponse_Body) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -341,67 +341,67 @@ func init() {
proto.RegisterType((*BalanceResponse_Body)(nil), "neo.fs.v2.accounting.BalanceResponse.Body") proto.RegisterType((*BalanceResponse_Body)(nil), "neo.fs.v2.accounting.BalanceResponse.Body")
} }
func init() { proto.RegisterFile("v2/accounting/service.proto", fileDescriptor_484f6b0e24e3172f) } func init() { proto.RegisterFile("v2/accounting/grpc/service.proto", fileDescriptor_d9dd5af2ff2bbb25) }
var fileDescriptor_484f6b0e24e3172f = []byte{ var fileDescriptor_d9dd5af2ff2bbb25 = []byte{
// 472 bytes of a gzipped FileDescriptorProto // 478 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xdf, 0x6e, 0xd3, 0x30, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0x6e, 0x13, 0x31,
0x18, 0xc5, 0x49, 0x37, 0x28, 0x78, 0x0c, 0x84, 0x19, 0xea, 0x54, 0xa0, 0x42, 0xd5, 0x26, 0x01, 0x18, 0xc5, 0x99, 0xb4, 0x10, 0x70, 0x29, 0x08, 0xab, 0x52, 0xa3, 0x51, 0x89, 0xaa, 0xa8, 0x95,
0xa2, 0x8e, 0x14, 0x2e, 0x90, 0x86, 0x06, 0x5a, 0x35, 0x26, 0x7a, 0xc1, 0xbf, 0x4c, 0xda, 0x05, 0x00, 0x11, 0x8f, 0x34, 0x2c, 0x90, 0x40, 0xa5, 0x6a, 0x54, 0x2a, 0xb2, 0xe0, 0xdf, 0x54, 0xea,
0x37, 0x93, 0xeb, 0x7c, 0xe9, 0x2c, 0x5a, 0x3b, 0xc4, 0xae, 0x51, 0xdf, 0x84, 0x17, 0xe0, 0x86, 0x82, 0x4d, 0xe5, 0x78, 0xbe, 0xa4, 0x56, 0x13, 0x7b, 0x18, 0x3b, 0x46, 0xb9, 0x09, 0x17, 0x60,
0x0b, 0x9e, 0x83, 0x4b, 0x1e, 0x01, 0x95, 0x17, 0x41, 0xb1, 0xdd, 0x36, 0x95, 0xb2, 0xad, 0x77, 0xc3, 0x82, 0x73, 0xb0, 0xe4, 0x08, 0x28, 0x5c, 0x04, 0x8d, 0xed, 0x64, 0x52, 0x98, 0xb6, 0xd9,
0xb1, 0x7d, 0xce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0xa3, 0x7f, 0xcd, 0xbe, 0xb9, 0xe7, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0x20, 0x8f, 0x8e, 0xc9, 0xc1, 0x87, 0x6e, 0x71, 0x79, 0xd9, 0xa5, 0x77, 0xcb, 0x3e, 0xbc, 0x67,
0x1e, 0x24, 0x48, 0xec, 0xed, 0x03, 0x00, 0x00, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x34, 0x56, 0xa2, 0x45, 0x06, 0x04, 0x00, 0x00,
} }
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var _ context.Context var _ context.Context
var _ grpc.ClientConn var _ grpc2.ClientConn
// This is a compile-time assertion to ensure that this generated file // This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against. // is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4 const _ = grpc2.SupportPackageIsVersion4
// AccountingServiceClient is the client API for AccountingService service. // AccountingServiceClient is the client API for AccountingService service.
// //
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type AccountingServiceClient interface { type AccountingServiceClient interface {
// Returns the amount of funds for the requested NeoFS account. // Returns the amount of funds for the requested NeoFS account.
Balance(ctx context.Context, in *BalanceRequest, opts ...grpc.CallOption) (*BalanceResponse, error) Balance(ctx context.Context, in *BalanceRequest, opts ...grpc2.CallOption) (*BalanceResponse, error)
} }
type accountingServiceClient struct { type accountingServiceClient struct {
cc *grpc.ClientConn cc *grpc2.ClientConn
} }
func NewAccountingServiceClient(cc *grpc.ClientConn) AccountingServiceClient { func NewAccountingServiceClient(cc *grpc2.ClientConn) AccountingServiceClient {
return &accountingServiceClient{cc} return &accountingServiceClient{cc}
} }
func (c *accountingServiceClient) Balance(ctx context.Context, in *BalanceRequest, opts ...grpc.CallOption) (*BalanceResponse, error) { func (c *accountingServiceClient) Balance(ctx context.Context, in *BalanceRequest, opts ...grpc2.CallOption) (*BalanceResponse, error) {
out := new(BalanceResponse) out := new(BalanceResponse)
err := c.cc.Invoke(ctx, "/neo.fs.v2.accounting.AccountingService/Balance", in, out, opts...) err := c.cc.Invoke(ctx, "/neo.fs.v2.accounting.AccountingService/Balance", in, out, opts...)
if err != nil { if err != nil {
@ -424,11 +424,11 @@ func (*UnimplementedAccountingServiceServer) Balance(ctx context.Context, req *B
return nil, status.Errorf(codes.Unimplemented, "method Balance not implemented") return nil, status.Errorf(codes.Unimplemented, "method Balance not implemented")
} }
func RegisterAccountingServiceServer(s *grpc.Server, srv AccountingServiceServer) { func RegisterAccountingServiceServer(s *grpc2.Server, srv AccountingServiceServer) {
s.RegisterService(&_AccountingService_serviceDesc, srv) s.RegisterService(&_AccountingService_serviceDesc, srv)
} }
func _AccountingService_Balance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _AccountingService_Balance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc2.UnaryServerInterceptor) (interface{}, error) {
in := new(BalanceRequest) in := new(BalanceRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
@ -436,7 +436,7 @@ func _AccountingService_Balance_Handler(srv interface{}, ctx context.Context, de
if interceptor == nil { if interceptor == nil {
return srv.(AccountingServiceServer).Balance(ctx, in) return srv.(AccountingServiceServer).Balance(ctx, in)
} }
info := &grpc.UnaryServerInfo{ info := &grpc2.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/neo.fs.v2.accounting.AccountingService/Balance", FullMethod: "/neo.fs.v2.accounting.AccountingService/Balance",
} }
@ -446,17 +446,17 @@ func _AccountingService_Balance_Handler(srv interface{}, ctx context.Context, de
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
var _AccountingService_serviceDesc = grpc.ServiceDesc{ var _AccountingService_serviceDesc = grpc2.ServiceDesc{
ServiceName: "neo.fs.v2.accounting.AccountingService", ServiceName: "neo.fs.v2.accounting.AccountingService",
HandlerType: (*AccountingServiceServer)(nil), HandlerType: (*AccountingServiceServer)(nil),
Methods: []grpc.MethodDesc{ Methods: []grpc2.MethodDesc{
{ {
MethodName: "Balance", MethodName: "Balance",
Handler: _AccountingService_Balance_Handler, Handler: _AccountingService_Balance_Handler,
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc2.StreamDesc{},
Metadata: "v2/accounting/service.proto", Metadata: "v2/accounting/grpc/service.proto",
} }
func (m *BalanceRequest) Marshal() (dAtA []byte, err error) { func (m *BalanceRequest) Marshal() (dAtA []byte, err error) {
@ -910,7 +910,7 @@ func (m *BalanceRequest) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.MetaHeader == nil { if m.MetaHeader == nil {
m.MetaHeader = &service.RequestMetaHeader{} m.MetaHeader = &grpc.RequestMetaHeader{}
} }
if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
@ -946,7 +946,7 @@ func (m *BalanceRequest) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.VerifyHeader == nil { if m.VerifyHeader == nil {
m.VerifyHeader = &service.RequestVerificationHeader{} m.VerifyHeader = &grpc.RequestVerificationHeader{}
} }
if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
@ -1036,7 +1036,7 @@ func (m *BalanceRequest_Body) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.OwnerId == nil { if m.OwnerId == nil {
m.OwnerId = &refs.OwnerID{} m.OwnerId = &grpc1.OwnerID{}
} }
if err := m.OwnerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.OwnerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
@ -1254,7 +1254,7 @@ func (m *BalanceResponse) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.MetaHeader == nil { if m.MetaHeader == nil {
m.MetaHeader = &service.ResponseMetaHeader{} m.MetaHeader = &grpc.ResponseMetaHeader{}
} }
if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
@ -1290,7 +1290,7 @@ func (m *BalanceResponse) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.VerifyHeader == nil { if m.VerifyHeader == nil {
m.VerifyHeader = &service.ResponseVerificationHeader{} m.VerifyHeader = &grpc.ResponseVerificationHeader{}
} }
if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err

View file

@ -1,7 +1,7 @@
package acl package acl
import ( import (
"github.com/nspcc-dev/neofs-api-go/v2/refs" refs "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
) )
// SetContainerId sets container identifier of the eACL table. // SetContainerId sets container identifier of the eACL table.

View file

@ -1,12 +1,12 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT. // Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: v2/acl/types.proto // source: v2/acl/grpc/types.proto
package acl package acl
import ( import (
fmt "fmt" fmt "fmt"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
refs "github.com/nspcc-dev/neofs-api-go/v2/refs" grpc "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
io "io" io "io"
math "math" math "math"
math_bits "math/bits" math_bits "math/bits"
@ -57,7 +57,7 @@ func (x Target) String() string {
} }
func (Target) EnumDescriptor() ([]byte, []int) { func (Target) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_d237ab7979f0d6cf, []int{0} return fileDescriptor_8233b6696fb3e24f, []int{0}
} }
// Operation is an enumeration of operation types. // Operation is an enumeration of operation types.
@ -109,7 +109,7 @@ func (x EACLRecord_Operation) String() string {
} }
func (EACLRecord_Operation) EnumDescriptor() ([]byte, []int) { func (EACLRecord_Operation) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_d237ab7979f0d6cf, []int{0, 0} return fileDescriptor_8233b6696fb3e24f, []int{0, 0}
} }
// Action is an enumeration of EACL actions. // Action is an enumeration of EACL actions.
@ -141,7 +141,7 @@ func (x EACLRecord_Action) String() string {
} }
func (EACLRecord_Action) EnumDescriptor() ([]byte, []int) { func (EACLRecord_Action) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_d237ab7979f0d6cf, []int{0, 1} return fileDescriptor_8233b6696fb3e24f, []int{0, 1}
} }
// Header is an enumeration of filtering header types. // Header is an enumeration of filtering header types.
@ -173,7 +173,7 @@ func (x EACLRecord_FilterInfo_Header) String() string {
} }
func (EACLRecord_FilterInfo_Header) EnumDescriptor() ([]byte, []int) { func (EACLRecord_FilterInfo_Header) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_d237ab7979f0d6cf, []int{0, 0, 0} return fileDescriptor_8233b6696fb3e24f, []int{0, 0, 0}
} }
// MatchType is an enumeration of match types. // MatchType is an enumeration of match types.
@ -205,7 +205,7 @@ func (x EACLRecord_FilterInfo_MatchType) String() string {
} }
func (EACLRecord_FilterInfo_MatchType) EnumDescriptor() ([]byte, []int) { func (EACLRecord_FilterInfo_MatchType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_d237ab7979f0d6cf, []int{0, 0, 1} return fileDescriptor_8233b6696fb3e24f, []int{0, 0, 1}
} }
// EACLRecord groups information about extended ACL rule. // EACLRecord groups information about extended ACL rule.
@ -227,7 +227,7 @@ func (m *EACLRecord) Reset() { *m = EACLRecord{} }
func (m *EACLRecord) String() string { return proto.CompactTextString(m) } func (m *EACLRecord) String() string { return proto.CompactTextString(m) }
func (*EACLRecord) ProtoMessage() {} func (*EACLRecord) ProtoMessage() {}
func (*EACLRecord) Descriptor() ([]byte, []int) { func (*EACLRecord) Descriptor() ([]byte, []int) {
return fileDescriptor_d237ab7979f0d6cf, []int{0} return fileDescriptor_8233b6696fb3e24f, []int{0}
} }
func (m *EACLRecord) XXX_Unmarshal(b []byte) error { func (m *EACLRecord) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -303,7 +303,7 @@ func (m *EACLRecord_FilterInfo) Reset() { *m = EACLRecord_FilterInfo{} }
func (m *EACLRecord_FilterInfo) String() string { return proto.CompactTextString(m) } func (m *EACLRecord_FilterInfo) String() string { return proto.CompactTextString(m) }
func (*EACLRecord_FilterInfo) ProtoMessage() {} func (*EACLRecord_FilterInfo) ProtoMessage() {}
func (*EACLRecord_FilterInfo) Descriptor() ([]byte, []int) { func (*EACLRecord_FilterInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_d237ab7979f0d6cf, []int{0, 0} return fileDescriptor_8233b6696fb3e24f, []int{0, 0}
} }
func (m *EACLRecord_FilterInfo) XXX_Unmarshal(b []byte) error { func (m *EACLRecord_FilterInfo) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -375,7 +375,7 @@ func (m *EACLRecord_TargetInfo) Reset() { *m = EACLRecord_TargetInfo{} }
func (m *EACLRecord_TargetInfo) String() string { return proto.CompactTextString(m) } func (m *EACLRecord_TargetInfo) String() string { return proto.CompactTextString(m) }
func (*EACLRecord_TargetInfo) ProtoMessage() {} func (*EACLRecord_TargetInfo) ProtoMessage() {}
func (*EACLRecord_TargetInfo) Descriptor() ([]byte, []int) { func (*EACLRecord_TargetInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_d237ab7979f0d6cf, []int{0, 1} return fileDescriptor_8233b6696fb3e24f, []int{0, 1}
} }
func (m *EACLRecord_TargetInfo) XXX_Unmarshal(b []byte) error { func (m *EACLRecord_TargetInfo) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -422,7 +422,7 @@ func (m *EACLRecord_TargetInfo) GetKeyList() [][]byte {
type EACLTable struct { type EACLTable struct {
// Carries identifier of the container that should use given // Carries identifier of the container that should use given
// access control rules. // access control rules.
ContainerId *refs.ContainerID `protobuf:"bytes,1,opt,name=container_id,json=ContainerID,proto3" json:"container_id,omitempty"` ContainerId *grpc.ContainerID `protobuf:"bytes,1,opt,name=container_id,json=ContainerID,proto3" json:"container_id,omitempty"`
// Records carries list of extended ACL rule records. // Records carries list of extended ACL rule records.
Records []*EACLRecord `protobuf:"bytes,2,rep,name=records,json=Records,proto3" json:"records,omitempty"` Records []*EACLRecord `protobuf:"bytes,2,rep,name=records,json=Records,proto3" json:"records,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
@ -434,7 +434,7 @@ func (m *EACLTable) Reset() { *m = EACLTable{} }
func (m *EACLTable) String() string { return proto.CompactTextString(m) } func (m *EACLTable) String() string { return proto.CompactTextString(m) }
func (*EACLTable) ProtoMessage() {} func (*EACLTable) ProtoMessage() {}
func (*EACLTable) Descriptor() ([]byte, []int) { func (*EACLTable) Descriptor() ([]byte, []int) {
return fileDescriptor_d237ab7979f0d6cf, []int{1} return fileDescriptor_8233b6696fb3e24f, []int{1}
} }
func (m *EACLTable) XXX_Unmarshal(b []byte) error { func (m *EACLTable) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -463,7 +463,7 @@ func (m *EACLTable) XXX_DiscardUnknown() {
var xxx_messageInfo_EACLTable proto.InternalMessageInfo var xxx_messageInfo_EACLTable proto.InternalMessageInfo
func (m *EACLTable) GetContainerId() *refs.ContainerID { func (m *EACLTable) GetContainerId() *grpc.ContainerID {
if m != nil { if m != nil {
return m.ContainerId return m.ContainerId
} }
@ -489,54 +489,55 @@ func init() {
proto.RegisterType((*EACLTable)(nil), "neo.fs.v2.acl.EACLTable") proto.RegisterType((*EACLTable)(nil), "neo.fs.v2.acl.EACLTable")
} }
func init() { proto.RegisterFile("v2/acl/types.proto", fileDescriptor_d237ab7979f0d6cf) } func init() { proto.RegisterFile("v2/acl/grpc/types.proto", fileDescriptor_8233b6696fb3e24f) }
var fileDescriptor_d237ab7979f0d6cf = []byte{ var fileDescriptor_8233b6696fb3e24f = []byte{
// 703 bytes of a gzipped FileDescriptorProto // 710 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xd1, 0x6e, 0xda, 0x3c, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xd1, 0x6e, 0xda, 0x3a,
0x18, 0x6d, 0x42, 0x1a, 0xe0, 0x83, 0xff, 0x97, 0xe5, 0xad, 0x88, 0x32, 0x09, 0x21, 0xb6, 0x0b, 0x18, 0x6e, 0x42, 0x1a, 0xe0, 0x87, 0x73, 0x64, 0x59, 0xa7, 0x1c, 0xca, 0x91, 0x10, 0xe2, 0xec,
0xb4, 0xae, 0x41, 0xa2, 0x9a, 0xb4, 0x69, 0x52, 0xa5, 0x14, 0x5c, 0x60, 0x83, 0x00, 0x8e, 0xd9, 0x02, 0xad, 0x6a, 0xd0, 0xa8, 0x26, 0x6d, 0x9a, 0x54, 0x29, 0x05, 0x17, 0xd8, 0x20, 0x50, 0xc7,
0xd4, 0xdd, 0xa0, 0x34, 0x98, 0x16, 0x2d, 0x24, 0x28, 0x49, 0x91, 0xd8, 0xd5, 0x1e, 0x63, 0xcf, 0x74, 0xea, 0x6e, 0x50, 0x1a, 0x0c, 0x45, 0x0b, 0x09, 0x4a, 0x52, 0x24, 0x76, 0xb5, 0xc7, 0xd8,
0xb0, 0x27,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x8c, 0x74, 0x91, 0x1c, 0xa5, 0x83, 0xb5, 0x08, 0x35, 0x51, 0xe2, 0xe4,
0x51, 0xfa, 0x7e, 0x5d, 0x94, 0x3e, 0xff, 0x28, 0xee, 0xbc, 0x7f, 0x76, 0x31, 0x0d, 0x2f, 0xaf, 0xfc, 0xd3, 0x4d, 0x51, 0xfa, 0x7c, 0x53, 0x94, 0xbe, 0xdc, 0x14, 0xa5, 0x0f, 0x5f, 0x8b, 0x3b,
0xce, 0x35, 0xdb, 0x9b, 0x55, 0xdd, 0x60, 0x6e, 0xdb, 0x87, 0x63, 0xbe, 0xa8, 0xba, 0xdc, 0x9b, 0x6f, 0x9e, 0x4c, 0xa6, 0xe1, 0xd5, 0xf5, 0xa5, 0x66, 0x7b, 0xb3, 0xaa, 0x1b, 0xcc, 0x6d, 0xfb,
0x04, 0x87, 0xd6, 0x7c, 0x7a, 0x78, 0xe1, 0x55, 0xe3, 0xd7, 0xea, 0x95, 0x65, 0x3b, 0x5f, 0x64, 0x70, 0xc4, 0x17, 0x55, 0x97, 0x7b, 0xe3, 0xe0, 0xd0, 0x9a, 0x4f, 0x0f, 0x27, 0x5e, 0x75, 0xe3,
0x64, 0x70, 0xef, 0xd4, 0xd4, 0xf4, 0x7e, 0x5b, 0x48, 0xd5, 0x6d, 0xe7, 0x5c, 0x8d, 0xde, 0xa6, 0xdd, 0x7a, 0x61, 0xd9, 0xce, 0x47, 0x19, 0x19, 0xdc, 0x3b, 0x35, 0x35, 0xbd, 0xdf, 0x16, 0x7a,
0xa3, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xaa, 0x0d, 0x90, 0x3a, 0xd5, 0x04, 0x00, 0x00, 0x75, 0xdb, 0xb9, 0x54, 0xa3, 0x07, 0xea, 0xe8, 0x47, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x1c,
0x01, 0xad, 0xe4, 0x04, 0x00, 0x00,
} }
func (m *EACLRecord) Marshal() (dAtA []byte, err error) { func (m *EACLRecord) Marshal() (dAtA []byte, err error) {
@ -1345,7 +1346,7 @@ func (m *EACLTable) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.ContainerId == nil { if m.ContainerId == nil {
m.ContainerId = &refs.ContainerID{} m.ContainerId = &grpc.ContainerID{}
} }
if err := m.ContainerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.ContainerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err

View file

@ -3,8 +3,8 @@ package container
import ( import (
"testing" "testing"
"github.com/nspcc-dev/neofs-api-go/v2/netmap" netmap "github.com/nspcc-dev/neofs-api-go/v2/netmap/grpc"
"github.com/nspcc-dev/neofs-api-go/v2/refs" refs "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -1,9 +1,9 @@
package container package container
import ( import (
"github.com/nspcc-dev/neofs-api-go/v2/acl" acl "github.com/nspcc-dev/neofs-api-go/v2/acl/grpc"
"github.com/nspcc-dev/neofs-api-go/v2/refs" refs "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
"github.com/nspcc-dev/neofs-api-go/v2/service" service "github.com/nspcc-dev/neofs-api-go/v2/service/grpc"
) )
// SetContainer sets container of the request. // SetContainer sets container of the request.

View file

@ -1,8 +1,8 @@
package container package container
import ( import (
"github.com/nspcc-dev/neofs-api-go/v2/netmap" netmap "github.com/nspcc-dev/neofs-api-go/v2/netmap/grpc"
"github.com/nspcc-dev/neofs-api-go/v2/refs" refs "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
) )
// SetKey sets key to the container attribute. // SetKey sets key to the container attribute.

View file

@ -1,13 +1,13 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT. // Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: v2/container/types.proto // source: v2/container/grpc/types.proto
package container package container
import ( import (
fmt "fmt" fmt "fmt"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
netmap "github.com/nspcc-dev/neofs-api-go/v2/netmap" grpc1 "github.com/nspcc-dev/neofs-api-go/v2/netmap/grpc"
refs "github.com/nspcc-dev/neofs-api-go/v2/refs" grpc "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
io "io" io "io"
math "math" math "math"
math_bits "math/bits" math_bits "math/bits"
@ -30,7 +30,7 @@ const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// SHA256 hash of stable-marshalled container message. // SHA256 hash of stable-marshalled container message.
type Container struct { type Container struct {
// OwnerID carries identifier of the container owner. // OwnerID carries identifier of the container owner.
OwnerId *refs.OwnerID `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` OwnerId *grpc.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 is a 16 byte UUID, used to avoid collisions of container id.
Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
// BasicACL contains access control rules for owner, system, others groups and // BasicACL contains access control rules for owner, system, others groups and
@ -39,7 +39,7 @@ type Container struct {
// Attributes define any immutable characteristics of container. // Attributes define any immutable characteristics of container.
Attributes []*Container_Attribute `protobuf:"bytes,4,rep,name=attributes,proto3" json:"attributes,omitempty"` Attributes []*Container_Attribute `protobuf:"bytes,4,rep,name=attributes,proto3" json:"attributes,omitempty"`
// Placement policy for the object inside the container. // Placement policy for the object inside the container.
PlacementPolicy *netmap.PlacementPolicy `protobuf:"bytes,5,opt,name=placement_policy,json=placementPolicy,proto3" json:"placement_policy,omitempty"` PlacementPolicy *grpc1.PlacementPolicy `protobuf:"bytes,5,opt,name=placement_policy,json=placementPolicy,proto3" json:"placement_policy,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
@ -49,7 +49,7 @@ func (m *Container) Reset() { *m = Container{} }
func (m *Container) String() string { return proto.CompactTextString(m) } func (m *Container) String() string { return proto.CompactTextString(m) }
func (*Container) ProtoMessage() {} func (*Container) ProtoMessage() {}
func (*Container) Descriptor() ([]byte, []int) { func (*Container) Descriptor() ([]byte, []int) {
return fileDescriptor_ece71f25e6ae314e, []int{0} return fileDescriptor_3bfd95a81c72c35c, []int{0}
} }
func (m *Container) XXX_Unmarshal(b []byte) error { func (m *Container) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -78,7 +78,7 @@ func (m *Container) XXX_DiscardUnknown() {
var xxx_messageInfo_Container proto.InternalMessageInfo var xxx_messageInfo_Container proto.InternalMessageInfo
func (m *Container) GetOwnerId() *refs.OwnerID { func (m *Container) GetOwnerId() *grpc.OwnerID {
if m != nil { if m != nil {
return m.OwnerId return m.OwnerId
} }
@ -106,7 +106,7 @@ func (m *Container) GetAttributes() []*Container_Attribute {
return nil return nil
} }
func (m *Container) GetPlacementPolicy() *netmap.PlacementPolicy { func (m *Container) GetPlacementPolicy() *grpc1.PlacementPolicy {
if m != nil { if m != nil {
return m.PlacementPolicy return m.PlacementPolicy
} }
@ -128,7 +128,7 @@ func (m *Container_Attribute) Reset() { *m = Container_Attribute{} }
func (m *Container_Attribute) String() string { return proto.CompactTextString(m) } func (m *Container_Attribute) String() string { return proto.CompactTextString(m) }
func (*Container_Attribute) ProtoMessage() {} func (*Container_Attribute) ProtoMessage() {}
func (*Container_Attribute) Descriptor() ([]byte, []int) { func (*Container_Attribute) Descriptor() ([]byte, []int) {
return fileDescriptor_ece71f25e6ae314e, []int{0, 0} return fileDescriptor_3bfd95a81c72c35c, []int{0, 0}
} }
func (m *Container_Attribute) XXX_Unmarshal(b []byte) error { func (m *Container_Attribute) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -176,33 +176,33 @@ func init() {
proto.RegisterType((*Container_Attribute)(nil), "neo.fs.v2.container.Container.Attribute") proto.RegisterType((*Container_Attribute)(nil), "neo.fs.v2.container.Container.Attribute")
} }
func init() { proto.RegisterFile("v2/container/types.proto", fileDescriptor_ece71f25e6ae314e) } func init() { proto.RegisterFile("v2/container/grpc/types.proto", fileDescriptor_3bfd95a81c72c35c) }
var fileDescriptor_ece71f25e6ae314e = []byte{ var fileDescriptor_3bfd95a81c72c35c = []byte{
// 357 bytes of a gzipped FileDescriptorProto // 363 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x51, 0xcd, 0x4a, 0xc3, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x51, 0xc1, 0x4e, 0xea, 0x40,
0x10, 0x36, 0xad, 0xd5, 0x66, 0xab, 0x58, 0x52, 0x7f, 0x42, 0x85, 0x10, 0x3d, 0xe5, 0xd2, 0x0d, 0x14, 0x7d, 0x85, 0xc7, 0x7b, 0x74, 0xd0, 0x48, 0xaa, 0xd1, 0xa6, 0xc6, 0xa6, 0xba, 0xea, 0x86,
0xa4, 0x17, 0xc1, 0x53, 0x55, 0xc4, 0x82, 0x68, 0x89, 0x37, 0x2f, 0x65, 0xb3, 0x9d, 0xd6, 0xc5, 0x99, 0xa4, 0x2c, 0x8d, 0x0b, 0xd4, 0x18, 0x49, 0x8c, 0x92, 0xba, 0x73, 0x43, 0xa6, 0xc3, 0x05,
0x74, 0x77, 0xc9, 0x6e, 0x23, 0x7d, 0x13, 0x9f, 0xc1, 0x97, 0xf0, 0xea, 0xd1, 0x47, 0x90, 0xfa, 0x1a, 0xcb, 0xcc, 0xa4, 0x33, 0xd4, 0xf0, 0x27, 0x7e, 0x83, 0x3f,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 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x38, 0xf7, 0x99, 0xea, 0x1e, 0xf7, 0x06, 0xfd, 0x5c, 0x7c, 0x15, 0x41, 0xf4, 0xaf, 0x38, 0x59, 0xf7, 0x2b, 0x00,
0x45, 0x0a, 0x02, 0x00, 0x00, 0x00, 0xff, 0xff, 0x83, 0x61, 0x0e, 0xc4, 0x1e, 0x02, 0x00, 0x00,
} }
func (m *Container) Marshal() (dAtA []byte, err error) { func (m *Container) Marshal() (dAtA []byte, err error) {
@ -452,7 +452,7 @@ func (m *Container) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.OwnerId == nil { if m.OwnerId == nil {
m.OwnerId = &refs.OwnerID{} m.OwnerId = &grpc.OwnerID{}
} }
if err := m.OwnerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.OwnerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
@ -575,7 +575,7 @@ func (m *Container) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.PlacementPolicy == nil { if m.PlacementPolicy == nil {
m.PlacementPolicy = &netmap.PlacementPolicy{} m.PlacementPolicy = &grpc1.PlacementPolicy{}
} }
if err := m.PlacementPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.PlacementPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err

View file

@ -1,351 +1 @@
package v2 package v2
import (
"github.com/nspcc-dev/neofs-api-go/v2/accounting"
"github.com/nspcc-dev/neofs-api-go/v2/refs"
"github.com/nspcc-dev/neofs-api-go/v2/service"
)
func SignatureToGRPCMessage(s *Signature) *service.Signature {
if s == nil {
return nil
}
m := new(service.Signature)
m.SetKey(s.GetKey())
m.SetSign(s.GetSign())
return m
}
func SignatureFromGRPCMessage(m *service.Signature) *Signature {
if m == nil {
return nil
}
s := new(Signature)
s.SetKey(m.GetKey())
s.SetSign(m.GetSign())
return s
}
func VersionToGRPCMessage(v *Version) *service.Version {
if v == nil {
return nil
}
msg := new(service.Version)
msg.SetMajor(v.GetMajor())
msg.SetMinor(v.GetMinor())
return msg
}
func VersionFromGRPCMessage(m *service.Version) *Version {
if m == nil {
return nil
}
v := new(Version)
v.SetMajor(m.GetMajor())
v.SetMinor(m.GetMinor())
return v
}
func XHeaderToGRPCMessage(x *XHeader) *service.XHeader {
if x == nil {
return nil
}
m := new(service.XHeader)
m.SetKey(x.GetKey())
m.SetValue(x.GetValue())
return m
}
func XHeaderFromGRPCMessage(m *service.XHeader) *XHeader {
if m == nil {
return nil
}
x := new(XHeader)
x.SetKey(m.GetKey())
x.SetValue(m.GetValue())
return x
}
func SessionTokenToGRPCMessage(t *SessionToken) *service.SessionToken {
// TODO: fill me
return nil
}
func SessionTokenFromGRPCMessage(m *service.SessionToken) *SessionToken {
// TODO: fill me
return nil
}
func BearerTokenToGRPCMessage(t *BearerToken) *service.BearerToken {
// TODO: fill me
return nil
}
func BearerTokenFromGRPCMessage(m *service.BearerToken) *BearerToken {
// TODO: fill me
return nil
}
func RequestVerificationHeaderToGRPCMessage(r *RequestVerificationHeader) *service.RequestVerificationHeader {
if r == nil {
return nil
}
m := new(service.RequestVerificationHeader)
m.SetBodySignature(
SignatureToGRPCMessage(r.GetBodySignature()),
)
m.SetMetaSignature(
SignatureToGRPCMessage(r.GetMetaSignature()),
)
m.SetOriginSignature(
SignatureToGRPCMessage(r.GetOriginSignature()),
)
m.SetOrigin(
RequestVerificationHeaderToGRPCMessage(r.GetOrigin()),
)
return m
}
func RequestVerificationHeaderFromGRPCMessage(m *service.RequestVerificationHeader) *RequestVerificationHeader {
if m == nil {
return nil
}
r := new(RequestVerificationHeader)
r.SetBodySignature(
SignatureFromGRPCMessage(m.GetBodySignature()),
)
r.SetMetaSignature(
SignatureFromGRPCMessage(m.GetMetaSignature()),
)
r.SetOriginSignature(
SignatureFromGRPCMessage(m.GetOriginSignature()),
)
r.SetOrigin(
RequestVerificationHeaderFromGRPCMessage(m.GetOrigin()),
)
return r
}
func RequestMetaHeaderToGRPCMessage(r *RequestMetaHeader) *service.RequestMetaHeader {
if r == nil {
return nil
}
m := new(service.RequestMetaHeader)
m.SetTtl(r.GetTTL())
m.SetEpoch(r.GetEpoch())
m.SetVersion(
VersionToGRPCMessage(r.GetVersion()),
)
m.SetSessionToken(
SessionTokenToGRPCMessage(r.GetSessionToken()),
)
m.SetBearerToken(
BearerTokenToGRPCMessage(r.GetBearerToken()),
)
m.SetOrigin(
RequestMetaHeaderToGRPCMessage(r.GetOrigin()),
)
xHeaders := r.GetXHeaders()
xHdrMsg := make([]*service.XHeader, 0, len(xHeaders))
for i := range xHeaders {
xHdrMsg = append(xHdrMsg, XHeaderToGRPCMessage(xHeaders[i]))
}
return m
}
func RequestMetaHeaderFromGRPCMessage(m *service.RequestMetaHeader) *RequestMetaHeader {
if m == nil {
return nil
}
r := new(RequestMetaHeader)
r.SetTTL(m.GetTtl())
r.SetEpoch(m.GetEpoch())
r.SetVersion(
VersionFromGRPCMessage(m.GetVersion()),
)
r.SetSessionToken(
SessionTokenFromGRPCMessage(m.GetSessionToken()),
)
r.SetBearerToken(
BearerTokenFromGRPCMessage(m.GetBearerToken()),
)
r.SetOrigin(
RequestMetaHeaderFromGRPCMessage(m.GetOrigin()),
)
xHdrMsg := m.GetXHeaders()
xHeaders := make([]*XHeader, 0, len(xHdrMsg))
for i := range xHdrMsg {
xHeaders = append(xHeaders, XHeaderFromGRPCMessage(xHdrMsg[i]))
}
return r
}
func OwnerIDToGRPCMessage(o *OwnerID) *refs.OwnerID {
if o == nil {
return nil
}
m := new(refs.OwnerID)
m.SetValue(o.GetValue())
return m
}
func OwnerIDFromGRPCMessage(m *refs.OwnerID) *OwnerID {
if m == nil {
return nil
}
o := new(OwnerID)
o.SetValue(m.GetValue())
return o
}
func BalanceRequestBodyToGRPCMessage(b *BalanceRequestBody) *accounting.BalanceRequest_Body {
if b == nil {
return nil
}
m := new(accounting.BalanceRequest_Body)
m.SetOwnerId(
OwnerIDToGRPCMessage(b.GetOwnerID()),
)
return m
}
func BalanceRequestBodyFromGRPCMessage(m *accounting.BalanceRequest_Body) *BalanceRequestBody {
if m == nil {
return nil
}
b := new(BalanceRequestBody)
b.SetOwnerID(
OwnerIDFromGRPCMessage(m.GetOwnerId()),
)
return b
}
func headersToGRPC(
src interface {
GetRequestMetaHeader() *RequestMetaHeader
GetRequestVerificationHeader() *RequestVerificationHeader
},
dst interface {
SetMetaHeader(*service.RequestMetaHeader)
SetVerifyHeader(*service.RequestVerificationHeader)
},
) {
dst.SetMetaHeader(
RequestMetaHeaderToGRPCMessage(src.GetRequestMetaHeader()),
)
dst.SetVerifyHeader(
RequestVerificationHeaderToGRPCMessage(src.GetRequestVerificationHeader()),
)
}
func headersFromGRPC(
src interface {
GetMetaHeader() *service.RequestMetaHeader
GetVerifyHeader() *service.RequestVerificationHeader
},
dst interface {
SetRequestMetaHeader(*RequestMetaHeader)
SetRequestVerificationHeader(*RequestVerificationHeader)
},
) {
dst.SetRequestMetaHeader(
RequestMetaHeaderFromGRPCMessage(src.GetMetaHeader()),
)
dst.SetRequestVerificationHeader(
RequestVerificationHeaderFromGRPCMessage(src.GetVerifyHeader()),
)
}
func BalanceRequestToGRPCMessage(b *BalanceRequest) *accounting.BalanceRequest {
if b == nil {
return nil
}
m := new(accounting.BalanceRequest)
m.SetBody(
BalanceRequestBodyToGRPCMessage(b.GetBody()),
)
headersToGRPC(b, m)
return m
}
func BalanceRequestFromGRPCMessage(m *accounting.BalanceRequest) *BalanceRequest {
if m == nil {
return nil
}
b := new(BalanceRequest)
b.SetBody(
BalanceRequestBodyFromGRPCMessage(m.GetBody()),
)
headersFromGRPC(m, b)
return b
}

View file

@ -1,5 +1,5 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT. // Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: v2/netmap/types.proto // source: v2/netmap/grpc/types.proto
package netmap package netmap
@ -75,7 +75,7 @@ func (x PlacementPolicy_FilterGroup_Filter_SimpleFilter_Operation) String() stri
} }
func (PlacementPolicy_FilterGroup_Filter_SimpleFilter_Operation) EnumDescriptor() ([]byte, []int) { func (PlacementPolicy_FilterGroup_Filter_SimpleFilter_Operation) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_1207dc80bd67ddec, []int{0, 0, 0, 0, 0} return fileDescriptor_91a1332b2376641a, []int{0, 0, 0, 0, 0}
} }
// Represents the enumeration of various states of the NeoFS node. // Represents the enumeration of various states of the NeoFS node.
@ -107,7 +107,7 @@ func (x NodeInfo_State) String() string {
} }
func (NodeInfo_State) EnumDescriptor() ([]byte, []int) { func (NodeInfo_State) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_1207dc80bd67ddec, []int{1, 0} return fileDescriptor_91a1332b2376641a, []int{1, 0}
} }
// Set of rules to select a subset of nodes able to store container's objects // Set of rules to select a subset of nodes able to store container's objects
@ -125,7 +125,7 @@ func (m *PlacementPolicy) Reset() { *m = PlacementPolicy{} }
func (m *PlacementPolicy) String() string { return proto.CompactTextString(m) } func (m *PlacementPolicy) String() string { return proto.CompactTextString(m) }
func (*PlacementPolicy) ProtoMessage() {} func (*PlacementPolicy) ProtoMessage() {}
func (*PlacementPolicy) Descriptor() ([]byte, []int) { func (*PlacementPolicy) Descriptor() ([]byte, []int) {
return fileDescriptor_1207dc80bd67ddec, []int{0} return fileDescriptor_91a1332b2376641a, []int{0}
} }
func (m *PlacementPolicy) XXX_Unmarshal(b []byte) error { func (m *PlacementPolicy) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -185,7 +185,7 @@ func (m *PlacementPolicy_FilterGroup) Reset() { *m = PlacementPolicy_Fil
func (m *PlacementPolicy_FilterGroup) String() string { return proto.CompactTextString(m) } func (m *PlacementPolicy_FilterGroup) String() string { return proto.CompactTextString(m) }
func (*PlacementPolicy_FilterGroup) ProtoMessage() {} func (*PlacementPolicy_FilterGroup) ProtoMessage() {}
func (*PlacementPolicy_FilterGroup) Descriptor() ([]byte, []int) { func (*PlacementPolicy_FilterGroup) Descriptor() ([]byte, []int) {
return fileDescriptor_1207dc80bd67ddec, []int{0, 0} return fileDescriptor_91a1332b2376641a, []int{0, 0}
} }
func (m *PlacementPolicy_FilterGroup) XXX_Unmarshal(b []byte) error { func (m *PlacementPolicy_FilterGroup) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -250,7 +250,7 @@ func (m *PlacementPolicy_FilterGroup_Filter) Reset() { *m = PlacementPol
func (m *PlacementPolicy_FilterGroup_Filter) String() string { return proto.CompactTextString(m) } func (m *PlacementPolicy_FilterGroup_Filter) String() string { return proto.CompactTextString(m) }
func (*PlacementPolicy_FilterGroup_Filter) ProtoMessage() {} func (*PlacementPolicy_FilterGroup_Filter) ProtoMessage() {}
func (*PlacementPolicy_FilterGroup_Filter) Descriptor() ([]byte, []int) { func (*PlacementPolicy_FilterGroup_Filter) Descriptor() ([]byte, []int) {
return fileDescriptor_1207dc80bd67ddec, []int{0, 0, 0} return fileDescriptor_91a1332b2376641a, []int{0, 0, 0}
} }
func (m *PlacementPolicy_FilterGroup_Filter) XXX_Unmarshal(b []byte) error { func (m *PlacementPolicy_FilterGroup_Filter) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -316,7 +316,7 @@ func (m *PlacementPolicy_FilterGroup_Filter_SimpleFilter) String() string {
} }
func (*PlacementPolicy_FilterGroup_Filter_SimpleFilter) ProtoMessage() {} func (*PlacementPolicy_FilterGroup_Filter_SimpleFilter) ProtoMessage() {}
func (*PlacementPolicy_FilterGroup_Filter_SimpleFilter) Descriptor() ([]byte, []int) { func (*PlacementPolicy_FilterGroup_Filter_SimpleFilter) Descriptor() ([]byte, []int) {
return fileDescriptor_1207dc80bd67ddec, []int{0, 0, 0, 0} return fileDescriptor_91a1332b2376641a, []int{0, 0, 0, 0}
} }
func (m *PlacementPolicy_FilterGroup_Filter_SimpleFilter) XXX_Unmarshal(b []byte) error { func (m *PlacementPolicy_FilterGroup_Filter_SimpleFilter) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -416,7 +416,7 @@ func (m *PlacementPolicy_FilterGroup_Filter_SimpleFilter_SimpleFilters) String()
} }
func (*PlacementPolicy_FilterGroup_Filter_SimpleFilter_SimpleFilters) ProtoMessage() {} func (*PlacementPolicy_FilterGroup_Filter_SimpleFilter_SimpleFilters) ProtoMessage() {}
func (*PlacementPolicy_FilterGroup_Filter_SimpleFilter_SimpleFilters) Descriptor() ([]byte, []int) { func (*PlacementPolicy_FilterGroup_Filter_SimpleFilter_SimpleFilters) Descriptor() ([]byte, []int) {
return fileDescriptor_1207dc80bd67ddec, []int{0, 0, 0, 0, 0} return fileDescriptor_91a1332b2376641a, []int{0, 0, 0, 0, 0}
} }
func (m *PlacementPolicy_FilterGroup_Filter_SimpleFilter_SimpleFilters) XXX_Unmarshal(b []byte) error { func (m *PlacementPolicy_FilterGroup_Filter_SimpleFilter_SimpleFilters) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -467,7 +467,7 @@ func (m *PlacementPolicy_FilterGroup_Selector) Reset() { *m = PlacementP
func (m *PlacementPolicy_FilterGroup_Selector) String() string { return proto.CompactTextString(m) } func (m *PlacementPolicy_FilterGroup_Selector) String() string { return proto.CompactTextString(m) }
func (*PlacementPolicy_FilterGroup_Selector) ProtoMessage() {} func (*PlacementPolicy_FilterGroup_Selector) ProtoMessage() {}
func (*PlacementPolicy_FilterGroup_Selector) Descriptor() ([]byte, []int) { func (*PlacementPolicy_FilterGroup_Selector) Descriptor() ([]byte, []int) {
return fileDescriptor_1207dc80bd67ddec, []int{0, 0, 1} return fileDescriptor_91a1332b2376641a, []int{0, 0, 1}
} }
func (m *PlacementPolicy_FilterGroup_Selector) XXX_Unmarshal(b []byte) error { func (m *PlacementPolicy_FilterGroup_Selector) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -529,7 +529,7 @@ func (m *NodeInfo) Reset() { *m = NodeInfo{} }
func (m *NodeInfo) String() string { return proto.CompactTextString(m) } func (m *NodeInfo) String() string { return proto.CompactTextString(m) }
func (*NodeInfo) ProtoMessage() {} func (*NodeInfo) ProtoMessage() {}
func (*NodeInfo) Descriptor() ([]byte, []int) { func (*NodeInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_1207dc80bd67ddec, []int{1} return fileDescriptor_91a1332b2376641a, []int{1}
} }
func (m *NodeInfo) XXX_Unmarshal(b []byte) error { func (m *NodeInfo) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -601,7 +601,7 @@ func (m *NodeInfo_Attribute) Reset() { *m = NodeInfo_Attribute{} }
func (m *NodeInfo_Attribute) String() string { return proto.CompactTextString(m) } func (m *NodeInfo_Attribute) String() string { return proto.CompactTextString(m) }
func (*NodeInfo_Attribute) ProtoMessage() {} func (*NodeInfo_Attribute) ProtoMessage() {}
func (*NodeInfo_Attribute) Descriptor() ([]byte, []int) { func (*NodeInfo_Attribute) Descriptor() ([]byte, []int) {
return fileDescriptor_1207dc80bd67ddec, []int{1, 0} return fileDescriptor_91a1332b2376641a, []int{1, 0}
} }
func (m *NodeInfo_Attribute) XXX_Unmarshal(b []byte) error { func (m *NodeInfo_Attribute) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -657,52 +657,52 @@ func init() {
proto.RegisterType((*NodeInfo_Attribute)(nil), "neo.fs.v2.netmap.NodeInfo.Attribute") proto.RegisterType((*NodeInfo_Attribute)(nil), "neo.fs.v2.netmap.NodeInfo.Attribute")
} }
func init() { proto.RegisterFile("v2/netmap/types.proto", fileDescriptor_1207dc80bd67ddec) } func init() { proto.RegisterFile("v2/netmap/grpc/types.proto", fileDescriptor_91a1332b2376641a) }
var fileDescriptor_1207dc80bd67ddec = []byte{ var fileDescriptor_91a1332b2376641a = []byte{
// 660 bytes of a gzipped FileDescriptorProto // 663 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xc1, 0x6e, 0xd3, 0x4c, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xcd, 0x6e, 0xd3, 0x40,
0x10, 0xae, 0xed, 0xc4, 0x69, 0x26, 0xcd, 0x5f, 0x6b, 0xff, 0x16, 0x99, 0x48, 0x84, 0x28, 0xe2, 0x10, 0xae, 0xed, 0xc4, 0x69, 0x26, 0x0d, 0xb5, 0x96, 0x82, 0x4c, 0x24, 0x42, 0x14, 0x71, 0xc8,
0x90, 0x4b, 0x1c, 0xe1, 0xa2, 0x5e, 0x38, 0xa5, 0xd4, 0x29, 0x51, 0x2b, 0x3b, 0x38, 0xe1, 0xd2, 0x25, 0x8e, 0x48, 0x51, 0x39, 0x70, 0x4a, 0xa9, 0x53, 0xa2, 0x56, 0x76, 0xd8, 0x84, 0x0b, 0x3d,
0x1e, 0x22, 0xc7, 0x59, 0xa7, 0x16, 0x8e, 0xd7, 0xf2, 0xae, 0x23, 0xf2, 0x26, 0xbc, 0x02, 0x3c, 0x44, 0x8e, 0xb3, 0x4e, 0x2d, 0x1c, 0xaf, 0xe5, 0xdd, 0x44, 0xe4, 0x4d, 0x78, 0x05, 0x78, 0x04,
0x02, 0x07, 0xae, 0x70, 0xe0, 0xc0, 0x23, 0xa0, 0xf2, 0x22, 0xc8, 0xeb, 0x38, 0x4d, 0x0b, 0x42, 0x0e, 0x5c, 0xe1, 0xc0, 0x81, 0x47, 0x40, 0xe5, 0x45, 0x90, 0xd7, 0x71, 0x9b, 0x14, 0x84, 0x54,
0x2a, 0xe5, 0xf4, 0xf9, 0x9b, 0xd9, 0xf9, 0xc6, 0x33, 0xfe, 0xbc, 0xb0, 0xbf, 0xd0, 0x3b, 0x21, 0xca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, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x2d, 0xc4, 0x82, 0xde, 0xc9, 0x78, 0x96, 0xf0, 0x8e, 0x55, 0xf1, 0xde, 0xee, 0xff, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x87,
0x83, 0x05, 0x00, 0x00, 0xfe, 0x8e, 0x55, 0x8d, 0x05, 0x00, 0x00,
} }
func (m *PlacementPolicy) Marshal() (dAtA []byte, err error) { func (m *PlacementPolicy) Marshal() (dAtA []byte, err error) {

View file

@ -1,8 +1,8 @@
package object package object
import ( import (
"github.com/nspcc-dev/neofs-api-go/v2/refs" refs "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
"github.com/nspcc-dev/neofs-api-go/v2/service" service "github.com/nspcc-dev/neofs-api-go/v2/service/grpc"
) )
// SetAddress sets address of the requested object. // SetAddress sets address of the requested object.

File diff suppressed because it is too large Load diff

View file

@ -1,8 +1,8 @@
package object package object
import ( import (
"github.com/nspcc-dev/neofs-api-go/v2/refs" refs "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
"github.com/nspcc-dev/neofs-api-go/v2/service" service "github.com/nspcc-dev/neofs-api-go/v2/service/grpc"
) )
// SetKey sets key to the object attribute. // SetKey sets key to the object attribute.

View file

@ -1,13 +1,13 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT. // Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: v2/object/types.proto // source: v2/object/grpc/types.proto
package object package object
import ( import (
fmt "fmt" fmt "fmt"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
refs "github.com/nspcc-dev/neofs-api-go/v2/refs" grpc "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
service "github.com/nspcc-dev/neofs-api-go/v2/service" grpc1 "github.com/nspcc-dev/neofs-api-go/v2/service/grpc"
io "io" io "io"
math "math" math "math"
math_bits "math/bits" math_bits "math/bits"
@ -53,20 +53,20 @@ func (x ObjectType) String() string {
} }
func (ObjectType) EnumDescriptor() ([]byte, []int) { func (ObjectType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_fcb9e8df342f43c6, []int{0} return fileDescriptor_545319325da7b9b1, []int{0}
} }
// Object Headers // Object Headers
type Header struct { type Header struct {
// Object's container // Object's container
ContainerId *refs.ContainerID `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` ContainerId *grpc.ContainerID `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
// Object's owner // Object's owner
OwnerId *refs.OwnerID `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` OwnerId *grpc.OwnerID `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
// Epoch when the object was created // Epoch when the object was created
CreationEpoch uint64 `protobuf:"varint,3,opt,name=creation_epoch,json=creationEpoch,proto3" json:"creation_epoch,omitempty"` CreationEpoch uint64 `protobuf:"varint,3,opt,name=creation_epoch,json=creationEpoch,proto3" json:"creation_epoch,omitempty"`
// Object format version. // Object format version.
// Effectively the version of API library used to create particular object // Effectively the version of API library used to create particular object
Version *service.Version `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` Version *grpc1.Version `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
// Size of payload in bytes. // Size of payload in bytes.
// 0xFFFFFFFFFFFFFFFF means `payload_length` is unknown // 0xFFFFFFFFFFFFFFFF means `payload_length` is unknown
PayloadLength uint64 `protobuf:"varint,5,opt,name=payload_length,json=payloadLength,proto3" json:"payload_length,omitempty"` PayloadLength uint64 `protobuf:"varint,5,opt,name=payload_length,json=payloadLength,proto3" json:"payload_length,omitempty"`
@ -78,7 +78,7 @@ type Header struct {
HomomorphicHash []byte `protobuf:"bytes,8,opt,name=homomorphic_hash,json=homomorphicHash,proto3" json:"homomorphic_hash,omitempty"` 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. // Session token, if it was used during Object creation.
// Need it to verify integrity and authenticity out of Request scope. // Need it to verify integrity and authenticity out of Request scope.
SessionToken *service.SessionToken `protobuf:"bytes,9,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"` SessionToken *grpc1.SessionToken `protobuf:"bytes,9,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"`
// User-defined object attributes // User-defined object attributes
Attributes []*Header_Attribute `protobuf:"bytes,10,rep,name=attributes,proto3" json:"attributes,omitempty"` Attributes []*Header_Attribute `protobuf:"bytes,10,rep,name=attributes,proto3" json:"attributes,omitempty"`
// Position of the object in the split hierarchy. // Position of the object in the split hierarchy.
@ -92,7 +92,7 @@ func (m *Header) Reset() { *m = Header{} }
func (m *Header) String() string { return proto.CompactTextString(m) } func (m *Header) String() string { return proto.CompactTextString(m) }
func (*Header) ProtoMessage() {} func (*Header) ProtoMessage() {}
func (*Header) Descriptor() ([]byte, []int) { func (*Header) Descriptor() ([]byte, []int) {
return fileDescriptor_fcb9e8df342f43c6, []int{0} return fileDescriptor_545319325da7b9b1, []int{0}
} }
func (m *Header) XXX_Unmarshal(b []byte) error { func (m *Header) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -121,14 +121,14 @@ func (m *Header) XXX_DiscardUnknown() {
var xxx_messageInfo_Header proto.InternalMessageInfo var xxx_messageInfo_Header proto.InternalMessageInfo
func (m *Header) GetContainerId() *refs.ContainerID { func (m *Header) GetContainerId() *grpc.ContainerID {
if m != nil { if m != nil {
return m.ContainerId return m.ContainerId
} }
return nil return nil
} }
func (m *Header) GetOwnerId() *refs.OwnerID { func (m *Header) GetOwnerId() *grpc.OwnerID {
if m != nil { if m != nil {
return m.OwnerId return m.OwnerId
} }
@ -142,7 +142,7 @@ func (m *Header) GetCreationEpoch() uint64 {
return 0 return 0
} }
func (m *Header) GetVersion() *service.Version { func (m *Header) GetVersion() *grpc1.Version {
if m != nil { if m != nil {
return m.Version return m.Version
} }
@ -177,7 +177,7 @@ func (m *Header) GetHomomorphicHash() []byte {
return nil return nil
} }
func (m *Header) GetSessionToken() *service.SessionToken { func (m *Header) GetSessionToken() *grpc1.SessionToken {
if m != nil { if m != nil {
return m.SessionToken return m.SessionToken
} }
@ -213,7 +213,7 @@ func (m *Header_Attribute) Reset() { *m = Header_Attribute{} }
func (m *Header_Attribute) String() string { return proto.CompactTextString(m) } func (m *Header_Attribute) String() string { return proto.CompactTextString(m) }
func (*Header_Attribute) ProtoMessage() {} func (*Header_Attribute) ProtoMessage() {}
func (*Header_Attribute) Descriptor() ([]byte, []int) { func (*Header_Attribute) Descriptor() ([]byte, []int) {
return fileDescriptor_fcb9e8df342f43c6, []int{0, 0} return fileDescriptor_545319325da7b9b1, []int{0, 0}
} }
func (m *Header_Attribute) XXX_Unmarshal(b []byte) error { func (m *Header_Attribute) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -261,15 +261,15 @@ type Header_Split struct {
// Identifier of the origin object. // Identifier of the origin object.
// Parent and children objects must be within the same container. // Parent and children objects must be within the same container.
// Parent object_id is known only to the minor child. // Parent object_id is known only to the minor child.
Parent *refs.ObjectID `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` Parent *grpc.ObjectID `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Previous carries identifier of the left split neighbor. // Previous carries identifier of the left split neighbor.
Previous *refs.ObjectID `protobuf:"bytes,2,opt,name=previous,proto3" json:"previous,omitempty"` Previous *grpc.ObjectID `protobuf:"bytes,2,opt,name=previous,proto3" json:"previous,omitempty"`
// `signature` field of the parent object. Used to reconstruct parent. // `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"` ParentSignature *grpc1.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. // `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"` 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 carries list of identifiers of the objects generated by splitting the current.
Children []*refs.ObjectID `protobuf:"bytes,5,rep,name=children,proto3" json:"children,omitempty"` Children []*grpc.ObjectID `protobuf:"bytes,5,rep,name=children,proto3" json:"children,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
@ -279,7 +279,7 @@ func (m *Header_Split) Reset() { *m = Header_Split{} }
func (m *Header_Split) String() string { return proto.CompactTextString(m) } func (m *Header_Split) String() string { return proto.CompactTextString(m) }
func (*Header_Split) ProtoMessage() {} func (*Header_Split) ProtoMessage() {}
func (*Header_Split) Descriptor() ([]byte, []int) { func (*Header_Split) Descriptor() ([]byte, []int) {
return fileDescriptor_fcb9e8df342f43c6, []int{0, 1} return fileDescriptor_545319325da7b9b1, []int{0, 1}
} }
func (m *Header_Split) XXX_Unmarshal(b []byte) error { func (m *Header_Split) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -308,21 +308,21 @@ func (m *Header_Split) XXX_DiscardUnknown() {
var xxx_messageInfo_Header_Split proto.InternalMessageInfo var xxx_messageInfo_Header_Split proto.InternalMessageInfo
func (m *Header_Split) GetParent() *refs.ObjectID { func (m *Header_Split) GetParent() *grpc.ObjectID {
if m != nil { if m != nil {
return m.Parent return m.Parent
} }
return nil return nil
} }
func (m *Header_Split) GetPrevious() *refs.ObjectID { func (m *Header_Split) GetPrevious() *grpc.ObjectID {
if m != nil { if m != nil {
return m.Previous return m.Previous
} }
return nil return nil
} }
func (m *Header_Split) GetParentSignature() *service.Signature { func (m *Header_Split) GetParentSignature() *grpc1.Signature {
if m != nil { if m != nil {
return m.ParentSignature return m.ParentSignature
} }
@ -336,7 +336,7 @@ func (m *Header_Split) GetParentHeader() *Header {
return nil return nil
} }
func (m *Header_Split) GetChildren() []*refs.ObjectID { func (m *Header_Split) GetChildren() []*grpc.ObjectID {
if m != nil { if m != nil {
return m.Children return m.Children
} }
@ -349,9 +349,9 @@ type Object struct {
// Object is content-addressed. It means id will change if header or payload // 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 // changes. It's calculated as a hash of header field, which contains hash of
// object's payload // object's payload
ObjectId *refs.ObjectID `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` ObjectId *grpc.ObjectID `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
// Signed object_id // Signed object_id
Signature *service.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` Signature *grpc1.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
// Object metadata headers // Object metadata headers
Header *Header `protobuf:"bytes,3,opt,name=header,proto3" json:"header,omitempty"` Header *Header `protobuf:"bytes,3,opt,name=header,proto3" json:"header,omitempty"`
// Payload bytes. // Payload bytes.
@ -365,7 +365,7 @@ func (m *Object) Reset() { *m = Object{} }
func (m *Object) String() string { return proto.CompactTextString(m) } func (m *Object) String() string { return proto.CompactTextString(m) }
func (*Object) ProtoMessage() {} func (*Object) ProtoMessage() {}
func (*Object) Descriptor() ([]byte, []int) { func (*Object) Descriptor() ([]byte, []int) {
return fileDescriptor_fcb9e8df342f43c6, []int{1} return fileDescriptor_545319325da7b9b1, []int{1}
} }
func (m *Object) XXX_Unmarshal(b []byte) error { func (m *Object) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -394,14 +394,14 @@ func (m *Object) XXX_DiscardUnknown() {
var xxx_messageInfo_Object proto.InternalMessageInfo var xxx_messageInfo_Object proto.InternalMessageInfo
func (m *Object) GetObjectId() *refs.ObjectID { func (m *Object) GetObjectId() *grpc.ObjectID {
if m != nil { if m != nil {
return m.ObjectId return m.ObjectId
} }
return nil return nil
} }
func (m *Object) GetSignature() *service.Signature { func (m *Object) GetSignature() *grpc1.Signature {
if m != nil { if m != nil {
return m.Signature return m.Signature
} }
@ -430,55 +430,56 @@ func init() {
proto.RegisterType((*Object)(nil), "neo.fs.v2.object.Object") proto.RegisterType((*Object)(nil), "neo.fs.v2.object.Object")
} }
func init() { proto.RegisterFile("v2/object/types.proto", fileDescriptor_fcb9e8df342f43c6) } func init() { proto.RegisterFile("v2/object/grpc/types.proto", fileDescriptor_545319325da7b9b1) }
var fileDescriptor_fcb9e8df342f43c6 = []byte{ var fileDescriptor_545319325da7b9b1 = []byte{
// 720 bytes of a gzipped FileDescriptorProto // 726 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xcf, 0x6e, 0xd3, 0x4e, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xdd, 0x6e, 0xda, 0x48,
0x10, 0xc7, 0xeb, 0xa4, 0xf9, 0x37, 0x4e, 0xda, 0xfc, 0xb6, 0x3f, 0x54, 0x2b, 0xa0, 0x10, 0x2a, 0x14, 0xc7, 0x63, 0x08, 0x5f, 0xc7, 0x90, 0xb0, 0xb3, 0x2b, 0xad, 0xc5, 0x46, 0x2c, 0x1b, 0x69,
0x21, 0x05, 0xa4, 0x3a, 0xc8, 0x0d, 0x17, 0xaa, 0x22, 0xa5, 0x34, 0xa4, 0x91, 0x4a, 0x53, 0x6d, 0x25, 0x5a, 0x29, 0xa6, 0x22, 0x54, 0x95, 0x1a, 0x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 0x6f, 0xfb, 0x6a, 0xeb, 0xac, 0x1b, 0x56, 0x20, 0xb6, 0x33, 0xca, 0xf2, 0xdf, 0xe3, 0x1e, 0x88, 0xf5, 0x87, 0xd4, 0x9f, 0x67, 0x84, 0xbe, 0x1a, 0xe8, 0xed, 0xf3, 0x5e, 0x9c,
0xe3, 0xde, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x66, 0x06, 0xbc, 0x8e, 0x05, 0x00, 0x00, 0x86, 0x88, 0x69, 0x94, 0xe5, 0xff, 0xc8, 0xfd, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x65, 0x74,
0xce, 0xc4, 0xa7, 0x05, 0x00, 0x00,
} }
func (m *Header) Marshal() (dAtA []byte, err error) { func (m *Header) Marshal() (dAtA []byte, err error) {
@ -1024,7 +1025,7 @@ func (m *Header) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.ContainerId == nil { if m.ContainerId == nil {
m.ContainerId = &refs.ContainerID{} m.ContainerId = &grpc.ContainerID{}
} }
if err := m.ContainerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.ContainerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
@ -1060,7 +1061,7 @@ func (m *Header) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.OwnerId == nil { if m.OwnerId == nil {
m.OwnerId = &refs.OwnerID{} m.OwnerId = &grpc.OwnerID{}
} }
if err := m.OwnerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.OwnerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
@ -1115,7 +1116,7 @@ func (m *Header) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.Version == nil { if m.Version == nil {
m.Version = &service.Version{} m.Version = &grpc1.Version{}
} }
if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
@ -1257,7 +1258,7 @@ func (m *Header) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.SessionToken == nil { if m.SessionToken == nil {
m.SessionToken = &service.SessionToken{} m.SessionToken = &grpc1.SessionToken{}
} }
if err := m.SessionToken.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.SessionToken.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
@ -1535,7 +1536,7 @@ func (m *Header_Split) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.Parent == nil { if m.Parent == nil {
m.Parent = &refs.ObjectID{} m.Parent = &grpc.ObjectID{}
} }
if err := m.Parent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.Parent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
@ -1571,7 +1572,7 @@ func (m *Header_Split) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.Previous == nil { if m.Previous == nil {
m.Previous = &refs.ObjectID{} m.Previous = &grpc.ObjectID{}
} }
if err := m.Previous.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.Previous.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
@ -1607,7 +1608,7 @@ func (m *Header_Split) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.ParentSignature == nil { if m.ParentSignature == nil {
m.ParentSignature = &service.Signature{} m.ParentSignature = &grpc1.Signature{}
} }
if err := m.ParentSignature.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.ParentSignature.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
@ -1678,7 +1679,7 @@ func (m *Header_Split) Unmarshal(dAtA []byte) error {
if postIndex > l { if postIndex > l {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
m.Children = append(m.Children, &refs.ObjectID{}) m.Children = append(m.Children, &grpc.ObjectID{})
if err := m.Children[len(m.Children)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.Children[len(m.Children)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
} }
@ -1767,7 +1768,7 @@ func (m *Object) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.ObjectId == nil { if m.ObjectId == nil {
m.ObjectId = &refs.ObjectID{} m.ObjectId = &grpc.ObjectID{}
} }
if err := m.ObjectId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.ObjectId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
@ -1803,7 +1804,7 @@ func (m *Object) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.Signature == nil { if m.Signature == nil {
m.Signature = &service.Signature{} m.Signature = &grpc1.Signature{}
} }
if err := m.Signature.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.Signature.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err

29
v2/refs/convert.go Normal file
View file

@ -0,0 +1,29 @@
package refs
import (
refs "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
)
func OwnerIDToGRPCMessage(o *OwnerID) *refs.OwnerID {
if o == nil {
return nil
}
m := new(refs.OwnerID)
m.SetValue(o.GetValue())
return m
}
func OwnerIDFromGRPCMessage(m *refs.OwnerID) *OwnerID {
if m == nil {
return nil
}
o := new(OwnerID)
o.SetValue(m.GetValue())
return o
}

View file

@ -1,5 +1,5 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT. // Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: v2/refs/types.proto // source: v2/refs/grpc/types.proto
package refs package refs
@ -37,7 +37,7 @@ func (m *Address) Reset() { *m = Address{} }
func (m *Address) String() string { return proto.CompactTextString(m) } func (m *Address) String() string { return proto.CompactTextString(m) }
func (*Address) ProtoMessage() {} func (*Address) ProtoMessage() {}
func (*Address) Descriptor() ([]byte, []int) { func (*Address) Descriptor() ([]byte, []int) {
return fileDescriptor_8ea16029b13f1cfa, []int{0} return fileDescriptor_08f084e5f91ec87c, []int{0}
} }
func (m *Address) XXX_Unmarshal(b []byte) error { func (m *Address) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -93,7 +93,7 @@ func (m *ObjectID) Reset() { *m = ObjectID{} }
func (m *ObjectID) String() string { return proto.CompactTextString(m) } func (m *ObjectID) String() string { return proto.CompactTextString(m) }
func (*ObjectID) ProtoMessage() {} func (*ObjectID) ProtoMessage() {}
func (*ObjectID) Descriptor() ([]byte, []int) { func (*ObjectID) Descriptor() ([]byte, []int) {
return fileDescriptor_8ea16029b13f1cfa, []int{1} return fileDescriptor_08f084e5f91ec87c, []int{1}
} }
func (m *ObjectID) XXX_Unmarshal(b []byte) error { func (m *ObjectID) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -142,7 +142,7 @@ func (m *ContainerID) Reset() { *m = ContainerID{} }
func (m *ContainerID) String() string { return proto.CompactTextString(m) } func (m *ContainerID) String() string { return proto.CompactTextString(m) }
func (*ContainerID) ProtoMessage() {} func (*ContainerID) ProtoMessage() {}
func (*ContainerID) Descriptor() ([]byte, []int) { func (*ContainerID) Descriptor() ([]byte, []int) {
return fileDescriptor_8ea16029b13f1cfa, []int{2} return fileDescriptor_08f084e5f91ec87c, []int{2}
} }
func (m *ContainerID) XXX_Unmarshal(b []byte) error { func (m *ContainerID) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -191,7 +191,7 @@ func (m *OwnerID) Reset() { *m = OwnerID{} }
func (m *OwnerID) String() string { return proto.CompactTextString(m) } func (m *OwnerID) String() string { return proto.CompactTextString(m) }
func (*OwnerID) ProtoMessage() {} func (*OwnerID) ProtoMessage() {}
func (*OwnerID) Descriptor() ([]byte, []int) { func (*OwnerID) Descriptor() ([]byte, []int) {
return fileDescriptor_8ea16029b13f1cfa, []int{3} return fileDescriptor_08f084e5f91ec87c, []int{3}
} }
func (m *OwnerID) XXX_Unmarshal(b []byte) error { func (m *OwnerID) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -234,27 +234,27 @@ func init() {
proto.RegisterType((*OwnerID)(nil), "neo.fs.v2.refs.OwnerID") proto.RegisterType((*OwnerID)(nil), "neo.fs.v2.refs.OwnerID")
} }
func init() { proto.RegisterFile("v2/refs/types.proto", fileDescriptor_8ea16029b13f1cfa) } func init() { proto.RegisterFile("v2/refs/grpc/types.proto", fileDescriptor_08f084e5f91ec87c) }
var fileDescriptor_8ea16029b13f1cfa = []byte{ var fileDescriptor_08f084e5f91ec87c = []byte{
// 259 bytes of a gzipped FileDescriptorProto // 265 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2e, 0x33, 0xd2, 0x2f, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x28, 0x33, 0xd2, 0x2f,
0x4a, 0x4d, 0x2b, 0xd6, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x4a, 0x4d, 0x2b, 0xd6, 0x4f, 0x2f, 0x2a, 0x48, 0xd6, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x2b,
0xe2, 0xcb, 0x4b, 0xcd, 0xd7, 0x4b, 0x2b, 0xd6, 0x2b, 0x33, 0xd2, 0x03, 0xc9, 0x29, 0x35, 0x30, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0xcb, 0x4b, 0xcd, 0xd7,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0a, 0x4a, 0x4d, 0x2b, 0xd2, 0x1a, 0xc4, 0x5a, 0xc5, 0x24, 0xe8, 0x97, 0x9a, 0xef, 0x16, 0xac, 0xe7, 0x18, 0xe0, 0x09,
0x4e, 0x62, 0x03, 0x87, 0xab, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xd0, 0xa5, 0x8b, 0x04, 0x6e, 0xf2, 0x55, 0x50, 0x6a, 0x5a, 0x71, 0x12, 0x1b, 0x38, 0x70, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff,
0x01, 0x00, 0x00, 0xff, 0x64, 0x50, 0x7b, 0x92, 0x78, 0x01, 0x00, 0x00,
} }
func (m *Address) Marshal() (dAtA []byte, err error) { func (m *Address) Marshal() (dAtA []byte, err error) {

19
v2/refs/owner.go Normal file
View file

@ -0,0 +1,19 @@
package refs
type OwnerID struct {
val []byte
}
func (o *OwnerID) GetValue() []byte {
if o != nil {
return o.val
}
return nil
}
func (o *OwnerID) SetValue(v []byte) {
if o != nil {
o.val = v
}
}

201
v2/service/convert.go Normal file
View file

@ -0,0 +1,201 @@
package service
import (
service "github.com/nspcc-dev/neofs-api-go/v2/service/grpc"
)
func VersionToGRPCMessage(v *Version) *service.Version {
if v == nil {
return nil
}
msg := new(service.Version)
msg.SetMajor(v.GetMajor())
msg.SetMinor(v.GetMinor())
return msg
}
func VersionFromGRPCMessage(m *service.Version) *Version {
if m == nil {
return nil
}
v := new(Version)
v.SetMajor(m.GetMajor())
v.SetMinor(m.GetMinor())
return v
}
func XHeaderToGRPCMessage(x *XHeader) *service.XHeader {
if x == nil {
return nil
}
m := new(service.XHeader)
m.SetKey(x.GetKey())
m.SetValue(x.GetValue())
return m
}
func XHeaderFromGRPCMessage(m *service.XHeader) *XHeader {
if m == nil {
return nil
}
x := new(XHeader)
x.SetKey(m.GetKey())
x.SetValue(m.GetValue())
return x
}
func SessionTokenToGRPCMessage(t *SessionToken) *service.SessionToken {
// TODO: fill me
return nil
}
func SessionTokenFromGRPCMessage(m *service.SessionToken) *SessionToken {
// TODO: fill me
return nil
}
func BearerTokenToGRPCMessage(t *BearerToken) *service.BearerToken {
// TODO: fill me
return nil
}
func BearerTokenFromGRPCMessage(m *service.BearerToken) *BearerToken {
// TODO: fill me
return nil
}
func RequestVerificationHeaderToGRPCMessage(r *RequestVerificationHeader) *service.RequestVerificationHeader {
if r == nil {
return nil
}
m := new(service.RequestVerificationHeader)
m.SetBodySignature(
SignatureToGRPCMessage(r.GetBodySignature()),
)
m.SetMetaSignature(
SignatureToGRPCMessage(r.GetMetaSignature()),
)
m.SetOriginSignature(
SignatureToGRPCMessage(r.GetOriginSignature()),
)
m.SetOrigin(
RequestVerificationHeaderToGRPCMessage(r.GetOrigin()),
)
return m
}
func RequestVerificationHeaderFromGRPCMessage(m *service.RequestVerificationHeader) *RequestVerificationHeader {
if m == nil {
return nil
}
r := new(RequestVerificationHeader)
r.SetBodySignature(
SignatureFromGRPCMessage(m.GetBodySignature()),
)
r.SetMetaSignature(
SignatureFromGRPCMessage(m.GetMetaSignature()),
)
r.SetOriginSignature(
SignatureFromGRPCMessage(m.GetOriginSignature()),
)
r.SetOrigin(
RequestVerificationHeaderFromGRPCMessage(m.GetOrigin()),
)
return r
}
func RequestMetaHeaderToGRPCMessage(r *RequestMetaHeader) *service.RequestMetaHeader {
if r == nil {
return nil
}
m := new(service.RequestMetaHeader)
m.SetTtl(r.GetTTL())
m.SetEpoch(r.GetEpoch())
m.SetVersion(
VersionToGRPCMessage(r.GetVersion()),
)
m.SetSessionToken(
SessionTokenToGRPCMessage(r.GetSessionToken()),
)
m.SetBearerToken(
BearerTokenToGRPCMessage(r.GetBearerToken()),
)
m.SetOrigin(
RequestMetaHeaderToGRPCMessage(r.GetOrigin()),
)
xHeaders := r.GetXHeaders()
xHdrMsg := make([]*service.XHeader, 0, len(xHeaders))
for i := range xHeaders {
xHdrMsg = append(xHdrMsg, XHeaderToGRPCMessage(xHeaders[i]))
}
return m
}
func RequestMetaHeaderFromGRPCMessage(m *service.RequestMetaHeader) *RequestMetaHeader {
if m == nil {
return nil
}
r := new(RequestMetaHeader)
r.SetTTL(m.GetTtl())
r.SetEpoch(m.GetEpoch())
r.SetVersion(
VersionFromGRPCMessage(m.GetVersion()),
)
r.SetSessionToken(
SessionTokenFromGRPCMessage(m.GetSessionToken()),
)
r.SetBearerToken(
BearerTokenFromGRPCMessage(m.GetBearerToken()),
)
r.SetOrigin(
RequestMetaHeaderFromGRPCMessage(m.GetOrigin()),
)
xHdrMsg := m.GetXHeaders()
xHeaders := make([]*XHeader, 0, len(xHdrMsg))
for i := range xHdrMsg {
xHeaders = append(xHeaders, XHeaderFromGRPCMessage(xHdrMsg[i]))
}
return r
}

View file

@ -1,8 +1,8 @@
package service package service
import ( import (
"github.com/nspcc-dev/neofs-api-go/v2/acl" acl "github.com/nspcc-dev/neofs-api-go/v2/acl/grpc"
"github.com/nspcc-dev/neofs-api-go/v2/refs" refs "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
) )
// SetKey sets key to the X-Header. // SetKey sets key to the X-Header.

View file

@ -1,13 +1,13 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT. // Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: v2/service/meta.proto // source: v2/service/grpc/meta.proto
package service package service
import ( import (
fmt "fmt" fmt "fmt"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
acl "github.com/nspcc-dev/neofs-api-go/v2/acl" grpc1 "github.com/nspcc-dev/neofs-api-go/v2/acl/grpc"
refs "github.com/nspcc-dev/neofs-api-go/v2/refs" grpc "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
io "io" io "io"
math "math" math "math"
math_bits "math/bits" math_bits "math/bits"
@ -73,7 +73,7 @@ func (x SessionToken_Body_Verb) String() string {
} }
func (SessionToken_Body_Verb) EnumDescriptor() ([]byte, []int) { func (SessionToken_Body_Verb) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_932e020d69aee3f0, []int{3, 0, 0} return fileDescriptor_174eb6ef9ee2b356, []int{3, 0, 0}
} }
// Extended headers for Request/Response // Extended headers for Request/Response
@ -91,7 +91,7 @@ func (m *XHeader) Reset() { *m = XHeader{} }
func (m *XHeader) String() string { return proto.CompactTextString(m) } func (m *XHeader) String() string { return proto.CompactTextString(m) }
func (*XHeader) ProtoMessage() {} func (*XHeader) ProtoMessage() {}
func (*XHeader) Descriptor() ([]byte, []int) { func (*XHeader) Descriptor() ([]byte, []int) {
return fileDescriptor_932e020d69aee3f0, []int{0} return fileDescriptor_174eb6ef9ee2b356, []int{0}
} }
func (m *XHeader) XXX_Unmarshal(b []byte) error { func (m *XHeader) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -149,7 +149,7 @@ func (m *Version) Reset() { *m = Version{} }
func (m *Version) String() string { return proto.CompactTextString(m) } func (m *Version) String() string { return proto.CompactTextString(m) }
func (*Version) ProtoMessage() {} func (*Version) ProtoMessage() {}
func (*Version) Descriptor() ([]byte, []int) { func (*Version) Descriptor() ([]byte, []int) {
return fileDescriptor_932e020d69aee3f0, []int{1} return fileDescriptor_174eb6ef9ee2b356, []int{1}
} }
func (m *Version) XXX_Unmarshal(b []byte) error { func (m *Version) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -209,7 +209,7 @@ func (m *TokenLifetime) Reset() { *m = TokenLifetime{} }
func (m *TokenLifetime) String() string { return proto.CompactTextString(m) } func (m *TokenLifetime) String() string { return proto.CompactTextString(m) }
func (*TokenLifetime) ProtoMessage() {} func (*TokenLifetime) ProtoMessage() {}
func (*TokenLifetime) Descriptor() ([]byte, []int) { func (*TokenLifetime) Descriptor() ([]byte, []int) {
return fileDescriptor_932e020d69aee3f0, []int{2} return fileDescriptor_174eb6ef9ee2b356, []int{2}
} }
func (m *TokenLifetime) XXX_Unmarshal(b []byte) error { func (m *TokenLifetime) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -274,7 +274,7 @@ func (m *SessionToken) Reset() { *m = SessionToken{} }
func (m *SessionToken) String() string { return proto.CompactTextString(m) } func (m *SessionToken) String() string { return proto.CompactTextString(m) }
func (*SessionToken) ProtoMessage() {} func (*SessionToken) ProtoMessage() {}
func (*SessionToken) Descriptor() ([]byte, []int) { func (*SessionToken) Descriptor() ([]byte, []int) {
return fileDescriptor_932e020d69aee3f0, []int{3} return fileDescriptor_174eb6ef9ee2b356, []int{3}
} }
func (m *SessionToken) XXX_Unmarshal(b []byte) error { func (m *SessionToken) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -322,7 +322,7 @@ type SessionToken_Body struct {
// ID is a token identifier. valid UUIDv4 represented in bytes // ID is a token identifier. valid UUIDv4 represented in bytes
Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// OwnerID carries identifier of the session initiator. // OwnerID carries identifier of the session initiator.
OwnerId *refs.OwnerID `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` OwnerId *grpc.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 is a type of request for which the token is issued
Verb SessionToken_Body_Verb `protobuf:"varint,3,opt,name=verb,proto3,enum=neo.fs.v2.service.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 is a lifetime of the session
@ -343,7 +343,7 @@ func (m *SessionToken_Body) Reset() { *m = SessionToken_Body{} }
func (m *SessionToken_Body) String() string { return proto.CompactTextString(m) } func (m *SessionToken_Body) String() string { return proto.CompactTextString(m) }
func (*SessionToken_Body) ProtoMessage() {} func (*SessionToken_Body) ProtoMessage() {}
func (*SessionToken_Body) Descriptor() ([]byte, []int) { func (*SessionToken_Body) Descriptor() ([]byte, []int) {
return fileDescriptor_932e020d69aee3f0, []int{3, 0} return fileDescriptor_174eb6ef9ee2b356, []int{3, 0}
} }
func (m *SessionToken_Body) XXX_Unmarshal(b []byte) error { func (m *SessionToken_Body) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -379,7 +379,7 @@ type isSessionToken_Body_Context interface {
} }
type SessionToken_Body_ObjectAddress struct { type SessionToken_Body_ObjectAddress struct {
ObjectAddress *refs.Address `protobuf:"bytes,6,opt,name=object_address,json=objectAddress,proto3,oneof" json:"object_address,omitempty"` ObjectAddress *grpc.Address `protobuf:"bytes,6,opt,name=object_address,json=objectAddress,proto3,oneof" json:"object_address,omitempty"`
} }
func (*SessionToken_Body_ObjectAddress) isSessionToken_Body_Context() {} func (*SessionToken_Body_ObjectAddress) isSessionToken_Body_Context() {}
@ -398,7 +398,7 @@ func (m *SessionToken_Body) GetId() []byte {
return nil return nil
} }
func (m *SessionToken_Body) GetOwnerId() *refs.OwnerID { func (m *SessionToken_Body) GetOwnerId() *grpc.OwnerID {
if m != nil { if m != nil {
return m.OwnerId return m.OwnerId
} }
@ -426,7 +426,7 @@ func (m *SessionToken_Body) GetSessionKey() []byte {
return nil return nil
} }
func (m *SessionToken_Body) GetObjectAddress() *refs.Address { func (m *SessionToken_Body) GetObjectAddress() *grpc.Address {
if x, ok := m.GetContext().(*SessionToken_Body_ObjectAddress); ok { if x, ok := m.GetContext().(*SessionToken_Body_ObjectAddress); ok {
return x.ObjectAddress return x.ObjectAddress
} }
@ -455,7 +455,7 @@ func (m *BearerToken) Reset() { *m = BearerToken{} }
func (m *BearerToken) String() string { return proto.CompactTextString(m) } func (m *BearerToken) String() string { return proto.CompactTextString(m) }
func (*BearerToken) ProtoMessage() {} func (*BearerToken) ProtoMessage() {}
func (*BearerToken) Descriptor() ([]byte, []int) { func (*BearerToken) Descriptor() ([]byte, []int) {
return fileDescriptor_932e020d69aee3f0, []int{4} return fileDescriptor_174eb6ef9ee2b356, []int{4}
} }
func (m *BearerToken) XXX_Unmarshal(b []byte) error { func (m *BearerToken) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -501,9 +501,9 @@ func (m *BearerToken) GetSignature() *Signature {
// Bearer Token body // Bearer Token body
type BearerToken_Body struct { type BearerToken_Body struct {
// EACLTable carries table of extended ACL rules // EACLTable carries table of extended ACL rules
EaclTable *acl.EACLTable `protobuf:"bytes,1,opt,name=eacl_table,json=eaclTable,proto3" json:"eacl_table,omitempty"` EaclTable *grpc1.EACLTable `protobuf:"bytes,1,opt,name=eacl_table,json=eaclTable,proto3" json:"eacl_table,omitempty"`
// OwnerID carries identifier of the token owner // OwnerID carries identifier of the token owner
OwnerId *refs.OwnerID `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` OwnerId *grpc.OwnerID `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
// Token expiration and valid time period parameters // Token expiration and valid time period parameters
Lifetime *TokenLifetime `protobuf:"bytes,3,opt,name=lifetime,proto3" json:"lifetime,omitempty"` Lifetime *TokenLifetime `protobuf:"bytes,3,opt,name=lifetime,proto3" json:"lifetime,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
@ -515,7 +515,7 @@ func (m *BearerToken_Body) Reset() { *m = BearerToken_Body{} }
func (m *BearerToken_Body) String() string { return proto.CompactTextString(m) } func (m *BearerToken_Body) String() string { return proto.CompactTextString(m) }
func (*BearerToken_Body) ProtoMessage() {} func (*BearerToken_Body) ProtoMessage() {}
func (*BearerToken_Body) Descriptor() ([]byte, []int) { func (*BearerToken_Body) Descriptor() ([]byte, []int) {
return fileDescriptor_932e020d69aee3f0, []int{4, 0} return fileDescriptor_174eb6ef9ee2b356, []int{4, 0}
} }
func (m *BearerToken_Body) XXX_Unmarshal(b []byte) error { func (m *BearerToken_Body) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -544,14 +544,14 @@ func (m *BearerToken_Body) XXX_DiscardUnknown() {
var xxx_messageInfo_BearerToken_Body proto.InternalMessageInfo var xxx_messageInfo_BearerToken_Body proto.InternalMessageInfo
func (m *BearerToken_Body) GetEaclTable() *acl.EACLTable { func (m *BearerToken_Body) GetEaclTable() *grpc1.EACLTable {
if m != nil { if m != nil {
return m.EaclTable return m.EaclTable
} }
return nil return nil
} }
func (m *BearerToken_Body) GetOwnerId() *refs.OwnerID { func (m *BearerToken_Body) GetOwnerId() *grpc.OwnerID {
if m != nil { if m != nil {
return m.OwnerId return m.OwnerId
} }
@ -590,7 +590,7 @@ func (m *RequestMetaHeader) Reset() { *m = RequestMetaHeader{} }
func (m *RequestMetaHeader) String() string { return proto.CompactTextString(m) } func (m *RequestMetaHeader) String() string { return proto.CompactTextString(m) }
func (*RequestMetaHeader) ProtoMessage() {} func (*RequestMetaHeader) ProtoMessage() {}
func (*RequestMetaHeader) Descriptor() ([]byte, []int) { func (*RequestMetaHeader) Descriptor() ([]byte, []int) {
return fileDescriptor_932e020d69aee3f0, []int{5} return fileDescriptor_174eb6ef9ee2b356, []int{5}
} }
func (m *RequestMetaHeader) XXX_Unmarshal(b []byte) error { func (m *RequestMetaHeader) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -689,7 +689,7 @@ func (m *ResponseMetaHeader) Reset() { *m = ResponseMetaHeader{} }
func (m *ResponseMetaHeader) String() string { return proto.CompactTextString(m) } func (m *ResponseMetaHeader) String() string { return proto.CompactTextString(m) }
func (*ResponseMetaHeader) ProtoMessage() {} func (*ResponseMetaHeader) ProtoMessage() {}
func (*ResponseMetaHeader) Descriptor() ([]byte, []int) { func (*ResponseMetaHeader) Descriptor() ([]byte, []int) {
return fileDescriptor_932e020d69aee3f0, []int{6} return fileDescriptor_174eb6ef9ee2b356, []int{6}
} }
func (m *ResponseMetaHeader) XXX_Unmarshal(b []byte) error { func (m *ResponseMetaHeader) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -766,63 +766,63 @@ func init() {
proto.RegisterType((*ResponseMetaHeader)(nil), "neo.fs.v2.service.ResponseMetaHeader") proto.RegisterType((*ResponseMetaHeader)(nil), "neo.fs.v2.service.ResponseMetaHeader")
} }
func init() { proto.RegisterFile("v2/service/meta.proto", fileDescriptor_932e020d69aee3f0) } func init() { proto.RegisterFile("v2/service/grpc/meta.proto", fileDescriptor_174eb6ef9ee2b356) }
var fileDescriptor_932e020d69aee3f0 = []byte{ var fileDescriptor_174eb6ef9ee2b356 = []byte{
// 834 bytes of a gzipped FileDescriptorProto // 838 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x55, 0xcd, 0x6e, 0x23, 0x45, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x55, 0xcd, 0x6e, 0x23, 0x45,
0x10, 0xce, 0xd8, 0x93, 0x38, 0x2e, 0xdb, 0x61, 0xd2, 0x04, 0xad, 0x15, 0x21, 0x6f, 0x64, 0x40, 0x10, 0xce, 0xd8, 0x93, 0x38, 0x2e, 0xdb, 0x61, 0xd2, 0x8a, 0xb4, 0x23, 0x6b, 0xe5, 0x8d, 0x0c,
0x82, 0x43, 0xc6, 0x62, 0x58, 0x14, 0x04, 0xbb, 0x12, 0x76, 0x3c, 0xbb, 0x36, 0x84, 0x6c, 0xd4, 0x48, 0x70, 0xc8, 0x58, 0x0c, 0xa0, 0xf0, 0xb3, 0x2b, 0x61, 0xc7, 0xb3, 0x6b, 0x43, 0xc8, 0x46,
0xf6, 0x46, 0x08, 0x09, 0x59, 0xf3, 0x53, 0x4e, 0x66, 0xd7, 0x99, 0x36, 0xd3, 0x9d, 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, 0x30, 0xbf, 0x0f, 0x22, 0xcc, 0x3b, 0x09, 0xb2, 0x29, 0x3f, 0xf0, 0x17, 0xf1, 0xc1, 0x8c, 0x75, 0x6e, 0xfc,
0xdf, 0x94, 0x76, 0x8e, 0x91, 0xdd, 0x1f, 0xb9, 0xdd, 0x93, 0xa1, 0xac, 0x3c, 0xd2, 0x70, 0xb8, 0xf9, 0x3e, 0xd4, 0xce, 0x37, 0xa5, 0xbd, 0x13, 0x64, 0x0f, 0x47, 0x4e, 0xf7, 0x74, 0x28, 0xca,
0xa1, 0xbe, 0x86, 0xef, 0xfc, 0x1e, 0x00, 0x00, 0xff, 0xff, 0xf6, 0xba, 0x8b, 0x7f, 0x7b, 0x07, 0x8f, 0x14, 0x1c, 0x6c, 0xc9, 0x5f, 0xe2, 0xdb, 0xbf, 0x07, 0x00, 0x00, 0xff, 0xff, 0xb8, 0xaf,
0x00, 0x00, 0x1e, 0xa2, 0x94, 0x07, 0x00, 0x00,
} }
func (m *XHeader) Marshal() (dAtA []byte, err error) { func (m *XHeader) Marshal() (dAtA []byte, err error) {
@ -2182,7 +2182,7 @@ func (m *SessionToken_Body) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.OwnerId == nil { if m.OwnerId == nil {
m.OwnerId = &refs.OwnerID{} m.OwnerId = &grpc.OwnerID{}
} }
if err := m.OwnerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.OwnerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
@ -2306,7 +2306,7 @@ func (m *SessionToken_Body) Unmarshal(dAtA []byte) error {
if postIndex > l { if postIndex > l {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
v := &refs.Address{} v := &grpc.Address{}
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
} }
@ -2522,7 +2522,7 @@ func (m *BearerToken_Body) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.EaclTable == nil { if m.EaclTable == nil {
m.EaclTable = &acl.EACLTable{} m.EaclTable = &grpc1.EACLTable{}
} }
if err := m.EaclTable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.EaclTable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
@ -2558,7 +2558,7 @@ func (m *BearerToken_Body) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.OwnerId == nil { if m.OwnerId == nil {
m.OwnerId = &refs.OwnerID{} m.OwnerId = &grpc.OwnerID{}
} }
if err := m.OwnerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.OwnerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err

View file

@ -1,13 +1,13 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT. // Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: v2/service/verify.proto // source: v2/service/grpc/verify.proto
package service package service
import ( import (
fmt "fmt" fmt "fmt"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
_ "github.com/nspcc-dev/neofs-api-go/v2/acl" _ "github.com/nspcc-dev/neofs-api-go/v2/acl/grpc"
_ "github.com/nspcc-dev/neofs-api-go/v2/refs" _ "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
io "io" io "io"
math "math" math "math"
math_bits "math/bits" math_bits "math/bits"
@ -39,7 +39,7 @@ func (m *Signature) Reset() { *m = Signature{} }
func (m *Signature) String() string { return proto.CompactTextString(m) } func (m *Signature) String() string { return proto.CompactTextString(m) }
func (*Signature) ProtoMessage() {} func (*Signature) ProtoMessage() {}
func (*Signature) Descriptor() ([]byte, []int) { func (*Signature) Descriptor() ([]byte, []int) {
return fileDescriptor_848d62e0ecc8b6b6, []int{0} return fileDescriptor_333853833d6163d3, []int{0}
} }
func (m *Signature) XXX_Unmarshal(b []byte) error { func (m *Signature) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -101,7 +101,7 @@ func (m *RequestVerificationHeader) Reset() { *m = RequestVerificationHe
func (m *RequestVerificationHeader) String() string { return proto.CompactTextString(m) } func (m *RequestVerificationHeader) String() string { return proto.CompactTextString(m) }
func (*RequestVerificationHeader) ProtoMessage() {} func (*RequestVerificationHeader) ProtoMessage() {}
func (*RequestVerificationHeader) Descriptor() ([]byte, []int) { func (*RequestVerificationHeader) Descriptor() ([]byte, []int) {
return fileDescriptor_848d62e0ecc8b6b6, []int{1} return fileDescriptor_333853833d6163d3, []int{1}
} }
func (m *RequestVerificationHeader) XXX_Unmarshal(b []byte) error { func (m *RequestVerificationHeader) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -177,7 +177,7 @@ func (m *ResponseVerificationHeader) Reset() { *m = ResponseVerification
func (m *ResponseVerificationHeader) String() string { return proto.CompactTextString(m) } func (m *ResponseVerificationHeader) String() string { return proto.CompactTextString(m) }
func (*ResponseVerificationHeader) ProtoMessage() {} func (*ResponseVerificationHeader) ProtoMessage() {}
func (*ResponseVerificationHeader) Descriptor() ([]byte, []int) { func (*ResponseVerificationHeader) Descriptor() ([]byte, []int) {
return fileDescriptor_848d62e0ecc8b6b6, []int{2} return fileDescriptor_333853833d6163d3, []int{2}
} }
func (m *ResponseVerificationHeader) XXX_Unmarshal(b []byte) error { func (m *ResponseVerificationHeader) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -240,33 +240,33 @@ func init() {
proto.RegisterType((*ResponseVerificationHeader)(nil), "neo.fs.v2.service.ResponseVerificationHeader") proto.RegisterType((*ResponseVerificationHeader)(nil), "neo.fs.v2.service.ResponseVerificationHeader")
} }
func init() { proto.RegisterFile("v2/service/verify.proto", fileDescriptor_848d62e0ecc8b6b6) } func init() { proto.RegisterFile("v2/service/grpc/verify.proto", fileDescriptor_333853833d6163d3) }
var fileDescriptor_848d62e0ecc8b6b6 = []byte{ var fileDescriptor_333853833d6163d3 = []byte{
// 353 bytes of a gzipped FileDescriptorProto // 361 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x93, 0x4f, 0x4b, 0xc3, 0x30, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x93, 0xcf, 0x4a, 0xeb, 0x40,
0x18, 0xc6, 0x6d, 0x37, 0x06, 0x46, 0x9d, 0xb3, 0x0a, 0xce, 0x21, 0x45, 0x76, 0xf2, 0x60, 0x13, 0x14, 0xc6, 0x6f, 0xd2, 0x52, 0xb8, 0x73, 0xef, 0xed, 0xad, 0x41, 0x30, 0x96, 0x12, 0xa4, 0x2b,
0xac, 0xde, 0x3c, 0xe9, 0xfc, 0x7b, 0x11, 0xe9, 0xc0, 0x83, 0x20, 0xd2, 0x75, 0x6f, 0x6b, 0xd0, 0x17, 0x66, 0x06, 0xe3, 0x4a, 0x5c, 0x69, 0xfd, 0xbb, 0x11, 0x49, 0xc1, 0x85, 0x1b, 0x49, 0xd2,
0x25, 0x35, 0xc9, 0x02, 0xfd, 0x26, 0x7e, 0x06, 0xcf, 0xe2, 0x67, 0xf0, 0xe8, 0x47, 0x90, 0xf9, 0x93, 0x38, 0x68, 0x67, 0xe2, 0xcc, 0x74, 0x20, 0x6f, 0xe2, 0x33, 0xb8, 0x16, 0x9f, 0xc1, 0xa5,
0x45, 0xa4, 0xed, 0x66, 0x87, 0x6e, 0xb0, 0xbb, 0xa7, 0xbc, 0x3c, 0xc9, 0xf3, 0xcb, 0xc3, 0x03, 0x8f, 0x20, 0xf5, 0x45, 0x24, 0x49, 0x6b, 0x4b, 0xff, 0x40, 0xf7, 0xee, 0x4e, 0x4e, 0xbe, 0xef,
0x2f, 0x5a, 0xd7, 0x2e, 0x91, 0x20, 0x34, 0x0d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x84, 0x9f, 0xd1, 0xdb, 0xc9, 0x4c,
0xdc, 0xd1, 0xed, 0xfb, 0xc0, 0x36, 0x3e, 0x06, 0xb6, 0xf1, 0x39, 0xb0, 0x8d, 0xe7, 0x2f, 0x7b, 0x6f, 0xee, 0xc2, 0xde, 0x96, 0x35, 0x32, 0x2e, 0xee, 0x28, 0x7c, 0x1b, 0x3a, 0xc6, 0xfb, 0xd0,
0xee, 0x66, 0x3f, 0xa2, 0xea, 0xbe, 0xdf, 0xc1, 0x01, 0xef, 0x11, 0x26, 0xe3, 0x20, 0x70, 0xba, 0x31, 0x3e, 0x86, 0x8e, 0xf1, 0xf4, 0xe9, 0xfc, 0xba, 0xd9, 0x4f, 0xa8, 0xba, 0x1b, 0x84, 0x38,
0xa0, 0x09, 0x03, 0x1e, 0x4a, 0xc7, 0x8f, 0xa9, 0x13, 0x71, 0x52, 0xec, 0xca, 0xc1, 0xf0, 0x7c, 0xe2, 0x7d, 0xc2, 0x64, 0x1a, 0x45, 0x6e, 0x0f, 0x34, 0x61, 0xc0, 0x63, 0xe9, 0x06, 0x29, 0x75,
0x31, 0xd7, 0x2e, 0x81, 0x9f, 0xb6, 0xf1, 0xe1, 0xd5, 0x45, 0x9a, 0xa0, 0x9d, 0xcb, 0x9d, 0x4a, 0x13, 0x4e, 0x66, 0x4e, 0xe7, 0x60, 0xf4, 0xf1, 0x6c, 0xae, 0x5f, 0x02, 0x3f, 0xed, 0xe2, 0xc3,
0xb6, 0x08, 0x7b, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x8d, 0x87, 0x6a, 0x4d, 0x5f, 0x03, 0x00, 0xab, 0x8b, 0x3c, 0x46, 0xb7, 0x5c, 0x87, 0xb5, 0xe2, 0x1a, 0xf6, 0xbe, 0x02, 0x00, 0x00, 0xff,
0x00, 0xff, 0x66, 0xc2, 0xc4, 0xb8, 0x73, 0x03, 0x00, 0x00,
} }
func (m *Signature) Marshal() (dAtA []byte, err error) { func (m *Signature) Marshal() (dAtA []byte, err error) {

View file

@ -1,4 +1,8 @@
package v2 package service
import (
service "github.com/nspcc-dev/neofs-api-go/v2/service/grpc"
)
type Signature struct { type Signature struct {
key, sign []byte key, sign []byte
@ -42,10 +46,6 @@ type RequestMetaHeader struct {
origin *RequestMetaHeader origin *RequestMetaHeader
} }
type OwnerID struct {
val []byte
}
func (s *Signature) GetKey() []byte { func (s *Signature) GetKey() []byte {
if s != nil { if s != nil {
return s.key return s.key
@ -316,16 +316,28 @@ func (r *RequestMetaHeader) StableSize() int {
return RequestMetaHeaderToGRPCMessage(r).Size() return RequestMetaHeaderToGRPCMessage(r).Size()
} }
func (o *OwnerID) GetValue() []byte { func SignatureToGRPCMessage(s *Signature) *service.Signature {
if o != nil { if s == nil {
return o.val
}
return nil return nil
}
m := new(service.Signature)
m.SetKey(s.GetKey())
m.SetSign(s.GetSign())
return m
} }
func (o *OwnerID) SetValue(v []byte) { func SignatureFromGRPCMessage(m *service.Signature) *Signature {
if o != nil { if m == nil {
o.val = v return nil
} }
s := new(Signature)
s.SetKey(m.GetKey())
s.SetSign(m.GetSign())
return s
} }

View file

@ -1,8 +1,8 @@
package session package session
import ( import (
"github.com/nspcc-dev/neofs-api-go/v2/refs" refs "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
"github.com/nspcc-dev/neofs-api-go/v2/service" service "github.com/nspcc-dev/neofs-api-go/v2/service/grpc"
) )
// SetOwnerId sets identifier of the session initiator. // SetOwnerId sets identifier of the session initiator.

View file

@ -1,5 +1,5 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT. // Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: v2/session/service.proto // source: v2/session/grpc/service.proto
package session package session
@ -7,9 +7,9 @@ import (
context "context" context "context"
fmt "fmt" fmt "fmt"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
refs "github.com/nspcc-dev/neofs-api-go/v2/refs" grpc1 "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
service "github.com/nspcc-dev/neofs-api-go/v2/service" grpc "github.com/nspcc-dev/neofs-api-go/v2/service/grpc"
grpc "google.golang.org/grpc" grpc2 "google.golang.org/grpc"
codes "google.golang.org/grpc/codes" codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status" status "google.golang.org/grpc/status"
io "io" io "io"
@ -34,10 +34,10 @@ type CreateRequest struct {
Body *CreateRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` 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 // Carries request meta information. Header data is used only to regulate message
// transport and does not affect request execution. // transport and does not affect request execution.
MetaHeader *service.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` MetaHeader *grpc.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 // Carries request verification information. This header is used to authenticate
// the nodes of the message route and check the correctness of transmission. // the nodes of the message route and check the correctness of transmission.
VerifyHeader *service.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` VerifyHeader *grpc.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
@ -47,7 +47,7 @@ func (m *CreateRequest) Reset() { *m = CreateRequest{} }
func (m *CreateRequest) String() string { return proto.CompactTextString(m) } func (m *CreateRequest) String() string { return proto.CompactTextString(m) }
func (*CreateRequest) ProtoMessage() {} func (*CreateRequest) ProtoMessage() {}
func (*CreateRequest) Descriptor() ([]byte, []int) { func (*CreateRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ab0074a16885b32c, []int{0} return fileDescriptor_4ed1365cc8e16cd4, []int{0}
} }
func (m *CreateRequest) XXX_Unmarshal(b []byte) error { func (m *CreateRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -83,14 +83,14 @@ func (m *CreateRequest) GetBody() *CreateRequest_Body {
return nil return nil
} }
func (m *CreateRequest) GetMetaHeader() *service.RequestMetaHeader { func (m *CreateRequest) GetMetaHeader() *grpc.RequestMetaHeader {
if m != nil { if m != nil {
return m.MetaHeader return m.MetaHeader
} }
return nil return nil
} }
func (m *CreateRequest) GetVerifyHeader() *service.RequestVerificationHeader { func (m *CreateRequest) GetVerifyHeader() *grpc.RequestVerificationHeader {
if m != nil { if m != nil {
return m.VerifyHeader return m.VerifyHeader
} }
@ -100,9 +100,9 @@ func (m *CreateRequest) GetVerifyHeader() *service.RequestVerificationHeader {
// Request body // Request body
type CreateRequest_Body struct { type CreateRequest_Body struct {
// Carries an identifier of a session initiator. // Carries an identifier of a session initiator.
OwnerId *refs.OwnerID `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` OwnerId *grpc1.OwnerID `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
// Carries a lifetime of the session. // Carries a lifetime of the session.
Lifetime *service.TokenLifetime `protobuf:"bytes,2,opt,name=lifetime,proto3" json:"lifetime,omitempty"` Lifetime *grpc.TokenLifetime `protobuf:"bytes,2,opt,name=lifetime,proto3" json:"lifetime,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
@ -112,7 +112,7 @@ func (m *CreateRequest_Body) Reset() { *m = CreateRequest_Body{} }
func (m *CreateRequest_Body) String() string { return proto.CompactTextString(m) } func (m *CreateRequest_Body) String() string { return proto.CompactTextString(m) }
func (*CreateRequest_Body) ProtoMessage() {} func (*CreateRequest_Body) ProtoMessage() {}
func (*CreateRequest_Body) Descriptor() ([]byte, []int) { func (*CreateRequest_Body) Descriptor() ([]byte, []int) {
return fileDescriptor_ab0074a16885b32c, []int{0, 0} return fileDescriptor_4ed1365cc8e16cd4, []int{0, 0}
} }
func (m *CreateRequest_Body) XXX_Unmarshal(b []byte) error { func (m *CreateRequest_Body) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -141,14 +141,14 @@ func (m *CreateRequest_Body) XXX_DiscardUnknown() {
var xxx_messageInfo_CreateRequest_Body proto.InternalMessageInfo var xxx_messageInfo_CreateRequest_Body proto.InternalMessageInfo
func (m *CreateRequest_Body) GetOwnerId() *refs.OwnerID { func (m *CreateRequest_Body) GetOwnerId() *grpc1.OwnerID {
if m != nil { if m != nil {
return m.OwnerId return m.OwnerId
} }
return nil return nil
} }
func (m *CreateRequest_Body) GetLifetime() *service.TokenLifetime { func (m *CreateRequest_Body) GetLifetime() *grpc.TokenLifetime {
if m != nil { if m != nil {
return m.Lifetime return m.Lifetime
} }
@ -161,11 +161,11 @@ type CreateResponse struct {
Body *CreateResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` Body *CreateResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
// Carries response meta information. Header data is used only to regulate // Carries response meta information. Header data is used only to regulate
// message transport and does not affect request execution. // message transport and does not affect request execution.
MetaHeader *service.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"` MetaHeader *grpc.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"`
// Carries response verification information. This header is used to // Carries response verification information. This header is used to
// authenticate the nodes of the message route and check the correctness // authenticate the nodes of the message route and check the correctness
// of transmission. // of transmission.
VerifyHeader *service.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"` VerifyHeader *grpc.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
@ -175,7 +175,7 @@ func (m *CreateResponse) Reset() { *m = CreateResponse{} }
func (m *CreateResponse) String() string { return proto.CompactTextString(m) } func (m *CreateResponse) String() string { return proto.CompactTextString(m) }
func (*CreateResponse) ProtoMessage() {} func (*CreateResponse) ProtoMessage() {}
func (*CreateResponse) Descriptor() ([]byte, []int) { func (*CreateResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ab0074a16885b32c, []int{1} return fileDescriptor_4ed1365cc8e16cd4, []int{1}
} }
func (m *CreateResponse) XXX_Unmarshal(b []byte) error { func (m *CreateResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -211,14 +211,14 @@ func (m *CreateResponse) GetBody() *CreateResponse_Body {
return nil return nil
} }
func (m *CreateResponse) GetMetaHeader() *service.ResponseMetaHeader { func (m *CreateResponse) GetMetaHeader() *grpc.ResponseMetaHeader {
if m != nil { if m != nil {
return m.MetaHeader return m.MetaHeader
} }
return nil return nil
} }
func (m *CreateResponse) GetVerifyHeader() *service.ResponseVerificationHeader { func (m *CreateResponse) GetVerifyHeader() *grpc.ResponseVerificationHeader {
if m != nil { if m != nil {
return m.VerifyHeader return m.VerifyHeader
} }
@ -240,7 +240,7 @@ func (m *CreateResponse_Body) Reset() { *m = CreateResponse_Body{} }
func (m *CreateResponse_Body) String() string { return proto.CompactTextString(m) } func (m *CreateResponse_Body) String() string { return proto.CompactTextString(m) }
func (*CreateResponse_Body) ProtoMessage() {} func (*CreateResponse_Body) ProtoMessage() {}
func (*CreateResponse_Body) Descriptor() ([]byte, []int) { func (*CreateResponse_Body) Descriptor() ([]byte, []int) {
return fileDescriptor_ab0074a16885b32c, []int{1, 0} return fileDescriptor_4ed1365cc8e16cd4, []int{1, 0}
} }
func (m *CreateResponse_Body) XXX_Unmarshal(b []byte) error { func (m *CreateResponse_Body) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -290,66 +290,67 @@ func init() {
proto.RegisterType((*CreateResponse_Body)(nil), "neo.fs.v2.session.CreateResponse.Body") proto.RegisterType((*CreateResponse_Body)(nil), "neo.fs.v2.session.CreateResponse.Body")
} }
func init() { proto.RegisterFile("v2/session/service.proto", fileDescriptor_ab0074a16885b32c) } func init() { proto.RegisterFile("v2/session/grpc/service.proto", fileDescriptor_4ed1365cc8e16cd4) }
var fileDescriptor_ab0074a16885b32c = []byte{ var fileDescriptor_4ed1365cc8e16cd4 = []byte{
// 463 bytes of a gzipped FileDescriptorProto // 466 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xdf, 0x6e, 0xd3, 0x30, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0x4f, 0x6f, 0xd3, 0x30,
0x14, 0xc6, 0x49, 0x98, 0xc6, 0xe4, 0x76, 0x95, 0x30, 0xa0, 0x55, 0xbd, 0x28, 0x65, 0x62, 0x88, 0x18, 0xc6, 0x49, 0x98, 0xc6, 0xe4, 0x76, 0x95, 0xb0, 0x90, 0xa8, 0x22, 0x28, 0x65, 0x62, 0x88,
0x0b, 0x62, 0x4b, 0x01, 0x09, 0xf1, 0xe7, 0x86, 0x01, 0x13, 0x15, 0x8c, 0x3f, 0x2e, 0xe2, 0x02, 0x03, 0x75, 0xa4, 0x70, 0x40, 0x03, 0x2e, 0x0c, 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 0x5c, 0x95, 0x69, 0x3a, 0xca,
0x99, 0xa9, 0x20, 0x2e, 0x78, 0x70, 0x20, 0xe9, 0xbf, 0xb7, 0xf8, 0xc0, 0xfd, 0x7e, 0xf7, 0x2f, 0xa0, 0x0a, 0x39, 0x88, 0x5c, 0x8d, 0xe2, 0x92, 0x8d, 0x66, 0x22, 0x3c, 0xf3, 0x3e, 0x1f, 0xbb,
0xbf, 0x04, 0xb9, 0x37, 0x21, 0x8f, 0x5e, 0x8f, 0x9b, 0x6e, 0x6e, 0xe8, 0xe9, 0xba, 0x79, 0x4b, 0xc3, 0x4f, 0xff, 0xda, 0x1b, 0x10, 0x7b, 0x13, 0xf2, 0xf4, 0xdd, 0xb8, 0xb9, 0xd2, 0x35, 0x4f,
0xb7, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x38, 0xb7, 0xac, 0xe1, 0xbf, 0x03, 0x00, 0x00, 0xd6, 0xcd, 0x83, 0x7a, 0xf0, 0x3f, 0x00, 0x00, 0xff, 0xff, 0xc2, 0x58, 0x7b, 0xc5, 0xd8, 0x03,
0x00, 0x00,
} }
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var _ context.Context var _ context.Context
var _ grpc.ClientConn var _ grpc2.ClientConn
// This is a compile-time assertion to ensure that this generated file // This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against. // is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4 const _ = grpc2.SupportPackageIsVersion4
// SessionServiceClient is the client API for SessionService service. // SessionServiceClient is the client API for SessionService service.
// //
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type SessionServiceClient interface { type SessionServiceClient interface {
// Create opens new session between the client and the server. // Create opens new session between the client and the server.
Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) Create(ctx context.Context, in *CreateRequest, opts ...grpc2.CallOption) (*CreateResponse, error)
} }
type sessionServiceClient struct { type sessionServiceClient struct {
cc *grpc.ClientConn cc *grpc2.ClientConn
} }
func NewSessionServiceClient(cc *grpc.ClientConn) SessionServiceClient { func NewSessionServiceClient(cc *grpc2.ClientConn) SessionServiceClient {
return &sessionServiceClient{cc} return &sessionServiceClient{cc}
} }
func (c *sessionServiceClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) { func (c *sessionServiceClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc2.CallOption) (*CreateResponse, error) {
out := new(CreateResponse) out := new(CreateResponse)
err := c.cc.Invoke(ctx, "/neo.fs.v2.session.SessionService/Create", in, out, opts...) err := c.cc.Invoke(ctx, "/neo.fs.v2.session.SessionService/Create", in, out, opts...)
if err != nil { if err != nil {
@ -372,11 +373,11 @@ func (*UnimplementedSessionServiceServer) Create(ctx context.Context, req *Creat
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
} }
func RegisterSessionServiceServer(s *grpc.Server, srv SessionServiceServer) { func RegisterSessionServiceServer(s *grpc2.Server, srv SessionServiceServer) {
s.RegisterService(&_SessionService_serviceDesc, srv) s.RegisterService(&_SessionService_serviceDesc, srv)
} }
func _SessionService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _SessionService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc2.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateRequest) in := new(CreateRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
@ -384,7 +385,7 @@ func _SessionService_Create_Handler(srv interface{}, ctx context.Context, dec fu
if interceptor == nil { if interceptor == nil {
return srv.(SessionServiceServer).Create(ctx, in) return srv.(SessionServiceServer).Create(ctx, in)
} }
info := &grpc.UnaryServerInfo{ info := &grpc2.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/neo.fs.v2.session.SessionService/Create", FullMethod: "/neo.fs.v2.session.SessionService/Create",
} }
@ -394,17 +395,17 @@ func _SessionService_Create_Handler(srv interface{}, ctx context.Context, dec fu
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
var _SessionService_serviceDesc = grpc.ServiceDesc{ var _SessionService_serviceDesc = grpc2.ServiceDesc{
ServiceName: "neo.fs.v2.session.SessionService", ServiceName: "neo.fs.v2.session.SessionService",
HandlerType: (*SessionServiceServer)(nil), HandlerType: (*SessionServiceServer)(nil),
Methods: []grpc.MethodDesc{ Methods: []grpc2.MethodDesc{
{ {
MethodName: "Create", MethodName: "Create",
Handler: _SessionService_Create_Handler, Handler: _SessionService_Create_Handler,
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc2.StreamDesc{},
Metadata: "v2/session/service.proto", Metadata: "v2/session/grpc/service.proto",
} }
func (m *CreateRequest) Marshal() (dAtA []byte, err error) { func (m *CreateRequest) Marshal() (dAtA []byte, err error) {
@ -825,7 +826,7 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.MetaHeader == nil { if m.MetaHeader == nil {
m.MetaHeader = &service.RequestMetaHeader{} m.MetaHeader = &grpc.RequestMetaHeader{}
} }
if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
@ -861,7 +862,7 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.VerifyHeader == nil { if m.VerifyHeader == nil {
m.VerifyHeader = &service.RequestVerificationHeader{} m.VerifyHeader = &grpc.RequestVerificationHeader{}
} }
if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
@ -951,7 +952,7 @@ func (m *CreateRequest_Body) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.OwnerId == nil { if m.OwnerId == nil {
m.OwnerId = &refs.OwnerID{} m.OwnerId = &grpc1.OwnerID{}
} }
if err := m.OwnerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.OwnerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
@ -987,7 +988,7 @@ func (m *CreateRequest_Body) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.Lifetime == nil { if m.Lifetime == nil {
m.Lifetime = &service.TokenLifetime{} m.Lifetime = &grpc.TokenLifetime{}
} }
if err := m.Lifetime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.Lifetime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
@ -1113,7 +1114,7 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.MetaHeader == nil { if m.MetaHeader == nil {
m.MetaHeader = &service.ResponseMetaHeader{} m.MetaHeader = &grpc.ResponseMetaHeader{}
} }
if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.MetaHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
@ -1149,7 +1150,7 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
if m.VerifyHeader == nil { if m.VerifyHeader == nil {
m.VerifyHeader = &service.ResponseVerificationHeader{} m.VerifyHeader = &grpc.ResponseVerificationHeader{}
} }
if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.VerifyHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err

View file

@ -5,14 +5,15 @@ import (
"fmt" "fmt"
"github.com/nspcc-dev/neofs-api-go/util/signature" "github.com/nspcc-dev/neofs-api-go/util/signature"
v2 "github.com/nspcc-dev/neofs-api-go/v2" "github.com/nspcc-dev/neofs-api-go/v2/accounting"
"github.com/nspcc-dev/neofs-api-go/v2/service"
"github.com/pkg/errors" "github.com/pkg/errors"
) )
type SignedRequest interface { type SignedRequest interface {
GetRequestMetaHeader() *v2.RequestMetaHeader GetRequestMetaHeader() *service.RequestMetaHeader
GetRequestVerificationHeader() *v2.RequestVerificationHeader GetRequestVerificationHeader() *service.RequestVerificationHeader
SetRequestVerificationHeader(*v2.RequestVerificationHeader) SetRequestVerificationHeader(*service.RequestVerificationHeader)
} }
type stableMarshaler interface { type stableMarshaler interface {
@ -32,14 +33,14 @@ func (s stableMarshalerWrapper) SignedDataSize() int {
return s.sm.StableSize() return s.sm.StableSize()
} }
func keySignatureHandler(s *v2.Signature) signature.KeySignatureHandler { func keySignatureHandler(s *service.Signature) signature.KeySignatureHandler {
return func(key []byte, sig []byte) { return func(key []byte, sig []byte) {
s.SetKey(key) s.SetKey(key)
s.SetSign(sig) s.SetSign(sig)
} }
} }
func keySignatureSource(s *v2.Signature) signature.KeySignatureSource { func keySignatureSource(s *service.Signature) signature.KeySignatureSource {
return func() ([]byte, []byte) { return func() ([]byte, []byte) {
return s.GetKey(), s.GetSign() return s.GetKey(), s.GetSign()
} }
@ -47,7 +48,7 @@ func keySignatureSource(s *v2.Signature) signature.KeySignatureSource {
func requestBody(req SignedRequest) stableMarshaler { func requestBody(req SignedRequest) stableMarshaler {
switch v := req.(type) { switch v := req.(type) {
case *v2.BalanceRequest: case *accounting.BalanceRequest:
return v.GetBody() return v.GetBody()
default: default:
panic(fmt.Sprintf("unknown request %T", req)) panic(fmt.Sprintf("unknown request %T", req))
@ -60,7 +61,7 @@ func SignRequest(key *ecdsa.PrivateKey, req SignedRequest) error {
} }
// create new level of matryoshka // create new level of matryoshka
verifyHdr := new(v2.RequestVerificationHeader) verifyHdr := new(service.RequestVerificationHeader)
// attach the previous matryoshka // attach the previous matryoshka
verifyHdr.SetOrigin(req.GetRequestVerificationHeader()) verifyHdr.SetOrigin(req.GetRequestVerificationHeader())
@ -86,8 +87,8 @@ func SignRequest(key *ecdsa.PrivateKey, req SignedRequest) error {
return nil return nil
} }
func signRequestPart(key *ecdsa.PrivateKey, part stableMarshaler, sigWrite func(*v2.Signature)) error { func signRequestPart(key *ecdsa.PrivateKey, part stableMarshaler, sigWrite func(*service.Signature)) error {
sig := new(v2.Signature) sig := new(service.Signature)
// sign part // sign part
if err := signature.SignDataWithHandler( if err := signature.SignDataWithHandler(
@ -125,7 +126,7 @@ func VerifyRequest(req SignedRequest) error {
return nil return nil
} }
func verifyRequestPart(part stableMarshaler, sigRdr func() *v2.Signature) error { func verifyRequestPart(part stableMarshaler, sigRdr func() *service.Signature) error {
if err := signature.VerifyDataWithSource( if err := signature.VerifyDataWithSource(
&stableMarshalerWrapper{part}, &stableMarshalerWrapper{part},
keySignatureSource(sigRdr()), keySignatureSource(sigRdr()),

View file

@ -1,7 +1,7 @@
package storagegroup package storagegroup
import ( import (
"github.com/nspcc-dev/neofs-api-go/v2/refs" refs "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
) )
// SetValidationDataSize sets the total size of the payloads of the storage group. // SetValidationDataSize sets the total size of the payloads of the storage group.

View file

@ -1,12 +1,12 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT. // Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: v2/storagegroup/types.proto // source: v2/storagegroup/grpc/types.proto
package storagegroup package storagegroup
import ( import (
fmt "fmt" fmt "fmt"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
refs "github.com/nspcc-dev/neofs-api-go/v2/refs" grpc "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
io "io" io "io"
math "math" math "math"
math_bits "math/bits" math_bits "math/bits"
@ -39,7 +39,7 @@ type StorageGroup struct {
ExpirationEpoch uint64 `protobuf:"varint,3,opt,name=expiration_epoch,json=expirationEpoch,proto3" json:"expiration_epoch,omitempty"` 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. // Members carries the list of identifiers of the object storage group members.
// The list is strictly ordered. // The list is strictly ordered.
Members []*refs.ObjectID `protobuf:"bytes,4,rep,name=members,proto3" json:"members,omitempty"` Members []*grpc.ObjectID `protobuf:"bytes,4,rep,name=members,proto3" json:"members,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
@ -49,7 +49,7 @@ func (m *StorageGroup) Reset() { *m = StorageGroup{} }
func (m *StorageGroup) String() string { return proto.CompactTextString(m) } func (m *StorageGroup) String() string { return proto.CompactTextString(m) }
func (*StorageGroup) ProtoMessage() {} func (*StorageGroup) ProtoMessage() {}
func (*StorageGroup) Descriptor() ([]byte, []int) { func (*StorageGroup) Descriptor() ([]byte, []int) {
return fileDescriptor_593772eae6c18cdf, []int{0} return fileDescriptor_f1685cc94b670845, []int{0}
} }
func (m *StorageGroup) XXX_Unmarshal(b []byte) error { func (m *StorageGroup) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -99,7 +99,7 @@ func (m *StorageGroup) GetExpirationEpoch() uint64 {
return 0 return 0
} }
func (m *StorageGroup) GetMembers() []*refs.ObjectID { func (m *StorageGroup) GetMembers() []*grpc.ObjectID {
if m != nil { if m != nil {
return m.Members return m.Members
} }
@ -110,29 +110,29 @@ func init() {
proto.RegisterType((*StorageGroup)(nil), "neo.fs.v2.storagegroup.StorageGroup") proto.RegisterType((*StorageGroup)(nil), "neo.fs.v2.storagegroup.StorageGroup")
} }
func init() { proto.RegisterFile("v2/storagegroup/types.proto", fileDescriptor_593772eae6c18cdf) } func init() { proto.RegisterFile("v2/storagegroup/grpc/types.proto", fileDescriptor_f1685cc94b670845) }
var fileDescriptor_593772eae6c18cdf = []byte{ var fileDescriptor_f1685cc94b670845 = []byte{
// 297 bytes of a gzipped FileDescriptorProto // 301 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0xdf, 0x4a, 0xc3, 0x30, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xcd, 0x4a, 0x33, 0x31,
0x14, 0xc6, 0xcd, 0x36, 0x14, 0xe2, 0x70, 0x12, 0x45, 0xaa, 0x42, 0x19, 0xde, 0x38, 0x2f, 0x96, 0x18, 0x85, 0xbf, 0xb4, 0xe5, 0x13, 0x62, 0xb1, 0x12, 0x44, 0xa2, 0x8b, 0x61, 0x70, 0x63, 0x5d,
0x48, 0xbd, 0x14, 0x04, 0x65, 0xfe, 0xd9, 0x8d, 0xca, 0x7a, 0xe7, 0xcd, 0x48, 0xdb, 0xd3, 0x36, 0x34, 0x91, 0x71, 0xe9, 0x4a, 0xad, 0x3f, 0xdd, 0xa8, 0xb4, 0x3b, 0x37, 0x25, 0x93, 0xbe, 0x9d,
0xb2, 0x36, 0x21, 0xc9, 0x8a, 0xee, 0x49, 0x7c, 0x06, 0x9f, 0x64, 0x97, 0x3e, 0x82, 0xd4, 0x17, 0x89, 0xd8, 0x49, 0x4c, 0xd2, 0x41, 0x7b, 0x25, 0x5e, 0x83, 0x57, 0xd2, 0xa5, 0x97, 0x20, 0xe3,
0x91, 0x6e, 0x48, 0x8b, 0x97, 0xf9, 0xf2, 0x3b, 0xe7, 0xf0, 0xfd, 0xf0, 0x71, 0xe1, 0x31, 0x63, 0x8d, 0xc8, 0xb4, 0xc8, 0x0c, 0xe8, 0xf6,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0xeb, 0xf0, 0x11, 0xe4, 0x9d, 0x4f, 0x53, 0xd7, 0x13, 0x46, 0xf5, 0x12, 0xcd, 0xff, 0x9a, 0xf4, 0xb4, 0x4e, 0xde, 0x1b, 0x7b, 0xb7,
0xaf, 0x9f, 0xc7, 0xd5, 0xdd, 0xa6, 0xa7, 0x60, 0x73, 0xe5, 0xef, 0xe2, 0x37, 0x00, 0x00, 0xff, 0xa0, 0xaf, 0x46, 0xec, 0xec, 0x7e, 0x50, 0x1e, 0xaf, 0x8f, 0x15, 0xff, 0x5f, 0x8d, 0x78, 0xf2,
0xff, 0xec, 0x24, 0x17, 0x69, 0x8b, 0x01, 0x00, 0x00, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xcd, 0x95, 0x67, 0x64, 0x9a, 0x01, 0x00, 0x00,
} }
func (m *StorageGroup) Marshal() (dAtA []byte, err error) { func (m *StorageGroup) Marshal() (dAtA []byte, err error) {
@ -368,7 +368,7 @@ func (m *StorageGroup) Unmarshal(dAtA []byte) error {
if postIndex > l { if postIndex > l {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
m.Members = append(m.Members, &refs.ObjectID{}) m.Members = append(m.Members, &grpc.ObjectID{})
if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err return err
} }