pkg/pb: rename Order2 to Order, OrderLimit2 to OrderLimit (#2406)

This commit is contained in:
Egon Elbre 2019-07-01 18:54:11 +03:00 committed by GitHub
parent 3ffb42483f
commit 385c046723
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
26 changed files with 279 additions and 279 deletions

View File

@ -12,7 +12,7 @@ import (
)
// EncodeOrderLimit encodes order limit into bytes for signing. Removes signature from serialized limit.
func EncodeOrderLimit(ctx context.Context, limit *pb.OrderLimit2) (_ []byte, err error) {
func EncodeOrderLimit(ctx context.Context, limit *pb.OrderLimit) (_ []byte, err error) {
defer mon.Task()(&ctx)(&err)
signature := limit.SatelliteSignature
limit.SatelliteSignature = nil
@ -22,7 +22,7 @@ func EncodeOrderLimit(ctx context.Context, limit *pb.OrderLimit2) (_ []byte, err
}
// EncodeOrder encodes order into bytes for signing. Removes signature from serialized order.
func EncodeOrder(ctx context.Context, order *pb.Order2) (_ []byte, err error) {
func EncodeOrder(ctx context.Context, order *pb.Order) (_ []byte, err error) {
defer mon.Task()(&ctx)(&err)
signature := order.UplinkSignature
order.UplinkSignature = nil

View File

@ -24,7 +24,7 @@ type Signer interface {
// SignOrderLimit signs the order limit using the specified signer.
// Signer is a satellite.
func SignOrderLimit(ctx context.Context, satellite Signer, unsigned *pb.OrderLimit2) (_ *pb.OrderLimit2, err error) {
func SignOrderLimit(ctx context.Context, satellite Signer, unsigned *pb.OrderLimit) (_ *pb.OrderLimit, err error) {
defer mon.Task()(&ctx)(&err)
bytes, err := EncodeOrderLimit(ctx, unsigned)
if err != nil {
@ -42,7 +42,7 @@ func SignOrderLimit(ctx context.Context, satellite Signer, unsigned *pb.OrderLim
// SignOrder signs the order using the specified signer.
// Signer is an uplink.
func SignOrder(ctx context.Context, uplink Signer, unsigned *pb.Order2) (_ *pb.Order2, err error) {
func SignOrder(ctx context.Context, uplink Signer, unsigned *pb.Order) (_ *pb.Order, err error) {
defer mon.Task()(&ctx)(&err)
bytes, err := EncodeOrder(ctx, unsigned)
if err != nil {

View File

@ -17,7 +17,7 @@ type Signee interface {
}
// VerifyOrderLimitSignature verifies that the signature inside order limit belongs to the satellite.
func VerifyOrderLimitSignature(ctx context.Context, satellite Signee, signed *pb.OrderLimit2) (err error) {
func VerifyOrderLimitSignature(ctx context.Context, satellite Signee, signed *pb.OrderLimit) (err error) {
defer mon.Task()(&ctx)(&err)
bytes, err := EncodeOrderLimit(ctx, signed)
if err != nil {
@ -28,7 +28,7 @@ func VerifyOrderLimitSignature(ctx context.Context, satellite Signee, signed *pb
}
// VerifyOrderSignature verifies that the signature inside order belongs to the uplink.
func VerifyOrderSignature(ctx context.Context, uplink Signee, signed *pb.Order2) (err error) {
func VerifyOrderSignature(ctx context.Context, uplink Signee, signed *pb.Order) (err error) {
defer mon.Task()(&ctx)(&err)
bytes, err := EncodeOrder(ctx, signed)
if err != nil {

View File

@ -25,7 +25,7 @@ var _ = math.Inf
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
type AddressedOrderLimit struct {
Limit *OrderLimit2 `protobuf:"bytes,1,opt,name=limit,proto3" json:"limit,omitempty"`
Limit *OrderLimit `protobuf:"bytes,1,opt,name=limit,proto3" json:"limit,omitempty"`
StorageNodeAddress *NodeAddress `protobuf:"bytes,2,opt,name=storage_node_address,json=storageNodeAddress,proto3" json:"storage_node_address,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
@ -56,7 +56,7 @@ func (m *AddressedOrderLimit) XXX_DiscardUnknown() {
var xxx_messageInfo_AddressedOrderLimit proto.InternalMessageInfo
func (m *AddressedOrderLimit) GetLimit() *OrderLimit2 {
func (m *AddressedOrderLimit) GetLimit() *OrderLimit {
if m != nil {
return m.Limit
}
@ -188,14 +188,14 @@ func (m *SegmentWriteResponse) GetAddressedLimits() []*AddressedOrderLimit {
}
type SegmentCommitRequest struct {
Bucket []byte `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
Path []byte `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
Segment int64 `protobuf:"varint,3,opt,name=segment,proto3" json:"segment,omitempty"`
Pointer *Pointer `protobuf:"bytes,4,opt,name=pointer,proto3" json:"pointer,omitempty"`
OriginalLimits []*OrderLimit2 `protobuf:"bytes,5,rep,name=original_limits,json=originalLimits,proto3" json:"original_limits,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Bucket []byte `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
Path []byte `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
Segment int64 `protobuf:"varint,3,opt,name=segment,proto3" json:"segment,omitempty"`
Pointer *Pointer `protobuf:"bytes,4,opt,name=pointer,proto3" json:"pointer,omitempty"`
OriginalLimits []*OrderLimit `protobuf:"bytes,5,rep,name=original_limits,json=originalLimits,proto3" json:"original_limits,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SegmentCommitRequest) Reset() { *m = SegmentCommitRequest{} }
@ -250,7 +250,7 @@ func (m *SegmentCommitRequest) GetPointer() *Pointer {
return nil
}
func (m *SegmentCommitRequest) GetOriginalLimits() []*OrderLimit2 {
func (m *SegmentCommitRequest) GetOriginalLimits() []*OrderLimit {
if m != nil {
return m.OriginalLimits
}
@ -933,68 +933,68 @@ func init() {
func init() { proto.RegisterFile("metainfo.proto", fileDescriptor_631e2f30a93cd64e) }
var fileDescriptor_631e2f30a93cd64e = []byte{
// 967 bytes of a gzipped FileDescriptorProto
// 965 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdd, 0x6e, 0x1b, 0x45,
0x14, 0x66, 0xed, 0x38, 0x8e, 0x8f, 0x9d, 0x18, 0xc6, 0x26, 0x5d,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, 0x80, 0x05, 0x33,
0x85, 0x15, 0x2c, 0x32, 0xb3, 0xba, 0xaf, 0x45, 0x66, 0xd6, 0xec, 0xed, 0xf9, 0xce, 0x8b, 0x52,
0x3a, 0x1c, 0xee, 0xea, 0xbf, 0x49, 0x8f, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x06, 0xec, 0x5b,
0x84, 0x1c, 0x0b, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.

View File

@ -25,7 +25,7 @@ service Metainfo {
}
message AddressedOrderLimit {
orders.OrderLimit2 limit = 1;
orders.OrderLimit limit = 1;
node.NodeAddress storage_node_address = 2;
}
@ -48,7 +48,7 @@ message SegmentCommitRequest {
bytes path = 2;
int64 segment = 3;
pointerdb.Pointer pointer = 4;
repeated orders.OrderLimit2 original_limits = 5;
repeated orders.OrderLimit original_limits = 5;
}
message SegmentCommitResponse {

View File

@ -93,8 +93,8 @@ func (SettlementResponse_Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e0f5d4cf0fc9e41b, []int{4, 0}
}
// OrderLimit2 is provided by satellite to execute specific action on storage node within some limits
type OrderLimit2 struct {
// OrderLimit is provided by satellite to execute specific action on storage node within some limits
type OrderLimit struct {
// unique serial to avoid replay attacks
SerialNumber SerialNumber `protobuf:"bytes,1,opt,name=serial_number,json=serialNumber,proto3,customtype=SerialNumber" json:"serial_number"`
// satellite who issued this order limit allowing orderer to do the specified action
@ -119,74 +119,74 @@ type OrderLimit2 struct {
XXX_sizecache int32 `json:"-"`
}
func (m *OrderLimit2) Reset() { *m = OrderLimit2{} }
func (m *OrderLimit2) String() string { return proto.CompactTextString(m) }
func (*OrderLimit2) ProtoMessage() {}
func (*OrderLimit2) Descriptor() ([]byte, []int) {
func (m *OrderLimit) Reset() { *m = OrderLimit{} }
func (m *OrderLimit) String() string { return proto.CompactTextString(m) }
func (*OrderLimit) ProtoMessage() {}
func (*OrderLimit) Descriptor() ([]byte, []int) {
return fileDescriptor_e0f5d4cf0fc9e41b, []int{0}
}
func (m *OrderLimit2) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OrderLimit2.Unmarshal(m, b)
func (m *OrderLimit) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OrderLimit.Unmarshal(m, b)
}
func (m *OrderLimit2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OrderLimit2.Marshal(b, m, deterministic)
func (m *OrderLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OrderLimit.Marshal(b, m, deterministic)
}
func (m *OrderLimit2) XXX_Merge(src proto.Message) {
xxx_messageInfo_OrderLimit2.Merge(m, src)
func (m *OrderLimit) XXX_Merge(src proto.Message) {
xxx_messageInfo_OrderLimit.Merge(m, src)
}
func (m *OrderLimit2) XXX_Size() int {
return xxx_messageInfo_OrderLimit2.Size(m)
func (m *OrderLimit) XXX_Size() int {
return xxx_messageInfo_OrderLimit.Size(m)
}
func (m *OrderLimit2) XXX_DiscardUnknown() {
xxx_messageInfo_OrderLimit2.DiscardUnknown(m)
func (m *OrderLimit) XXX_DiscardUnknown() {
xxx_messageInfo_OrderLimit.DiscardUnknown(m)
}
var xxx_messageInfo_OrderLimit2 proto.InternalMessageInfo
var xxx_messageInfo_OrderLimit proto.InternalMessageInfo
func (m *OrderLimit2) GetLimit() int64 {
func (m *OrderLimit) GetLimit() int64 {
if m != nil {
return m.Limit
}
return 0
}
func (m *OrderLimit2) GetAction() PieceAction {
func (m *OrderLimit) GetAction() PieceAction {
if m != nil {
return m.Action
}
return PieceAction_INVALID
}
func (m *OrderLimit2) GetPieceExpiration() *timestamp.Timestamp {
func (m *OrderLimit) GetPieceExpiration() *timestamp.Timestamp {
if m != nil {
return m.PieceExpiration
}
return nil
}
func (m *OrderLimit2) GetOrderExpiration() *timestamp.Timestamp {
func (m *OrderLimit) GetOrderExpiration() *timestamp.Timestamp {
if m != nil {
return m.OrderExpiration
}
return nil
}
func (m *OrderLimit2) GetSatelliteSignature() []byte {
func (m *OrderLimit) GetSatelliteSignature() []byte {
if m != nil {
return m.SatelliteSignature
}
return nil
}
func (m *OrderLimit2) GetSatelliteAddress() *NodeAddress {
func (m *OrderLimit) GetSatelliteAddress() *NodeAddress {
if m != nil {
return m.SatelliteAddress
}
return nil
}
// Order2 is a one step of fullfilling Amount number of bytes from an OrderLimit2 with SerialNumber
type Order2 struct {
// Order is a one step of fullfilling Amount number of bytes from an OrderLimit with SerialNumber
type Order struct {
// serial of the order limit that was signed
SerialNumber SerialNumber `protobuf:"bytes,1,opt,name=serial_number,json=serialNumber,proto3,customtype=SerialNumber" json:"serial_number"`
// amount to be signed for
@ -198,38 +198,38 @@ type Order2 struct {
XXX_sizecache int32 `json:"-"`
}
func (m *Order2) Reset() { *m = Order2{} }
func (m *Order2) String() string { return proto.CompactTextString(m) }
func (*Order2) ProtoMessage() {}
func (*Order2) Descriptor() ([]byte, []int) {
func (m *Order) Reset() { *m = Order{} }
func (m *Order) String() string { return proto.CompactTextString(m) }
func (*Order) ProtoMessage() {}
func (*Order) Descriptor() ([]byte, []int) {
return fileDescriptor_e0f5d4cf0fc9e41b, []int{1}
}
func (m *Order2) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Order2.Unmarshal(m, b)
func (m *Order) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Order.Unmarshal(m, b)
}
func (m *Order2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Order2.Marshal(b, m, deterministic)
func (m *Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Order.Marshal(b, m, deterministic)
}
func (m *Order2) XXX_Merge(src proto.Message) {
xxx_messageInfo_Order2.Merge(m, src)
func (m *Order) XXX_Merge(src proto.Message) {
xxx_messageInfo_Order.Merge(m, src)
}
func (m *Order2) XXX_Size() int {
return xxx_messageInfo_Order2.Size(m)
func (m *Order) XXX_Size() int {
return xxx_messageInfo_Order.Size(m)
}
func (m *Order2) XXX_DiscardUnknown() {
xxx_messageInfo_Order2.DiscardUnknown(m)
func (m *Order) XXX_DiscardUnknown() {
xxx_messageInfo_Order.DiscardUnknown(m)
}
var xxx_messageInfo_Order2 proto.InternalMessageInfo
var xxx_messageInfo_Order proto.InternalMessageInfo
func (m *Order2) GetAmount() int64 {
func (m *Order) GetAmount() int64 {
if m != nil {
return m.Amount
}
return 0
}
func (m *Order2) GetUplinkSignature() []byte {
func (m *Order) GetUplinkSignature() []byte {
if m != nil {
return m.UplinkSignature
}
@ -287,11 +287,11 @@ func (m *PieceHash) GetSignature() []byte {
}
type SettlementRequest struct {
Limit *OrderLimit2 `protobuf:"bytes,1,opt,name=limit,proto3" json:"limit,omitempty"`
Order *Order2 `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Limit *OrderLimit `protobuf:"bytes,1,opt,name=limit,proto3" json:"limit,omitempty"`
Order *Order `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SettlementRequest) Reset() { *m = SettlementRequest{} }
@ -318,14 +318,14 @@ func (m *SettlementRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_SettlementRequest proto.InternalMessageInfo
func (m *SettlementRequest) GetLimit() *OrderLimit2 {
func (m *SettlementRequest) GetLimit() *OrderLimit {
if m != nil {
return m.Limit
}
return nil
}
func (m *SettlementRequest) GetOrder() *Order2 {
func (m *SettlementRequest) GetOrder() *Order {
if m != nil {
return m.Order
}
@ -374,8 +374,8 @@ func (m *SettlementResponse) GetStatus() SettlementResponse_Status {
func init() {
proto.RegisterEnum("orders.PieceAction", PieceAction_name, PieceAction_value)
proto.RegisterEnum("orders.SettlementResponse_Status", SettlementResponse_Status_name, SettlementResponse_Status_value)
proto.RegisterType((*OrderLimit2)(nil), "orders.OrderLimit2")
proto.RegisterType((*Order2)(nil), "orders.Order2")
proto.RegisterType((*OrderLimit)(nil), "orders.OrderLimit")
proto.RegisterType((*Order)(nil), "orders.Order")
proto.RegisterType((*PieceHash)(nil), "orders.PieceHash")
proto.RegisterType((*SettlementRequest)(nil), "orders.SettlementRequest")
proto.RegisterType((*SettlementResponse)(nil), "orders.SettlementResponse")
@ -386,47 +386,47 @@ func init() { proto.RegisterFile("orders.proto", fileDescriptor_e0f5d4cf0fc9e41b
var fileDescriptor_e0f5d4cf0fc9e41b = []byte{
// 667 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x53, 0xcd, 0x6e, 0xd3, 0x40,
0x10, 0xae, 0xf3, 0xe3, 0x24, 0x93, 0x34, 0x71, 0xb7, 0x15, 0x0a, 0x11, 0x52, 0x83, 0xc5, 0x21,
0xb4, 0x92, 0x4b, 0x8d, 0x84, 0xd4, 0x0b, 0x52, 0xda, 0x58, 0xc5, 0xa8, 0x2a, 0xd1, 0xc6, 0xe5,
0xc0, 0x25, 0x72, 0xea, 0xc5, 0xb5, 0x70, 0x6c, 0xe3, 0x5d, 0x4b, 0x3c, 0x01, 0x6f, 0xc5, 0x9d,
0x13, 0x0f, 0xc0, 0xa1, 0xcf, 0x82, 0x76, 0xec, 0x38, 0x29, 0x14, 0xf5, 0xd0, 0x9b, 0xbf, 0x99,
0xef, 0x9b, 0xf1, 0xcc, 0x7c, 0x0b, 0x9d, 0x38, 0xf5, 0x58, 0xca, 0x8d, 0x24, 0x8d, 0x45, 0x4c,
0xd4, 0x1c, 0x0d, 0xc0, 0x8f, 0xfd, 0x38, 0x8f, 0x0d, 0xf6, 0xfd, 0x38, 0xf6, 0x43, 0x76, 0x84,
0x68, 0x91, 0x7d, 0x3e, 0x12, 0xc1, 0x92, 0x71, 0xe1, 0x2e, 0x93, 0x82, 0x00, 0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0x98, 0xf6, 0x7c, 0x7c, 0x3d, 0xb1, 0x6c, 0xad,
0x4c, 0x3a, 0x00, 0x12, 0x52, 0x73, 0x3a, 0xb6, 0xa8, 0x56, 0x91, 0x78, 0x7a, 0xbd, 0xc2, 0x55,
0x02, 0xa0, 0x4e, 0xcc, 0x4b, 0xd3, 0x36, 0x35, 0x75, 0x34, 0x03, 0x15, 0x17, 0xc7, 0x89, 0x05,
0xb0, 0x1e, 0x85, 0x3c, 0xdd, 0x36, 0x1e, 0x9e, 0xaa, 0xdf, 0xff, 0xff, 0xe4, 0xfa, 0xce, 0x50,
0x79, 0xa5, 0x9c, 0x55, 0x3e, 0x95, 0xe2, 0xc5, 0x42, 0xc5, 0x07, 0xf7, 0xfa, 0x4f, 0x00, 0x00,
0x00, 0xff, 0xff, 0xb4, 0x80, 0xc7, 0x0e, 0x82, 0x05, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.

View File

@ -21,8 +21,8 @@ enum PieceAction {
DELETE = 6;
}
// OrderLimit2 is provided by satellite to execute specific action on storage node within some limits
message OrderLimit2 {
// OrderLimit is provided by satellite to execute specific action on storage node within some limits
message OrderLimit {
// unique serial to avoid replay attacks
bytes serial_number = 1 [(gogoproto.customtype) = "SerialNumber", (gogoproto.nullable) = false];
// satellite who issued this order limit allowing orderer to do the specified action
@ -48,8 +48,8 @@ message OrderLimit2 {
node.NodeAddress satellite_address = 11;
}
// Order2 is a one step of fullfilling Amount number of bytes from an OrderLimit2 with SerialNumber
message Order2 {
// Order is a one step of fullfilling Amount number of bytes from an OrderLimit with SerialNumber
message Order {
// serial of the order limit that was signed
bytes serial_number = 1 [(gogoproto.customtype) = "SerialNumber", (gogoproto.nullable) = false];
// amount to be signed for
@ -73,8 +73,8 @@ service Orders {
}
message SettlementRequest {
OrderLimit2 limit = 1;
Order2 order = 2;
OrderLimit limit = 1;
Order order = 2;
}
message SettlementResponse {

View File

@ -33,9 +33,9 @@ const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
//
type PieceUploadRequest struct {
// first message to show that we are allowed to upload
Limit *OrderLimit2 `protobuf:"bytes,1,opt,name=limit,proto3" json:"limit,omitempty"`
Limit *OrderLimit `protobuf:"bytes,1,opt,name=limit,proto3" json:"limit,omitempty"`
// order for uploading
Order *Order2 `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"`
Order *Order `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"`
Chunk *PieceUploadRequest_Chunk `protobuf:"bytes,3,opt,name=chunk,proto3" json:"chunk,omitempty"`
// final message
Done *PieceHash `protobuf:"bytes,4,opt,name=done,proto3" json:"done,omitempty"`
@ -68,14 +68,14 @@ func (m *PieceUploadRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_PieceUploadRequest proto.InternalMessageInfo
func (m *PieceUploadRequest) GetLimit() *OrderLimit2 {
func (m *PieceUploadRequest) GetLimit() *OrderLimit {
if m != nil {
return m.Limit
}
return nil
}
func (m *PieceUploadRequest) GetOrder() *Order2 {
func (m *PieceUploadRequest) GetOrder() *Order {
if m != nil {
return m.Order
}
@ -189,9 +189,9 @@ func (m *PieceUploadResponse) GetDone() *PieceHash {
// <- PieceDownloadResponse.Chunk
type PieceDownloadRequest struct {
// first message to show that we are allowed to upload
Limit *OrderLimit2 `protobuf:"bytes,1,opt,name=limit,proto3" json:"limit,omitempty"`
Limit *OrderLimit `protobuf:"bytes,1,opt,name=limit,proto3" json:"limit,omitempty"`
// order for downloading
Order *Order2 `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"`
Order *Order `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"`
// request for the chunk
Chunk *PieceDownloadRequest_Chunk `protobuf:"bytes,3,opt,name=chunk,proto3" json:"chunk,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
@ -223,14 +223,14 @@ func (m *PieceDownloadRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_PieceDownloadRequest proto.InternalMessageInfo
func (m *PieceDownloadRequest) GetLimit() *OrderLimit2 {
func (m *PieceDownloadRequest) GetLimit() *OrderLimit {
if m != nil {
return m.Limit
}
return nil
}
func (m *PieceDownloadRequest) GetOrder() *Order2 {
func (m *PieceDownloadRequest) GetOrder() *Order {
if m != nil {
return m.Order
}
@ -377,10 +377,10 @@ func (m *PieceDownloadResponse_Chunk) GetData() []byte {
}
type PieceDeleteRequest struct {
Limit *OrderLimit2 `protobuf:"bytes,1,opt,name=limit,proto3" json:"limit,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Limit *OrderLimit `protobuf:"bytes,1,opt,name=limit,proto3" json:"limit,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PieceDeleteRequest) Reset() { *m = PieceDeleteRequest{} }
@ -407,7 +407,7 @@ func (m *PieceDeleteRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_PieceDeleteRequest proto.InternalMessageInfo
func (m *PieceDeleteRequest) GetLimit() *OrderLimit2 {
func (m *PieceDeleteRequest) GetLimit() *OrderLimit {
if m != nil {
return m.Limit
}
@ -460,32 +460,32 @@ func init() { proto.RegisterFile("piecestore2.proto", fileDescriptor_23ff32dd550
var fileDescriptor_23ff32dd550c2439 = []byte{
// 404 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0x51, 0x4f, 0xea, 0x30,
0x14, 0xc7, 0x29, 0x6c, 0xcb, 0xbd, 0xe7, 0x92, 0x9b, 0x50, 0xc4, 0x2c, 0x4b, 0x54, 0x5c, 0x50,
0xf1, 0x65, 0x31, 0xe3, 0xcd, 0xa0, 0x26, 0xca, 0x83, 0x89, 0x1a, 0x49, 0x0d, 0x2f, 0xbe, 0x98,
0xc1, 0x0a, 0x2c, 0xe2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34, 0x5f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xe0, 0x9d, 0xac, 0xb7,
0x50, 0x04, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.

View File

@ -25,9 +25,9 @@ service Piecestore {
//
message PieceUploadRequest {
// first message to show that we are allowed to upload
orders.OrderLimit2 limit = 1;
orders.OrderLimit limit = 1;
// order for uploading
orders.Order2 order = 2;
orders.Order order = 2;
// data message
message Chunk {
@ -51,9 +51,9 @@ message PieceUploadResponse {
// <- PieceDownloadResponse.Chunk
message PieceDownloadRequest {
// first message to show that we are allowed to upload
orders.OrderLimit2 limit = 1;
orders.OrderLimit limit = 1;
// order for downloading
orders.Order2 order = 2;
orders.Order order = 2;
// Chunk that we wish to download
message Chunk {
@ -75,7 +75,7 @@ message PieceDownloadResponse {
}
message PieceDeleteRequest {
orders.OrderLimit2 limit = 1;
orders.OrderLimit limit = 1;
}
message PieceDeleteResponse {

View File

@ -154,7 +154,7 @@ func newAddressedOrderLimit(ctx context.Context, action pb.PieceAction, satellit
if err != nil {
return nil, err
}
limit := &pb.OrderLimit2{
limit := &pb.OrderLimit{
SerialNumber: serialNumber,
SatelliteId: satellite.ID(),
UplinkId: uplink.ID(),

View File

@ -17,7 +17,7 @@ func TestUnique(t *testing.T) {
limits := make([]*pb.AddressedOrderLimit, 4)
for i := 0; i < len(limits); i++ {
limits[i] = &pb.AddressedOrderLimit{
Limit: &pb.OrderLimit2{
Limit: &pb.OrderLimit{
StorageNodeId: teststorj.NodeIDFromString(fmt.Sprintf("node-%d", i)),
},
}

View File

@ -117,7 +117,7 @@ func (s *segmentStore) Put(ctx context.Context, data io.Reader, expiration time.
var path storj.Path
var pointer *pb.Pointer
var originalLimits []*pb.OrderLimit2
var originalLimits []*pb.OrderLimit
if !remoteSized {
p, metadata, err := segmentInfo()
if err != nil {
@ -167,7 +167,7 @@ func (s *segmentStore) Put(ctx context.Context, data io.Reader, expiration time.
return Meta{}, Error.Wrap(err)
}
originalLimits = make([]*pb.OrderLimit2, len(limits))
originalLimits = make([]*pb.OrderLimit, len(limits))
for i, addressedLimit := range limits {
originalLimits[i] = addressedLimit.GetLimit()
}

View File

@ -1550,7 +1550,7 @@
{
"id": 1,
"name": "limit",
"type": "orders.OrderLimit2"
"type": "orders.OrderLimit"
},
{
"id": 2,
@ -1646,7 +1646,7 @@
{
"id": 5,
"name": "original_limits",
"type": "orders.OrderLimit2",
"type": "orders.OrderLimit",
"is_repeated": true
}
]
@ -2278,7 +2278,7 @@
],
"messages": [
{
"name": "OrderLimit2",
"name": "OrderLimit",
"fields": [
{
"id": 1,
@ -2388,7 +2388,7 @@
]
},
{
"name": "Order2",
"name": "Order",
"fields": [
{
"id": 1,
@ -2453,12 +2453,12 @@
{
"id": 1,
"name": "limit",
"type": "OrderLimit2"
"type": "OrderLimit"
},
{
"id": 2,
"name": "order",
"type": "Order2"
"type": "Order"
}
]
},
@ -2713,12 +2713,12 @@
{
"id": 1,
"name": "limit",
"type": "orders.OrderLimit2"
"type": "orders.OrderLimit"
},
{
"id": 2,
"name": "order",
"type": "orders.Order2"
"type": "orders.Order"
},
{
"id": 3,
@ -2765,12 +2765,12 @@
{
"id": 1,
"name": "limit",
"type": "orders.OrderLimit2"
"type": "orders.OrderLimit"
},
{
"id": 2,
"name": "order",
"type": "orders.Order2"
"type": "orders.Order"
},
{
"id": 3,
@ -2829,7 +2829,7 @@
{
"id": 1,
"name": "limit",
"type": "orders.OrderLimit2"
"type": "orders.OrderLimit"
}
]
},

View File

@ -303,7 +303,7 @@ func TestCommitSegment(t *testing.T) {
{
// error if pointer is nil
_, err = metainfo.CommitSegment(ctx, "bucket", "path", -1, nil, []*pb.OrderLimit2{})
_, err = metainfo.CommitSegment(ctx, "bucket", "path", -1, nil, []*pb.OrderLimit{})
require.Error(t, err)
}
{
@ -342,7 +342,7 @@ func TestCommitSegment(t *testing.T) {
ExpirationDate: expirationDateProto,
}
limits := make([]*pb.OrderLimit2, len(addresedLimits))
limits := make([]*pb.OrderLimit, len(addresedLimits))
for i, addresedLimit := range addresedLimits {
limits[i] = addresedLimit.Limit
}
@ -628,7 +628,7 @@ func TestGetProjectInfo(t *testing.T) {
})
}
func runCreateSegment(ctx context.Context, t *testing.T, metainfo *metainfo.Client) (*pb.Pointer, []*pb.OrderLimit2) {
func runCreateSegment(ctx context.Context, t *testing.T, metainfo *metainfo.Client) (*pb.Pointer, []*pb.OrderLimit) {
pointer := createTestPointer(t)
expirationDate, err := ptypes.Timestamp(pointer.ExpirationDate)
require.NoError(t, err)
@ -640,7 +640,7 @@ func runCreateSegment(ctx context.Context, t *testing.T, metainfo *metainfo.Clie
pointer.Remote.RemotePieces[0].NodeId = addressedLimits[0].Limit.StorageNodeId
pointer.Remote.RemotePieces[1].NodeId = addressedLimits[1].Limit.StorageNodeId
limits := make([]*pb.OrderLimit2, len(addressedLimits))
limits := make([]*pb.OrderLimit, len(addressedLimits))
for i, addressedLimit := range addressedLimits {
limits[i] = addressedLimit.Limit
}

View File

@ -54,7 +54,7 @@ func NewService(log *zap.Logger, satellite signing.Signer, cache *overlay.Cache,
}
// VerifyOrderLimitSignature verifies that the signature inside order limit belongs to the satellite.
func (service *Service) VerifyOrderLimitSignature(ctx context.Context, signed *pb.OrderLimit2) (err error) {
func (service *Service) VerifyOrderLimitSignature(ctx context.Context, signed *pb.OrderLimit) (err error) {
defer mon.Task()(&ctx)(&err)
return signing.VerifyOrderLimitSignature(ctx, service.satellite, signed)
}
@ -164,7 +164,7 @@ func (service *Service) CreateGetOrderLimits(ctx context.Context, uplink *identi
continue
}
orderLimit, err := signing.SignOrderLimit(ctx, service.satellite, &pb.OrderLimit2{
orderLimit, err := signing.SignOrderLimit(ctx, service.satellite, &pb.OrderLimit{
SerialNumber: serialNumber,
SatelliteId: service.satellite.ID(),
SatelliteAddress: service.satelliteAddress,
@ -231,7 +231,7 @@ func (service *Service) CreatePutOrderLimits(ctx context.Context, uplink *identi
limits := make([]*pb.AddressedOrderLimit, len(nodes))
var pieceNum int32
for _, node := range nodes {
orderLimit, err := signing.SignOrderLimit(ctx, service.satellite, &pb.OrderLimit2{
orderLimit, err := signing.SignOrderLimit(ctx, service.satellite, &pb.OrderLimit{
SerialNumber: serialNumber,
SatelliteId: service.satellite.ID(),
SatelliteAddress: service.satelliteAddress,
@ -315,7 +315,7 @@ func (service *Service) CreateDeleteOrderLimits(ctx context.Context, uplink *ide
continue
}
orderLimit, err := signing.SignOrderLimit(ctx, service.satellite, &pb.OrderLimit2{
orderLimit, err := signing.SignOrderLimit(ctx, service.satellite, &pb.OrderLimit{
SerialNumber: serialNumber,
SatelliteId: service.satellite.ID(),
SatelliteAddress: service.satelliteAddress,
@ -403,7 +403,7 @@ func (service *Service) CreateAuditOrderLimits(ctx context.Context, auditor *ide
continue
}
orderLimit, err := signing.SignOrderLimit(ctx, service.satellite, &pb.OrderLimit2{
orderLimit, err := signing.SignOrderLimit(ctx, service.satellite, &pb.OrderLimit{
SerialNumber: serialNumber,
SatelliteId: service.satellite.ID(),
SatelliteAddress: service.satelliteAddress,
@ -475,7 +475,7 @@ func (service *Service) CreateAuditOrderLimit(ctx context.Context, auditor *iden
return nil, overlay.ErrNodeOffline.New(nodeID.String())
}
orderLimit, err := signing.SignOrderLimit(ctx, service.satellite, &pb.OrderLimit2{
orderLimit, err := signing.SignOrderLimit(ctx, service.satellite, &pb.OrderLimit{
SerialNumber: serialNumber,
SatelliteId: service.satellite.ID(),
SatelliteAddress: service.satelliteAddress,
@ -558,7 +558,7 @@ func (service *Service) CreateGetRepairOrderLimits(ctx context.Context, repairer
continue
}
orderLimit, err := signing.SignOrderLimit(ctx, service.satellite, &pb.OrderLimit2{
orderLimit, err := signing.SignOrderLimit(ctx, service.satellite, &pb.OrderLimit{
SerialNumber: serialNumber,
SatelliteId: service.satellite.ID(),
SatelliteAddress: service.satelliteAddress,
@ -637,7 +637,7 @@ func (service *Service) CreatePutRepairOrderLimits(ctx context.Context, repairer
return nil, Error.New("piece num greater than total pieces: %d >= %d", pieceNum, totalPieces)
}
orderLimit, err := signing.SignOrderLimit(ctx, service.satellite, &pb.OrderLimit2{
orderLimit, err := signing.SignOrderLimit(ctx, service.satellite, &pb.OrderLimit{
SerialNumber: serialNumber,
SatelliteId: service.satellite.ID(),
SatelliteAddress: service.satelliteAddress,

View File

@ -48,7 +48,7 @@ func TestOrders(t *testing.T) {
now := ptypes.TimestampNow()
limit, err := signing.SignOrderLimit(ctx, signing.SignerFromFullIdentity(satellite0), &pb.OrderLimit2{
limit, err := signing.SignOrderLimit(ctx, signing.SignerFromFullIdentity(satellite0), &pb.OrderLimit{
SerialNumber: serialNumber,
SatelliteId: satellite0.ID,
UplinkId: uplink.ID,
@ -61,7 +61,7 @@ func TestOrders(t *testing.T) {
})
require.NoError(t, err)
order, err := signing.SignOrder(ctx, signing.SignerFromFullIdentity(uplink), &pb.Order2{
order, err := signing.SignOrder(ctx, signing.SignerFromFullIdentity(uplink), &pb.Order{
SerialNumber: serialNumber,
Amount: 50,
})

View File

@ -30,15 +30,15 @@ var (
// Info contains full information about an order.
type Info struct {
Limit *pb.OrderLimit2
Order *pb.Order2
Limit *pb.OrderLimit
Order *pb.Order
Uplink *identity.PeerIdentity
}
// ArchivedInfo contains full information about an archived order.
type ArchivedInfo struct {
Limit *pb.OrderLimit2
Order *pb.Order2
Limit *pb.OrderLimit
Order *pb.Order
Uplink *identity.PeerIdentity
Status Status

View File

@ -213,7 +213,7 @@ func (endpoint *Endpoint) Upload(stream pb.Piecestore_UploadServer) (err error)
return ErrInternal.Wrap(err)
}
largestOrder := pb.Order2{}
largestOrder := pb.Order{}
defer endpoint.SaveOrder(ctx, limit, &largestOrder, peer)
for {
@ -460,7 +460,7 @@ func (endpoint *Endpoint) Download(stream pb.Piecestore_DownloadServer) (err err
})
recvErr := func() (err error) {
largestOrder := pb.Order2{}
largestOrder := pb.Order{}
defer endpoint.SaveOrder(ctx, limit, &largestOrder, peer)
// ensure that we always terminate sending goroutine
@ -503,7 +503,7 @@ func (endpoint *Endpoint) Download(stream pb.Piecestore_DownloadServer) (err err
}
// SaveOrder saves the order with all necessary information. It assumes it has been already verified.
func (endpoint *Endpoint) SaveOrder(ctx context.Context, limit *pb.OrderLimit2, order *pb.Order2, uplink *identity.PeerIdentity) {
func (endpoint *Endpoint) SaveOrder(ctx context.Context, limit *pb.OrderLimit, order *pb.Order, uplink *identity.PeerIdentity) {
var err error
defer mon.Task()(&ctx)(&err)

View File

@ -362,13 +362,13 @@ func TestDelete(t *testing.T) {
}
func GenerateOrderLimit(t *testing.T, satellite storj.NodeID, uplink storj.NodeID, storageNode storj.NodeID, pieceID storj.PieceID,
action pb.PieceAction, serialNumber storj.SerialNumber, pieceExpiration, orderExpiration time.Duration, limit int64) *pb.OrderLimit2 {
action pb.PieceAction, serialNumber storj.SerialNumber, pieceExpiration, orderExpiration time.Duration, limit int64) *pb.OrderLimit {
pe, err := ptypes.TimestampProto(time.Now().Add(pieceExpiration))
require.NoError(t, err)
oe, err := ptypes.TimestampProto(time.Now().Add(orderExpiration))
require.NoError(t, err)
orderLimit := &pb.OrderLimit2{
orderLimit := &pb.OrderLimit{
SatelliteId: satellite,
UplinkId: uplink,
StorageNodeId: storageNode,

View File

@ -29,7 +29,7 @@ var (
// VerifyOrderLimit verifies that the order limit is properly signed and has sane values.
// It also verifies that the serial number has not been used.
func (endpoint *Endpoint) VerifyOrderLimit(ctx context.Context, limit *pb.OrderLimit2) (err error) {
func (endpoint *Endpoint) VerifyOrderLimit(ctx context.Context, limit *pb.OrderLimit) (err error) {
defer mon.Task()(&ctx)(&err)
// sanity checks
@ -88,7 +88,7 @@ func (endpoint *Endpoint) VerifyOrderLimit(ctx context.Context, limit *pb.OrderL
}
// VerifyOrder verifies that the order corresponds to the order limit and has all the necessary fields.
func (endpoint *Endpoint) VerifyOrder(ctx context.Context, peer *identity.PeerIdentity, limit *pb.OrderLimit2, order *pb.Order2, largestOrderAmount int64) (err error) {
func (endpoint *Endpoint) VerifyOrder(ctx context.Context, peer *identity.PeerIdentity, limit *pb.OrderLimit, order *pb.Order, largestOrderAmount int64) (err error) {
defer mon.Task()(&ctx)(&err)
if order.SerialNumber != limit.SerialNumber {
@ -110,7 +110,7 @@ func (endpoint *Endpoint) VerifyOrder(ctx context.Context, peer *identity.PeerId
}
// VerifyPieceHash verifies whether the piece hash is properly signed and matches the locally computed hash.
func (endpoint *Endpoint) VerifyPieceHash(ctx context.Context, peer *identity.PeerIdentity, limit *pb.OrderLimit2, hash *pb.PieceHash, expectedHash []byte) (err error) {
func (endpoint *Endpoint) VerifyPieceHash(ctx context.Context, peer *identity.PeerIdentity, limit *pb.OrderLimit, hash *pb.PieceHash, expectedHash []byte) (err error) {
defer mon.Task()(&ctx)(&err)
if peer == nil || limit == nil || hash == nil || len(expectedHash) == 0 {
@ -131,7 +131,7 @@ func (endpoint *Endpoint) VerifyPieceHash(ctx context.Context, peer *identity.Pe
}
// VerifyOrderLimitSignature verifies that the order limit signature is valid.
func (endpoint *Endpoint) VerifyOrderLimitSignature(ctx context.Context, limit *pb.OrderLimit2) (err error) {
func (endpoint *Endpoint) VerifyOrderLimitSignature(ctx context.Context, limit *pb.OrderLimit) (err error) {
defer mon.Task()(&ctx)(&err)
signee, err := endpoint.trust.GetSignee(ctx, limit.SatelliteId)

View File

@ -95,8 +95,8 @@ func (db *ordersdb) ListUnsent(ctx context.Context, limit int) (_ []*orders.Info
}
var info orders.Info
info.Limit = &pb.OrderLimit2{}
info.Order = &pb.Order2{}
info.Limit = &pb.OrderLimit{}
info.Order = &pb.Order{}
err = proto.Unmarshal(limitSerialized, info.Limit)
if err != nil {
@ -149,8 +149,8 @@ func (db *ordersdb) ListUnsentBySatellite(ctx context.Context) (_ map[storj.Node
}
var info orders.Info
info.Limit = &pb.OrderLimit2{}
info.Order = &pb.Order2{}
info.Limit = &pb.OrderLimit{}
info.Order = &pb.Order{}
err = proto.Unmarshal(limitSerialized, info.Limit)
if err != nil {
@ -240,8 +240,8 @@ func (db *ordersdb) ListArchived(ctx context.Context, limit int) (_ []*orders.Ar
}
var info orders.ArchivedInfo
info.Limit = &pb.OrderLimit2{}
info.Order = &pb.Order2{}
info.Limit = &pb.OrderLimit{}
info.Order = &pb.Order{}
info.Status = orders.Status(status)
info.ArchivedAt = archivedAt

View File

@ -104,7 +104,7 @@ func (client *Client) CreateSegment(ctx context.Context, bucket string, path sto
}
// CommitSegment requests to store the pointer for the segment
func (client *Client) CommitSegment(ctx context.Context, bucket string, path storj.Path, segmentIndex int64, pointer *pb.Pointer, originalLimits []*pb.OrderLimit2) (savedPointer *pb.Pointer, err error) {
func (client *Client) CommitSegment(ctx context.Context, bucket string, path storj.Path, segmentIndex int64, pointer *pb.Pointer, originalLimits []*pb.OrderLimit) (savedPointer *pb.Pointer, err error) {
defer mon.Task()(&ctx)(&err)
response, err := client.client.CommitSegment(ctx, &pb.SegmentCommitRequest{

View File

@ -64,7 +64,7 @@ func Dial(ctx context.Context, transport transport.Client, target *pb.Node, log
}
// Delete uses delete order limit to delete a piece on piece store.
func (client *Client) Delete(ctx context.Context, limit *pb.OrderLimit2) (err error) {
func (client *Client) Delete(ctx context.Context, limit *pb.OrderLimit) (err error) {
defer mon.Task()(&ctx)(&err)
_, err = client.client.Delete(ctx, &pb.PieceDeleteRequest{
Limit: limit,

View File

@ -25,7 +25,7 @@ type Downloader interface {
// Download implements downloading from a piecestore.
type Download struct {
client *Client
limit *pb.OrderLimit2
limit *pb.OrderLimit
peer *identity.PeerIdentity
stream pb.Piecestore_DownloadClient
ctx context.Context
@ -42,7 +42,7 @@ type Download struct {
}
// Download starts a new download using the specified order limit at the specified offset and size.
func (client *Client) Download(ctx context.Context, limit *pb.OrderLimit2, offset, size int64) (_ Downloader, err error) {
func (client *Client) Download(ctx context.Context, limit *pb.OrderLimit, offset, size int64) (_ Downloader, err error) {
defer mon.Task()(&ctx)(&err)
stream, err := client.client.Download(ctx)
@ -126,7 +126,7 @@ func (client *Download) Read(data []byte) (read int, err error) {
// send an order
if newAllocation > 0 {
// sign the order
order, err := signing.SignOrder(ctx, client.client.signer, &pb.Order2{
order, err := signing.SignOrder(ctx, client.client.signer, &pb.Order{
SerialNumber: client.limit.SerialNumber,
Amount: newAllocation,
})

View File

@ -32,7 +32,7 @@ type Uploader interface {
// Upload implements uploading to the storage node.
type Upload struct {
client *Client
limit *pb.OrderLimit2
limit *pb.OrderLimit
peer *identity.PeerIdentity
stream pb.Piecestore_UploadClient
ctx context.Context
@ -47,7 +47,7 @@ type Upload struct {
}
// Upload initiates an upload to the storage node.
func (client *Client) Upload(ctx context.Context, limit *pb.OrderLimit2) (_ Uploader, err error) {
func (client *Client) Upload(ctx context.Context, limit *pb.OrderLimit) (_ Uploader, err error) {
defer mon.Task()(&ctx, "node: "+limit.StorageNodeId.String()[0:8])(&err)
stream, err := client.client.Upload(ctx)
@ -118,7 +118,7 @@ func (client *Upload) Write(data []byte) (written int, err error) {
}
// create a signed order for the next chunk
order, err := signing.SignOrder(ctx, client.client.signer, &pb.Order2{
order, err := signing.SignOrder(ctx, client.client.signer, &pb.Order{
SerialNumber: client.limit.SerialNumber,
Amount: client.offset + int64(len(sendData)),
})

View File

@ -24,7 +24,7 @@ var (
)
// VerifyPieceHash verifies piece hash which is sent by peer.
func (client *Client) VerifyPieceHash(ctx context.Context, peer *identity.PeerIdentity, limit *pb.OrderLimit2, hash *pb.PieceHash, expectedHash []byte) (err error) {
func (client *Client) VerifyPieceHash(ctx context.Context, peer *identity.PeerIdentity, limit *pb.OrderLimit, hash *pb.PieceHash, expectedHash []byte) (err error) {
defer mon.Task()(&ctx)(&err)
if peer == nil || limit == nil || hash == nil || len(expectedHash) == 0 {
return ErrProtocol.New("invalid arguments")