diff --git a/coordinator/coordinatorproto/coordinator.pb.go b/coordinator/coordinatorproto/coordinator.pb.go index 099728e5..37636dab 100644 --- a/coordinator/coordinatorproto/coordinator.pb.go +++ b/coordinator/coordinatorproto/coordinator.pb.go @@ -796,7 +796,6 @@ type SpaceStatusChangeRequest struct { DeletionPayloadId string `protobuf:"bytes,2,opt,name=deletionPayloadId,proto3" json:"deletionPayloadId,omitempty"` DeletionPayload []byte `protobuf:"bytes,3,opt,name=deletionPayload,proto3" json:"deletionPayload,omitempty"` DeletionPayloadType DeletionPayloadType `protobuf:"varint,4,opt,name=deletionPayloadType,proto3,enum=coordinator.DeletionPayloadType" json:"deletionPayloadType,omitempty"` - DeletionDuration int64 `protobuf:"varint,5,opt,name=deletionDuration,proto3" json:"deletionDuration,omitempty"` } func (m *SpaceStatusChangeRequest) Reset() { *m = SpaceStatusChangeRequest{} } @@ -860,13 +859,6 @@ func (m *SpaceStatusChangeRequest) GetDeletionPayloadType() DeletionPayloadType return DeletionPayloadType_Tree } -func (m *SpaceStatusChangeRequest) GetDeletionDuration() int64 { - if m != nil { - return m.DeletionDuration - } - return 0 -} - // SpaceStatusChangeResponse contains changed status of space type SpaceStatusChangeResponse struct { Payload *SpaceStatusPayload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` @@ -1411,6 +1403,112 @@ func (m *DeletionLogRecord) GetTimestamp() int64 { return 0 } +// SpaceDeleteRequest contains the deletion confirmation for the space to be deleted +type SpaceDeleteRequest struct { + SpaceId string `protobuf:"bytes,1,opt,name=spaceId,proto3" json:"spaceId,omitempty"` + DeletionPayloadId string `protobuf:"bytes,2,opt,name=deletionPayloadId,proto3" json:"deletionPayloadId,omitempty"` + DeletionPayload []byte `protobuf:"bytes,3,opt,name=deletionPayload,proto3" json:"deletionPayload,omitempty"` +} + +func (m *SpaceDeleteRequest) Reset() { *m = SpaceDeleteRequest{} } +func (m *SpaceDeleteRequest) String() string { return proto.CompactTextString(m) } +func (*SpaceDeleteRequest) ProtoMessage() {} +func (*SpaceDeleteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d94f6f99586adae2, []int{21} +} +func (m *SpaceDeleteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SpaceDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SpaceDeleteRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SpaceDeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SpaceDeleteRequest.Merge(m, src) +} +func (m *SpaceDeleteRequest) XXX_Size() int { + return m.Size() +} +func (m *SpaceDeleteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SpaceDeleteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SpaceDeleteRequest proto.InternalMessageInfo + +func (m *SpaceDeleteRequest) GetSpaceId() string { + if m != nil { + return m.SpaceId + } + return "" +} + +func (m *SpaceDeleteRequest) GetDeletionPayloadId() string { + if m != nil { + return m.DeletionPayloadId + } + return "" +} + +func (m *SpaceDeleteRequest) GetDeletionPayload() []byte { + if m != nil { + return m.DeletionPayload + } + return nil +} + +// SpaceDeleteResponse contains timestamp when the space is finally deleted +type SpaceDeleteResponse struct { + ToBeDeletedTimestamp int64 `protobuf:"varint,1,opt,name=toBeDeletedTimestamp,proto3" json:"toBeDeletedTimestamp,omitempty"` +} + +func (m *SpaceDeleteResponse) Reset() { *m = SpaceDeleteResponse{} } +func (m *SpaceDeleteResponse) String() string { return proto.CompactTextString(m) } +func (*SpaceDeleteResponse) ProtoMessage() {} +func (*SpaceDeleteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d94f6f99586adae2, []int{22} +} +func (m *SpaceDeleteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SpaceDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SpaceDeleteResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SpaceDeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SpaceDeleteResponse.Merge(m, src) +} +func (m *SpaceDeleteResponse) XXX_Size() int { + return m.Size() +} +func (m *SpaceDeleteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SpaceDeleteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SpaceDeleteResponse proto.InternalMessageInfo + +func (m *SpaceDeleteResponse) GetToBeDeletedTimestamp() int64 { + if m != nil { + return m.ToBeDeletedTimestamp + } + return 0 +} + // AccountDeleteRequest contains payload for account deletion type AccountDeleteRequest struct { DeletionPayloadId string `protobuf:"bytes,1,opt,name=deletionPayloadId,proto3" json:"deletionPayloadId,omitempty"` @@ -1421,7 +1519,7 @@ func (m *AccountDeleteRequest) Reset() { *m = AccountDeleteRequest{} } func (m *AccountDeleteRequest) String() string { return proto.CompactTextString(m) } func (*AccountDeleteRequest) ProtoMessage() {} func (*AccountDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d94f6f99586adae2, []int{21} + return fileDescriptor_d94f6f99586adae2, []int{23} } func (m *AccountDeleteRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1480,7 +1578,7 @@ func (m *AccountDeletionConfirmPayload) Reset() { *m = AccountDeletionCo func (m *AccountDeletionConfirmPayload) String() string { return proto.CompactTextString(m) } func (*AccountDeletionConfirmPayload) ProtoMessage() {} func (*AccountDeletionConfirmPayload) Descriptor() ([]byte, []int) { - return fileDescriptor_d94f6f99586adae2, []int{22} + return fileDescriptor_d94f6f99586adae2, []int{24} } func (m *AccountDeletionConfirmPayload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1546,7 +1644,7 @@ func (m *AccountDeleteResponse) Reset() { *m = AccountDeleteResponse{} } func (m *AccountDeleteResponse) String() string { return proto.CompactTextString(m) } func (*AccountDeleteResponse) ProtoMessage() {} func (*AccountDeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d94f6f99586adae2, []int{23} + return fileDescriptor_d94f6f99586adae2, []int{25} } func (m *AccountDeleteResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1590,7 +1688,7 @@ func (m *AccountRevertDeletionRequest) Reset() { *m = AccountRevertDelet func (m *AccountRevertDeletionRequest) String() string { return proto.CompactTextString(m) } func (*AccountRevertDeletionRequest) ProtoMessage() {} func (*AccountRevertDeletionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d94f6f99586adae2, []int{24} + return fileDescriptor_d94f6f99586adae2, []int{26} } func (m *AccountRevertDeletionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1627,7 +1725,7 @@ func (m *AccountRevertDeletionResponse) Reset() { *m = AccountRevertDele func (m *AccountRevertDeletionResponse) String() string { return proto.CompactTextString(m) } func (*AccountRevertDeletionResponse) ProtoMessage() {} func (*AccountRevertDeletionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d94f6f99586adae2, []int{25} + return fileDescriptor_d94f6f99586adae2, []int{27} } func (m *AccountRevertDeletionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1683,6 +1781,8 @@ func init() { proto.RegisterType((*DeletionLogRequest)(nil), "coordinator.DeletionLogRequest") proto.RegisterType((*DeletionLogResponse)(nil), "coordinator.DeletionLogResponse") proto.RegisterType((*DeletionLogRecord)(nil), "coordinator.DeletionLogRecord") + proto.RegisterType((*SpaceDeleteRequest)(nil), "coordinator.SpaceDeleteRequest") + proto.RegisterType((*SpaceDeleteResponse)(nil), "coordinator.SpaceDeleteResponse") proto.RegisterType((*AccountDeleteRequest)(nil), "coordinator.AccountDeleteRequest") proto.RegisterType((*AccountDeletionConfirmPayload)(nil), "coordinator.AccountDeletionConfirmPayload") proto.RegisterType((*AccountDeleteResponse)(nil), "coordinator.AccountDeleteResponse") @@ -1695,93 +1795,95 @@ func init() { } var fileDescriptor_d94f6f99586adae2 = []byte{ - // 1372 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xbf, 0x73, 0x13, 0xc7, - 0x17, 0xd7, 0x9e, 0xe4, 0x1f, 0x7a, 0x32, 0xe2, 0xbc, 0xd8, 0x46, 0x5f, 0x21, 0x84, 0xbf, 0x07, - 0x21, 0x42, 0xc9, 0x00, 0x23, 0x26, 0x99, 0x30, 0xa4, 0x80, 0x18, 0x32, 0x63, 0x02, 0xc6, 0xb3, - 0x60, 0x32, 0x09, 0x45, 0xe6, 0xb8, 0x5b, 0xdb, 0x37, 0x96, 0xef, 0x94, 0xbd, 0x15, 0xe0, 0x22, - 0xff, 0x41, 0x8a, 0x74, 0x99, 0x14, 0xe9, 0x53, 0xa4, 0x48, 0x9f, 0x99, 0xd4, 0x29, 0x29, 0x53, - 0x66, 0xa0, 0xce, 0xff, 0x90, 0xd9, 0xbd, 0xdd, 0xbb, 0xbd, 0xd3, 0x49, 0x76, 0x26, 0x45, 0x1a, - 0xc4, 0x7e, 0xf6, 0xbd, 0xb7, 0x9f, 0xf7, 0x63, 0xdf, 0xbe, 0x33, 0x7c, 0xe0, 0x45, 0x11, 0xf3, - 0x83, 0xd0, 0xe5, 0x11, 0xbb, 0x66, 0xfc, 0x7f, 0xc4, 0x22, 0x1e, 0x5d, 0x93, 0xff, 0xc6, 0x26, - 0x7e, 0x55, 0x42, 0xb8, 0x61, 0x40, 0xce, 0x6f, 0x08, 0xec, 0xc7, 0x23, 0xd7, 0xa3, 0x8f, 0x83, - 0xbd, 0x90, 0xd0, 0xaf, 0xc7, 0x34, 0xe6, 0xb8, 0x05, 0x0b, 0xb1, 0xc0, 0x36, 0xfd, 0x16, 0x5a, - 0x47, 0xbd, 0x3a, 0xd1, 0x4b, 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0xf2, 0x29, 0x38, 0x34, 0x63, 0xb4, - 0x2a, 0x38, 0x34, 0x73, 0x8c, 0xda, 0x86, 0x86, 0x51, 0x97, 0xf8, 0xc2, 0xf4, 0xa7, 0x22, 0x31, - 0xbd, 0x3e, 0x5d, 0x40, 0x59, 0x7c, 0x0a, 0xa7, 0x72, 0x1d, 0x11, 0xff, 0x3f, 0xa7, 0x52, 0xf6, - 0x7a, 0xb4, 0x9d, 0x59, 0x22, 0xca, 0x6e, 0x98, 0x76, 0xda, 0x7c, 0x0b, 0xc4, 0x57, 0xca, 0x94, - 0x4b, 0xdb, 0x68, 0xbb, 0x7f, 0x12, 0xd1, 0xe4, 0xbc, 0x4f, 0x3e, 0xfc, 0xfd, 0x4d, 0x17, 0xbd, - 0x7e, 0xd3, 0x45, 0x7f, 0xbe, 0xe9, 0xa2, 0xef, 0xde, 0x76, 0x2b, 0xaf, 0xdf, 0x76, 0x2b, 0x7f, - 0xbc, 0xed, 0x56, 0xbe, 0xec, 0xcc, 0xfa, 0xd3, 0xc7, 0xf3, 0x79, 0xf9, 0x73, 0xe3, 0xef, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xc3, 0x74, 0x44, 0x34, 0x21, 0x11, 0x00, 0x00, + // 1398 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xbd, 0x73, 0x13, 0x47, + 0x14, 0xd7, 0x9e, 0xe4, 0x0f, 0x3d, 0x19, 0x71, 0x5e, 0x7f, 0xa0, 0x08, 0x21, 0x9c, 0x83, 0x10, + 0xa1, 0x64, 0x80, 0x11, 0x93, 0x4c, 0x18, 0x52, 0x00, 0x86, 0xcc, 0x98, 0x80, 0xf1, 0x2c, 0x98, + 0x4c, 0x42, 0x91, 0x39, 0x74, 0x6b, 0xfb, 0xc6, 0xf2, 0x9d, 0xb2, 0xb7, 0x02, 0x54, 0xa4, 0x4d, + 0x9d, 0x2e,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0x28, 0x55, 0x84, + 0x18, 0x49, 0xc4, 0x05, 0x81, 0x03, 0x37, 0xba, 0x1f, 0xaa, 0x28, 0x2f, 0x92, 0x64, 0xe9, 0xfc, + 0x8c, 0x60, 0x79, 0x42, 0x11, 0xd7, 0xc1, 0xf2, 0x13, 0xae, 0x96, 0xef, 0x4d, 0x7f, 0x27, 0xf0, + 0xe7, 0xe9, 0x4c, 0x51, 0x96, 0x7d, 0xe1, 0xfc, 0x6c, 0x4a, 0x85, 0xf9, 0x22, 0x17, 0xcc, 0x4a, + 0x31, 0x98, 0x3f, 0x20, 0x35, 0xc6, 0x48, 0x33, 0xef, 0xae, 0x13, 0x3a, 0x5b, 0xb0, 0x92, 0xe3, + 0xa1, 0xf2, 0xd1, 0x83, 0x55, 0x1e, 0xde, 0x52, 0xa8, 0x97, 0x0d, 0x48, 0x48, 0x3a, 0x62, 0xdc, + 0x73, 0x02, 0x58, 0xbd, 0x19, 0xd7, 0x5b, 0xde, 0x29, 0x23, 0x75, 0xf4, 0x1f, 0xa8, 0x5b, 0x66, + 0xea, 0xbf, 0x20, 0x38, 0xa3, 0x1f, 0x38, 0x79, 0x95, 0xa6, 0xf5, 0x0d, 0xc3, 0x85, 0xb1, 0x8e, + 0x71, 0x61, 0xca, 0x33, 0x2f, 0xcc, 0x44, 0x8e, 0xef, 0xc0, 0x5a, 0x21, 0x1e, 0x2a, 0xb8, 0xc6, + 0xd1, 0x13, 0x4d, 0x1b, 0x3d, 0xdb, 0xd0, 0x52, 0x66, 0x08, 0x7d, 0x46, 0x59, 0xea, 0x6b, 0x32, + 0x10, 0x9f, 0x4d, 0xa3, 0x50, 0xdc, 0x8f, 0x8f, 0xeb, 0xfe, 0x84, 0x00, 0xee, 0x30, 0x16, 0xb2, + 0x4d, 0xd9, 0x80, 0xeb, 0x00, 0xbb, 0x01, 0x7d, 0x31, 0xa4, 0x7d, 0x4e, 0x3d, 0xbb, 0x84, 0x6d, + 0x35, 0x15, 0xaa, 0x7c, 0xda,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x1a, 0x9f, 0x77, 0xeb, 0xd3, 0xbf, 0x5f, 0xb7, 0xd1, 0xcb, 0xd7, 0x6d, 0xf4, 0xea, 0x75, + 0x1b, 0xfd, 0xf8, 0xa6, 0x5d, 0x7a, 0xf9, 0xa6, 0x5d, 0xfa, 0xe7, 0x4d, 0xbb, 0xf4, 0x4d, 0x6b, + 0xd6, 0x3f, 0x7d, 0x9e, 0xce, 0xcb, 0x5f, 0x57, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x70, 0x37, + 0x0b, 0x83, 0x1b, 0x12, 0x00, 0x00, } func (m *SpaceSignRequest) Marshal() (dAtA []byte, err error) { @@ -2232,11 +2334,6 @@ func (m *SpaceStatusChangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error _ = i var l int _ = l - if m.DeletionDuration != 0 { - i = encodeVarintCoordinator(dAtA, i, uint64(m.DeletionDuration)) - i-- - dAtA[i] = 0x28 - } if m.DeletionPayloadType != 0 { i = encodeVarintCoordinator(dAtA, i, uint64(m.DeletionPayloadType)) i-- @@ -2666,6 +2763,78 @@ func (m *DeletionLogRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *SpaceDeleteRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SpaceDeleteRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SpaceDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.DeletionPayload) > 0 { + i -= len(m.DeletionPayload) + copy(dAtA[i:], m.DeletionPayload) + i = encodeVarintCoordinator(dAtA, i, uint64(len(m.DeletionPayload))) + i-- + dAtA[i] = 0x1a + } + if len(m.DeletionPayloadId) > 0 { + i -= len(m.DeletionPayloadId) + copy(dAtA[i:], m.DeletionPayloadId) + i = encodeVarintCoordinator(dAtA, i, uint64(len(m.DeletionPayloadId))) + i-- + dAtA[i] = 0x12 + } + if len(m.SpaceId) > 0 { + i -= len(m.SpaceId) + copy(dAtA[i:], m.SpaceId) + i = encodeVarintCoordinator(dAtA, i, uint64(len(m.SpaceId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SpaceDeleteResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SpaceDeleteResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SpaceDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ToBeDeletedTimestamp != 0 { + i = encodeVarintCoordinator(dAtA, i, uint64(m.ToBeDeletedTimestamp)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func (m *AccountDeleteRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -3048,9 +3217,6 @@ func (m *SpaceStatusChangeRequest) Size() (n int) { if m.DeletionPayloadType != 0 { n += 1 + sovCoordinator(uint64(m.DeletionPayloadType)) } - if m.DeletionDuration != 0 { - n += 1 + sovCoordinator(uint64(m.DeletionDuration)) - } return n } @@ -3234,6 +3400,39 @@ func (m *DeletionLogRecord) Size() (n int) { return n } +func (m *SpaceDeleteRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.SpaceId) + if l > 0 { + n += 1 + l + sovCoordinator(uint64(l)) + } + l = len(m.DeletionPayloadId) + if l > 0 { + n += 1 + l + sovCoordinator(uint64(l)) + } + l = len(m.DeletionPayload) + if l > 0 { + n += 1 + l + sovCoordinator(uint64(l)) + } + return n +} + +func (m *SpaceDeleteResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ToBeDeletedTimestamp != 0 { + n += 1 + sovCoordinator(uint64(m.ToBeDeletedTimestamp)) + } + return n +} + func (m *AccountDeleteRequest) Size() (n int) { if m == nil { return 0 @@ -4703,25 +4902,6 @@ func (m *SpaceStatusChangeRequest) Unmarshal(dAtA []byte) error { break } } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DeletionDuration", wireType) - } - m.DeletionDuration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCoordinator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DeletionDuration |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipCoordinator(dAtA[iNdEx:]) @@ -5935,6 +6115,223 @@ func (m *DeletionLogRecord) Unmarshal(dAtA []byte) error { } return nil } +func (m *SpaceDeleteRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCoordinator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SpaceDeleteRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SpaceDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SpaceId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCoordinator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCoordinator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCoordinator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SpaceId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeletionPayloadId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCoordinator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCoordinator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCoordinator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DeletionPayloadId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeletionPayload", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCoordinator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthCoordinator + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCoordinator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DeletionPayload = append(m.DeletionPayload[:0], dAtA[iNdEx:postIndex]...) + if m.DeletionPayload == nil { + m.DeletionPayload = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCoordinator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCoordinator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SpaceDeleteResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCoordinator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SpaceDeleteResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SpaceDeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ToBeDeletedTimestamp", wireType) + } + m.ToBeDeletedTimestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCoordinator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ToBeDeletedTimestamp |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCoordinator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCoordinator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *AccountDeleteRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/coordinator/coordinatorproto/coordinator_drpc.pb.go b/coordinator/coordinatorproto/coordinator_drpc.pb.go index 2a5ef857..90734224 100644 --- a/coordinator/coordinatorproto/coordinator_drpc.pb.go +++ b/coordinator/coordinatorproto/coordinator_drpc.pb.go @@ -47,6 +47,7 @@ type DRPCCoordinatorClient interface { SpaceStatusChange(ctx context.Context, in *SpaceStatusChangeRequest) (*SpaceStatusChangeResponse, error) NetworkConfiguration(ctx context.Context, in *NetworkConfigurationRequest) (*NetworkConfigurationResponse, error) DeletionLog(ctx context.Context, in *DeletionLogRequest) (*DeletionLogResponse, error) + SpaceDelete(ctx context.Context, in *SpaceDeleteRequest) (*SpaceDeleteResponse, error) AccountDelete(ctx context.Context, in *AccountDeleteRequest) (*AccountDeleteResponse, error) AccountRevertDeletion(ctx context.Context, in *AccountRevertDeletionRequest) (*AccountRevertDeletionResponse, error) } @@ -124,6 +125,15 @@ func (c *drpcCoordinatorClient) DeletionLog(ctx context.Context, in *DeletionLog return out, nil } +func (c *drpcCoordinatorClient) SpaceDelete(ctx context.Context, in *SpaceDeleteRequest) (*SpaceDeleteResponse, error) { + out := new(SpaceDeleteResponse) + err := c.cc.Invoke(ctx, "/coordinator.Coordinator/SpaceDelete", drpcEncoding_File_coordinator_coordinatorproto_protos_coordinator_proto{}, in, out) + if err != nil { + return nil, err + } + return out, nil +} + func (c *drpcCoordinatorClient) AccountDelete(ctx context.Context, in *AccountDeleteRequest) (*AccountDeleteResponse, error) { out := new(AccountDeleteResponse) err := c.cc.Invoke(ctx, "/coordinator.Coordinator/AccountDelete", drpcEncoding_File_coordinator_coordinatorproto_protos_coordinator_proto{}, in, out) @@ -150,6 +160,7 @@ type DRPCCoordinatorServer interface { SpaceStatusChange(context.Context, *SpaceStatusChangeRequest) (*SpaceStatusChangeResponse, error) NetworkConfiguration(context.Context, *NetworkConfigurationRequest) (*NetworkConfigurationResponse, error) DeletionLog(context.Context, *DeletionLogRequest) (*DeletionLogResponse, error) + SpaceDelete(context.Context, *SpaceDeleteRequest) (*SpaceDeleteResponse, error) AccountDelete(context.Context, *AccountDeleteRequest) (*AccountDeleteResponse, error) AccountRevertDeletion(context.Context, *AccountRevertDeletionRequest) (*AccountRevertDeletionResponse, error) } @@ -184,6 +195,10 @@ func (s *DRPCCoordinatorUnimplementedServer) DeletionLog(context.Context, *Delet return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented) } +func (s *DRPCCoordinatorUnimplementedServer) SpaceDelete(context.Context, *SpaceDeleteRequest) (*SpaceDeleteResponse, error) { + return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented) +} + func (s *DRPCCoordinatorUnimplementedServer) AccountDelete(context.Context, *AccountDeleteRequest) (*AccountDeleteResponse, error) { return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented) } @@ -194,7 +209,7 @@ func (s *DRPCCoordinatorUnimplementedServer) AccountRevertDeletion(context.Conte type DRPCCoordinatorDescription struct{} -func (DRPCCoordinatorDescription) NumMethods() int { return 9 } +func (DRPCCoordinatorDescription) NumMethods() int { return 10 } func (DRPCCoordinatorDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool) { switch n { @@ -262,6 +277,15 @@ func (DRPCCoordinatorDescription) Method(n int) (string, drpc.Encoding, drpc.Rec ) }, DRPCCoordinatorServer.DeletionLog, true case 7: + return "/coordinator.Coordinator/SpaceDelete", drpcEncoding_File_coordinator_coordinatorproto_protos_coordinator_proto{}, + func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { + return srv.(DRPCCoordinatorServer). + SpaceDelete( + ctx, + in1.(*SpaceDeleteRequest), + ) + }, DRPCCoordinatorServer.SpaceDelete, true + case 8: return "/coordinator.Coordinator/AccountDelete", drpcEncoding_File_coordinator_coordinatorproto_protos_coordinator_proto{}, func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { return srv.(DRPCCoordinatorServer). @@ -270,7 +294,7 @@ func (DRPCCoordinatorDescription) Method(n int) (string, drpc.Encoding, drpc.Rec in1.(*AccountDeleteRequest), ) }, DRPCCoordinatorServer.AccountDelete, true - case 8: + case 9: return "/coordinator.Coordinator/AccountRevertDeletion", drpcEncoding_File_coordinator_coordinatorproto_protos_coordinator_proto{}, func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { return srv.(DRPCCoordinatorServer). @@ -400,6 +424,22 @@ func (x *drpcCoordinator_DeletionLogStream) SendAndClose(m *DeletionLogResponse) return x.CloseSend() } +type DRPCCoordinator_SpaceDeleteStream interface { + drpc.Stream + SendAndClose(*SpaceDeleteResponse) error +} + +type drpcCoordinator_SpaceDeleteStream struct { + drpc.Stream +} + +func (x *drpcCoordinator_SpaceDeleteStream) SendAndClose(m *SpaceDeleteResponse) error { + if err := x.MsgSend(m, drpcEncoding_File_coordinator_coordinatorproto_protos_coordinator_proto{}); err != nil { + return err + } + return x.CloseSend() +} + type DRPCCoordinator_AccountDeleteStream interface { drpc.Stream SendAndClose(*AccountDeleteResponse) error diff --git a/coordinator/coordinatorproto/protos/coordinator.proto b/coordinator/coordinatorproto/protos/coordinator.proto index 01d93f85..af0c8edb 100644 --- a/coordinator/coordinatorproto/protos/coordinator.proto +++ b/coordinator/coordinatorproto/protos/coordinator.proto @@ -19,7 +19,7 @@ service Coordinator { // SpaceStatusCheckMany checks the statuses of spaces and tells if they are deleted or not rpc SpaceStatusCheckMany(SpaceStatusCheckManyRequest) returns (SpaceStatusCheckManyResponse); - // SpaceStatusChange changes the status of space + // SpaceStatusChange changes the status of space - Deprecated rpc SpaceStatusChange(SpaceStatusChangeRequest) returns (SpaceStatusChangeResponse); // NetworkConfiguration retrieves the latest network configuration @@ -28,6 +28,9 @@ service Coordinator { // DeletionLog gets the latest deletion log records rpc DeletionLog(DeletionLogRequest) returns (DeletionLogResponse); + // SpaceDelete deletes a space + rpc SpaceDelete(SpaceDeleteRequest) returns (SpaceDeleteResponse); + // AccountDelete deletes an account rpc AccountDelete(AccountDeleteRequest) returns (AccountDeleteResponse); @@ -135,7 +138,6 @@ message SpaceStatusChangeRequest { string deletionPayloadId = 2; bytes deletionPayload = 3; DeletionPayloadType deletionPayloadType = 4; - int64 deletionDuration = 5; } // SpaceStatusChangeResponse contains changed status of space @@ -246,6 +248,18 @@ enum DeletionLogRecordStatus { Remove = 2; } +// SpaceDeleteRequest contains the deletion confirmation for the space to be deleted +message SpaceDeleteRequest { + string spaceId = 1; + string deletionPayloadId = 2; + bytes deletionPayload = 3; +} + +// SpaceDeleteResponse contains timestamp when the space is finally deleted +message SpaceDeleteResponse { + int64 toBeDeletedTimestamp = 1; +} + // AccountDeleteRequest contains payload for account deletion message AccountDeleteRequest { string deletionPayloadId = 1;