mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-08 05:57:03 +09:00
coordinatorproto: change fileLimitReponse
This commit is contained in:
parent
f7e95db95b
commit
e178d8f8c6
2 changed files with 98 additions and 176 deletions
|
@ -90,33 +90,6 @@ func (SpaceStatus) EnumDescriptor() ([]byte, []int) {
|
|||
return fileDescriptor_d94f6f99586adae2, []int{1}
|
||||
}
|
||||
|
||||
type FileLimitType int32
|
||||
|
||||
const (
|
||||
// SpaceLimit means that limit works only for a given spaceId
|
||||
FileLimitType_SpaceLimit FileLimitType = 0
|
||||
// IdentityLimit means that limit works by identity and a given spaceId can share the limit with other spaces
|
||||
FileLimitType_IdentityLimit FileLimitType = 1
|
||||
)
|
||||
|
||||
var FileLimitType_name = map[int32]string{
|
||||
0: "SpaceLimit",
|
||||
1: "IdentityLimit",
|
||||
}
|
||||
|
||||
var FileLimitType_value = map[string]int32{
|
||||
"SpaceLimit": 0,
|
||||
"IdentityLimit": 1,
|
||||
}
|
||||
|
||||
func (x FileLimitType) String() string {
|
||||
return proto.EnumName(FileLimitType_name, int32(x))
|
||||
}
|
||||
|
||||
func (FileLimitType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_d94f6f99586adae2, []int{2}
|
||||
}
|
||||
|
||||
// NodeType determines the type of API that a node supports
|
||||
type NodeType int32
|
||||
|
||||
|
@ -150,7 +123,7 @@ func (x NodeType) String() string {
|
|||
}
|
||||
|
||||
func (NodeType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_d94f6f99586adae2, []int{3}
|
||||
return fileDescriptor_d94f6f99586adae2, []int{2}
|
||||
}
|
||||
|
||||
// DeletionChangeType determines the type of deletion payload
|
||||
|
@ -176,7 +149,7 @@ func (x DeletionPayloadType) String() string {
|
|||
}
|
||||
|
||||
func (DeletionPayloadType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_d94f6f99586adae2, []int{4}
|
||||
return fileDescriptor_d94f6f99586adae2, []int{3}
|
||||
}
|
||||
|
||||
type DeletionLogRecordStatus int32
|
||||
|
@ -207,7 +180,7 @@ func (x DeletionLogRecordStatus) String() string {
|
|||
}
|
||||
|
||||
func (DeletionLogRecordStatus) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_d94f6f99586adae2, []int{5}
|
||||
return fileDescriptor_d94f6f99586adae2, []int{4}
|
||||
}
|
||||
|
||||
type SpaceSignRequest struct {
|
||||
|
@ -580,10 +553,8 @@ func (m *FileLimitCheckRequest) GetSpaceId() string {
|
|||
type FileLimitCheckResponse struct {
|
||||
// Limit in bytes
|
||||
Limit uint64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
|
||||
// Type of the limit
|
||||
Type FileLimitType `protobuf:"varint,2,opt,name=type,proto3,enum=coordinator.FileLimitType" json:"type,omitempty"`
|
||||
// SpaceIds belongs to identity, will be returned when type is identity
|
||||
SpaceIds []string `protobuf:"bytes,3,rep,name=spaceIds,proto3" json:"spaceIds,omitempty"`
|
||||
// StorageKey tells a key that filenode should use to save files
|
||||
StorageKey string `protobuf:"bytes,2,opt,name=storageKey,proto3" json:"storageKey,omitempty"`
|
||||
}
|
||||
|
||||
func (m *FileLimitCheckResponse) Reset() { *m = FileLimitCheckResponse{} }
|
||||
|
@ -626,18 +597,11 @@ func (m *FileLimitCheckResponse) GetLimit() uint64 {
|
|||
return 0
|
||||
}
|
||||
|
||||
func (m *FileLimitCheckResponse) GetType() FileLimitType {
|
||||
func (m *FileLimitCheckResponse) GetStorageKey() string {
|
||||
if m != nil {
|
||||
return m.Type
|
||||
return m.StorageKey
|
||||
}
|
||||
return FileLimitType_SpaceLimit
|
||||
}
|
||||
|
||||
func (m *FileLimitCheckResponse) GetSpaceIds() []string {
|
||||
if m != nil {
|
||||
return m.SpaceIds
|
||||
}
|
||||
return nil
|
||||
return ""
|
||||
}
|
||||
|
||||
// SpaceStatusCheckRequest contains the spaceId of requested space
|
||||
|
@ -1436,7 +1400,6 @@ func (m *DeletionLogRecord) GetTimestamp() int64 {
|
|||
func init() {
|
||||
proto.RegisterEnum("coordinator.ErrorCodes", ErrorCodes_name, ErrorCodes_value)
|
||||
proto.RegisterEnum("coordinator.SpaceStatus", SpaceStatus_name, SpaceStatus_value)
|
||||
proto.RegisterEnum("coordinator.FileLimitType", FileLimitType_name, FileLimitType_value)
|
||||
proto.RegisterEnum("coordinator.NodeType", NodeType_name, NodeType_value)
|
||||
proto.RegisterEnum("coordinator.DeletionPayloadType", DeletionPayloadType_name, DeletionPayloadType_value)
|
||||
proto.RegisterEnum("coordinator.DeletionLogRecordStatus", DeletionLogRecordStatus_name, DeletionLogRecordStatus_value)
|
||||
|
@ -1468,86 +1431,84 @@ func init() {
|
|||
}
|
||||
|
||||
var fileDescriptor_d94f6f99586adae2 = []byte{
|
||||
// 1253 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0x4d, 0x6f, 0x1b, 0xc5,
|
||||
0x1b, 0xf7, 0xf8, 0x25, 0xb1, 0x1f, 0xa7, 0xee, 0x66, 0xda, 0xa6, 0xfe, 0xbb, 0xfe, 0xbb, 0xd6,
|
||||
0xb6, 0x14, 0x63, 0xaa, 0xb6, 0x72, 0x05, 0xa2, 0x2a, 0x87, 0x82, 0x5b, 0xa4, 0x54, 0x7d, 0x89,
|
||||
0x26, 0x09, 0x08, 0x7a, 0x40, 0x5b, 0xef, 0x24, 0x59, 0xc5, 0xde, 0x35, 0xb3, 0xe3, 0x36, 0x41,
|
||||
0x42, 0xe2, 0x23, 0x70, 0xe5, 0x03, 0x20, 0x71, 0xe0, 0xc0, 0x1d, 0x89, 0x33, 0xc7, 0x1e, 0x39,
|
||||
0x56, 0xc9, 0x17, 0x41, 0x33, 0x3b, 0xb3, 0x3b, 0xbb, 0x5e, 0x3b, 0x95, 0x38, 0x70, 0x49, 0x3c,
|
||||
0xbf, 0x79, 0xde, 0xdf, 0xe6, 0x59, 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 0xbd, 0x0b, 0xeb, 0x46, 0xd4, 0xc2, 0x69, 0xe0, 0x87, 0x14, 0x3f,
|
||||
0x80, 0x55, 0x46, 0x47, 0xd4, 0x9b, 0x72, 0xa9, 0xb5, 0x3e, 0xb8, 0x31, 0xaf, 0x95, 0x44, 0x04,
|
||||
0x5f, 0x79, 0xfc, 0x20, 0xf6, 0x93, 0x68, 0x36, 0xfb, 0x10, 0xfe, 0xb7, 0x90, 0x0a, 0xdf, 0x81,
|
||||
0x0b, 0xa1, 0x71, 0xa9, 0x5c, 0x95, 0xaa, 0xd6, 0x48, 0xde, 0x15, 0x6e, 0x43, 0x2d, 0x8c, 0x03,
|
||||
0x1d, 0x25, 0x2c, 0x01, 0xec, 0x5f, 0x11, 0xac, 0x99, 0xda, 0x96, 0xa7, 0x7d, 0x4a, 0x29, 0xdb,
|
||||
0x74, 0xa5, 0x94, 0x1a, 0x51, 0x27, 0xdc, 0x83, 0xf3, 0xce, 0x68, 0x14, 0xcc, 0x7c, 0x9e, 0x49,
|
||||
0x7d, 0x16, 0x16, 0xa6, 0xf8, 0x94, 0xbf, 0x0e, 0xd8, 0xe1, 0xa6, 0x2b, 0x73, 0x5e, 0x23, 0x09,
|
||||
0x80, 0x3b, 0x00, 0xaf, 0x9c, 0xb1, 0xe7, 0xee, 0xfa, 0xdc, 0x1b, 0xcb, 0x34, 0x97, 0x89, 0x81,
|
||||
0xd8, 0x2f, 0xe0, 0xd2, 0x17, 0xde, 0x98, 0x3e, 0xf1, 0x26, 0x1e, 0x1f, 0x1e, 0xd0, 0xd1, 0xa1,
|
||||
0xae, 0xd4, 0x1c, 0x03, 0x50, 0xbe, 0x01, 0x86, 0x73, 0xc5, 0x94, 0x73, 0xf6, 0xf7, 0xb0, 0x91,
|
||||
0x15, 0xae, 0x12, 0x7a, 0x11, 0x2a, 0x63, 0x81, 0x4a, 0x99, 0x65, 0x12, 0x1d, 0xf0, 0x2d, 0x28,
|
||||
0xf3, 0xe3, 0x69, 0x14, 0x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0x80, 0x73,
|
||||
0xa9, 0x87, 0x56, 0xc4, 0x40, 0x12, 0x4a, 0xc4, 0x2a, 0xe0, 0x75, 0x38, 0xa7, 0xeb, 0x36, 0x82,
|
||||
0x50, 0xff, 0x31, 0x54, 0x75, 0xdf, 0xe2, 0x3a, 0xac, 0xee, 0x30, 0x4a, 0x3f, 0xdb, 0xda, 0xb4,
|
||||
0x0a, 0xe2, 0x20, 0x84, 0x89, 0x03, 0x12, 0xee, 0x0f, 0x93, 0x44, 0x09, 0x4c, 0x06, 0x69, 0x28,
|
||||
0x0a, 0xcd, 0x0f, 0x67, 0xa1, 0x40, 0x4a, 0xfd, 0x9b, 0x49, 0x21, 0x1a, 0x53, 0x1c, 0x57, 0xa1,
|
||||
0x2c, 0xc4, 0x46, 0x32, 0x55, 0x67, 0x5a, 0xa8, 0xff, 0x00, 0x2e, 0x2f, 0x48, 0x38, 0x5e, 0x81,
|
||||
0xe2, 0xf3, 0xc3, 0xc8, 0x5e, 0x42, 0x27, 0xc1, 0x2b, 0xba, 0xc5, 0xe8, 0xd4, 0x61, 0xd4, 0x42,
|
||||
0x18, 0x60, 0x25, 0x82, 0xac, 0xe2, 0xe0, 0x97, 0x0a, 0xd4, 0x0d, 0xb3, 0xf0, 0x63, 0xa8, 0xc5,
|
||||
0xdb, 0x27, 0xfe, 0x7f, 0xce, 0x6b, 0x90, 0xec, 0xf2, 0xad, 0xce, 0xa2, 0x6b, 0xd5, 0x3d, 0x5f,
|
||||
0x43, 0x23, 0xbd, 0xfd, 0x60, 0x3b, 0x7f, 0xa3, 0x31, 0x97, 0x93, 0xd6, 0xb5, 0xa5, 0x34, 0x4a,
|
||||
0xf4, 0xb7, 0xfa, 0xd3, 0x22, 0xd9, 0x0a, 0xf0, 0xf5, 0x45, 0x6f, 0x57, 0x4a, 0xfc, 0x7b, 0x67,
|
||||
0x50, 0x29, 0x05, 0x87, 0xaa, 0xb0, 0x33, 0x6b, 0x07, 0xee, 0x2d, 0x65, 0x37, 0x96, 0x9a, 0xd6,
|
||||
0x07, 0xef, 0x40, 0xa9, 0x94, 0xbd, 0xd4, 0x2b, 0xbf, 0xf1, 0x46, 0xe3, 0x25, 0x86, 0x1a, 0x5b,
|
||||
0x4a, 0xeb, 0xc6, 0x59, 0x64, 0x89, 0x43, 0x79, 0x2f, 0x6e, 0xc6, 0xa1, 0x25, 0x4f, 0x7a, 0xc6,
|
||||
0xa1, 0xa5, 0xcf, 0xf7, 0x16, 0xd4, 0x8d, 0xba, 0xc4, 0x57, 0x17, 0x8f, 0xa8, 0x48, 0x74, 0x77,
|
||||
0x31, 0x41, 0x24, 0xf1, 0xf3, 0x8f, 0xff, 0x3a, 0xe9, 0xa0, 0x37, 0x27, 0x1d, 0xf4, 0xf6, 0xa4,
|
||||
0x83, 0x7e, 0x3a, 0xed, 0x14, 0xde, 0x9c, 0x76, 0x0a, 0x7f, 0x9f, 0x76, 0x0a, 0xdf, 0xb4, 0x97,
|
||||
0x7d, 0xaa, 0xbe, 0x5c, 0x91, 0xff, 0xee, 0xfe, 0x13, 0x00, 0x00, 0xff, 0xff, 0x45, 0x08, 0x47,
|
||||
0x5d, 0xd1, 0x0e, 0x00, 0x00,
|
||||
// 1222 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0x4d, 0x6f, 0x1b, 0x45,
|
||||
0x18, 0xf6, 0xfa, 0x23, 0xb1, 0x5f, 0xa7, 0xee, 0x66, 0x92, 0xa6, 0xc6, 0x35, 0xae, 0xb5, 0x2d,
|
||||
0xc5, 0x98, 0xaa, 0xad, 0x5c, 0x81, 0xa8, 0xca, 0xa1, 0xe0, 0x16, 0x29, 0xa5, 0x4d, 0xa3, 0x4d,
|
||||
0x02, 0x82, 0x1e, 0xd0, 0xd6, 0x3b, 0x71, 0x56, 0xb1, 0x77, 0xcc, 0xec, 0xb8, 0x8d, 0x0f, 0x48,
|
||||
0xfc, 0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x58, 0x38, 0x7d,
|
||||
0xe2, 0x1f, 0x7a, 0xc3, 0x29, 0x75, 0xb8, 0x6a, 0xf5, 0x78, 0x4d, 0xa8, 0x0c, 0xa6, 0x94, 0x62,
|
||||
0x9e, 0xfa, 0xf2, 0xf9, 0x62, 0xc0, 0xfa, 0xcb, 0x80, 0x66, 0x36, 0xb7, 0x34, 0xac, 0x03, 0x17,
|
||||
0x07, 0xfa, 0x45, 0x24, 0x24, 0x0d, 0x27, 0x2b, 0x3a, 0x9f, 0xae, 0xe8, 0x0f, 0xa1, 0xe4, 0x13,
|
||||
0x17, 0x07, 0xf5, 0x82, 0x48, 0x8d, 0xf5, 0x84, 0x7b, 0x3b, 0xc4, 0xc5, 0x76, 0x78, 0x8f, 0xba,
|
||||
0x60, 0x0e, 0x28, 0x76, 0x54, 0x7b, 0x3d, 0xf0, 0xbd, 0x13, 0xf1, 0xee, 0x45, 0x7b, 0x0e, 0xb7,
|
||||
0x3c, 0x28, 0x72, 0x56, 0xad, 0x1d, 0x19, 0x89, 0x76, 0xd4, 0x84, 0x8a, 0xe3, 0xba, 0x14, 0x07,
|
||||
0x01, 0x0e, 0xea, 0x79, 0x91, 0xcf, 0x31, 0x80, 0x3e, 0x86, 0x12, 0x9b, 0x4d, 0xa4, 0x49, 0xb5,
|
||||
0xde, 0xa5, 0x39, 0x93, 0x44, 0x2c, 0x43, 0x1a, 0x6b, 0x0c, 0xd7, 0x54, 0xa4, 0xc5, 0x43, 0xd1,
|
||||
0xb1, 0x0c, 0x44, 0xb2, 0x27, 0x67, 0xa4, 0x98, 0x91, 0x9d, 0x62, 0xcb, 0x7b, 0xf1, 0x9f, 0x06,
|
||||
0x6c, 0x65, 0xeb, 0x7b, 0x87, 0x5d, 0xb9, 0x09, 0x15, 0x16, 0x8d, 0xc2, 0x92, 0x18, 0x85, 0x31,
|
||||
0x60, 0x3d, 0x04, 0xa4, 0x2c, 0x7e, 0x42, 0x86, 0x5a, 0xed, 0x3a, 0x87, 0x4c, 0x8b, 0x8d, 0x3a,
|
||||
0xc6, 0xcd, 0x94, 0x1b, 0x7b, 0x41, 0x36, 0x53, 0xcb, 0x83, 0x8d, 0x84, 0x14, 0x99, 0x86, 0x9f,
|
||||
0x89, 0x51, 0x4a, 0x68, 0xd4, 0x5b, 0x5a, 0x99, 0x45, 0x28, 0x58, 0x38, 0x99, 0xad, 0xc8, 0xb9,
|
||||
0x01, 0x47, 0x4e, 0xf0, 0x94, 0xc8, 0x57, 0x2e, 0xdb, 0xea, 0x68, 0xfd, 0x6a, 0xc0, 0xfa, 0x1c,
|
||||
0x23, 0xaa, 0x41, 0xde, 0x53, 0xb6, 0xe6, 0x3d, 0x77, 0xf1, 0x9c, 0x40, 0x9f, 0x47, 0x3b, 0x45,
|
||||
0x41, 0xf4, 0x85, 0xeb, 0xcb, 0x4d, 0x4a, 0xed, 0x17, 0x89, 0xc7, 0x2c, 0xa6, 0x1e, 0xb3, 0xfb,
|
||||
0xb3, 0x01, 0xf0, 0x88, 0x52, 0x42, 0xfb, 0xa2, 0x28, 0x6a, 0x00, 0x07, 0x3e, 0x3e, 0x99, 0xe0,
|
||||
0x01, 0xc3, 0xae, 0x99, 0x43, 0xa6, 0x9c, 0xd4, 0x42, 0x09, 0x76, 0x4d, 0x03, 0xd5, 0x61, 0x33,
|
||||
0x46, 0x78, 0x9a, 0x61, 0xdf, 0xf5, 0xfc, 0xa1, 0x99, 0x8f, 0x68, 0xfb, 0xbc, 0x7a, 0xb0, 0x6b,
|
||||
0x16, 0x10, 0x82, 0x9a, 0x40, 0x76, 0x08, 0x7b, 0x74, 0xe2, 0x05, 0x2c, 0x30, 0x8b, 0xc8, 0x84,
|
||||
0xaa, 0xd0, 0xf7, 0xec, 0xf0, 0x30, 0xc0, 0xcc, 0xfc, 0x23, 0xdf, 0xfd, 0x09, 0xaa, 0x5a, 0xdb,
|
||||
0x41, 0x5b, 0x89, 0xbd, 0x4a, 0x09, 0xcb, 0xa1, 0x16, 0x34, 0xf4, 0xee, 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 0xd4, 0x59, 0xca, 0xae, 0x2d, 0x28,
|
||||
0x8d, 0x8f, 0xde, 0x82, 0x52, 0x2a, 0x7b, 0xa1, 0x56, 0x72, 0x6d, 0xde, 0xa2, 0x25, 0x86, 0x6a,
|
||||
0x1b, 0x47, 0xe3, 0xc6, 0x79, 0x64, 0xb1, 0x43, 0x59, 0xd3, 0x33, 0xe5, 0xd0, 0x92, 0xf1, 0x9c,
|
||||
0x72, 0x68, 0xe9, 0x28, 0xde, 0x85, 0xaa, 0x96, 0x97, 0xe8, 0xea, 0xe2, 0x76, 0x13, 0x8a, 0x6e,
|
||||
0x2f, 0x26, 0x08, 0x25, 0x7e, 0xf9, 0xe9, 0x3f, 0xa7, 0x2d, 0xe3, 0xf5, 0x69, 0xcb, 0x78, 0x73,
|
||||
0xda, 0x32, 0x7e, 0x39, 0x6b, 0xe5, 0x5e, 0x9f, 0xb5, 0x72, 0xff, 0x9e, 0xb5, 0x72, 0xdf, 0x37,
|
||||
0x97, 0xfd, 0x95, 0x7c, 0xb1, 0x22, 0xbe, 0xee, 0xfe, 0x17, 0x00, 0x00, 0xff, 0xff, 0x9a, 0x8e,
|
||||
0x0b, 0xea, 0x71, 0x0e, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *SpaceSignRequest) Marshal() (dAtA []byte, err error) {
|
||||
|
@ -1829,19 +1790,12 @@ func (m *FileLimitCheckResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
|
|||
_ = i
|
||||
var l int
|
||||
_ = l
|
||||
if len(m.SpaceIds) > 0 {
|
||||
for iNdEx := len(m.SpaceIds) - 1; iNdEx >= 0; iNdEx-- {
|
||||
i -= len(m.SpaceIds[iNdEx])
|
||||
copy(dAtA[i:], m.SpaceIds[iNdEx])
|
||||
i = encodeVarintCoordinator(dAtA, i, uint64(len(m.SpaceIds[iNdEx])))
|
||||
i--
|
||||
dAtA[i] = 0x1a
|
||||
}
|
||||
}
|
||||
if m.Type != 0 {
|
||||
i = encodeVarintCoordinator(dAtA, i, uint64(m.Type))
|
||||
if len(m.StorageKey) > 0 {
|
||||
i -= len(m.StorageKey)
|
||||
copy(dAtA[i:], m.StorageKey)
|
||||
i = encodeVarintCoordinator(dAtA, i, uint64(len(m.StorageKey)))
|
||||
i--
|
||||
dAtA[i] = 0x10
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
if m.Limit != 0 {
|
||||
i = encodeVarintCoordinator(dAtA, i, uint64(m.Limit))
|
||||
|
@ -2572,14 +2526,9 @@ func (m *FileLimitCheckResponse) Size() (n int) {
|
|||
if m.Limit != 0 {
|
||||
n += 1 + sovCoordinator(uint64(m.Limit))
|
||||
}
|
||||
if m.Type != 0 {
|
||||
n += 1 + sovCoordinator(uint64(m.Type))
|
||||
}
|
||||
if len(m.SpaceIds) > 0 {
|
||||
for _, s := range m.SpaceIds {
|
||||
l = len(s)
|
||||
n += 1 + l + sovCoordinator(uint64(l))
|
||||
}
|
||||
l = len(m.StorageKey)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovCoordinator(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
@ -3710,27 +3659,8 @@ func (m *FileLimitCheckResponse) Unmarshal(dAtA []byte) error {
|
|||
}
|
||||
}
|
||||
case 2:
|
||||
if wireType != 0 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
|
||||
}
|
||||
m.Type = 0
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowCoordinator
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
m.Type |= FileLimitType(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
case 3:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field SpaceIds", wireType)
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field StorageKey", wireType)
|
||||
}
|
||||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
|
@ -3758,7 +3688,7 @@ func (m *FileLimitCheckResponse) Unmarshal(dAtA []byte) error {
|
|||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.SpaceIds = append(m.SpaceIds, string(dAtA[iNdEx:postIndex]))
|
||||
m.StorageKey = string(dAtA[iNdEx:postIndex])
|
||||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
|
|
|
@ -94,21 +94,13 @@ message FileLimitCheckRequest {
|
|||
string spaceId = 2;
|
||||
}
|
||||
|
||||
enum FileLimitType {
|
||||
// SpaceLimit means that limit works only for a given spaceId
|
||||
SpaceLimit = 0;
|
||||
// IdentityLimit means that limit works by identity and a given spaceId can share the limit with other spaces
|
||||
IdentityLimit = 1;
|
||||
}
|
||||
|
||||
// FileLimitCheckResponse returns a current space limit in bytes
|
||||
message FileLimitCheckResponse {
|
||||
// Limit in bytes
|
||||
uint64 limit = 1;
|
||||
// Type of the limit
|
||||
FileLimitType type = 2;
|
||||
// SpaceIds belongs to identity, will be returned when type is identity
|
||||
repeated string spaceIds = 3;
|
||||
// StorageKey tells a key that filenode should use to save files
|
||||
string storageKey = 2;
|
||||
}
|
||||
|
||||
// SpaceStatusCheckRequest contains the spaceId of requested space
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue