From b8abcb3b5e903a537979d2495d37732ab47cac4b Mon Sep 17 00:00:00 2001 From: bingoohuang Date: Fri, 18 Jan 2019 16:54:10 +0800 Subject: [PATCH] add stat of memory, disk, load, process to volume info of heartbeats for masters more details to volumes --- weed/pb/filer_pb/filer.pb.go | 1134 +++++++++++---- weed/pb/master.proto | 16 + weed/pb/master_pb/master.pb.go | 917 ++++++++---- weed/pb/volume_server_pb/volume_server.pb.go | 1326 +++++++++++++----- weed/server/master_grpc_server.go | 4 +- weed/storage/store.go | 25 + weed/storage/sysstat.go | 108 ++ weed/storage/sysstat_test.go | 50 + weed/storage/volume_info.go | 29 + weed/storage/volume_super_block.go | 3 +- weed/topology/store_replicate.go | 2 +- weed/topology/topology.go | 6 +- weed/topology/topology_event_handling.go | 2 +- 13 files changed, 2755 insertions(+), 867 deletions(-) create mode 100644 weed/storage/sysstat.go create mode 100644 weed/storage/sysstat_test.go diff --git a/weed/pb/filer_pb/filer.pb.go b/weed/pb/filer_pb/filer.pb.go index 6b4a27c0a..976ab7914 100644 --- a/weed/pb/filer_pb/filer.pb.go +++ b/weed/pb/filer_pb/filer.pb.go @@ -1,48 +1,14 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: filer.proto -// DO NOT EDIT! - -/* -Package filer_pb is a generated protocol buffer package. - -It is generated from these files: - filer.proto - -It has these top-level messages: - LookupDirectoryEntryRequest - LookupDirectoryEntryResponse - ListEntriesRequest - ListEntriesResponse - Entry - EventNotification - FileChunk - FuseAttributes - CreateEntryRequest - CreateEntryResponse - UpdateEntryRequest - UpdateEntryResponse - DeleteEntryRequest - DeleteEntryResponse - AssignVolumeRequest - AssignVolumeResponse - LookupVolumeRequest - Locations - Location - LookupVolumeResponse - DeleteCollectionRequest - DeleteCollectionResponse - StatisticsRequest - StatisticsResponse -*/ -package filer_pb -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +package filer_pb import ( - context "golang.org/x/net/context" + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" + math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -54,17 +20,40 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type LookupDirectoryEntryRequest struct { - Directory string `protobuf:"bytes,1,opt,name=directory" json:"directory,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` + Directory string `protobuf:"bytes,1,opt,name=directory,proto3" json:"directory,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LookupDirectoryEntryRequest) Reset() { *m = LookupDirectoryEntryRequest{} } +func (m *LookupDirectoryEntryRequest) String() string { return proto.CompactTextString(m) } +func (*LookupDirectoryEntryRequest) ProtoMessage() {} +func (*LookupDirectoryEntryRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{0} +} + +func (m *LookupDirectoryEntryRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LookupDirectoryEntryRequest.Unmarshal(m, b) +} +func (m *LookupDirectoryEntryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LookupDirectoryEntryRequest.Marshal(b, m, deterministic) +} +func (m *LookupDirectoryEntryRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LookupDirectoryEntryRequest.Merge(m, src) +} +func (m *LookupDirectoryEntryRequest) XXX_Size() int { + return xxx_messageInfo_LookupDirectoryEntryRequest.Size(m) +} +func (m *LookupDirectoryEntryRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LookupDirectoryEntryRequest.DiscardUnknown(m) } -func (m *LookupDirectoryEntryRequest) Reset() { *m = LookupDirectoryEntryRequest{} } -func (m *LookupDirectoryEntryRequest) String() string { return proto.CompactTextString(m) } -func (*LookupDirectoryEntryRequest) ProtoMessage() {} -func (*LookupDirectoryEntryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +var xxx_messageInfo_LookupDirectoryEntryRequest proto.InternalMessageInfo func (m *LookupDirectoryEntryRequest) GetDirectory() string { if m != nil { @@ -81,13 +70,36 @@ func (m *LookupDirectoryEntryRequest) GetName() string { } type LookupDirectoryEntryResponse struct { - Entry *Entry `protobuf:"bytes,1,opt,name=entry" json:"entry,omitempty"` + Entry *Entry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LookupDirectoryEntryResponse) Reset() { *m = LookupDirectoryEntryResponse{} } -func (m *LookupDirectoryEntryResponse) String() string { return proto.CompactTextString(m) } -func (*LookupDirectoryEntryResponse) ProtoMessage() {} -func (*LookupDirectoryEntryResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } +func (m *LookupDirectoryEntryResponse) Reset() { *m = LookupDirectoryEntryResponse{} } +func (m *LookupDirectoryEntryResponse) String() string { return proto.CompactTextString(m) } +func (*LookupDirectoryEntryResponse) ProtoMessage() {} +func (*LookupDirectoryEntryResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{1} +} + +func (m *LookupDirectoryEntryResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LookupDirectoryEntryResponse.Unmarshal(m, b) +} +func (m *LookupDirectoryEntryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LookupDirectoryEntryResponse.Marshal(b, m, deterministic) +} +func (m *LookupDirectoryEntryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LookupDirectoryEntryResponse.Merge(m, src) +} +func (m *LookupDirectoryEntryResponse) XXX_Size() int { + return xxx_messageInfo_LookupDirectoryEntryResponse.Size(m) +} +func (m *LookupDirectoryEntryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_LookupDirectoryEntryResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_LookupDirectoryEntryResponse proto.InternalMessageInfo func (m *LookupDirectoryEntryResponse) GetEntry() *Entry { if m != nil { @@ -97,17 +109,40 @@ func (m *LookupDirectoryEntryResponse) GetEntry() *Entry { } type ListEntriesRequest struct { - Directory string `protobuf:"bytes,1,opt,name=directory" json:"directory,omitempty"` - Prefix string `protobuf:"bytes,2,opt,name=prefix" json:"prefix,omitempty"` - StartFromFileName string `protobuf:"bytes,3,opt,name=startFromFileName" json:"startFromFileName,omitempty"` - InclusiveStartFrom bool `protobuf:"varint,4,opt,name=inclusiveStartFrom" json:"inclusiveStartFrom,omitempty"` - Limit uint32 `protobuf:"varint,5,opt,name=limit" json:"limit,omitempty"` + Directory string `protobuf:"bytes,1,opt,name=directory,proto3" json:"directory,omitempty"` + Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"` + StartFromFileName string `protobuf:"bytes,3,opt,name=startFromFileName,proto3" json:"startFromFileName,omitempty"` + InclusiveStartFrom bool `protobuf:"varint,4,opt,name=inclusiveStartFrom,proto3" json:"inclusiveStartFrom,omitempty"` + Limit uint32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListEntriesRequest) Reset() { *m = ListEntriesRequest{} } +func (m *ListEntriesRequest) String() string { return proto.CompactTextString(m) } +func (*ListEntriesRequest) ProtoMessage() {} +func (*ListEntriesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{2} +} + +func (m *ListEntriesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListEntriesRequest.Unmarshal(m, b) +} +func (m *ListEntriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListEntriesRequest.Marshal(b, m, deterministic) +} +func (m *ListEntriesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListEntriesRequest.Merge(m, src) +} +func (m *ListEntriesRequest) XXX_Size() int { + return xxx_messageInfo_ListEntriesRequest.Size(m) +} +func (m *ListEntriesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListEntriesRequest.DiscardUnknown(m) } -func (m *ListEntriesRequest) Reset() { *m = ListEntriesRequest{} } -func (m *ListEntriesRequest) String() string { return proto.CompactTextString(m) } -func (*ListEntriesRequest) ProtoMessage() {} -func (*ListEntriesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } +var xxx_messageInfo_ListEntriesRequest proto.InternalMessageInfo func (m *ListEntriesRequest) GetDirectory() string { if m != nil { @@ -145,13 +180,36 @@ func (m *ListEntriesRequest) GetLimit() uint32 { } type ListEntriesResponse struct { - Entries []*Entry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"` + Entries []*Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListEntriesResponse) Reset() { *m = ListEntriesResponse{} } +func (m *ListEntriesResponse) String() string { return proto.CompactTextString(m) } +func (*ListEntriesResponse) ProtoMessage() {} +func (*ListEntriesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{3} +} + +func (m *ListEntriesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListEntriesResponse.Unmarshal(m, b) +} +func (m *ListEntriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListEntriesResponse.Marshal(b, m, deterministic) +} +func (m *ListEntriesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListEntriesResponse.Merge(m, src) +} +func (m *ListEntriesResponse) XXX_Size() int { + return xxx_messageInfo_ListEntriesResponse.Size(m) +} +func (m *ListEntriesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListEntriesResponse.DiscardUnknown(m) } -func (m *ListEntriesResponse) Reset() { *m = ListEntriesResponse{} } -func (m *ListEntriesResponse) String() string { return proto.CompactTextString(m) } -func (*ListEntriesResponse) ProtoMessage() {} -func (*ListEntriesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } +var xxx_messageInfo_ListEntriesResponse proto.InternalMessageInfo func (m *ListEntriesResponse) GetEntries() []*Entry { if m != nil { @@ -161,17 +219,40 @@ func (m *ListEntriesResponse) GetEntries() []*Entry { } type Entry struct { - Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - IsDirectory bool `protobuf:"varint,2,opt,name=is_directory,json=isDirectory" json:"is_directory,omitempty"` - Chunks []*FileChunk `protobuf:"bytes,3,rep,name=chunks" json:"chunks,omitempty"` - Attributes *FuseAttributes `protobuf:"bytes,4,opt,name=attributes" json:"attributes,omitempty"` - Extended map[string][]byte `protobuf:"bytes,5,rep,name=extended" json:"extended,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value,proto3"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + IsDirectory bool `protobuf:"varint,2,opt,name=is_directory,json=isDirectory,proto3" json:"is_directory,omitempty"` + Chunks []*FileChunk `protobuf:"bytes,3,rep,name=chunks,proto3" json:"chunks,omitempty"` + Attributes *FuseAttributes `protobuf:"bytes,4,opt,name=attributes,proto3" json:"attributes,omitempty"` + Extended map[string][]byte `protobuf:"bytes,5,rep,name=extended,proto3" json:"extended,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Entry) Reset() { *m = Entry{} } -func (m *Entry) String() string { return proto.CompactTextString(m) } -func (*Entry) ProtoMessage() {} -func (*Entry) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } +func (m *Entry) Reset() { *m = Entry{} } +func (m *Entry) String() string { return proto.CompactTextString(m) } +func (*Entry) ProtoMessage() {} +func (*Entry) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{4} +} + +func (m *Entry) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Entry.Unmarshal(m, b) +} +func (m *Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Entry.Marshal(b, m, deterministic) +} +func (m *Entry) XXX_Merge(src proto.Message) { + xxx_messageInfo_Entry.Merge(m, src) +} +func (m *Entry) XXX_Size() int { + return xxx_messageInfo_Entry.Size(m) +} +func (m *Entry) XXX_DiscardUnknown() { + xxx_messageInfo_Entry.DiscardUnknown(m) +} + +var xxx_messageInfo_Entry proto.InternalMessageInfo func (m *Entry) GetName() string { if m != nil { @@ -209,15 +290,38 @@ func (m *Entry) GetExtended() map[string][]byte { } type EventNotification struct { - OldEntry *Entry `protobuf:"bytes,1,opt,name=old_entry,json=oldEntry" json:"old_entry,omitempty"` - NewEntry *Entry `protobuf:"bytes,2,opt,name=new_entry,json=newEntry" json:"new_entry,omitempty"` - DeleteChunks bool `protobuf:"varint,3,opt,name=delete_chunks,json=deleteChunks" json:"delete_chunks,omitempty"` + OldEntry *Entry `protobuf:"bytes,1,opt,name=old_entry,json=oldEntry,proto3" json:"old_entry,omitempty"` + NewEntry *Entry `protobuf:"bytes,2,opt,name=new_entry,json=newEntry,proto3" json:"new_entry,omitempty"` + DeleteChunks bool `protobuf:"varint,3,opt,name=delete_chunks,json=deleteChunks,proto3" json:"delete_chunks,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EventNotification) Reset() { *m = EventNotification{} } +func (m *EventNotification) String() string { return proto.CompactTextString(m) } +func (*EventNotification) ProtoMessage() {} +func (*EventNotification) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{5} +} + +func (m *EventNotification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EventNotification.Unmarshal(m, b) +} +func (m *EventNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EventNotification.Marshal(b, m, deterministic) +} +func (m *EventNotification) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventNotification.Merge(m, src) +} +func (m *EventNotification) XXX_Size() int { + return xxx_messageInfo_EventNotification.Size(m) +} +func (m *EventNotification) XXX_DiscardUnknown() { + xxx_messageInfo_EventNotification.DiscardUnknown(m) } -func (m *EventNotification) Reset() { *m = EventNotification{} } -func (m *EventNotification) String() string { return proto.CompactTextString(m) } -func (*EventNotification) ProtoMessage() {} -func (*EventNotification) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } +var xxx_messageInfo_EventNotification proto.InternalMessageInfo func (m *EventNotification) GetOldEntry() *Entry { if m != nil { @@ -241,18 +345,41 @@ func (m *EventNotification) GetDeleteChunks() bool { } type FileChunk struct { - FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId" json:"file_id,omitempty"` - Offset int64 `protobuf:"varint,2,opt,name=offset" json:"offset,omitempty"` - Size uint64 `protobuf:"varint,3,opt,name=size" json:"size,omitempty"` - Mtime int64 `protobuf:"varint,4,opt,name=mtime" json:"mtime,omitempty"` - ETag string `protobuf:"bytes,5,opt,name=e_tag,json=eTag" json:"e_tag,omitempty"` - SourceFileId string `protobuf:"bytes,6,opt,name=source_file_id,json=sourceFileId" json:"source_file_id,omitempty"` + FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"` + Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` + Size uint64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` + Mtime int64 `protobuf:"varint,4,opt,name=mtime,proto3" json:"mtime,omitempty"` + ETag string `protobuf:"bytes,5,opt,name=e_tag,json=eTag,proto3" json:"e_tag,omitempty"` + SourceFileId string `protobuf:"bytes,6,opt,name=source_file_id,json=sourceFileId,proto3" json:"source_file_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileChunk) Reset() { *m = FileChunk{} } +func (m *FileChunk) String() string { return proto.CompactTextString(m) } +func (*FileChunk) ProtoMessage() {} +func (*FileChunk) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{6} +} + +func (m *FileChunk) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FileChunk.Unmarshal(m, b) +} +func (m *FileChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FileChunk.Marshal(b, m, deterministic) +} +func (m *FileChunk) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileChunk.Merge(m, src) +} +func (m *FileChunk) XXX_Size() int { + return xxx_messageInfo_FileChunk.Size(m) +} +func (m *FileChunk) XXX_DiscardUnknown() { + xxx_messageInfo_FileChunk.DiscardUnknown(m) } -func (m *FileChunk) Reset() { *m = FileChunk{} } -func (m *FileChunk) String() string { return proto.CompactTextString(m) } -func (*FileChunk) ProtoMessage() {} -func (*FileChunk) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } +var xxx_messageInfo_FileChunk proto.InternalMessageInfo func (m *FileChunk) GetFileId() string { if m != nil { @@ -297,25 +424,48 @@ func (m *FileChunk) GetSourceFileId() string { } type FuseAttributes struct { - FileSize uint64 `protobuf:"varint,1,opt,name=file_size,json=fileSize" json:"file_size,omitempty"` - Mtime int64 `protobuf:"varint,2,opt,name=mtime" json:"mtime,omitempty"` - FileMode uint32 `protobuf:"varint,3,opt,name=file_mode,json=fileMode" json:"file_mode,omitempty"` - Uid uint32 `protobuf:"varint,4,opt,name=uid" json:"uid,omitempty"` - Gid uint32 `protobuf:"varint,5,opt,name=gid" json:"gid,omitempty"` - Crtime int64 `protobuf:"varint,6,opt,name=crtime" json:"crtime,omitempty"` - Mime string `protobuf:"bytes,7,opt,name=mime" json:"mime,omitempty"` - Replication string `protobuf:"bytes,8,opt,name=replication" json:"replication,omitempty"` - Collection string `protobuf:"bytes,9,opt,name=collection" json:"collection,omitempty"` - TtlSec int32 `protobuf:"varint,10,opt,name=ttl_sec,json=ttlSec" json:"ttl_sec,omitempty"` - UserName string `protobuf:"bytes,11,opt,name=user_name,json=userName" json:"user_name,omitempty"` - GroupName []string `protobuf:"bytes,12,rep,name=group_name,json=groupName" json:"group_name,omitempty"` - SymlinkTarget string `protobuf:"bytes,13,opt,name=symlink_target,json=symlinkTarget" json:"symlink_target,omitempty"` -} - -func (m *FuseAttributes) Reset() { *m = FuseAttributes{} } -func (m *FuseAttributes) String() string { return proto.CompactTextString(m) } -func (*FuseAttributes) ProtoMessage() {} -func (*FuseAttributes) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } + FileSize uint64 `protobuf:"varint,1,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"` + Mtime int64 `protobuf:"varint,2,opt,name=mtime,proto3" json:"mtime,omitempty"` + FileMode uint32 `protobuf:"varint,3,opt,name=file_mode,json=fileMode,proto3" json:"file_mode,omitempty"` + Uid uint32 `protobuf:"varint,4,opt,name=uid,proto3" json:"uid,omitempty"` + Gid uint32 `protobuf:"varint,5,opt,name=gid,proto3" json:"gid,omitempty"` + Crtime int64 `protobuf:"varint,6,opt,name=crtime,proto3" json:"crtime,omitempty"` + Mime string `protobuf:"bytes,7,opt,name=mime,proto3" json:"mime,omitempty"` + Replication string `protobuf:"bytes,8,opt,name=replication,proto3" json:"replication,omitempty"` + Collection string `protobuf:"bytes,9,opt,name=collection,proto3" json:"collection,omitempty"` + TtlSec int32 `protobuf:"varint,10,opt,name=ttl_sec,json=ttlSec,proto3" json:"ttl_sec,omitempty"` + UserName string `protobuf:"bytes,11,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` + GroupName []string `protobuf:"bytes,12,rep,name=group_name,json=groupName,proto3" json:"group_name,omitempty"` + SymlinkTarget string `protobuf:"bytes,13,opt,name=symlink_target,json=symlinkTarget,proto3" json:"symlink_target,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FuseAttributes) Reset() { *m = FuseAttributes{} } +func (m *FuseAttributes) String() string { return proto.CompactTextString(m) } +func (*FuseAttributes) ProtoMessage() {} +func (*FuseAttributes) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{7} +} + +func (m *FuseAttributes) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FuseAttributes.Unmarshal(m, b) +} +func (m *FuseAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FuseAttributes.Marshal(b, m, deterministic) +} +func (m *FuseAttributes) XXX_Merge(src proto.Message) { + xxx_messageInfo_FuseAttributes.Merge(m, src) +} +func (m *FuseAttributes) XXX_Size() int { + return xxx_messageInfo_FuseAttributes.Size(m) +} +func (m *FuseAttributes) XXX_DiscardUnknown() { + xxx_messageInfo_FuseAttributes.DiscardUnknown(m) +} + +var xxx_messageInfo_FuseAttributes proto.InternalMessageInfo func (m *FuseAttributes) GetFileSize() uint64 { if m != nil { @@ -409,14 +559,37 @@ func (m *FuseAttributes) GetSymlinkTarget() string { } type CreateEntryRequest struct { - Directory string `protobuf:"bytes,1,opt,name=directory" json:"directory,omitempty"` - Entry *Entry `protobuf:"bytes,2,opt,name=entry" json:"entry,omitempty"` + Directory string `protobuf:"bytes,1,opt,name=directory,proto3" json:"directory,omitempty"` + Entry *Entry `protobuf:"bytes,2,opt,name=entry,proto3" json:"entry,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateEntryRequest) Reset() { *m = CreateEntryRequest{} } +func (m *CreateEntryRequest) String() string { return proto.CompactTextString(m) } +func (*CreateEntryRequest) ProtoMessage() {} +func (*CreateEntryRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{8} +} + +func (m *CreateEntryRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateEntryRequest.Unmarshal(m, b) +} +func (m *CreateEntryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateEntryRequest.Marshal(b, m, deterministic) +} +func (m *CreateEntryRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateEntryRequest.Merge(m, src) +} +func (m *CreateEntryRequest) XXX_Size() int { + return xxx_messageInfo_CreateEntryRequest.Size(m) +} +func (m *CreateEntryRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateEntryRequest.DiscardUnknown(m) } -func (m *CreateEntryRequest) Reset() { *m = CreateEntryRequest{} } -func (m *CreateEntryRequest) String() string { return proto.CompactTextString(m) } -func (*CreateEntryRequest) ProtoMessage() {} -func (*CreateEntryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } +var xxx_messageInfo_CreateEntryRequest proto.InternalMessageInfo func (m *CreateEntryRequest) GetDirectory() string { if m != nil { @@ -433,22 +606,68 @@ func (m *CreateEntryRequest) GetEntry() *Entry { } type CreateEntryResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CreateEntryResponse) Reset() { *m = CreateEntryResponse{} } -func (m *CreateEntryResponse) String() string { return proto.CompactTextString(m) } -func (*CreateEntryResponse) ProtoMessage() {} -func (*CreateEntryResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } +func (m *CreateEntryResponse) Reset() { *m = CreateEntryResponse{} } +func (m *CreateEntryResponse) String() string { return proto.CompactTextString(m) } +func (*CreateEntryResponse) ProtoMessage() {} +func (*CreateEntryResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{9} +} + +func (m *CreateEntryResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateEntryResponse.Unmarshal(m, b) +} +func (m *CreateEntryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateEntryResponse.Marshal(b, m, deterministic) +} +func (m *CreateEntryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateEntryResponse.Merge(m, src) +} +func (m *CreateEntryResponse) XXX_Size() int { + return xxx_messageInfo_CreateEntryResponse.Size(m) +} +func (m *CreateEntryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CreateEntryResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateEntryResponse proto.InternalMessageInfo type UpdateEntryRequest struct { - Directory string `protobuf:"bytes,1,opt,name=directory" json:"directory,omitempty"` - Entry *Entry `protobuf:"bytes,2,opt,name=entry" json:"entry,omitempty"` + Directory string `protobuf:"bytes,1,opt,name=directory,proto3" json:"directory,omitempty"` + Entry *Entry `protobuf:"bytes,2,opt,name=entry,proto3" json:"entry,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateEntryRequest) Reset() { *m = UpdateEntryRequest{} } +func (m *UpdateEntryRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateEntryRequest) ProtoMessage() {} +func (*UpdateEntryRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{10} +} + +func (m *UpdateEntryRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateEntryRequest.Unmarshal(m, b) +} +func (m *UpdateEntryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateEntryRequest.Marshal(b, m, deterministic) +} +func (m *UpdateEntryRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateEntryRequest.Merge(m, src) +} +func (m *UpdateEntryRequest) XXX_Size() int { + return xxx_messageInfo_UpdateEntryRequest.Size(m) +} +func (m *UpdateEntryRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateEntryRequest.DiscardUnknown(m) } -func (m *UpdateEntryRequest) Reset() { *m = UpdateEntryRequest{} } -func (m *UpdateEntryRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateEntryRequest) ProtoMessage() {} -func (*UpdateEntryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } +var xxx_messageInfo_UpdateEntryRequest proto.InternalMessageInfo func (m *UpdateEntryRequest) GetDirectory() string { if m != nil { @@ -465,25 +684,71 @@ func (m *UpdateEntryRequest) GetEntry() *Entry { } type UpdateEntryResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *UpdateEntryResponse) Reset() { *m = UpdateEntryResponse{} } -func (m *UpdateEntryResponse) String() string { return proto.CompactTextString(m) } -func (*UpdateEntryResponse) ProtoMessage() {} -func (*UpdateEntryResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } +func (m *UpdateEntryResponse) Reset() { *m = UpdateEntryResponse{} } +func (m *UpdateEntryResponse) String() string { return proto.CompactTextString(m) } +func (*UpdateEntryResponse) ProtoMessage() {} +func (*UpdateEntryResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{11} +} + +func (m *UpdateEntryResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateEntryResponse.Unmarshal(m, b) +} +func (m *UpdateEntryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateEntryResponse.Marshal(b, m, deterministic) +} +func (m *UpdateEntryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateEntryResponse.Merge(m, src) +} +func (m *UpdateEntryResponse) XXX_Size() int { + return xxx_messageInfo_UpdateEntryResponse.Size(m) +} +func (m *UpdateEntryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateEntryResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateEntryResponse proto.InternalMessageInfo type DeleteEntryRequest struct { - Directory string `protobuf:"bytes,1,opt,name=directory" json:"directory,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` + Directory string `protobuf:"bytes,1,opt,name=directory,proto3" json:"directory,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // bool is_directory = 3; - IsDeleteData bool `protobuf:"varint,4,opt,name=is_delete_data,json=isDeleteData" json:"is_delete_data,omitempty"` - IsRecursive bool `protobuf:"varint,5,opt,name=is_recursive,json=isRecursive" json:"is_recursive,omitempty"` + IsDeleteData bool `protobuf:"varint,4,opt,name=is_delete_data,json=isDeleteData,proto3" json:"is_delete_data,omitempty"` + IsRecursive bool `protobuf:"varint,5,opt,name=is_recursive,json=isRecursive,proto3" json:"is_recursive,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DeleteEntryRequest) Reset() { *m = DeleteEntryRequest{} } -func (m *DeleteEntryRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteEntryRequest) ProtoMessage() {} -func (*DeleteEntryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } +func (m *DeleteEntryRequest) Reset() { *m = DeleteEntryRequest{} } +func (m *DeleteEntryRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteEntryRequest) ProtoMessage() {} +func (*DeleteEntryRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{12} +} + +func (m *DeleteEntryRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteEntryRequest.Unmarshal(m, b) +} +func (m *DeleteEntryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteEntryRequest.Marshal(b, m, deterministic) +} +func (m *DeleteEntryRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteEntryRequest.Merge(m, src) +} +func (m *DeleteEntryRequest) XXX_Size() int { + return xxx_messageInfo_DeleteEntryRequest.Size(m) +} +func (m *DeleteEntryRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteEntryRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteEntryRequest proto.InternalMessageInfo func (m *DeleteEntryRequest) GetDirectory() string { if m != nil { @@ -514,25 +779,71 @@ func (m *DeleteEntryRequest) GetIsRecursive() bool { } type DeleteEntryResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteEntryResponse) Reset() { *m = DeleteEntryResponse{} } +func (m *DeleteEntryResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteEntryResponse) ProtoMessage() {} +func (*DeleteEntryResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{13} +} + +func (m *DeleteEntryResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteEntryResponse.Unmarshal(m, b) +} +func (m *DeleteEntryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteEntryResponse.Marshal(b, m, deterministic) +} +func (m *DeleteEntryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteEntryResponse.Merge(m, src) +} +func (m *DeleteEntryResponse) XXX_Size() int { + return xxx_messageInfo_DeleteEntryResponse.Size(m) +} +func (m *DeleteEntryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteEntryResponse.DiscardUnknown(m) } -func (m *DeleteEntryResponse) Reset() { *m = DeleteEntryResponse{} } -func (m *DeleteEntryResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteEntryResponse) ProtoMessage() {} -func (*DeleteEntryResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } +var xxx_messageInfo_DeleteEntryResponse proto.InternalMessageInfo type AssignVolumeRequest struct { - Count int32 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"` - Collection string `protobuf:"bytes,2,opt,name=collection" json:"collection,omitempty"` - Replication string `protobuf:"bytes,3,opt,name=replication" json:"replication,omitempty"` - TtlSec int32 `protobuf:"varint,4,opt,name=ttl_sec,json=ttlSec" json:"ttl_sec,omitempty"` - DataCenter string `protobuf:"bytes,5,opt,name=data_center,json=dataCenter" json:"data_center,omitempty"` + Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` + Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` + Replication string `protobuf:"bytes,3,opt,name=replication,proto3" json:"replication,omitempty"` + TtlSec int32 `protobuf:"varint,4,opt,name=ttl_sec,json=ttlSec,proto3" json:"ttl_sec,omitempty"` + DataCenter string `protobuf:"bytes,5,opt,name=data_center,json=dataCenter,proto3" json:"data_center,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AssignVolumeRequest) Reset() { *m = AssignVolumeRequest{} } +func (m *AssignVolumeRequest) String() string { return proto.CompactTextString(m) } +func (*AssignVolumeRequest) ProtoMessage() {} +func (*AssignVolumeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{14} +} + +func (m *AssignVolumeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AssignVolumeRequest.Unmarshal(m, b) +} +func (m *AssignVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AssignVolumeRequest.Marshal(b, m, deterministic) +} +func (m *AssignVolumeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AssignVolumeRequest.Merge(m, src) +} +func (m *AssignVolumeRequest) XXX_Size() int { + return xxx_messageInfo_AssignVolumeRequest.Size(m) +} +func (m *AssignVolumeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AssignVolumeRequest.DiscardUnknown(m) } -func (m *AssignVolumeRequest) Reset() { *m = AssignVolumeRequest{} } -func (m *AssignVolumeRequest) String() string { return proto.CompactTextString(m) } -func (*AssignVolumeRequest) ProtoMessage() {} -func (*AssignVolumeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } +var xxx_messageInfo_AssignVolumeRequest proto.InternalMessageInfo func (m *AssignVolumeRequest) GetCount() int32 { if m != nil { @@ -570,16 +881,39 @@ func (m *AssignVolumeRequest) GetDataCenter() string { } type AssignVolumeResponse struct { - FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId" json:"file_id,omitempty"` - Url string `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"` - PublicUrl string `protobuf:"bytes,3,opt,name=public_url,json=publicUrl" json:"public_url,omitempty"` - Count int32 `protobuf:"varint,4,opt,name=count" json:"count,omitempty"` + FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"` + Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` + PublicUrl string `protobuf:"bytes,3,opt,name=public_url,json=publicUrl,proto3" json:"public_url,omitempty"` + Count int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *AssignVolumeResponse) Reset() { *m = AssignVolumeResponse{} } -func (m *AssignVolumeResponse) String() string { return proto.CompactTextString(m) } -func (*AssignVolumeResponse) ProtoMessage() {} -func (*AssignVolumeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } +func (m *AssignVolumeResponse) Reset() { *m = AssignVolumeResponse{} } +func (m *AssignVolumeResponse) String() string { return proto.CompactTextString(m) } +func (*AssignVolumeResponse) ProtoMessage() {} +func (*AssignVolumeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{15} +} + +func (m *AssignVolumeResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AssignVolumeResponse.Unmarshal(m, b) +} +func (m *AssignVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AssignVolumeResponse.Marshal(b, m, deterministic) +} +func (m *AssignVolumeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AssignVolumeResponse.Merge(m, src) +} +func (m *AssignVolumeResponse) XXX_Size() int { + return xxx_messageInfo_AssignVolumeResponse.Size(m) +} +func (m *AssignVolumeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AssignVolumeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_AssignVolumeResponse proto.InternalMessageInfo func (m *AssignVolumeResponse) GetFileId() string { if m != nil { @@ -610,13 +944,36 @@ func (m *AssignVolumeResponse) GetCount() int32 { } type LookupVolumeRequest struct { - VolumeIds []string `protobuf:"bytes,1,rep,name=volume_ids,json=volumeIds" json:"volume_ids,omitempty"` + VolumeIds []string `protobuf:"bytes,1,rep,name=volume_ids,json=volumeIds,proto3" json:"volume_ids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LookupVolumeRequest) Reset() { *m = LookupVolumeRequest{} } -func (m *LookupVolumeRequest) String() string { return proto.CompactTextString(m) } -func (*LookupVolumeRequest) ProtoMessage() {} -func (*LookupVolumeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } +func (m *LookupVolumeRequest) Reset() { *m = LookupVolumeRequest{} } +func (m *LookupVolumeRequest) String() string { return proto.CompactTextString(m) } +func (*LookupVolumeRequest) ProtoMessage() {} +func (*LookupVolumeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{16} +} + +func (m *LookupVolumeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LookupVolumeRequest.Unmarshal(m, b) +} +func (m *LookupVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LookupVolumeRequest.Marshal(b, m, deterministic) +} +func (m *LookupVolumeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LookupVolumeRequest.Merge(m, src) +} +func (m *LookupVolumeRequest) XXX_Size() int { + return xxx_messageInfo_LookupVolumeRequest.Size(m) +} +func (m *LookupVolumeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LookupVolumeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_LookupVolumeRequest proto.InternalMessageInfo func (m *LookupVolumeRequest) GetVolumeIds() []string { if m != nil { @@ -626,13 +983,36 @@ func (m *LookupVolumeRequest) GetVolumeIds() []string { } type Locations struct { - Locations []*Location `protobuf:"bytes,1,rep,name=locations" json:"locations,omitempty"` + Locations []*Location `protobuf:"bytes,1,rep,name=locations,proto3" json:"locations,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Locations) Reset() { *m = Locations{} } +func (m *Locations) String() string { return proto.CompactTextString(m) } +func (*Locations) ProtoMessage() {} +func (*Locations) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{17} +} + +func (m *Locations) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Locations.Unmarshal(m, b) +} +func (m *Locations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Locations.Marshal(b, m, deterministic) +} +func (m *Locations) XXX_Merge(src proto.Message) { + xxx_messageInfo_Locations.Merge(m, src) +} +func (m *Locations) XXX_Size() int { + return xxx_messageInfo_Locations.Size(m) +} +func (m *Locations) XXX_DiscardUnknown() { + xxx_messageInfo_Locations.DiscardUnknown(m) } -func (m *Locations) Reset() { *m = Locations{} } -func (m *Locations) String() string { return proto.CompactTextString(m) } -func (*Locations) ProtoMessage() {} -func (*Locations) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} } +var xxx_messageInfo_Locations proto.InternalMessageInfo func (m *Locations) GetLocations() []*Location { if m != nil { @@ -642,14 +1022,37 @@ func (m *Locations) GetLocations() []*Location { } type Location struct { - Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"` - PublicUrl string `protobuf:"bytes,2,opt,name=public_url,json=publicUrl" json:"public_url,omitempty"` + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + PublicUrl string `protobuf:"bytes,2,opt,name=public_url,json=publicUrl,proto3" json:"public_url,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Location) Reset() { *m = Location{} } -func (m *Location) String() string { return proto.CompactTextString(m) } -func (*Location) ProtoMessage() {} -func (*Location) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} } +func (m *Location) Reset() { *m = Location{} } +func (m *Location) String() string { return proto.CompactTextString(m) } +func (*Location) ProtoMessage() {} +func (*Location) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{18} +} + +func (m *Location) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Location.Unmarshal(m, b) +} +func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Location.Marshal(b, m, deterministic) +} +func (m *Location) XXX_Merge(src proto.Message) { + xxx_messageInfo_Location.Merge(m, src) +} +func (m *Location) XXX_Size() int { + return xxx_messageInfo_Location.Size(m) +} +func (m *Location) XXX_DiscardUnknown() { + xxx_messageInfo_Location.DiscardUnknown(m) +} + +var xxx_messageInfo_Location proto.InternalMessageInfo func (m *Location) GetUrl() string { if m != nil { @@ -666,13 +1069,36 @@ func (m *Location) GetPublicUrl() string { } type LookupVolumeResponse struct { - LocationsMap map[string]*Locations `protobuf:"bytes,1,rep,name=locations_map,json=locationsMap" json:"locations_map,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + LocationsMap map[string]*Locations `protobuf:"bytes,1,rep,name=locations_map,json=locationsMap,proto3" json:"locations_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LookupVolumeResponse) Reset() { *m = LookupVolumeResponse{} } -func (m *LookupVolumeResponse) String() string { return proto.CompactTextString(m) } -func (*LookupVolumeResponse) ProtoMessage() {} -func (*LookupVolumeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} } +func (m *LookupVolumeResponse) Reset() { *m = LookupVolumeResponse{} } +func (m *LookupVolumeResponse) String() string { return proto.CompactTextString(m) } +func (*LookupVolumeResponse) ProtoMessage() {} +func (*LookupVolumeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{19} +} + +func (m *LookupVolumeResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LookupVolumeResponse.Unmarshal(m, b) +} +func (m *LookupVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LookupVolumeResponse.Marshal(b, m, deterministic) +} +func (m *LookupVolumeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LookupVolumeResponse.Merge(m, src) +} +func (m *LookupVolumeResponse) XXX_Size() int { + return xxx_messageInfo_LookupVolumeResponse.Size(m) +} +func (m *LookupVolumeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_LookupVolumeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_LookupVolumeResponse proto.InternalMessageInfo func (m *LookupVolumeResponse) GetLocationsMap() map[string]*Locations { if m != nil { @@ -682,13 +1108,36 @@ func (m *LookupVolumeResponse) GetLocationsMap() map[string]*Locations { } type DeleteCollectionRequest struct { - Collection string `protobuf:"bytes,1,opt,name=collection" json:"collection,omitempty"` + Collection string `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteCollectionRequest) Reset() { *m = DeleteCollectionRequest{} } +func (m *DeleteCollectionRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteCollectionRequest) ProtoMessage() {} +func (*DeleteCollectionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{20} +} + +func (m *DeleteCollectionRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteCollectionRequest.Unmarshal(m, b) +} +func (m *DeleteCollectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteCollectionRequest.Marshal(b, m, deterministic) +} +func (m *DeleteCollectionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteCollectionRequest.Merge(m, src) +} +func (m *DeleteCollectionRequest) XXX_Size() int { + return xxx_messageInfo_DeleteCollectionRequest.Size(m) +} +func (m *DeleteCollectionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteCollectionRequest.DiscardUnknown(m) } -func (m *DeleteCollectionRequest) Reset() { *m = DeleteCollectionRequest{} } -func (m *DeleteCollectionRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteCollectionRequest) ProtoMessage() {} -func (*DeleteCollectionRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} } +var xxx_messageInfo_DeleteCollectionRequest proto.InternalMessageInfo func (m *DeleteCollectionRequest) GetCollection() string { if m != nil { @@ -698,23 +1147,69 @@ func (m *DeleteCollectionRequest) GetCollection() string { } type DeleteCollectionResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DeleteCollectionResponse) Reset() { *m = DeleteCollectionResponse{} } -func (m *DeleteCollectionResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteCollectionResponse) ProtoMessage() {} -func (*DeleteCollectionResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} } +func (m *DeleteCollectionResponse) Reset() { *m = DeleteCollectionResponse{} } +func (m *DeleteCollectionResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteCollectionResponse) ProtoMessage() {} +func (*DeleteCollectionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{21} +} + +func (m *DeleteCollectionResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteCollectionResponse.Unmarshal(m, b) +} +func (m *DeleteCollectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteCollectionResponse.Marshal(b, m, deterministic) +} +func (m *DeleteCollectionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteCollectionResponse.Merge(m, src) +} +func (m *DeleteCollectionResponse) XXX_Size() int { + return xxx_messageInfo_DeleteCollectionResponse.Size(m) +} +func (m *DeleteCollectionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteCollectionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteCollectionResponse proto.InternalMessageInfo type StatisticsRequest struct { - Replication string `protobuf:"bytes,1,opt,name=replication" json:"replication,omitempty"` - Collection string `protobuf:"bytes,2,opt,name=collection" json:"collection,omitempty"` - Ttl string `protobuf:"bytes,3,opt,name=ttl" json:"ttl,omitempty"` + Replication string `protobuf:"bytes,1,opt,name=replication,proto3" json:"replication,omitempty"` + Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` + Ttl string `protobuf:"bytes,3,opt,name=ttl,proto3" json:"ttl,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StatisticsRequest) Reset() { *m = StatisticsRequest{} } +func (m *StatisticsRequest) String() string { return proto.CompactTextString(m) } +func (*StatisticsRequest) ProtoMessage() {} +func (*StatisticsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{22} +} + +func (m *StatisticsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StatisticsRequest.Unmarshal(m, b) +} +func (m *StatisticsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StatisticsRequest.Marshal(b, m, deterministic) +} +func (m *StatisticsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatisticsRequest.Merge(m, src) +} +func (m *StatisticsRequest) XXX_Size() int { + return xxx_messageInfo_StatisticsRequest.Size(m) +} +func (m *StatisticsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StatisticsRequest.DiscardUnknown(m) } -func (m *StatisticsRequest) Reset() { *m = StatisticsRequest{} } -func (m *StatisticsRequest) String() string { return proto.CompactTextString(m) } -func (*StatisticsRequest) ProtoMessage() {} -func (*StatisticsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} } +var xxx_messageInfo_StatisticsRequest proto.InternalMessageInfo func (m *StatisticsRequest) GetReplication() string { if m != nil { @@ -738,18 +1233,41 @@ func (m *StatisticsRequest) GetTtl() string { } type StatisticsResponse struct { - Replication string `protobuf:"bytes,1,opt,name=replication" json:"replication,omitempty"` - Collection string `protobuf:"bytes,2,opt,name=collection" json:"collection,omitempty"` - Ttl string `protobuf:"bytes,3,opt,name=ttl" json:"ttl,omitempty"` - TotalSize uint64 `protobuf:"varint,4,opt,name=total_size,json=totalSize" json:"total_size,omitempty"` - UsedSize uint64 `protobuf:"varint,5,opt,name=used_size,json=usedSize" json:"used_size,omitempty"` - FileCount uint64 `protobuf:"varint,6,opt,name=file_count,json=fileCount" json:"file_count,omitempty"` + Replication string `protobuf:"bytes,1,opt,name=replication,proto3" json:"replication,omitempty"` + Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` + Ttl string `protobuf:"bytes,3,opt,name=ttl,proto3" json:"ttl,omitempty"` + TotalSize uint64 `protobuf:"varint,4,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"` + UsedSize uint64 `protobuf:"varint,5,opt,name=used_size,json=usedSize,proto3" json:"used_size,omitempty"` + FileCount uint64 `protobuf:"varint,6,opt,name=file_count,json=fileCount,proto3" json:"file_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StatisticsResponse) Reset() { *m = StatisticsResponse{} } +func (m *StatisticsResponse) String() string { return proto.CompactTextString(m) } +func (*StatisticsResponse) ProtoMessage() {} +func (*StatisticsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1b851e6b82c6fa16, []int{23} } -func (m *StatisticsResponse) Reset() { *m = StatisticsResponse{} } -func (m *StatisticsResponse) String() string { return proto.CompactTextString(m) } -func (*StatisticsResponse) ProtoMessage() {} -func (*StatisticsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{23} } +func (m *StatisticsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StatisticsResponse.Unmarshal(m, b) +} +func (m *StatisticsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StatisticsResponse.Marshal(b, m, deterministic) +} +func (m *StatisticsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatisticsResponse.Merge(m, src) +} +func (m *StatisticsResponse) XXX_Size() int { + return xxx_messageInfo_StatisticsResponse.Size(m) +} +func (m *StatisticsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StatisticsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StatisticsResponse proto.InternalMessageInfo func (m *StatisticsResponse) GetReplication() string { if m != nil { @@ -799,6 +1317,7 @@ func init() { proto.RegisterType((*ListEntriesRequest)(nil), "filer_pb.ListEntriesRequest") proto.RegisterType((*ListEntriesResponse)(nil), "filer_pb.ListEntriesResponse") proto.RegisterType((*Entry)(nil), "filer_pb.Entry") + proto.RegisterMapType((map[string][]byte)(nil), "filer_pb.Entry.ExtendedEntry") proto.RegisterType((*EventNotification)(nil), "filer_pb.EventNotification") proto.RegisterType((*FileChunk)(nil), "filer_pb.FileChunk") proto.RegisterType((*FuseAttributes)(nil), "filer_pb.FuseAttributes") @@ -814,12 +1333,100 @@ func init() { proto.RegisterType((*Locations)(nil), "filer_pb.Locations") proto.RegisterType((*Location)(nil), "filer_pb.Location") proto.RegisterType((*LookupVolumeResponse)(nil), "filer_pb.LookupVolumeResponse") + proto.RegisterMapType((map[string]*Locations)(nil), "filer_pb.LookupVolumeResponse.LocationsMapEntry") proto.RegisterType((*DeleteCollectionRequest)(nil), "filer_pb.DeleteCollectionRequest") proto.RegisterType((*DeleteCollectionResponse)(nil), "filer_pb.DeleteCollectionResponse") proto.RegisterType((*StatisticsRequest)(nil), "filer_pb.StatisticsRequest") proto.RegisterType((*StatisticsResponse)(nil), "filer_pb.StatisticsResponse") } +func init() { proto.RegisterFile("filer.proto", fileDescriptor_1b851e6b82c6fa16) } + +var fileDescriptor_1b851e6b82c6fa16 = []byte{ + // 1291 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x4d, 0x8f, 0xdc, 0x44, + 0x13, 0x8e, 0xe7, 0x2b, 0xe3, 0x9a, 0x99, 0xbc, 0xbb, 0x3d, 0xfb, 0x12, 0x6b, 0xb2, 0x1b, 0x26, + 0x86, 0xa0, 0x8d, 0x88, 0x46, 0x51, 0xe0, 0x90, 0x10, 0x21, 0x91, 0x6c, 0x36, 0x52, 0xa4, 0x4d, + 0x82, 0xbc, 0x09, 0x12, 0xe2, 0x60, 0x79, 0xed, 0x9e, 0xa1, 0xb5, 0x1e, 0x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x32, 0xad, 0x35, 0x8d, 0x13, 0xb4, 0x66, 0x74, 0x7d, 0xd3, 0x5a, 0x7d, 0xce, 0x98, + 0xd6, 0x9a, 0x46, 0x05, 0x5a, 0x33, 0x5a, 0xb3, 0x69, 0xad, 0x3e, 0x42, 0x4c, 0x6b, 0x4d, 0xfd, + 0xfc, 0x12, 0x79, 0x01, 0x43, 0xb3, 0x4f, 0x12, 0xe3, 0x40, 0x43, 0xa3, 0x9f, 0x5c, 0x3f, 0x4f, + 0x6c, 0x1a, 0x34, 0xdb, 0x82, 0x69, 0xb0, 0xa1, 0x31, 0x9a, 0x06, 0x9b, 0xba, 0x89, 0x7b, 0x89, + 0x7c, 0x07, 0x5b, 0x9b, 0xcf, 0x93, 0xdc, 0xd8, 0x4c, 0xab, 0xf6, 0xea, 0x27, 0xee, 0x45, 0x2a, + 0xa5, 0xf1, 0xa7, 0x00, 0xeb, 0x57, 0x47, 0xae, 0xad, 0xcf, 0xd4, 0x5e, 0xfd, 0x64, 0xb7, 0x59, + 0x58, 0x98, 0x7a, 0x74, 0x1d, 0xb6, 0xb8, 0xa2, 0xfe, 0x9c, 0xcf, 0xc2, 0x98, 0xd1, 0x44, 0x3c, + 0x02, 0x7c, 0x05, 0x5f, 0xcb, 0x3f, 0xc7, 0x93, 0x1e, 0xfe, 0x40, 0x7e, 0xf6, 0x77, 0x00, 0x00, + 0x00, 0xff, 0xff, 0x8d, 0x38, 0xa9, 0x9f, 0x4f, 0x0e, 0x00, 0x00, +} + // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -828,8 +1435,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for SeaweedFiler service - +// SeaweedFilerClient is the client API for SeaweedFiler service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type SeaweedFilerClient interface { LookupDirectoryEntry(ctx context.Context, in *LookupDirectoryEntryRequest, opts ...grpc.CallOption) (*LookupDirectoryEntryResponse, error) ListEntries(ctx context.Context, in *ListEntriesRequest, opts ...grpc.CallOption) (*ListEntriesResponse, error) @@ -852,7 +1460,7 @@ func NewSeaweedFilerClient(cc *grpc.ClientConn) SeaweedFilerClient { func (c *seaweedFilerClient) LookupDirectoryEntry(ctx context.Context, in *LookupDirectoryEntryRequest, opts ...grpc.CallOption) (*LookupDirectoryEntryResponse, error) { out := new(LookupDirectoryEntryResponse) - err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/LookupDirectoryEntry", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/LookupDirectoryEntry", in, out, opts...) if err != nil { return nil, err } @@ -861,7 +1469,7 @@ func (c *seaweedFilerClient) LookupDirectoryEntry(ctx context.Context, in *Looku func (c *seaweedFilerClient) ListEntries(ctx context.Context, in *ListEntriesRequest, opts ...grpc.CallOption) (*ListEntriesResponse, error) { out := new(ListEntriesResponse) - err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/ListEntries", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/ListEntries", in, out, opts...) if err != nil { return nil, err } @@ -870,7 +1478,7 @@ func (c *seaweedFilerClient) ListEntries(ctx context.Context, in *ListEntriesReq func (c *seaweedFilerClient) CreateEntry(ctx context.Context, in *CreateEntryRequest, opts ...grpc.CallOption) (*CreateEntryResponse, error) { out := new(CreateEntryResponse) - err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/CreateEntry", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/CreateEntry", in, out, opts...) if err != nil { return nil, err } @@ -879,7 +1487,7 @@ func (c *seaweedFilerClient) CreateEntry(ctx context.Context, in *CreateEntryReq func (c *seaweedFilerClient) UpdateEntry(ctx context.Context, in *UpdateEntryRequest, opts ...grpc.CallOption) (*UpdateEntryResponse, error) { out := new(UpdateEntryResponse) - err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/UpdateEntry", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/UpdateEntry", in, out, opts...) if err != nil { return nil, err } @@ -888,7 +1496,7 @@ func (c *seaweedFilerClient) UpdateEntry(ctx context.Context, in *UpdateEntryReq func (c *seaweedFilerClient) DeleteEntry(ctx context.Context, in *DeleteEntryRequest, opts ...grpc.CallOption) (*DeleteEntryResponse, error) { out := new(DeleteEntryResponse) - err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/DeleteEntry", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/DeleteEntry", in, out, opts...) if err != nil { return nil, err } @@ -897,7 +1505,7 @@ func (c *seaweedFilerClient) DeleteEntry(ctx context.Context, in *DeleteEntryReq func (c *seaweedFilerClient) AssignVolume(ctx context.Context, in *AssignVolumeRequest, opts ...grpc.CallOption) (*AssignVolumeResponse, error) { out := new(AssignVolumeResponse) - err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/AssignVolume", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/AssignVolume", in, out, opts...) if err != nil { return nil, err } @@ -906,7 +1514,7 @@ func (c *seaweedFilerClient) AssignVolume(ctx context.Context, in *AssignVolumeR func (c *seaweedFilerClient) LookupVolume(ctx context.Context, in *LookupVolumeRequest, opts ...grpc.CallOption) (*LookupVolumeResponse, error) { out := new(LookupVolumeResponse) - err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/LookupVolume", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/LookupVolume", in, out, opts...) if err != nil { return nil, err } @@ -915,7 +1523,7 @@ func (c *seaweedFilerClient) LookupVolume(ctx context.Context, in *LookupVolumeR func (c *seaweedFilerClient) DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error) { out := new(DeleteCollectionResponse) - err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/DeleteCollection", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/DeleteCollection", in, out, opts...) if err != nil { return nil, err } @@ -924,15 +1532,14 @@ func (c *seaweedFilerClient) DeleteCollection(ctx context.Context, in *DeleteCol func (c *seaweedFilerClient) Statistics(ctx context.Context, in *StatisticsRequest, opts ...grpc.CallOption) (*StatisticsResponse, error) { out := new(StatisticsResponse) - err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/Statistics", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/Statistics", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for SeaweedFiler service - +// SeaweedFilerServer is the server API for SeaweedFiler service. type SeaweedFilerServer interface { LookupDirectoryEntry(context.Context, *LookupDirectoryEntryRequest) (*LookupDirectoryEntryResponse, error) ListEntries(context.Context, *ListEntriesRequest) (*ListEntriesResponse, error) @@ -1155,90 +1762,3 @@ var _SeaweedFiler_serviceDesc = grpc.ServiceDesc{ Streams: []grpc.StreamDesc{}, Metadata: "filer.proto", } - -func init() { proto.RegisterFile("filer.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 1291 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x57, 0x4d, 0x8f, 0xdc, 0x44, - 0x13, 0x8e, 0xe7, 0x2b, 0xe3, 0x9a, 0x99, 0xbc, 0xbb, 0x3d, 0xfb, 0x12, 0x6b, 0xb2, 0x1b, 0x26, - 0x86, 0xa0, 0x8d, 0x88, 0x46, 0x51, 0xe0, 0x90, 0x10, 0x21, 0x91, 0x6c, 0x36, 0x52, 0xa4, 0x4d, - 0x82, 0xbc, 0x09, 0x12, 0xe2, 0x60, 0x79, 0xed, 0x9e, 0xa1, 0xb5, 0x1e, 0x7b, 0x70, 0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x35, 0x8d, 0x13, 0xb4, 0x66, 0x74, 0x7d, 0xd3, 0x5a, 0x7d, 0xce, 0x98, - 0xd6, 0x9a, 0x46, 0x05, 0x5a, 0x33, 0x5a, 0xb3, 0x69, 0xad, 0x3e, 0x42, 0x4c, 0x6b, 0x4d, 0xfd, - 0xfc, 0x12, 0x79, 0x01, 0x43, 0xb3, 0x4f, 0x12, 0xe3, 0x40, 0x43, 0xa3, 0x9f, 0x5c, 0x3f, 0x4f, - 0x6c, 0x1a, 0x34, 0xdb, 0x82, 0x69, 0xb0, 0xa1, 0x31, 0x9a, 0x06, 0x9b, 0xba, 0x89, 0x7b, 0x89, - 0x7c, 0x07, 0x5b, 0x9b, 0xcf, 0x93, 0xdc, 0xd8, 0x4c, 0xab, 0xf6, 0xea, 0x27, 0xee, 0x45, 0x2a, - 0xa5, 0xf1, 0xa7, 0x00, 0xeb, 0x57, 0x47, 0xae, 0xad, 0xcf, 0xd4, 0x5e, 0xfd, 0x64, 0xb7, 0x59, - 0x58, 0x98, 0x7a, 0x74, 0x1d, 0xb6, 0xb8, 0xa2, 0xfe, 0x9c, 0xcf, 0xc2, 0x98, 0xd1, 0x44, 0x3c, - 0x02, 0x7c, 0x05, 0x5f, 0xcb, 0x3f, 0xc7, 0x93, 0x1e, 0xfe, 0x40, 0x7e, 0xf6, 0x77, 0x00, 0x00, - 0x00, 0xff, 0xff, 0x8d, 0x38, 0xa9, 0x9f, 0x4f, 0x0e, 0x00, 0x00, -} diff --git a/weed/pb/master.proto b/weed/pb/master.proto index 544160c06..140a064ca 100644 --- a/weed/pb/master.proto +++ b/weed/pb/master.proto @@ -51,6 +51,22 @@ message VolumeInformationMessage { uint32 replica_placement = 8; uint32 version = 9; uint32 ttl = 10; + + uint64 memory_total = 11; + uint64 memory_free = 12; + + uint64 disk_watermark = 13; + uint64 disk_total = 14; + uint64 disk_free = 15; + string disk_device = 16; + string disk_mount_point = 17; + + double load1 = 18; + double load5 = 19; + double load15 = 20; + + double process_cpu_usage = 21; + uint64 process_rss = 22; } message Empty { diff --git a/weed/pb/master_pb/master.pb.go b/weed/pb/master_pb/master.pb.go index 894f08471..f9a2f966c 100644 --- a/weed/pb/master_pb/master.pb.go +++ b/weed/pb/master_pb/master.pb.go @@ -1,38 +1,14 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: master.proto -// DO NOT EDIT! - -/* -Package master_pb is a generated protocol buffer package. - -It is generated from these files: - master.proto - -It has these top-level messages: - Heartbeat - HeartbeatResponse - VolumeInformationMessage - Empty - SuperBlockExtra - ClientListenRequest - VolumeLocation - LookupVolumeRequest - LookupVolumeResponse - Location - AssignRequest - AssignResponse - StatisticsRequest - StatisticsResponse -*/ -package master_pb -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +package master_pb import ( - context "golang.org/x/net/context" + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" + math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -44,27 +20,50 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Heartbeat struct { - Ip string `protobuf:"bytes,1,opt,name=ip" json:"ip,omitempty"` - Port uint32 `protobuf:"varint,2,opt,name=port" json:"port,omitempty"` - PublicUrl string `protobuf:"bytes,3,opt,name=public_url,json=publicUrl" json:"public_url,omitempty"` - MaxVolumeCount uint32 `protobuf:"varint,4,opt,name=max_volume_count,json=maxVolumeCount" json:"max_volume_count,omitempty"` - MaxFileKey uint64 `protobuf:"varint,5,opt,name=max_file_key,json=maxFileKey" json:"max_file_key,omitempty"` - DataCenter string `protobuf:"bytes,6,opt,name=data_center,json=dataCenter" json:"data_center,omitempty"` - Rack string `protobuf:"bytes,7,opt,name=rack" json:"rack,omitempty"` - AdminPort uint32 `protobuf:"varint,8,opt,name=admin_port,json=adminPort" json:"admin_port,omitempty"` - Volumes []*VolumeInformationMessage `protobuf:"bytes,9,rep,name=volumes" json:"volumes,omitempty"` + Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` + Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` + PublicUrl string `protobuf:"bytes,3,opt,name=public_url,json=publicUrl,proto3" json:"public_url,omitempty"` + MaxVolumeCount uint32 `protobuf:"varint,4,opt,name=max_volume_count,json=maxVolumeCount,proto3" json:"max_volume_count,omitempty"` + MaxFileKey uint64 `protobuf:"varint,5,opt,name=max_file_key,json=maxFileKey,proto3" json:"max_file_key,omitempty"` + DataCenter string `protobuf:"bytes,6,opt,name=data_center,json=dataCenter,proto3" json:"data_center,omitempty"` + Rack string `protobuf:"bytes,7,opt,name=rack,proto3" json:"rack,omitempty"` + AdminPort uint32 `protobuf:"varint,8,opt,name=admin_port,json=adminPort,proto3" json:"admin_port,omitempty"` + Volumes []*VolumeInformationMessage `protobuf:"bytes,9,rep,name=volumes,proto3" json:"volumes,omitempty"` // delta volume ids - NewVids []uint32 `protobuf:"varint,10,rep,packed,name=new_vids,json=newVids" json:"new_vids,omitempty"` - DeletedVids []uint32 `protobuf:"varint,11,rep,packed,name=deleted_vids,json=deletedVids" json:"deleted_vids,omitempty"` + NewVids []uint32 `protobuf:"varint,10,rep,packed,name=new_vids,json=newVids,proto3" json:"new_vids,omitempty"` + DeletedVids []uint32 `protobuf:"varint,11,rep,packed,name=deleted_vids,json=deletedVids,proto3" json:"deleted_vids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Heartbeat) Reset() { *m = Heartbeat{} } +func (m *Heartbeat) String() string { return proto.CompactTextString(m) } +func (*Heartbeat) ProtoMessage() {} +func (*Heartbeat) Descriptor() ([]byte, []int) { + return fileDescriptor_f9c348dec43a6705, []int{0} +} + +func (m *Heartbeat) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Heartbeat.Unmarshal(m, b) +} +func (m *Heartbeat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Heartbeat.Marshal(b, m, deterministic) +} +func (m *Heartbeat) XXX_Merge(src proto.Message) { + xxx_messageInfo_Heartbeat.Merge(m, src) +} +func (m *Heartbeat) XXX_Size() int { + return xxx_messageInfo_Heartbeat.Size(m) +} +func (m *Heartbeat) XXX_DiscardUnknown() { + xxx_messageInfo_Heartbeat.DiscardUnknown(m) } -func (m *Heartbeat) Reset() { *m = Heartbeat{} } -func (m *Heartbeat) String() string { return proto.CompactTextString(m) } -func (*Heartbeat) ProtoMessage() {} -func (*Heartbeat) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +var xxx_messageInfo_Heartbeat proto.InternalMessageInfo func (m *Heartbeat) GetIp() string { if m != nil { @@ -144,15 +143,38 @@ func (m *Heartbeat) GetDeletedVids() []uint32 { } type HeartbeatResponse struct { - VolumeSizeLimit uint64 `protobuf:"varint,1,opt,name=volumeSizeLimit" json:"volumeSizeLimit,omitempty"` - SecretKey string `protobuf:"bytes,2,opt,name=secretKey" json:"secretKey,omitempty"` - Leader string `protobuf:"bytes,3,opt,name=leader" json:"leader,omitempty"` + VolumeSizeLimit uint64 `protobuf:"varint,1,opt,name=volumeSizeLimit,proto3" json:"volumeSizeLimit,omitempty"` + SecretKey string `protobuf:"bytes,2,opt,name=secretKey,proto3" json:"secretKey,omitempty"` + Leader string `protobuf:"bytes,3,opt,name=leader,proto3" json:"leader,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HeartbeatResponse) Reset() { *m = HeartbeatResponse{} } +func (m *HeartbeatResponse) String() string { return proto.CompactTextString(m) } +func (*HeartbeatResponse) ProtoMessage() {} +func (*HeartbeatResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_f9c348dec43a6705, []int{1} } -func (m *HeartbeatResponse) Reset() { *m = HeartbeatResponse{} } -func (m *HeartbeatResponse) String() string { return proto.CompactTextString(m) } -func (*HeartbeatResponse) ProtoMessage() {} -func (*HeartbeatResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } +func (m *HeartbeatResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HeartbeatResponse.Unmarshal(m, b) +} +func (m *HeartbeatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HeartbeatResponse.Marshal(b, m, deterministic) +} +func (m *HeartbeatResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_HeartbeatResponse.Merge(m, src) +} +func (m *HeartbeatResponse) XXX_Size() int { + return xxx_messageInfo_HeartbeatResponse.Size(m) +} +func (m *HeartbeatResponse) XXX_DiscardUnknown() { + xxx_messageInfo_HeartbeatResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_HeartbeatResponse proto.InternalMessageInfo func (m *HeartbeatResponse) GetVolumeSizeLimit() uint64 { if m != nil { @@ -176,22 +198,57 @@ func (m *HeartbeatResponse) GetLeader() string { } type VolumeInformationMessage struct { - Id uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` - Size uint64 `protobuf:"varint,2,opt,name=size" json:"size,omitempty"` - Collection string `protobuf:"bytes,3,opt,name=collection" json:"collection,omitempty"` - FileCount uint64 `protobuf:"varint,4,opt,name=file_count,json=fileCount" json:"file_count,omitempty"` - DeleteCount uint64 `protobuf:"varint,5,opt,name=delete_count,json=deleteCount" json:"delete_count,omitempty"` - DeletedByteCount uint64 `protobuf:"varint,6,opt,name=deleted_byte_count,json=deletedByteCount" json:"deleted_byte_count,omitempty"` - ReadOnly bool `protobuf:"varint,7,opt,name=read_only,json=readOnly" json:"read_only,omitempty"` - ReplicaPlacement uint32 `protobuf:"varint,8,opt,name=replica_placement,json=replicaPlacement" json:"replica_placement,omitempty"` - Version uint32 `protobuf:"varint,9,opt,name=version" json:"version,omitempty"` - Ttl uint32 `protobuf:"varint,10,opt,name=ttl" json:"ttl,omitempty"` -} - -func (m *VolumeInformationMessage) Reset() { *m = VolumeInformationMessage{} } -func (m *VolumeInformationMessage) String() string { return proto.CompactTextString(m) } -func (*VolumeInformationMessage) ProtoMessage() {} -func (*VolumeInformationMessage) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } + Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Size uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + Collection string `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"` + FileCount uint64 `protobuf:"varint,4,opt,name=file_count,json=fileCount,proto3" json:"file_count,omitempty"` + DeleteCount uint64 `protobuf:"varint,5,opt,name=delete_count,json=deleteCount,proto3" json:"delete_count,omitempty"` + DeletedByteCount uint64 `protobuf:"varint,6,opt,name=deleted_byte_count,json=deletedByteCount,proto3" json:"deleted_byte_count,omitempty"` + ReadOnly bool `protobuf:"varint,7,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"` + ReplicaPlacement uint32 `protobuf:"varint,8,opt,name=replica_placement,json=replicaPlacement,proto3" json:"replica_placement,omitempty"` + Version uint32 `protobuf:"varint,9,opt,name=version,proto3" json:"version,omitempty"` + Ttl uint32 `protobuf:"varint,10,opt,name=ttl,proto3" json:"ttl,omitempty"` + MemoryTotal uint64 `protobuf:"varint,11,opt,name=memory_total,json=memoryTotal,proto3" json:"memory_total,omitempty"` + MemoryFree uint64 `protobuf:"varint,12,opt,name=memory_free,json=memoryFree,proto3" json:"memory_free,omitempty"` + DiskWatermark uint64 `protobuf:"varint,13,opt,name=disk_watermark,json=diskWatermark,proto3" json:"disk_watermark,omitempty"` + DiskTotal uint64 `protobuf:"varint,14,opt,name=disk_total,json=diskTotal,proto3" json:"disk_total,omitempty"` + DiskFree uint64 `protobuf:"varint,15,opt,name=disk_free,json=diskFree,proto3" json:"disk_free,omitempty"` + DiskDevice string `protobuf:"bytes,16,opt,name=disk_device,json=diskDevice,proto3" json:"disk_device,omitempty"` + DiskMountPoint string `protobuf:"bytes,17,opt,name=disk_mount_point,json=diskMountPoint,proto3" json:"disk_mount_point,omitempty"` + Load1 float64 `protobuf:"fixed64,18,opt,name=load1,proto3" json:"load1,omitempty"` + Load5 float64 `protobuf:"fixed64,19,opt,name=load5,proto3" json:"load5,omitempty"` + Load15 float64 `protobuf:"fixed64,20,opt,name=load15,proto3" json:"load15,omitempty"` + ProcessCpuUsage float64 `protobuf:"fixed64,21,opt,name=process_cpu_usage,json=processCpuUsage,proto3" json:"process_cpu_usage,omitempty"` + ProcessRss uint64 `protobuf:"varint,22,opt,name=process_rss,json=processRss,proto3" json:"process_rss,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VolumeInformationMessage) Reset() { *m = VolumeInformationMessage{} } +func (m *VolumeInformationMessage) String() string { return proto.CompactTextString(m) } +func (*VolumeInformationMessage) ProtoMessage() {} +func (*VolumeInformationMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_f9c348dec43a6705, []int{2} +} + +func (m *VolumeInformationMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VolumeInformationMessage.Unmarshal(m, b) +} +func (m *VolumeInformationMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VolumeInformationMessage.Marshal(b, m, deterministic) +} +func (m *VolumeInformationMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_VolumeInformationMessage.Merge(m, src) +} +func (m *VolumeInformationMessage) XXX_Size() int { + return xxx_messageInfo_VolumeInformationMessage.Size(m) +} +func (m *VolumeInformationMessage) XXX_DiscardUnknown() { + xxx_messageInfo_VolumeInformationMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_VolumeInformationMessage proto.InternalMessageInfo func (m *VolumeInformationMessage) GetId() uint32 { if m != nil { @@ -263,22 +320,152 @@ func (m *VolumeInformationMessage) GetTtl() uint32 { return 0 } +func (m *VolumeInformationMessage) GetMemoryTotal() uint64 { + if m != nil { + return m.MemoryTotal + } + return 0 +} + +func (m *VolumeInformationMessage) GetMemoryFree() uint64 { + if m != nil { + return m.MemoryFree + } + return 0 +} + +func (m *VolumeInformationMessage) GetDiskWatermark() uint64 { + if m != nil { + return m.DiskWatermark + } + return 0 +} + +func (m *VolumeInformationMessage) GetDiskTotal() uint64 { + if m != nil { + return m.DiskTotal + } + return 0 +} + +func (m *VolumeInformationMessage) GetDiskFree() uint64 { + if m != nil { + return m.DiskFree + } + return 0 +} + +func (m *VolumeInformationMessage) GetDiskDevice() string { + if m != nil { + return m.DiskDevice + } + return "" +} + +func (m *VolumeInformationMessage) GetDiskMountPoint() string { + if m != nil { + return m.DiskMountPoint + } + return "" +} + +func (m *VolumeInformationMessage) GetLoad1() float64 { + if m != nil { + return m.Load1 + } + return 0 +} + +func (m *VolumeInformationMessage) GetLoad5() float64 { + if m != nil { + return m.Load5 + } + return 0 +} + +func (m *VolumeInformationMessage) GetLoad15() float64 { + if m != nil { + return m.Load15 + } + return 0 +} + +func (m *VolumeInformationMessage) GetProcessCpuUsage() float64 { + if m != nil { + return m.ProcessCpuUsage + } + return 0 +} + +func (m *VolumeInformationMessage) GetProcessRss() uint64 { + if m != nil { + return m.ProcessRss + } + return 0 +} + type Empty struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Empty) Reset() { *m = Empty{} } -func (m *Empty) String() string { return proto.CompactTextString(m) } -func (*Empty) ProtoMessage() {} -func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } +func (m *Empty) Reset() { *m = Empty{} } +func (m *Empty) String() string { return proto.CompactTextString(m) } +func (*Empty) ProtoMessage() {} +func (*Empty) Descriptor() ([]byte, []int) { + return fileDescriptor_f9c348dec43a6705, []int{3} +} + +func (m *Empty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Empty.Unmarshal(m, b) +} +func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Empty.Marshal(b, m, deterministic) +} +func (m *Empty) XXX_Merge(src proto.Message) { + xxx_messageInfo_Empty.Merge(m, src) +} +func (m *Empty) XXX_Size() int { + return xxx_messageInfo_Empty.Size(m) +} +func (m *Empty) XXX_DiscardUnknown() { + xxx_messageInfo_Empty.DiscardUnknown(m) +} + +var xxx_messageInfo_Empty proto.InternalMessageInfo type SuperBlockExtra struct { - ErasureCoding *SuperBlockExtra_ErasureCoding `protobuf:"bytes,1,opt,name=erasure_coding,json=erasureCoding" json:"erasure_coding,omitempty"` + ErasureCoding *SuperBlockExtra_ErasureCoding `protobuf:"bytes,1,opt,name=erasure_coding,json=erasureCoding,proto3" json:"erasure_coding,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SuperBlockExtra) Reset() { *m = SuperBlockExtra{} } +func (m *SuperBlockExtra) String() string { return proto.CompactTextString(m) } +func (*SuperBlockExtra) ProtoMessage() {} +func (*SuperBlockExtra) Descriptor() ([]byte, []int) { + return fileDescriptor_f9c348dec43a6705, []int{4} +} + +func (m *SuperBlockExtra) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SuperBlockExtra.Unmarshal(m, b) +} +func (m *SuperBlockExtra) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SuperBlockExtra.Marshal(b, m, deterministic) +} +func (m *SuperBlockExtra) XXX_Merge(src proto.Message) { + xxx_messageInfo_SuperBlockExtra.Merge(m, src) +} +func (m *SuperBlockExtra) XXX_Size() int { + return xxx_messageInfo_SuperBlockExtra.Size(m) +} +func (m *SuperBlockExtra) XXX_DiscardUnknown() { + xxx_messageInfo_SuperBlockExtra.DiscardUnknown(m) } -func (m *SuperBlockExtra) Reset() { *m = SuperBlockExtra{} } -func (m *SuperBlockExtra) String() string { return proto.CompactTextString(m) } -func (*SuperBlockExtra) ProtoMessage() {} -func (*SuperBlockExtra) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } +var xxx_messageInfo_SuperBlockExtra proto.InternalMessageInfo func (m *SuperBlockExtra) GetErasureCoding() *SuperBlockExtra_ErasureCoding { if m != nil { @@ -288,17 +475,38 @@ func (m *SuperBlockExtra) GetErasureCoding() *SuperBlockExtra_ErasureCoding { } type SuperBlockExtra_ErasureCoding struct { - Data uint32 `protobuf:"varint,1,opt,name=data" json:"data,omitempty"` - Parity uint32 `protobuf:"varint,2,opt,name=parity" json:"parity,omitempty"` - VolumeIds []uint32 `protobuf:"varint,3,rep,packed,name=volume_ids,json=volumeIds" json:"volume_ids,omitempty"` + Data uint32 `protobuf:"varint,1,opt,name=data,proto3" json:"data,omitempty"` + Parity uint32 `protobuf:"varint,2,opt,name=parity,proto3" json:"parity,omitempty"` + VolumeIds []uint32 `protobuf:"varint,3,rep,packed,name=volume_ids,json=volumeIds,proto3" json:"volume_ids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SuperBlockExtra_ErasureCoding) Reset() { *m = SuperBlockExtra_ErasureCoding{} } func (m *SuperBlockExtra_ErasureCoding) String() string { return proto.CompactTextString(m) } func (*SuperBlockExtra_ErasureCoding) ProtoMessage() {} func (*SuperBlockExtra_ErasureCoding) Descriptor() ([]byte, []int) { - return fileDescriptor0, []int{4, 0} + return fileDescriptor_f9c348dec43a6705, []int{4, 0} +} + +func (m *SuperBlockExtra_ErasureCoding) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SuperBlockExtra_ErasureCoding.Unmarshal(m, b) +} +func (m *SuperBlockExtra_ErasureCoding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SuperBlockExtra_ErasureCoding.Marshal(b, m, deterministic) +} +func (m *SuperBlockExtra_ErasureCoding) XXX_Merge(src proto.Message) { + xxx_messageInfo_SuperBlockExtra_ErasureCoding.Merge(m, src) +} +func (m *SuperBlockExtra_ErasureCoding) XXX_Size() int { + return xxx_messageInfo_SuperBlockExtra_ErasureCoding.Size(m) } +func (m *SuperBlockExtra_ErasureCoding) XXX_DiscardUnknown() { + xxx_messageInfo_SuperBlockExtra_ErasureCoding.DiscardUnknown(m) +} + +var xxx_messageInfo_SuperBlockExtra_ErasureCoding proto.InternalMessageInfo func (m *SuperBlockExtra_ErasureCoding) GetData() uint32 { if m != nil { @@ -322,13 +530,36 @@ func (m *SuperBlockExtra_ErasureCoding) GetVolumeIds() []uint32 { } type ClientListenRequest struct { - Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClientListenRequest) Reset() { *m = ClientListenRequest{} } +func (m *ClientListenRequest) String() string { return proto.CompactTextString(m) } +func (*ClientListenRequest) ProtoMessage() {} +func (*ClientListenRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f9c348dec43a6705, []int{5} +} + +func (m *ClientListenRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClientListenRequest.Unmarshal(m, b) +} +func (m *ClientListenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClientListenRequest.Marshal(b, m, deterministic) +} +func (m *ClientListenRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClientListenRequest.Merge(m, src) +} +func (m *ClientListenRequest) XXX_Size() int { + return xxx_messageInfo_ClientListenRequest.Size(m) +} +func (m *ClientListenRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ClientListenRequest.DiscardUnknown(m) } -func (m *ClientListenRequest) Reset() { *m = ClientListenRequest{} } -func (m *ClientListenRequest) String() string { return proto.CompactTextString(m) } -func (*ClientListenRequest) ProtoMessage() {} -func (*ClientListenRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } +var xxx_messageInfo_ClientListenRequest proto.InternalMessageInfo func (m *ClientListenRequest) GetName() string { if m != nil { @@ -338,16 +569,39 @@ func (m *ClientListenRequest) GetName() string { } type VolumeLocation struct { - Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"` - PublicUrl string `protobuf:"bytes,2,opt,name=public_url,json=publicUrl" json:"public_url,omitempty"` - NewVids []uint32 `protobuf:"varint,3,rep,packed,name=new_vids,json=newVids" json:"new_vids,omitempty"` - DeletedVids []uint32 `protobuf:"varint,4,rep,packed,name=deleted_vids,json=deletedVids" json:"deleted_vids,omitempty"` + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + PublicUrl string `protobuf:"bytes,2,opt,name=public_url,json=publicUrl,proto3" json:"public_url,omitempty"` + NewVids []uint32 `protobuf:"varint,3,rep,packed,name=new_vids,json=newVids,proto3" json:"new_vids,omitempty"` + DeletedVids []uint32 `protobuf:"varint,4,rep,packed,name=deleted_vids,json=deletedVids,proto3" json:"deleted_vids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VolumeLocation) Reset() { *m = VolumeLocation{} } +func (m *VolumeLocation) String() string { return proto.CompactTextString(m) } +func (*VolumeLocation) ProtoMessage() {} +func (*VolumeLocation) Descriptor() ([]byte, []int) { + return fileDescriptor_f9c348dec43a6705, []int{6} +} + +func (m *VolumeLocation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VolumeLocation.Unmarshal(m, b) +} +func (m *VolumeLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VolumeLocation.Marshal(b, m, deterministic) +} +func (m *VolumeLocation) XXX_Merge(src proto.Message) { + xxx_messageInfo_VolumeLocation.Merge(m, src) +} +func (m *VolumeLocation) XXX_Size() int { + return xxx_messageInfo_VolumeLocation.Size(m) +} +func (m *VolumeLocation) XXX_DiscardUnknown() { + xxx_messageInfo_VolumeLocation.DiscardUnknown(m) } -func (m *VolumeLocation) Reset() { *m = VolumeLocation{} } -func (m *VolumeLocation) String() string { return proto.CompactTextString(m) } -func (*VolumeLocation) ProtoMessage() {} -func (*VolumeLocation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } +var xxx_messageInfo_VolumeLocation proto.InternalMessageInfo func (m *VolumeLocation) GetUrl() string { if m != nil { @@ -378,14 +632,37 @@ func (m *VolumeLocation) GetDeletedVids() []uint32 { } type LookupVolumeRequest struct { - VolumeIds []string `protobuf:"bytes,1,rep,name=volume_ids,json=volumeIds" json:"volume_ids,omitempty"` - Collection string `protobuf:"bytes,2,opt,name=collection" json:"collection,omitempty"` + VolumeIds []string `protobuf:"bytes,1,rep,name=volume_ids,json=volumeIds,proto3" json:"volume_ids,omitempty"` + Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LookupVolumeRequest) Reset() { *m = LookupVolumeRequest{} } -func (m *LookupVolumeRequest) String() string { return proto.CompactTextString(m) } -func (*LookupVolumeRequest) ProtoMessage() {} -func (*LookupVolumeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } +func (m *LookupVolumeRequest) Reset() { *m = LookupVolumeRequest{} } +func (m *LookupVolumeRequest) String() string { return proto.CompactTextString(m) } +func (*LookupVolumeRequest) ProtoMessage() {} +func (*LookupVolumeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f9c348dec43a6705, []int{7} +} + +func (m *LookupVolumeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LookupVolumeRequest.Unmarshal(m, b) +} +func (m *LookupVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LookupVolumeRequest.Marshal(b, m, deterministic) +} +func (m *LookupVolumeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LookupVolumeRequest.Merge(m, src) +} +func (m *LookupVolumeRequest) XXX_Size() int { + return xxx_messageInfo_LookupVolumeRequest.Size(m) +} +func (m *LookupVolumeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LookupVolumeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_LookupVolumeRequest proto.InternalMessageInfo func (m *LookupVolumeRequest) GetVolumeIds() []string { if m != nil { @@ -402,13 +679,36 @@ func (m *LookupVolumeRequest) GetCollection() string { } type LookupVolumeResponse struct { - VolumeIdLocations []*LookupVolumeResponse_VolumeIdLocation `protobuf:"bytes,1,rep,name=volume_id_locations,json=volumeIdLocations" json:"volume_id_locations,omitempty"` + VolumeIdLocations []*LookupVolumeResponse_VolumeIdLocation `protobuf:"bytes,1,rep,name=volume_id_locations,json=volumeIdLocations,proto3" json:"volume_id_locations,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LookupVolumeResponse) Reset() { *m = LookupVolumeResponse{} } -func (m *LookupVolumeResponse) String() string { return proto.CompactTextString(m) } -func (*LookupVolumeResponse) ProtoMessage() {} -func (*LookupVolumeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } +func (m *LookupVolumeResponse) Reset() { *m = LookupVolumeResponse{} } +func (m *LookupVolumeResponse) String() string { return proto.CompactTextString(m) } +func (*LookupVolumeResponse) ProtoMessage() {} +func (*LookupVolumeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_f9c348dec43a6705, []int{8} +} + +func (m *LookupVolumeResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LookupVolumeResponse.Unmarshal(m, b) +} +func (m *LookupVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LookupVolumeResponse.Marshal(b, m, deterministic) +} +func (m *LookupVolumeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LookupVolumeResponse.Merge(m, src) +} +func (m *LookupVolumeResponse) XXX_Size() int { + return xxx_messageInfo_LookupVolumeResponse.Size(m) +} +func (m *LookupVolumeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_LookupVolumeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_LookupVolumeResponse proto.InternalMessageInfo func (m *LookupVolumeResponse) GetVolumeIdLocations() []*LookupVolumeResponse_VolumeIdLocation { if m != nil { @@ -418,17 +718,38 @@ func (m *LookupVolumeResponse) GetVolumeIdLocations() []*LookupVolumeResponse_Vo } type LookupVolumeResponse_VolumeIdLocation struct { - VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"` - Locations []*Location `protobuf:"bytes,2,rep,name=locations" json:"locations,omitempty"` - Error string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` + VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` + Locations []*Location `protobuf:"bytes,2,rep,name=locations,proto3" json:"locations,omitempty"` + Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *LookupVolumeResponse_VolumeIdLocation) Reset() { *m = LookupVolumeResponse_VolumeIdLocation{} } func (m *LookupVolumeResponse_VolumeIdLocation) String() string { return proto.CompactTextString(m) } func (*LookupVolumeResponse_VolumeIdLocation) ProtoMessage() {} func (*LookupVolumeResponse_VolumeIdLocation) Descriptor() ([]byte, []int) { - return fileDescriptor0, []int{8, 0} + return fileDescriptor_f9c348dec43a6705, []int{8, 0} +} + +func (m *LookupVolumeResponse_VolumeIdLocation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LookupVolumeResponse_VolumeIdLocation.Unmarshal(m, b) } +func (m *LookupVolumeResponse_VolumeIdLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LookupVolumeResponse_VolumeIdLocation.Marshal(b, m, deterministic) +} +func (m *LookupVolumeResponse_VolumeIdLocation) XXX_Merge(src proto.Message) { + xxx_messageInfo_LookupVolumeResponse_VolumeIdLocation.Merge(m, src) +} +func (m *LookupVolumeResponse_VolumeIdLocation) XXX_Size() int { + return xxx_messageInfo_LookupVolumeResponse_VolumeIdLocation.Size(m) +} +func (m *LookupVolumeResponse_VolumeIdLocation) XXX_DiscardUnknown() { + xxx_messageInfo_LookupVolumeResponse_VolumeIdLocation.DiscardUnknown(m) +} + +var xxx_messageInfo_LookupVolumeResponse_VolumeIdLocation proto.InternalMessageInfo func (m *LookupVolumeResponse_VolumeIdLocation) GetVolumeId() string { if m != nil { @@ -452,14 +773,37 @@ func (m *LookupVolumeResponse_VolumeIdLocation) GetError() string { } type Location struct { - Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"` - PublicUrl string `protobuf:"bytes,2,opt,name=public_url,json=publicUrl" json:"public_url,omitempty"` + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + PublicUrl string `protobuf:"bytes,2,opt,name=public_url,json=publicUrl,proto3" json:"public_url,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Location) Reset() { *m = Location{} } -func (m *Location) String() string { return proto.CompactTextString(m) } -func (*Location) ProtoMessage() {} -func (*Location) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } +func (m *Location) Reset() { *m = Location{} } +func (m *Location) String() string { return proto.CompactTextString(m) } +func (*Location) ProtoMessage() {} +func (*Location) Descriptor() ([]byte, []int) { + return fileDescriptor_f9c348dec43a6705, []int{9} +} + +func (m *Location) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Location.Unmarshal(m, b) +} +func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Location.Marshal(b, m, deterministic) +} +func (m *Location) XXX_Merge(src proto.Message) { + xxx_messageInfo_Location.Merge(m, src) +} +func (m *Location) XXX_Size() int { + return xxx_messageInfo_Location.Size(m) +} +func (m *Location) XXX_DiscardUnknown() { + xxx_messageInfo_Location.DiscardUnknown(m) +} + +var xxx_messageInfo_Location proto.InternalMessageInfo func (m *Location) GetUrl() string { if m != nil { @@ -476,19 +820,42 @@ func (m *Location) GetPublicUrl() string { } type AssignRequest struct { - Count uint64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"` - Replication string `protobuf:"bytes,2,opt,name=replication" json:"replication,omitempty"` - Collection string `protobuf:"bytes,3,opt,name=collection" json:"collection,omitempty"` - Ttl string `protobuf:"bytes,4,opt,name=ttl" json:"ttl,omitempty"` - DataCenter string `protobuf:"bytes,5,opt,name=data_center,json=dataCenter" json:"data_center,omitempty"` - Rack string `protobuf:"bytes,6,opt,name=rack" json:"rack,omitempty"` - DataNode string `protobuf:"bytes,7,opt,name=data_node,json=dataNode" json:"data_node,omitempty"` + Count uint64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` + Replication string `protobuf:"bytes,2,opt,name=replication,proto3" json:"replication,omitempty"` + Collection string `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"` + Ttl string `protobuf:"bytes,4,opt,name=ttl,proto3" json:"ttl,omitempty"` + DataCenter string `protobuf:"bytes,5,opt,name=data_center,json=dataCenter,proto3" json:"data_center,omitempty"` + Rack string `protobuf:"bytes,6,opt,name=rack,proto3" json:"rack,omitempty"` + DataNode string `protobuf:"bytes,7,opt,name=data_node,json=dataNode,proto3" json:"data_node,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *AssignRequest) Reset() { *m = AssignRequest{} } -func (m *AssignRequest) String() string { return proto.CompactTextString(m) } -func (*AssignRequest) ProtoMessage() {} -func (*AssignRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } +func (m *AssignRequest) Reset() { *m = AssignRequest{} } +func (m *AssignRequest) String() string { return proto.CompactTextString(m) } +func (*AssignRequest) ProtoMessage() {} +func (*AssignRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f9c348dec43a6705, []int{10} +} + +func (m *AssignRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AssignRequest.Unmarshal(m, b) +} +func (m *AssignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AssignRequest.Marshal(b, m, deterministic) +} +func (m *AssignRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AssignRequest.Merge(m, src) +} +func (m *AssignRequest) XXX_Size() int { + return xxx_messageInfo_AssignRequest.Size(m) +} +func (m *AssignRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AssignRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AssignRequest proto.InternalMessageInfo func (m *AssignRequest) GetCount() uint64 { if m != nil { @@ -540,17 +907,40 @@ func (m *AssignRequest) GetDataNode() string { } type AssignResponse struct { - Fid string `protobuf:"bytes,1,opt,name=fid" json:"fid,omitempty"` - Url string `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"` - PublicUrl string `protobuf:"bytes,3,opt,name=public_url,json=publicUrl" json:"public_url,omitempty"` - Count uint64 `protobuf:"varint,4,opt,name=count" json:"count,omitempty"` - Error string `protobuf:"bytes,5,opt,name=error" json:"error,omitempty"` + Fid string `protobuf:"bytes,1,opt,name=fid,proto3" json:"fid,omitempty"` + Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` + PublicUrl string `protobuf:"bytes,3,opt,name=public_url,json=publicUrl,proto3" json:"public_url,omitempty"` + Count uint64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` + Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AssignResponse) Reset() { *m = AssignResponse{} } +func (m *AssignResponse) String() string { return proto.CompactTextString(m) } +func (*AssignResponse) ProtoMessage() {} +func (*AssignResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_f9c348dec43a6705, []int{11} +} + +func (m *AssignResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AssignResponse.Unmarshal(m, b) +} +func (m *AssignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AssignResponse.Marshal(b, m, deterministic) +} +func (m *AssignResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AssignResponse.Merge(m, src) +} +func (m *AssignResponse) XXX_Size() int { + return xxx_messageInfo_AssignResponse.Size(m) +} +func (m *AssignResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AssignResponse.DiscardUnknown(m) } -func (m *AssignResponse) Reset() { *m = AssignResponse{} } -func (m *AssignResponse) String() string { return proto.CompactTextString(m) } -func (*AssignResponse) ProtoMessage() {} -func (*AssignResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } +var xxx_messageInfo_AssignResponse proto.InternalMessageInfo func (m *AssignResponse) GetFid() string { if m != nil { @@ -588,15 +978,38 @@ func (m *AssignResponse) GetError() string { } type StatisticsRequest struct { - Replication string `protobuf:"bytes,1,opt,name=replication" json:"replication,omitempty"` - Collection string `protobuf:"bytes,2,opt,name=collection" json:"collection,omitempty"` - Ttl string `protobuf:"bytes,3,opt,name=ttl" json:"ttl,omitempty"` + Replication string `protobuf:"bytes,1,opt,name=replication,proto3" json:"replication,omitempty"` + Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` + Ttl string `protobuf:"bytes,3,opt,name=ttl,proto3" json:"ttl,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StatisticsRequest) Reset() { *m = StatisticsRequest{} } +func (m *StatisticsRequest) String() string { return proto.CompactTextString(m) } +func (*StatisticsRequest) ProtoMessage() {} +func (*StatisticsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f9c348dec43a6705, []int{12} +} + +func (m *StatisticsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StatisticsRequest.Unmarshal(m, b) +} +func (m *StatisticsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StatisticsRequest.Marshal(b, m, deterministic) +} +func (m *StatisticsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatisticsRequest.Merge(m, src) +} +func (m *StatisticsRequest) XXX_Size() int { + return xxx_messageInfo_StatisticsRequest.Size(m) +} +func (m *StatisticsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StatisticsRequest.DiscardUnknown(m) } -func (m *StatisticsRequest) Reset() { *m = StatisticsRequest{} } -func (m *StatisticsRequest) String() string { return proto.CompactTextString(m) } -func (*StatisticsRequest) ProtoMessage() {} -func (*StatisticsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } +var xxx_messageInfo_StatisticsRequest proto.InternalMessageInfo func (m *StatisticsRequest) GetReplication() string { if m != nil { @@ -620,18 +1033,41 @@ func (m *StatisticsRequest) GetTtl() string { } type StatisticsResponse struct { - Replication string `protobuf:"bytes,1,opt,name=replication" json:"replication,omitempty"` - Collection string `protobuf:"bytes,2,opt,name=collection" json:"collection,omitempty"` - Ttl string `protobuf:"bytes,3,opt,name=ttl" json:"ttl,omitempty"` - TotalSize uint64 `protobuf:"varint,4,opt,name=total_size,json=totalSize" json:"total_size,omitempty"` - UsedSize uint64 `protobuf:"varint,5,opt,name=used_size,json=usedSize" json:"used_size,omitempty"` - FileCount uint64 `protobuf:"varint,6,opt,name=file_count,json=fileCount" json:"file_count,omitempty"` + Replication string `protobuf:"bytes,1,opt,name=replication,proto3" json:"replication,omitempty"` + Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` + Ttl string `protobuf:"bytes,3,opt,name=ttl,proto3" json:"ttl,omitempty"` + TotalSize uint64 `protobuf:"varint,4,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"` + UsedSize uint64 `protobuf:"varint,5,opt,name=used_size,json=usedSize,proto3" json:"used_size,omitempty"` + FileCount uint64 `protobuf:"varint,6,opt,name=file_count,json=fileCount,proto3" json:"file_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *StatisticsResponse) Reset() { *m = StatisticsResponse{} } -func (m *StatisticsResponse) String() string { return proto.CompactTextString(m) } -func (*StatisticsResponse) ProtoMessage() {} -func (*StatisticsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } +func (m *StatisticsResponse) Reset() { *m = StatisticsResponse{} } +func (m *StatisticsResponse) String() string { return proto.CompactTextString(m) } +func (*StatisticsResponse) ProtoMessage() {} +func (*StatisticsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_f9c348dec43a6705, []int{13} +} + +func (m *StatisticsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StatisticsResponse.Unmarshal(m, b) +} +func (m *StatisticsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StatisticsResponse.Marshal(b, m, deterministic) +} +func (m *StatisticsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatisticsResponse.Merge(m, src) +} +func (m *StatisticsResponse) XXX_Size() int { + return xxx_messageInfo_StatisticsResponse.Size(m) +} +func (m *StatisticsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StatisticsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StatisticsResponse proto.InternalMessageInfo func (m *StatisticsResponse) GetReplication() string { if m != nil { @@ -694,6 +1130,91 @@ func init() { proto.RegisterType((*StatisticsResponse)(nil), "master_pb.StatisticsResponse") } +func init() { proto.RegisterFile("master.proto", fileDescriptor_f9c348dec43a6705) } + +var fileDescriptor_f9c348dec43a6705 = []byte{ + // 1249 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x4d, 0x6f, 0x1b, 0x37, + 0x13, 0xce, 0x4a, 0xb2, 0x2c, 0x8d, 0x2c, 0x5b, 0xa6, 0xfd, 0x06, 0x1b, 0xe7, 0x4b, 0xef, 0x16, + 0x05, 0xd4, 0x0f, 0x18, 0x89, 0x8b, 0x9c, 0x8a, 0xa2, 0x68, 0xdc, 0x04, 0x0d, 0xec, 0x34, 0xee, + 0x3a, 0x49, 0x81, 0x5e, 0xb6, 0xf4, 0xee, 0xd8, 0x20, 0xb4, 0x5f, 0x25, 0x29, 0xdb, 0xca, 0xa5, + 0xc7, 0xfe, 0xab, 0x5e, 0x7a, 0xe8, 0xa1, 0x3f, 0xa5, 0xb7, 0xfe, 0x82, 0x62, 0x48, 0xae, 0xb4, + 0x92, 0xed, 0x06, 0x28, 0xd0, 0xdb, 0xf2, 0x99, 0x21, 0x67, 0xf8, 0xcc, 0xcc, 0xc3, 0x85, 0xb5, + 0x8c, 0x2b, 0x8d, 0x72, 0xb7, 0x94, 0x85, 0x2e, 0x58, 0xd7, 0xae, 0xa2, 0xf2, 0x24, 0xf8, 0xb3, + 0x01, 0xdd, 0x6f, 0x90, 0x4b, 0x7d, 0x82, 0x5c, 0xb3, 0x75, 0x68, 0x88, 0xd2, 0xf7, 0x86, 0xde, + 0xa8, 0x1b, 0x36, 0x44, 0xc9, 0x18, 0xb4, 0xca, 0x42, 0x6a, 0xbf, 0x31, 0xf4, 0x46, 0xfd, 0xd0, + 0x7c, 0xb3, 0xfb, 0x00, 0xe5, 0xe4, 0x24, 0x15, 0x71, 0x34, 0x91, 0xa9, 0xdf, 0x34, 0xbe, 0x5d, + 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b, 0xe6, 0x8c, 0xbb, + 0xe0, 0x37, 0x0f, 0x58, 0x3d, 0x92, 0xbb, 0xee, 0x7f, 0x10, 0x8a, 0xe8, 0x31, 0x6f, 0x46, 0x64, + 0xde, 0x70, 0xf7, 0x12, 0x1b, 0x84, 0x7e, 0x22, 0xa8, 0x20, 0x13, 0x85, 0x89, 0xb5, 0xda, 0x67, + 0xb8, 0x43, 0x80, 0x31, 0x2e, 0xbe, 0xe2, 0xed, 0xa5, 0x57, 0x7c, 0xef, 0x97, 0x26, 0xac, 0x1e, + 0x23, 0xbf, 0x40, 0x4c, 0xd8, 0x0b, 0xe8, 0x1f, 0x63, 0x9e, 0xcc, 0xff, 0x1b, 0xb7, 0x6b, 0xd3, + 0x30, 0x43, 0x77, 0xee, 0x5d, 0x87, 0x56, 0xf7, 0x0f, 0x6e, 0x8d, 0xbc, 0x47, 0x1e, 0x3b, 0x82, + 0xfe, 0x01, 0x62, 0xb9, 0x5f, 0xe4, 0x39, 0xc6, 0x1a, 0x13, 0xf6, 0xa0, 0xb6, 0xe9, 0x1a, 0x89, + 0xdc, 0xb9, 0x73, 0xe5, 0x77, 0xad, 0x9a, 0x28, 0x77, 0xe2, 0x77, 0xb0, 0x56, 0x57, 0x86, 0x85, + 0x03, 0xaf, 0xd1, 0xb1, 0x9d, 0x87, 0xef, 0x91, 0x94, 0xe0, 0x16, 0xfb, 0x12, 0xda, 0xb6, 0x57, + 0x99, 0x5f, 0x73, 0x5e, 0x98, 0xc5, 0x85, 0xbc, 0x16, 0x1b, 0x3b, 0xb8, 0xc5, 0x0e, 0x00, 0xe6, + 0x1d, 0xc0, 0xea, 0xbc, 0x5c, 0x69, 0xc1, 0x9d, 0xfb, 0x37, 0x58, 0xab, 0xc3, 0x4e, 0xda, 0xe6, + 0x27, 0xfe, 0xb3, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xbc, 0xde, 0xc6, 0xb3, 0xd4, 0x0b, 0x00, + 0x00, +} + // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -702,8 +1223,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for Seaweed service - +// SeaweedClient is the client API for Seaweed service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type SeaweedClient interface { SendHeartbeat(ctx context.Context, opts ...grpc.CallOption) (Seaweed_SendHeartbeatClient, error) KeepConnected(ctx context.Context, opts ...grpc.CallOption) (Seaweed_KeepConnectedClient, error) @@ -721,7 +1243,7 @@ func NewSeaweedClient(cc *grpc.ClientConn) SeaweedClient { } func (c *seaweedClient) SendHeartbeat(ctx context.Context, opts ...grpc.CallOption) (Seaweed_SendHeartbeatClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Seaweed_serviceDesc.Streams[0], c.cc, "/master_pb.Seaweed/SendHeartbeat", opts...) + stream, err := c.cc.NewStream(ctx, &_Seaweed_serviceDesc.Streams[0], "/master_pb.Seaweed/SendHeartbeat", opts...) if err != nil { return nil, err } @@ -752,7 +1274,7 @@ func (x *seaweedSendHeartbeatClient) Recv() (*HeartbeatResponse, error) { } func (c *seaweedClient) KeepConnected(ctx context.Context, opts ...grpc.CallOption) (Seaweed_KeepConnectedClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Seaweed_serviceDesc.Streams[1], c.cc, "/master_pb.Seaweed/KeepConnected", opts...) + stream, err := c.cc.NewStream(ctx, &_Seaweed_serviceDesc.Streams[1], "/master_pb.Seaweed/KeepConnected", opts...) if err != nil { return nil, err } @@ -784,7 +1306,7 @@ func (x *seaweedKeepConnectedClient) Recv() (*VolumeLocation, error) { func (c *seaweedClient) LookupVolume(ctx context.Context, in *LookupVolumeRequest, opts ...grpc.CallOption) (*LookupVolumeResponse, error) { out := new(LookupVolumeResponse) - err := grpc.Invoke(ctx, "/master_pb.Seaweed/LookupVolume", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/master_pb.Seaweed/LookupVolume", in, out, opts...) if err != nil { return nil, err } @@ -793,7 +1315,7 @@ func (c *seaweedClient) LookupVolume(ctx context.Context, in *LookupVolumeReques func (c *seaweedClient) Assign(ctx context.Context, in *AssignRequest, opts ...grpc.CallOption) (*AssignResponse, error) { out := new(AssignResponse) - err := grpc.Invoke(ctx, "/master_pb.Seaweed/Assign", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/master_pb.Seaweed/Assign", in, out, opts...) if err != nil { return nil, err } @@ -802,15 +1324,14 @@ func (c *seaweedClient) Assign(ctx context.Context, in *AssignRequest, opts ...g func (c *seaweedClient) Statistics(ctx context.Context, in *StatisticsRequest, opts ...grpc.CallOption) (*StatisticsResponse, error) { out := new(StatisticsResponse) - err := grpc.Invoke(ctx, "/master_pb.Seaweed/Statistics", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/master_pb.Seaweed/Statistics", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for Seaweed service - +// SeaweedServer is the server API for Seaweed service. type SeaweedServer interface { SendHeartbeat(Seaweed_SendHeartbeatServer) error KeepConnected(Seaweed_KeepConnectedServer) error @@ -962,75 +1483,3 @@ var _Seaweed_serviceDesc = grpc.ServiceDesc{ }, Metadata: "master.proto", } - -func init() { proto.RegisterFile("master.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 1055 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x56, 0x4b, 0x6f, 0xe4, 0x44, - 0x10, 0x5e, 0x7b, 0x9e, 0xae, 0xd9, 0xc9, 0x4e, 0x3a, 0x11, 0xf2, 0xce, 0xbe, 0x06, 0x73, 0x19, - 0x04, 0x8a, 0x96, 0x70, 0x44, 0x08, 0xb1, 0xd1, 0x22, 0xa2, 0x04, 0x36, 0x38, 0xb0, 0x07, 0x2e, - 0xa6, 0x63, 0x57, 0xa2, 0x56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6, 0x12, 0x13, 0xf2, 0xbc, 0x71, 0xe8, 0x96, 0x16, 0x39, 0x7d, - 0x7c, 0xe3, 0x5f, 0xa1, 0xaa, 0x28, 0x7b, 0xe3, 0x77, 0xf0, 0xb0, 0xd9, 0x19, 0x36, 0x2e, 0xbc, - 0xa5, 0x8f, 0x4d, 0x5f, 0xdc, 0xd3, 0x52, 0x82, 0x07, 0xe4, 0x0b, 0xe8, 0x9b, 0x5c, 0x25, 0x7e, - 0xc3, 0x78, 0xa3, 0x16, 0x37, 0xe2, 0xda, 0x4c, 0xec, 0xe0, 0x01, 0x39, 0x02, 0x58, 0x67, 0x00, - 0x69, 0xf2, 0x72, 0x23, 0x05, 0xa7, 0xcf, 0xee, 0xd8, 0xad, 0x2e, 0x3b, 0xeb, 0xeb, 0x3f, 0xc8, - 0x4f, 0xff, 0x09, 0x00, 0x00, 0xff, 0xff, 0xc7, 0x9f, 0x0a, 0x25, 0x51, 0x0a, 0x00, 0x00, -} diff --git a/weed/pb/volume_server_pb/volume_server.pb.go b/weed/pb/volume_server_pb/volume_server.pb.go index fa700e2e5..cc8972348 100644 --- a/weed/pb/volume_server_pb/volume_server.pb.go +++ b/weed/pb/volume_server_pb/volume_server.pb.go @@ -1,56 +1,14 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: volume_server.proto -// DO NOT EDIT! - -/* -Package volume_server_pb is a generated protocol buffer package. - -It is generated from these files: - volume_server.proto - -It has these top-level messages: - BatchDeleteRequest - BatchDeleteResponse - DeleteResult - Empty - VacuumVolumeCheckRequest - VacuumVolumeCheckResponse - VacuumVolumeCompactRequest - VacuumVolumeCompactResponse - VacuumVolumeCommitRequest - VacuumVolumeCommitResponse - VacuumVolumeCleanupRequest - VacuumVolumeCleanupResponse - DeleteCollectionRequest - DeleteCollectionResponse - AssignVolumeRequest - AssignVolumeResponse - VolumeSyncStatusRequest - VolumeSyncStatusResponse - VolumeSyncIndexRequest - VolumeSyncIndexResponse - VolumeSyncDataRequest - VolumeSyncDataResponse - VolumeMountRequest - VolumeMountResponse - VolumeUnmountRequest - VolumeUnmountResponse - VolumeDeleteRequest - VolumeDeleteResponse - VolumeUiPageRequest - VolumeUiPageResponse - DiskStatus - MemStatus -*/ -package volume_server_pb -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +package volume_server_pb import ( - context "golang.org/x/net/context" + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" + math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -62,16 +20,39 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type BatchDeleteRequest struct { - FileIds []string `protobuf:"bytes,1,rep,name=file_ids,json=fileIds" json:"file_ids,omitempty"` + FileIds []string `protobuf:"bytes,1,rep,name=file_ids,json=fileIds,proto3" json:"file_ids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *BatchDeleteRequest) Reset() { *m = BatchDeleteRequest{} } -func (m *BatchDeleteRequest) String() string { return proto.CompactTextString(m) } -func (*BatchDeleteRequest) ProtoMessage() {} -func (*BatchDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (m *BatchDeleteRequest) Reset() { *m = BatchDeleteRequest{} } +func (m *BatchDeleteRequest) String() string { return proto.CompactTextString(m) } +func (*BatchDeleteRequest) ProtoMessage() {} +func (*BatchDeleteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{0} +} + +func (m *BatchDeleteRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BatchDeleteRequest.Unmarshal(m, b) +} +func (m *BatchDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BatchDeleteRequest.Marshal(b, m, deterministic) +} +func (m *BatchDeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchDeleteRequest.Merge(m, src) +} +func (m *BatchDeleteRequest) XXX_Size() int { + return xxx_messageInfo_BatchDeleteRequest.Size(m) +} +func (m *BatchDeleteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BatchDeleteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_BatchDeleteRequest proto.InternalMessageInfo func (m *BatchDeleteRequest) GetFileIds() []string { if m != nil { @@ -81,13 +62,36 @@ func (m *BatchDeleteRequest) GetFileIds() []string { } type BatchDeleteResponse struct { - Results []*DeleteResult `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"` + Results []*DeleteResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *BatchDeleteResponse) Reset() { *m = BatchDeleteResponse{} } -func (m *BatchDeleteResponse) String() string { return proto.CompactTextString(m) } -func (*BatchDeleteResponse) ProtoMessage() {} -func (*BatchDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } +func (m *BatchDeleteResponse) Reset() { *m = BatchDeleteResponse{} } +func (m *BatchDeleteResponse) String() string { return proto.CompactTextString(m) } +func (*BatchDeleteResponse) ProtoMessage() {} +func (*BatchDeleteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{1} +} + +func (m *BatchDeleteResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BatchDeleteResponse.Unmarshal(m, b) +} +func (m *BatchDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BatchDeleteResponse.Marshal(b, m, deterministic) +} +func (m *BatchDeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchDeleteResponse.Merge(m, src) +} +func (m *BatchDeleteResponse) XXX_Size() int { + return xxx_messageInfo_BatchDeleteResponse.Size(m) +} +func (m *BatchDeleteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BatchDeleteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_BatchDeleteResponse proto.InternalMessageInfo func (m *BatchDeleteResponse) GetResults() []*DeleteResult { if m != nil { @@ -97,16 +101,39 @@ func (m *BatchDeleteResponse) GetResults() []*DeleteResult { } type DeleteResult struct { - FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId" json:"file_id,omitempty"` - Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"` - Error string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` - Size uint32 `protobuf:"varint,4,opt,name=size" json:"size,omitempty"` + FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"` + Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` + Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` + Size uint32 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteResult) Reset() { *m = DeleteResult{} } +func (m *DeleteResult) String() string { return proto.CompactTextString(m) } +func (*DeleteResult) ProtoMessage() {} +func (*DeleteResult) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{2} +} + +func (m *DeleteResult) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteResult.Unmarshal(m, b) +} +func (m *DeleteResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteResult.Marshal(b, m, deterministic) +} +func (m *DeleteResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteResult.Merge(m, src) +} +func (m *DeleteResult) XXX_Size() int { + return xxx_messageInfo_DeleteResult.Size(m) +} +func (m *DeleteResult) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteResult.DiscardUnknown(m) } -func (m *DeleteResult) Reset() { *m = DeleteResult{} } -func (m *DeleteResult) String() string { return proto.CompactTextString(m) } -func (*DeleteResult) ProtoMessage() {} -func (*DeleteResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } +var xxx_messageInfo_DeleteResult proto.InternalMessageInfo func (m *DeleteResult) GetFileId() string { if m != nil { @@ -137,21 +164,67 @@ func (m *DeleteResult) GetSize() uint32 { } type Empty struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Empty) Reset() { *m = Empty{} } -func (m *Empty) String() string { return proto.CompactTextString(m) } -func (*Empty) ProtoMessage() {} -func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } +func (m *Empty) Reset() { *m = Empty{} } +func (m *Empty) String() string { return proto.CompactTextString(m) } +func (*Empty) ProtoMessage() {} +func (*Empty) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{3} +} + +func (m *Empty) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Empty.Unmarshal(m, b) +} +func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Empty.Marshal(b, m, deterministic) +} +func (m *Empty) XXX_Merge(src proto.Message) { + xxx_messageInfo_Empty.Merge(m, src) +} +func (m *Empty) XXX_Size() int { + return xxx_messageInfo_Empty.Size(m) +} +func (m *Empty) XXX_DiscardUnknown() { + xxx_messageInfo_Empty.DiscardUnknown(m) +} + +var xxx_messageInfo_Empty proto.InternalMessageInfo type VacuumVolumeCheckRequest struct { - VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"` + VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId,proto3" json:"volumd_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *VacuumVolumeCheckRequest) Reset() { *m = VacuumVolumeCheckRequest{} } -func (m *VacuumVolumeCheckRequest) String() string { return proto.CompactTextString(m) } -func (*VacuumVolumeCheckRequest) ProtoMessage() {} -func (*VacuumVolumeCheckRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } +func (m *VacuumVolumeCheckRequest) Reset() { *m = VacuumVolumeCheckRequest{} } +func (m *VacuumVolumeCheckRequest) String() string { return proto.CompactTextString(m) } +func (*VacuumVolumeCheckRequest) ProtoMessage() {} +func (*VacuumVolumeCheckRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{4} +} + +func (m *VacuumVolumeCheckRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VacuumVolumeCheckRequest.Unmarshal(m, b) +} +func (m *VacuumVolumeCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VacuumVolumeCheckRequest.Marshal(b, m, deterministic) +} +func (m *VacuumVolumeCheckRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_VacuumVolumeCheckRequest.Merge(m, src) +} +func (m *VacuumVolumeCheckRequest) XXX_Size() int { + return xxx_messageInfo_VacuumVolumeCheckRequest.Size(m) +} +func (m *VacuumVolumeCheckRequest) XXX_DiscardUnknown() { + xxx_messageInfo_VacuumVolumeCheckRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_VacuumVolumeCheckRequest proto.InternalMessageInfo func (m *VacuumVolumeCheckRequest) GetVolumdId() uint32 { if m != nil { @@ -161,13 +234,36 @@ func (m *VacuumVolumeCheckRequest) GetVolumdId() uint32 { } type VacuumVolumeCheckResponse struct { - GarbageRatio float64 `protobuf:"fixed64,1,opt,name=garbage_ratio,json=garbageRatio" json:"garbage_ratio,omitempty"` + GarbageRatio float64 `protobuf:"fixed64,1,opt,name=garbage_ratio,json=garbageRatio,proto3" json:"garbage_ratio,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VacuumVolumeCheckResponse) Reset() { *m = VacuumVolumeCheckResponse{} } +func (m *VacuumVolumeCheckResponse) String() string { return proto.CompactTextString(m) } +func (*VacuumVolumeCheckResponse) ProtoMessage() {} +func (*VacuumVolumeCheckResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{5} +} + +func (m *VacuumVolumeCheckResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VacuumVolumeCheckResponse.Unmarshal(m, b) +} +func (m *VacuumVolumeCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VacuumVolumeCheckResponse.Marshal(b, m, deterministic) +} +func (m *VacuumVolumeCheckResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_VacuumVolumeCheckResponse.Merge(m, src) +} +func (m *VacuumVolumeCheckResponse) XXX_Size() int { + return xxx_messageInfo_VacuumVolumeCheckResponse.Size(m) +} +func (m *VacuumVolumeCheckResponse) XXX_DiscardUnknown() { + xxx_messageInfo_VacuumVolumeCheckResponse.DiscardUnknown(m) } -func (m *VacuumVolumeCheckResponse) Reset() { *m = VacuumVolumeCheckResponse{} } -func (m *VacuumVolumeCheckResponse) String() string { return proto.CompactTextString(m) } -func (*VacuumVolumeCheckResponse) ProtoMessage() {} -func (*VacuumVolumeCheckResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } +var xxx_messageInfo_VacuumVolumeCheckResponse proto.InternalMessageInfo func (m *VacuumVolumeCheckResponse) GetGarbageRatio() float64 { if m != nil { @@ -177,14 +273,37 @@ func (m *VacuumVolumeCheckResponse) GetGarbageRatio() float64 { } type VacuumVolumeCompactRequest struct { - VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"` - Preallocate int64 `protobuf:"varint,2,opt,name=preallocate" json:"preallocate,omitempty"` + VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId,proto3" json:"volumd_id,omitempty"` + Preallocate int64 `protobuf:"varint,2,opt,name=preallocate,proto3" json:"preallocate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *VacuumVolumeCompactRequest) Reset() { *m = VacuumVolumeCompactRequest{} } -func (m *VacuumVolumeCompactRequest) String() string { return proto.CompactTextString(m) } -func (*VacuumVolumeCompactRequest) ProtoMessage() {} -func (*VacuumVolumeCompactRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } +func (m *VacuumVolumeCompactRequest) Reset() { *m = VacuumVolumeCompactRequest{} } +func (m *VacuumVolumeCompactRequest) String() string { return proto.CompactTextString(m) } +func (*VacuumVolumeCompactRequest) ProtoMessage() {} +func (*VacuumVolumeCompactRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{6} +} + +func (m *VacuumVolumeCompactRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VacuumVolumeCompactRequest.Unmarshal(m, b) +} +func (m *VacuumVolumeCompactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VacuumVolumeCompactRequest.Marshal(b, m, deterministic) +} +func (m *VacuumVolumeCompactRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_VacuumVolumeCompactRequest.Merge(m, src) +} +func (m *VacuumVolumeCompactRequest) XXX_Size() int { + return xxx_messageInfo_VacuumVolumeCompactRequest.Size(m) +} +func (m *VacuumVolumeCompactRequest) XXX_DiscardUnknown() { + xxx_messageInfo_VacuumVolumeCompactRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_VacuumVolumeCompactRequest proto.InternalMessageInfo func (m *VacuumVolumeCompactRequest) GetVolumdId() uint32 { if m != nil { @@ -201,21 +320,67 @@ func (m *VacuumVolumeCompactRequest) GetPreallocate() int64 { } type VacuumVolumeCompactResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *VacuumVolumeCompactResponse) Reset() { *m = VacuumVolumeCompactResponse{} } -func (m *VacuumVolumeCompactResponse) String() string { return proto.CompactTextString(m) } -func (*VacuumVolumeCompactResponse) ProtoMessage() {} -func (*VacuumVolumeCompactResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } +func (m *VacuumVolumeCompactResponse) Reset() { *m = VacuumVolumeCompactResponse{} } +func (m *VacuumVolumeCompactResponse) String() string { return proto.CompactTextString(m) } +func (*VacuumVolumeCompactResponse) ProtoMessage() {} +func (*VacuumVolumeCompactResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{7} +} + +func (m *VacuumVolumeCompactResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VacuumVolumeCompactResponse.Unmarshal(m, b) +} +func (m *VacuumVolumeCompactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VacuumVolumeCompactResponse.Marshal(b, m, deterministic) +} +func (m *VacuumVolumeCompactResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_VacuumVolumeCompactResponse.Merge(m, src) +} +func (m *VacuumVolumeCompactResponse) XXX_Size() int { + return xxx_messageInfo_VacuumVolumeCompactResponse.Size(m) +} +func (m *VacuumVolumeCompactResponse) XXX_DiscardUnknown() { + xxx_messageInfo_VacuumVolumeCompactResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_VacuumVolumeCompactResponse proto.InternalMessageInfo type VacuumVolumeCommitRequest struct { - VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"` + VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId,proto3" json:"volumd_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VacuumVolumeCommitRequest) Reset() { *m = VacuumVolumeCommitRequest{} } +func (m *VacuumVolumeCommitRequest) String() string { return proto.CompactTextString(m) } +func (*VacuumVolumeCommitRequest) ProtoMessage() {} +func (*VacuumVolumeCommitRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{8} +} + +func (m *VacuumVolumeCommitRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VacuumVolumeCommitRequest.Unmarshal(m, b) +} +func (m *VacuumVolumeCommitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VacuumVolumeCommitRequest.Marshal(b, m, deterministic) +} +func (m *VacuumVolumeCommitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_VacuumVolumeCommitRequest.Merge(m, src) +} +func (m *VacuumVolumeCommitRequest) XXX_Size() int { + return xxx_messageInfo_VacuumVolumeCommitRequest.Size(m) +} +func (m *VacuumVolumeCommitRequest) XXX_DiscardUnknown() { + xxx_messageInfo_VacuumVolumeCommitRequest.DiscardUnknown(m) } -func (m *VacuumVolumeCommitRequest) Reset() { *m = VacuumVolumeCommitRequest{} } -func (m *VacuumVolumeCommitRequest) String() string { return proto.CompactTextString(m) } -func (*VacuumVolumeCommitRequest) ProtoMessage() {} -func (*VacuumVolumeCommitRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } +var xxx_messageInfo_VacuumVolumeCommitRequest proto.InternalMessageInfo func (m *VacuumVolumeCommitRequest) GetVolumdId() uint32 { if m != nil { @@ -225,21 +390,67 @@ func (m *VacuumVolumeCommitRequest) GetVolumdId() uint32 { } type VacuumVolumeCommitResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VacuumVolumeCommitResponse) Reset() { *m = VacuumVolumeCommitResponse{} } +func (m *VacuumVolumeCommitResponse) String() string { return proto.CompactTextString(m) } +func (*VacuumVolumeCommitResponse) ProtoMessage() {} +func (*VacuumVolumeCommitResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{9} +} + +func (m *VacuumVolumeCommitResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VacuumVolumeCommitResponse.Unmarshal(m, b) +} +func (m *VacuumVolumeCommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VacuumVolumeCommitResponse.Marshal(b, m, deterministic) +} +func (m *VacuumVolumeCommitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_VacuumVolumeCommitResponse.Merge(m, src) +} +func (m *VacuumVolumeCommitResponse) XXX_Size() int { + return xxx_messageInfo_VacuumVolumeCommitResponse.Size(m) +} +func (m *VacuumVolumeCommitResponse) XXX_DiscardUnknown() { + xxx_messageInfo_VacuumVolumeCommitResponse.DiscardUnknown(m) } -func (m *VacuumVolumeCommitResponse) Reset() { *m = VacuumVolumeCommitResponse{} } -func (m *VacuumVolumeCommitResponse) String() string { return proto.CompactTextString(m) } -func (*VacuumVolumeCommitResponse) ProtoMessage() {} -func (*VacuumVolumeCommitResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } +var xxx_messageInfo_VacuumVolumeCommitResponse proto.InternalMessageInfo type VacuumVolumeCleanupRequest struct { - VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"` + VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId,proto3" json:"volumd_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *VacuumVolumeCleanupRequest) Reset() { *m = VacuumVolumeCleanupRequest{} } -func (m *VacuumVolumeCleanupRequest) String() string { return proto.CompactTextString(m) } -func (*VacuumVolumeCleanupRequest) ProtoMessage() {} -func (*VacuumVolumeCleanupRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } +func (m *VacuumVolumeCleanupRequest) Reset() { *m = VacuumVolumeCleanupRequest{} } +func (m *VacuumVolumeCleanupRequest) String() string { return proto.CompactTextString(m) } +func (*VacuumVolumeCleanupRequest) ProtoMessage() {} +func (*VacuumVolumeCleanupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{10} +} + +func (m *VacuumVolumeCleanupRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VacuumVolumeCleanupRequest.Unmarshal(m, b) +} +func (m *VacuumVolumeCleanupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VacuumVolumeCleanupRequest.Marshal(b, m, deterministic) +} +func (m *VacuumVolumeCleanupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_VacuumVolumeCleanupRequest.Merge(m, src) +} +func (m *VacuumVolumeCleanupRequest) XXX_Size() int { + return xxx_messageInfo_VacuumVolumeCleanupRequest.Size(m) +} +func (m *VacuumVolumeCleanupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_VacuumVolumeCleanupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_VacuumVolumeCleanupRequest proto.InternalMessageInfo func (m *VacuumVolumeCleanupRequest) GetVolumdId() uint32 { if m != nil { @@ -249,21 +460,67 @@ func (m *VacuumVolumeCleanupRequest) GetVolumdId() uint32 { } type VacuumVolumeCleanupResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VacuumVolumeCleanupResponse) Reset() { *m = VacuumVolumeCleanupResponse{} } +func (m *VacuumVolumeCleanupResponse) String() string { return proto.CompactTextString(m) } +func (*VacuumVolumeCleanupResponse) ProtoMessage() {} +func (*VacuumVolumeCleanupResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{11} +} + +func (m *VacuumVolumeCleanupResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VacuumVolumeCleanupResponse.Unmarshal(m, b) +} +func (m *VacuumVolumeCleanupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VacuumVolumeCleanupResponse.Marshal(b, m, deterministic) +} +func (m *VacuumVolumeCleanupResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_VacuumVolumeCleanupResponse.Merge(m, src) +} +func (m *VacuumVolumeCleanupResponse) XXX_Size() int { + return xxx_messageInfo_VacuumVolumeCleanupResponse.Size(m) +} +func (m *VacuumVolumeCleanupResponse) XXX_DiscardUnknown() { + xxx_messageInfo_VacuumVolumeCleanupResponse.DiscardUnknown(m) } -func (m *VacuumVolumeCleanupResponse) Reset() { *m = VacuumVolumeCleanupResponse{} } -func (m *VacuumVolumeCleanupResponse) String() string { return proto.CompactTextString(m) } -func (*VacuumVolumeCleanupResponse) ProtoMessage() {} -func (*VacuumVolumeCleanupResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } +var xxx_messageInfo_VacuumVolumeCleanupResponse proto.InternalMessageInfo type DeleteCollectionRequest struct { - Collection string `protobuf:"bytes,1,opt,name=collection" json:"collection,omitempty"` + Collection string `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DeleteCollectionRequest) Reset() { *m = DeleteCollectionRequest{} } -func (m *DeleteCollectionRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteCollectionRequest) ProtoMessage() {} -func (*DeleteCollectionRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } +func (m *DeleteCollectionRequest) Reset() { *m = DeleteCollectionRequest{} } +func (m *DeleteCollectionRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteCollectionRequest) ProtoMessage() {} +func (*DeleteCollectionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{12} +} + +func (m *DeleteCollectionRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteCollectionRequest.Unmarshal(m, b) +} +func (m *DeleteCollectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteCollectionRequest.Marshal(b, m, deterministic) +} +func (m *DeleteCollectionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteCollectionRequest.Merge(m, src) +} +func (m *DeleteCollectionRequest) XXX_Size() int { + return xxx_messageInfo_DeleteCollectionRequest.Size(m) +} +func (m *DeleteCollectionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteCollectionRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteCollectionRequest proto.InternalMessageInfo func (m *DeleteCollectionRequest) GetCollection() string { if m != nil { @@ -273,25 +530,71 @@ func (m *DeleteCollectionRequest) GetCollection() string { } type DeleteCollectionResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DeleteCollectionResponse) Reset() { *m = DeleteCollectionResponse{} } -func (m *DeleteCollectionResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteCollectionResponse) ProtoMessage() {} -func (*DeleteCollectionResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } +func (m *DeleteCollectionResponse) Reset() { *m = DeleteCollectionResponse{} } +func (m *DeleteCollectionResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteCollectionResponse) ProtoMessage() {} +func (*DeleteCollectionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{13} +} + +func (m *DeleteCollectionResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteCollectionResponse.Unmarshal(m, b) +} +func (m *DeleteCollectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteCollectionResponse.Marshal(b, m, deterministic) +} +func (m *DeleteCollectionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteCollectionResponse.Merge(m, src) +} +func (m *DeleteCollectionResponse) XXX_Size() int { + return xxx_messageInfo_DeleteCollectionResponse.Size(m) +} +func (m *DeleteCollectionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteCollectionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteCollectionResponse proto.InternalMessageInfo type AssignVolumeRequest struct { - VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"` - Collection string `protobuf:"bytes,2,opt,name=collection" json:"collection,omitempty"` - Preallocate int64 `protobuf:"varint,3,opt,name=preallocate" json:"preallocate,omitempty"` - Replication string `protobuf:"bytes,4,opt,name=replication" json:"replication,omitempty"` - Ttl string `protobuf:"bytes,5,opt,name=ttl" json:"ttl,omitempty"` + VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId,proto3" json:"volumd_id,omitempty"` + Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` + Preallocate int64 `protobuf:"varint,3,opt,name=preallocate,proto3" json:"preallocate,omitempty"` + Replication string `protobuf:"bytes,4,opt,name=replication,proto3" json:"replication,omitempty"` + Ttl string `protobuf:"bytes,5,opt,name=ttl,proto3" json:"ttl,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AssignVolumeRequest) Reset() { *m = AssignVolumeRequest{} } +func (m *AssignVolumeRequest) String() string { return proto.CompactTextString(m) } +func (*AssignVolumeRequest) ProtoMessage() {} +func (*AssignVolumeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{14} +} + +func (m *AssignVolumeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AssignVolumeRequest.Unmarshal(m, b) +} +func (m *AssignVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AssignVolumeRequest.Marshal(b, m, deterministic) +} +func (m *AssignVolumeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AssignVolumeRequest.Merge(m, src) +} +func (m *AssignVolumeRequest) XXX_Size() int { + return xxx_messageInfo_AssignVolumeRequest.Size(m) +} +func (m *AssignVolumeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AssignVolumeRequest.DiscardUnknown(m) } -func (m *AssignVolumeRequest) Reset() { *m = AssignVolumeRequest{} } -func (m *AssignVolumeRequest) String() string { return proto.CompactTextString(m) } -func (*AssignVolumeRequest) ProtoMessage() {} -func (*AssignVolumeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } +var xxx_messageInfo_AssignVolumeRequest proto.InternalMessageInfo func (m *AssignVolumeRequest) GetVolumdId() uint32 { if m != nil { @@ -329,21 +632,67 @@ func (m *AssignVolumeRequest) GetTtl() string { } type AssignVolumeResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AssignVolumeResponse) Reset() { *m = AssignVolumeResponse{} } +func (m *AssignVolumeResponse) String() string { return proto.CompactTextString(m) } +func (*AssignVolumeResponse) ProtoMessage() {} +func (*AssignVolumeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{15} +} + +func (m *AssignVolumeResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AssignVolumeResponse.Unmarshal(m, b) +} +func (m *AssignVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AssignVolumeResponse.Marshal(b, m, deterministic) +} +func (m *AssignVolumeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AssignVolumeResponse.Merge(m, src) +} +func (m *AssignVolumeResponse) XXX_Size() int { + return xxx_messageInfo_AssignVolumeResponse.Size(m) +} +func (m *AssignVolumeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AssignVolumeResponse.DiscardUnknown(m) } -func (m *AssignVolumeResponse) Reset() { *m = AssignVolumeResponse{} } -func (m *AssignVolumeResponse) String() string { return proto.CompactTextString(m) } -func (*AssignVolumeResponse) ProtoMessage() {} -func (*AssignVolumeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } +var xxx_messageInfo_AssignVolumeResponse proto.InternalMessageInfo type VolumeSyncStatusRequest struct { - VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"` + VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId,proto3" json:"volumd_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VolumeSyncStatusRequest) Reset() { *m = VolumeSyncStatusRequest{} } +func (m *VolumeSyncStatusRequest) String() string { return proto.CompactTextString(m) } +func (*VolumeSyncStatusRequest) ProtoMessage() {} +func (*VolumeSyncStatusRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{16} +} + +func (m *VolumeSyncStatusRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VolumeSyncStatusRequest.Unmarshal(m, b) +} +func (m *VolumeSyncStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VolumeSyncStatusRequest.Marshal(b, m, deterministic) +} +func (m *VolumeSyncStatusRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_VolumeSyncStatusRequest.Merge(m, src) +} +func (m *VolumeSyncStatusRequest) XXX_Size() int { + return xxx_messageInfo_VolumeSyncStatusRequest.Size(m) +} +func (m *VolumeSyncStatusRequest) XXX_DiscardUnknown() { + xxx_messageInfo_VolumeSyncStatusRequest.DiscardUnknown(m) } -func (m *VolumeSyncStatusRequest) Reset() { *m = VolumeSyncStatusRequest{} } -func (m *VolumeSyncStatusRequest) String() string { return proto.CompactTextString(m) } -func (*VolumeSyncStatusRequest) ProtoMessage() {} -func (*VolumeSyncStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } +var xxx_messageInfo_VolumeSyncStatusRequest proto.InternalMessageInfo func (m *VolumeSyncStatusRequest) GetVolumdId() uint32 { if m != nil { @@ -353,19 +702,42 @@ func (m *VolumeSyncStatusRequest) GetVolumdId() uint32 { } type VolumeSyncStatusResponse struct { - VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"` - Collection string `protobuf:"bytes,2,opt,name=collection" json:"collection,omitempty"` - Replication string `protobuf:"bytes,4,opt,name=replication" json:"replication,omitempty"` - Ttl string `protobuf:"bytes,5,opt,name=ttl" json:"ttl,omitempty"` - TailOffset uint64 `protobuf:"varint,6,opt,name=tail_offset,json=tailOffset" json:"tail_offset,omitempty"` - CompactRevision uint32 `protobuf:"varint,7,opt,name=compact_revision,json=compactRevision" json:"compact_revision,omitempty"` - IdxFileSize uint64 `protobuf:"varint,8,opt,name=idx_file_size,json=idxFileSize" json:"idx_file_size,omitempty"` + VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId,proto3" json:"volumd_id,omitempty"` + Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` + Replication string `protobuf:"bytes,4,opt,name=replication,proto3" json:"replication,omitempty"` + Ttl string `protobuf:"bytes,5,opt,name=ttl,proto3" json:"ttl,omitempty"` + TailOffset uint64 `protobuf:"varint,6,opt,name=tail_offset,json=tailOffset,proto3" json:"tail_offset,omitempty"` + CompactRevision uint32 `protobuf:"varint,7,opt,name=compact_revision,json=compactRevision,proto3" json:"compact_revision,omitempty"` + IdxFileSize uint64 `protobuf:"varint,8,opt,name=idx_file_size,json=idxFileSize,proto3" json:"idx_file_size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *VolumeSyncStatusResponse) Reset() { *m = VolumeSyncStatusResponse{} } -func (m *VolumeSyncStatusResponse) String() string { return proto.CompactTextString(m) } -func (*VolumeSyncStatusResponse) ProtoMessage() {} -func (*VolumeSyncStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} } +func (m *VolumeSyncStatusResponse) Reset() { *m = VolumeSyncStatusResponse{} } +func (m *VolumeSyncStatusResponse) String() string { return proto.CompactTextString(m) } +func (*VolumeSyncStatusResponse) ProtoMessage() {} +func (*VolumeSyncStatusResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{17} +} + +func (m *VolumeSyncStatusResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VolumeSyncStatusResponse.Unmarshal(m, b) +} +func (m *VolumeSyncStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VolumeSyncStatusResponse.Marshal(b, m, deterministic) +} +func (m *VolumeSyncStatusResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_VolumeSyncStatusResponse.Merge(m, src) +} +func (m *VolumeSyncStatusResponse) XXX_Size() int { + return xxx_messageInfo_VolumeSyncStatusResponse.Size(m) +} +func (m *VolumeSyncStatusResponse) XXX_DiscardUnknown() { + xxx_messageInfo_VolumeSyncStatusResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_VolumeSyncStatusResponse proto.InternalMessageInfo func (m *VolumeSyncStatusResponse) GetVolumdId() uint32 { if m != nil { @@ -417,13 +789,36 @@ func (m *VolumeSyncStatusResponse) GetIdxFileSize() uint64 { } type VolumeSyncIndexRequest struct { - VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"` + VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId,proto3" json:"volumd_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *VolumeSyncIndexRequest) Reset() { *m = VolumeSyncIndexRequest{} } -func (m *VolumeSyncIndexRequest) String() string { return proto.CompactTextString(m) } -func (*VolumeSyncIndexRequest) ProtoMessage() {} -func (*VolumeSyncIndexRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} } +func (m *VolumeSyncIndexRequest) Reset() { *m = VolumeSyncIndexRequest{} } +func (m *VolumeSyncIndexRequest) String() string { return proto.CompactTextString(m) } +func (*VolumeSyncIndexRequest) ProtoMessage() {} +func (*VolumeSyncIndexRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{18} +} + +func (m *VolumeSyncIndexRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VolumeSyncIndexRequest.Unmarshal(m, b) +} +func (m *VolumeSyncIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VolumeSyncIndexRequest.Marshal(b, m, deterministic) +} +func (m *VolumeSyncIndexRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_VolumeSyncIndexRequest.Merge(m, src) +} +func (m *VolumeSyncIndexRequest) XXX_Size() int { + return xxx_messageInfo_VolumeSyncIndexRequest.Size(m) +} +func (m *VolumeSyncIndexRequest) XXX_DiscardUnknown() { + xxx_messageInfo_VolumeSyncIndexRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_VolumeSyncIndexRequest proto.InternalMessageInfo func (m *VolumeSyncIndexRequest) GetVolumdId() uint32 { if m != nil { @@ -433,13 +828,36 @@ func (m *VolumeSyncIndexRequest) GetVolumdId() uint32 { } type VolumeSyncIndexResponse struct { - IndexFileContent []byte `protobuf:"bytes,1,opt,name=index_file_content,json=indexFileContent,proto3" json:"index_file_content,omitempty"` + IndexFileContent []byte `protobuf:"bytes,1,opt,name=index_file_content,json=indexFileContent,proto3" json:"index_file_content,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *VolumeSyncIndexResponse) Reset() { *m = VolumeSyncIndexResponse{} } -func (m *VolumeSyncIndexResponse) String() string { return proto.CompactTextString(m) } -func (*VolumeSyncIndexResponse) ProtoMessage() {} -func (*VolumeSyncIndexResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} } +func (m *VolumeSyncIndexResponse) Reset() { *m = VolumeSyncIndexResponse{} } +func (m *VolumeSyncIndexResponse) String() string { return proto.CompactTextString(m) } +func (*VolumeSyncIndexResponse) ProtoMessage() {} +func (*VolumeSyncIndexResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{19} +} + +func (m *VolumeSyncIndexResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VolumeSyncIndexResponse.Unmarshal(m, b) +} +func (m *VolumeSyncIndexResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VolumeSyncIndexResponse.Marshal(b, m, deterministic) +} +func (m *VolumeSyncIndexResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_VolumeSyncIndexResponse.Merge(m, src) +} +func (m *VolumeSyncIndexResponse) XXX_Size() int { + return xxx_messageInfo_VolumeSyncIndexResponse.Size(m) +} +func (m *VolumeSyncIndexResponse) XXX_DiscardUnknown() { + xxx_messageInfo_VolumeSyncIndexResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_VolumeSyncIndexResponse proto.InternalMessageInfo func (m *VolumeSyncIndexResponse) GetIndexFileContent() []byte { if m != nil { @@ -449,17 +867,40 @@ func (m *VolumeSyncIndexResponse) GetIndexFileContent() []byte { } type VolumeSyncDataRequest struct { - VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"` - Revision uint32 `protobuf:"varint,2,opt,name=revision" json:"revision,omitempty"` - Offset uint32 `protobuf:"varint,3,opt,name=offset" json:"offset,omitempty"` - Size uint32 `protobuf:"varint,4,opt,name=size" json:"size,omitempty"` - NeedleId string `protobuf:"bytes,5,opt,name=needle_id,json=needleId" json:"needle_id,omitempty"` + VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId,proto3" json:"volumd_id,omitempty"` + Revision uint32 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"` + Offset uint32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` + Size uint32 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` + NeedleId string `protobuf:"bytes,5,opt,name=needle_id,json=needleId,proto3" json:"needle_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *VolumeSyncDataRequest) Reset() { *m = VolumeSyncDataRequest{} } -func (m *VolumeSyncDataRequest) String() string { return proto.CompactTextString(m) } -func (*VolumeSyncDataRequest) ProtoMessage() {} -func (*VolumeSyncDataRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} } +func (m *VolumeSyncDataRequest) Reset() { *m = VolumeSyncDataRequest{} } +func (m *VolumeSyncDataRequest) String() string { return proto.CompactTextString(m) } +func (*VolumeSyncDataRequest) ProtoMessage() {} +func (*VolumeSyncDataRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{20} +} + +func (m *VolumeSyncDataRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VolumeSyncDataRequest.Unmarshal(m, b) +} +func (m *VolumeSyncDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VolumeSyncDataRequest.Marshal(b, m, deterministic) +} +func (m *VolumeSyncDataRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_VolumeSyncDataRequest.Merge(m, src) +} +func (m *VolumeSyncDataRequest) XXX_Size() int { + return xxx_messageInfo_VolumeSyncDataRequest.Size(m) +} +func (m *VolumeSyncDataRequest) XXX_DiscardUnknown() { + xxx_messageInfo_VolumeSyncDataRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_VolumeSyncDataRequest proto.InternalMessageInfo func (m *VolumeSyncDataRequest) GetVolumdId() uint32 { if m != nil { @@ -497,13 +938,36 @@ func (m *VolumeSyncDataRequest) GetNeedleId() string { } type VolumeSyncDataResponse struct { - FileContent []byte `protobuf:"bytes,1,opt,name=file_content,json=fileContent,proto3" json:"file_content,omitempty"` + FileContent []byte `protobuf:"bytes,1,opt,name=file_content,json=fileContent,proto3" json:"file_content,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *VolumeSyncDataResponse) Reset() { *m = VolumeSyncDataResponse{} } -func (m *VolumeSyncDataResponse) String() string { return proto.CompactTextString(m) } -func (*VolumeSyncDataResponse) ProtoMessage() {} -func (*VolumeSyncDataResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} } +func (m *VolumeSyncDataResponse) Reset() { *m = VolumeSyncDataResponse{} } +func (m *VolumeSyncDataResponse) String() string { return proto.CompactTextString(m) } +func (*VolumeSyncDataResponse) ProtoMessage() {} +func (*VolumeSyncDataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{21} +} + +func (m *VolumeSyncDataResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VolumeSyncDataResponse.Unmarshal(m, b) +} +func (m *VolumeSyncDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VolumeSyncDataResponse.Marshal(b, m, deterministic) +} +func (m *VolumeSyncDataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_VolumeSyncDataResponse.Merge(m, src) +} +func (m *VolumeSyncDataResponse) XXX_Size() int { + return xxx_messageInfo_VolumeSyncDataResponse.Size(m) +} +func (m *VolumeSyncDataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_VolumeSyncDataResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_VolumeSyncDataResponse proto.InternalMessageInfo func (m *VolumeSyncDataResponse) GetFileContent() []byte { if m != nil { @@ -513,13 +977,36 @@ func (m *VolumeSyncDataResponse) GetFileContent() []byte { } type VolumeMountRequest struct { - VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"` + VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId,proto3" json:"volumd_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VolumeMountRequest) Reset() { *m = VolumeMountRequest{} } +func (m *VolumeMountRequest) String() string { return proto.CompactTextString(m) } +func (*VolumeMountRequest) ProtoMessage() {} +func (*VolumeMountRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{22} +} + +func (m *VolumeMountRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VolumeMountRequest.Unmarshal(m, b) +} +func (m *VolumeMountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VolumeMountRequest.Marshal(b, m, deterministic) +} +func (m *VolumeMountRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_VolumeMountRequest.Merge(m, src) +} +func (m *VolumeMountRequest) XXX_Size() int { + return xxx_messageInfo_VolumeMountRequest.Size(m) +} +func (m *VolumeMountRequest) XXX_DiscardUnknown() { + xxx_messageInfo_VolumeMountRequest.DiscardUnknown(m) } -func (m *VolumeMountRequest) Reset() { *m = VolumeMountRequest{} } -func (m *VolumeMountRequest) String() string { return proto.CompactTextString(m) } -func (*VolumeMountRequest) ProtoMessage() {} -func (*VolumeMountRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} } +var xxx_messageInfo_VolumeMountRequest proto.InternalMessageInfo func (m *VolumeMountRequest) GetVolumdId() uint32 { if m != nil { @@ -529,21 +1016,67 @@ func (m *VolumeMountRequest) GetVolumdId() uint32 { } type VolumeMountResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VolumeMountResponse) Reset() { *m = VolumeMountResponse{} } +func (m *VolumeMountResponse) String() string { return proto.CompactTextString(m) } +func (*VolumeMountResponse) ProtoMessage() {} +func (*VolumeMountResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{23} +} + +func (m *VolumeMountResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VolumeMountResponse.Unmarshal(m, b) +} +func (m *VolumeMountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VolumeMountResponse.Marshal(b, m, deterministic) +} +func (m *VolumeMountResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_VolumeMountResponse.Merge(m, src) +} +func (m *VolumeMountResponse) XXX_Size() int { + return xxx_messageInfo_VolumeMountResponse.Size(m) +} +func (m *VolumeMountResponse) XXX_DiscardUnknown() { + xxx_messageInfo_VolumeMountResponse.DiscardUnknown(m) } -func (m *VolumeMountResponse) Reset() { *m = VolumeMountResponse{} } -func (m *VolumeMountResponse) String() string { return proto.CompactTextString(m) } -func (*VolumeMountResponse) ProtoMessage() {} -func (*VolumeMountResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{23} } +var xxx_messageInfo_VolumeMountResponse proto.InternalMessageInfo type VolumeUnmountRequest struct { - VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"` + VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId,proto3" json:"volumd_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VolumeUnmountRequest) Reset() { *m = VolumeUnmountRequest{} } +func (m *VolumeUnmountRequest) String() string { return proto.CompactTextString(m) } +func (*VolumeUnmountRequest) ProtoMessage() {} +func (*VolumeUnmountRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{24} +} + +func (m *VolumeUnmountRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VolumeUnmountRequest.Unmarshal(m, b) +} +func (m *VolumeUnmountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VolumeUnmountRequest.Marshal(b, m, deterministic) +} +func (m *VolumeUnmountRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_VolumeUnmountRequest.Merge(m, src) +} +func (m *VolumeUnmountRequest) XXX_Size() int { + return xxx_messageInfo_VolumeUnmountRequest.Size(m) +} +func (m *VolumeUnmountRequest) XXX_DiscardUnknown() { + xxx_messageInfo_VolumeUnmountRequest.DiscardUnknown(m) } -func (m *VolumeUnmountRequest) Reset() { *m = VolumeUnmountRequest{} } -func (m *VolumeUnmountRequest) String() string { return proto.CompactTextString(m) } -func (*VolumeUnmountRequest) ProtoMessage() {} -func (*VolumeUnmountRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{24} } +var xxx_messageInfo_VolumeUnmountRequest proto.InternalMessageInfo func (m *VolumeUnmountRequest) GetVolumdId() uint32 { if m != nil { @@ -553,21 +1086,67 @@ func (m *VolumeUnmountRequest) GetVolumdId() uint32 { } type VolumeUnmountResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *VolumeUnmountResponse) Reset() { *m = VolumeUnmountResponse{} } -func (m *VolumeUnmountResponse) String() string { return proto.CompactTextString(m) } -func (*VolumeUnmountResponse) ProtoMessage() {} -func (*VolumeUnmountResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{25} } +func (m *VolumeUnmountResponse) Reset() { *m = VolumeUnmountResponse{} } +func (m *VolumeUnmountResponse) String() string { return proto.CompactTextString(m) } +func (*VolumeUnmountResponse) ProtoMessage() {} +func (*VolumeUnmountResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{25} +} + +func (m *VolumeUnmountResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VolumeUnmountResponse.Unmarshal(m, b) +} +func (m *VolumeUnmountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VolumeUnmountResponse.Marshal(b, m, deterministic) +} +func (m *VolumeUnmountResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_VolumeUnmountResponse.Merge(m, src) +} +func (m *VolumeUnmountResponse) XXX_Size() int { + return xxx_messageInfo_VolumeUnmountResponse.Size(m) +} +func (m *VolumeUnmountResponse) XXX_DiscardUnknown() { + xxx_messageInfo_VolumeUnmountResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_VolumeUnmountResponse proto.InternalMessageInfo type VolumeDeleteRequest struct { - VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"` + VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId,proto3" json:"volumd_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *VolumeDeleteRequest) Reset() { *m = VolumeDeleteRequest{} } -func (m *VolumeDeleteRequest) String() string { return proto.CompactTextString(m) } -func (*VolumeDeleteRequest) ProtoMessage() {} -func (*VolumeDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{26} } +func (m *VolumeDeleteRequest) Reset() { *m = VolumeDeleteRequest{} } +func (m *VolumeDeleteRequest) String() string { return proto.CompactTextString(m) } +func (*VolumeDeleteRequest) ProtoMessage() {} +func (*VolumeDeleteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{26} +} + +func (m *VolumeDeleteRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VolumeDeleteRequest.Unmarshal(m, b) +} +func (m *VolumeDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VolumeDeleteRequest.Marshal(b, m, deterministic) +} +func (m *VolumeDeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_VolumeDeleteRequest.Merge(m, src) +} +func (m *VolumeDeleteRequest) XXX_Size() int { + return xxx_messageInfo_VolumeDeleteRequest.Size(m) +} +func (m *VolumeDeleteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_VolumeDeleteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_VolumeDeleteRequest proto.InternalMessageInfo func (m *VolumeDeleteRequest) GetVolumdId() uint32 { if m != nil { @@ -577,40 +1156,132 @@ func (m *VolumeDeleteRequest) GetVolumdId() uint32 { } type VolumeDeleteResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VolumeDeleteResponse) Reset() { *m = VolumeDeleteResponse{} } +func (m *VolumeDeleteResponse) String() string { return proto.CompactTextString(m) } +func (*VolumeDeleteResponse) ProtoMessage() {} +func (*VolumeDeleteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{27} +} + +func (m *VolumeDeleteResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VolumeDeleteResponse.Unmarshal(m, b) +} +func (m *VolumeDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VolumeDeleteResponse.Marshal(b, m, deterministic) +} +func (m *VolumeDeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_VolumeDeleteResponse.Merge(m, src) +} +func (m *VolumeDeleteResponse) XXX_Size() int { + return xxx_messageInfo_VolumeDeleteResponse.Size(m) +} +func (m *VolumeDeleteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_VolumeDeleteResponse.DiscardUnknown(m) } -func (m *VolumeDeleteResponse) Reset() { *m = VolumeDeleteResponse{} } -func (m *VolumeDeleteResponse) String() string { return proto.CompactTextString(m) } -func (*VolumeDeleteResponse) ProtoMessage() {} -func (*VolumeDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{27} } +var xxx_messageInfo_VolumeDeleteResponse proto.InternalMessageInfo type VolumeUiPageRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *VolumeUiPageRequest) Reset() { *m = VolumeUiPageRequest{} } -func (m *VolumeUiPageRequest) String() string { return proto.CompactTextString(m) } -func (*VolumeUiPageRequest) ProtoMessage() {} -func (*VolumeUiPageRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{28} } +func (m *VolumeUiPageRequest) Reset() { *m = VolumeUiPageRequest{} } +func (m *VolumeUiPageRequest) String() string { return proto.CompactTextString(m) } +func (*VolumeUiPageRequest) ProtoMessage() {} +func (*VolumeUiPageRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{28} +} + +func (m *VolumeUiPageRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VolumeUiPageRequest.Unmarshal(m, b) +} +func (m *VolumeUiPageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VolumeUiPageRequest.Marshal(b, m, deterministic) +} +func (m *VolumeUiPageRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_VolumeUiPageRequest.Merge(m, src) +} +func (m *VolumeUiPageRequest) XXX_Size() int { + return xxx_messageInfo_VolumeUiPageRequest.Size(m) +} +func (m *VolumeUiPageRequest) XXX_DiscardUnknown() { + xxx_messageInfo_VolumeUiPageRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_VolumeUiPageRequest proto.InternalMessageInfo type VolumeUiPageResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *VolumeUiPageResponse) Reset() { *m = VolumeUiPageResponse{} } -func (m *VolumeUiPageResponse) String() string { return proto.CompactTextString(m) } -func (*VolumeUiPageResponse) ProtoMessage() {} -func (*VolumeUiPageResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{29} } +func (m *VolumeUiPageResponse) Reset() { *m = VolumeUiPageResponse{} } +func (m *VolumeUiPageResponse) String() string { return proto.CompactTextString(m) } +func (*VolumeUiPageResponse) ProtoMessage() {} +func (*VolumeUiPageResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{29} +} + +func (m *VolumeUiPageResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VolumeUiPageResponse.Unmarshal(m, b) +} +func (m *VolumeUiPageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VolumeUiPageResponse.Marshal(b, m, deterministic) +} +func (m *VolumeUiPageResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_VolumeUiPageResponse.Merge(m, src) +} +func (m *VolumeUiPageResponse) XXX_Size() int { + return xxx_messageInfo_VolumeUiPageResponse.Size(m) +} +func (m *VolumeUiPageResponse) XXX_DiscardUnknown() { + xxx_messageInfo_VolumeUiPageResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_VolumeUiPageResponse proto.InternalMessageInfo type DiskStatus struct { - Dir string `protobuf:"bytes,1,opt,name=dir" json:"dir,omitempty"` - All uint64 `protobuf:"varint,2,opt,name=all" json:"all,omitempty"` - Used uint64 `protobuf:"varint,3,opt,name=used" json:"used,omitempty"` - Free uint64 `protobuf:"varint,4,opt,name=free" json:"free,omitempty"` + Dir string `protobuf:"bytes,1,opt,name=dir,proto3" json:"dir,omitempty"` + All uint64 `protobuf:"varint,2,opt,name=all,proto3" json:"all,omitempty"` + Used uint64 `protobuf:"varint,3,opt,name=used,proto3" json:"used,omitempty"` + Free uint64 `protobuf:"varint,4,opt,name=free,proto3" json:"free,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DiskStatus) Reset() { *m = DiskStatus{} } +func (m *DiskStatus) String() string { return proto.CompactTextString(m) } +func (*DiskStatus) ProtoMessage() {} +func (*DiskStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{30} +} + +func (m *DiskStatus) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DiskStatus.Unmarshal(m, b) +} +func (m *DiskStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DiskStatus.Marshal(b, m, deterministic) +} +func (m *DiskStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_DiskStatus.Merge(m, src) +} +func (m *DiskStatus) XXX_Size() int { + return xxx_messageInfo_DiskStatus.Size(m) +} +func (m *DiskStatus) XXX_DiscardUnknown() { + xxx_messageInfo_DiskStatus.DiscardUnknown(m) } -func (m *DiskStatus) Reset() { *m = DiskStatus{} } -func (m *DiskStatus) String() string { return proto.CompactTextString(m) } -func (*DiskStatus) ProtoMessage() {} -func (*DiskStatus) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{30} } +var xxx_messageInfo_DiskStatus proto.InternalMessageInfo func (m *DiskStatus) GetDir() string { if m != nil { @@ -641,19 +1312,42 @@ func (m *DiskStatus) GetFree() uint64 { } type MemStatus struct { - Goroutines int32 `protobuf:"varint,1,opt,name=goroutines" json:"goroutines,omitempty"` - All uint64 `protobuf:"varint,2,opt,name=all" json:"all,omitempty"` - Used uint64 `protobuf:"varint,3,opt,name=used" json:"used,omitempty"` - Free uint64 `protobuf:"varint,4,opt,name=free" json:"free,omitempty"` - Self uint64 `protobuf:"varint,5,opt,name=self" json:"self,omitempty"` - Heap uint64 `protobuf:"varint,6,opt,name=heap" json:"heap,omitempty"` - Stack uint64 `protobuf:"varint,7,opt,name=stack" json:"stack,omitempty"` + Goroutines int32 `protobuf:"varint,1,opt,name=goroutines,proto3" json:"goroutines,omitempty"` + All uint64 `protobuf:"varint,2,opt,name=all,proto3" json:"all,omitempty"` + Used uint64 `protobuf:"varint,3,opt,name=used,proto3" json:"used,omitempty"` + Free uint64 `protobuf:"varint,4,opt,name=free,proto3" json:"free,omitempty"` + Self uint64 `protobuf:"varint,5,opt,name=self,proto3" json:"self,omitempty"` + Heap uint64 `protobuf:"varint,6,opt,name=heap,proto3" json:"heap,omitempty"` + Stack uint64 `protobuf:"varint,7,opt,name=stack,proto3" json:"stack,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MemStatus) Reset() { *m = MemStatus{} } -func (m *MemStatus) String() string { return proto.CompactTextString(m) } -func (*MemStatus) ProtoMessage() {} -func (*MemStatus) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{31} } +func (m *MemStatus) Reset() { *m = MemStatus{} } +func (m *MemStatus) String() string { return proto.CompactTextString(m) } +func (*MemStatus) ProtoMessage() {} +func (*MemStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_73a683896b3b0ea3, []int{31} +} + +func (m *MemStatus) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MemStatus.Unmarshal(m, b) +} +func (m *MemStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MemStatus.Marshal(b, m, deterministic) +} +func (m *MemStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_MemStatus.Merge(m, src) +} +func (m *MemStatus) XXX_Size() int { + return xxx_messageInfo_MemStatus.Size(m) +} +func (m *MemStatus) XXX_DiscardUnknown() { + xxx_messageInfo_MemStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_MemStatus proto.InternalMessageInfo func (m *MemStatus) GetGoroutines() int32 { if m != nil { @@ -739,6 +1433,78 @@ func init() { proto.RegisterType((*MemStatus)(nil), "volume_server_pb.MemStatus") } +func init() { proto.RegisterFile("volume_server.proto", fileDescriptor_73a683896b3b0ea3) } + +var fileDescriptor_73a683896b3b0ea3 = []byte{ + // 1044 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x57, 0xdd, 0x72, 0xdb, 0x44, + 0x14, 0x8e, 0x6a, 0x3b, 0x76, 0x8e, 0x6d, 0x6a, 0xd6, 0x69, 0xa2, 0xaa, 0x10, 0x8c, 0x80, 0xd4, + 0x69, 0x43, 0x80, 0x74, 0x80, 0x32, 0xdc, 0x00, 0x09, 0x30, 0xb9, 0xe8, 0x94, 0xd9, 0x4c, 0x3b, + 0xcc, 0xd0, 0x19, 0x8f, 0x22, 0xad, 0x9d, 0x25, 0xb2, 0xe4, 0x6a, 0x57, 0x99, 0x94, 0x37, 0xe1, + 0x9a, 0x1b, 0x9e, 0x8e, 0x17, 0xe0, 0x86, 0xd9, 0x1f, 0xd9, 0xfa, 0x73, 0x24, 0xe0, 0x6e, 0xf7, + 0xec, 0x39, 0xdf, 0xf9, 0xd9, 0xa3, 0xf3, 0xad, 0x60, 0x78, 0x1d, 0xfa, 0xf1, 0x9c, 0x4c, 0x18, + 0x89, 0xae, 0x49, 0x74, 0xb4, 0x88, 0x42, 0x1e, 0xa2, 0x41, 0x46, 0x38, 0x59, 0x5c, 0xd8, 0x9f, + 0x00, 0xfa, 0xce, 0xe1, 0xee, 0xe5, 0x29, 0xf1, 0x09, 0x27, 0x98, 0xbc, 0x8e, 0x09, 0xe3, 0xe8, + 0x3e, 0x74, 0xa6, 0xd4, 0x27, 0x13, 0xea, 0x31, 0xd3, 0x18, 0x35, 0xc6, 0x5b, 0xb8, 0x2d, 0xf6, + 0x67, 0x1e, 0xb3, 0x9f, 0xc3, 0x30, 0x63, 0xc0, 0x16, 0x61, 0xc0, 0x08, 0x7a, 0x0a, 0xed, 0x88, + 0xb0, 0xd8, 0xe7, 0xca, 0xa0, 0x7b, 0xbc, 0x77, 0x94, 0xf7, 0x75, 0xb4, 0x34, 0x89, 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aa, 0xa3, 0xba, 0x74, 0x36, 0x81, 0x5e, + 0x9a, 0x64, 0x51, 0x49, 0xd3, 0x95, 0x3c, 0x17, 0xac, 0xfd, 0x2a, 0xb5, 0x74, 0x36, 0x79, 0xd2, + 0x2d, 0xcb, 0x66, 0x0d, 0xa3, 0x97, 0x65, 0xb3, 0x8e, 0xc3, 0xed, 0x0d, 0xf4, 0x2b, 0xdc, 0xcd, + 0xb1, 0x15, 0x1a, 0xdf, 0x06, 0x90, 0xe6, 0x41, 0xeb, 0xa0, 0x86, 0x66, 0xe2, 0xe9, 0x53, 0x03, + 0xcd, 0xe0, 0xad, 0x2c, 0x69, 0xa0, 0x87, 0xb7, 0x01, 0xa4, 0x18, 0xcf, 0x1a, 0x57, 0x2b, 0xa6, + 0x1c, 0xbd, 0x82, 0x6e, 0x8a, 0x2d, 0xca, 0x86, 0x47, 0x91, 0x7f, 0xca, 0x86, 0x47, 0x19, 0xe5, + 0x6c, 0xa0, 0x0b, 0xe8, 0x67, 0xf8, 0x03, 0xed, 0xaf, 0xb3, 0xcc, 0xb2, 0x92, 0xf5, 0xb0, 0x52, + 0x2f, 0xdd, 0x64, 0x69, 0x5a, 0x41, 0x6b, 0x83, 0xcb, 0x0e, 0xc0, 0xfd, 0x2a, 0xb5, 0xc4, 0xc1, + 0xc5, 0xa6, 0xfc, 0xc9, 0x7b, 0xf2, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xdb, 0x3c, 0x6d, 0xd7, + 0xfb, 0x0d, 0x00, 0x00, +} + // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -747,10 +1513,11 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for VolumeServer service - +// VolumeServerClient is the client API for VolumeServer service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type VolumeServerClient interface { - // Experts only: takes multiple fid parameters. This function does not propagate deletes to replicas. + //Experts only: takes multiple fid parameters. This function does not propagate deletes to replicas. BatchDelete(ctx context.Context, in *BatchDeleteRequest, opts ...grpc.CallOption) (*BatchDeleteResponse, error) VacuumVolumeCheck(ctx context.Context, in *VacuumVolumeCheckRequest, opts ...grpc.CallOption) (*VacuumVolumeCheckResponse, error) VacuumVolumeCompact(ctx context.Context, in *VacuumVolumeCompactRequest, opts ...grpc.CallOption) (*VacuumVolumeCompactResponse, error) @@ -776,7 +1543,7 @@ func NewVolumeServerClient(cc *grpc.ClientConn) VolumeServerClient { func (c *volumeServerClient) BatchDelete(ctx context.Context, in *BatchDeleteRequest, opts ...grpc.CallOption) (*BatchDeleteResponse, error) { out := new(BatchDeleteResponse) - err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/BatchDelete", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/BatchDelete", in, out, opts...) if err != nil { return nil, err } @@ -785,7 +1552,7 @@ func (c *volumeServerClient) BatchDelete(ctx context.Context, in *BatchDeleteReq func (c *volumeServerClient) VacuumVolumeCheck(ctx context.Context, in *VacuumVolumeCheckRequest, opts ...grpc.CallOption) (*VacuumVolumeCheckResponse, error) { out := new(VacuumVolumeCheckResponse) - err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCheck", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCheck", in, out, opts...) if err != nil { return nil, err } @@ -794,7 +1561,7 @@ func (c *volumeServerClient) VacuumVolumeCheck(ctx context.Context, in *VacuumVo func (c *volumeServerClient) VacuumVolumeCompact(ctx context.Context, in *VacuumVolumeCompactRequest, opts ...grpc.CallOption) (*VacuumVolumeCompactResponse, error) { out := new(VacuumVolumeCompactResponse) - err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCompact", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCompact", in, out, opts...) if err != nil { return nil, err } @@ -803,7 +1570,7 @@ func (c *volumeServerClient) VacuumVolumeCompact(ctx context.Context, in *Vacuum func (c *volumeServerClient) VacuumVolumeCommit(ctx context.Context, in *VacuumVolumeCommitRequest, opts ...grpc.CallOption) (*VacuumVolumeCommitResponse, error) { out := new(VacuumVolumeCommitResponse) - err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCommit", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCommit", in, out, opts...) if err != nil { return nil, err } @@ -812,7 +1579,7 @@ func (c *volumeServerClient) VacuumVolumeCommit(ctx context.Context, in *VacuumV func (c *volumeServerClient) VacuumVolumeCleanup(ctx context.Context, in *VacuumVolumeCleanupRequest, opts ...grpc.CallOption) (*VacuumVolumeCleanupResponse, error) { out := new(VacuumVolumeCleanupResponse) - err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCleanup", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCleanup", in, out, opts...) if err != nil { return nil, err } @@ -821,7 +1588,7 @@ func (c *volumeServerClient) VacuumVolumeCleanup(ctx context.Context, in *Vacuum func (c *volumeServerClient) DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error) { out := new(DeleteCollectionResponse) - err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/DeleteCollection", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/DeleteCollection", in, out, opts...) if err != nil { return nil, err } @@ -830,7 +1597,7 @@ func (c *volumeServerClient) DeleteCollection(ctx context.Context, in *DeleteCol func (c *volumeServerClient) AssignVolume(ctx context.Context, in *AssignVolumeRequest, opts ...grpc.CallOption) (*AssignVolumeResponse, error) { out := new(AssignVolumeResponse) - err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/AssignVolume", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/AssignVolume", in, out, opts...) if err != nil { return nil, err } @@ -839,7 +1606,7 @@ func (c *volumeServerClient) AssignVolume(ctx context.Context, in *AssignVolumeR func (c *volumeServerClient) VolumeSyncStatus(ctx context.Context, in *VolumeSyncStatusRequest, opts ...grpc.CallOption) (*VolumeSyncStatusResponse, error) { out := new(VolumeSyncStatusResponse) - err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeSyncStatus", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeSyncStatus", in, out, opts...) if err != nil { return nil, err } @@ -847,7 +1614,7 @@ func (c *volumeServerClient) VolumeSyncStatus(ctx context.Context, in *VolumeSyn } func (c *volumeServerClient) VolumeSyncIndex(ctx context.Context, in *VolumeSyncIndexRequest, opts ...grpc.CallOption) (VolumeServer_VolumeSyncIndexClient, error) { - stream, err := grpc.NewClientStream(ctx, &_VolumeServer_serviceDesc.Streams[0], c.cc, "/volume_server_pb.VolumeServer/VolumeSyncIndex", opts...) + stream, err := c.cc.NewStream(ctx, &_VolumeServer_serviceDesc.Streams[0], "/volume_server_pb.VolumeServer/VolumeSyncIndex", opts...) if err != nil { return nil, err } @@ -879,7 +1646,7 @@ func (x *volumeServerVolumeSyncIndexClient) Recv() (*VolumeSyncIndexResponse, er } func (c *volumeServerClient) VolumeSyncData(ctx context.Context, in *VolumeSyncDataRequest, opts ...grpc.CallOption) (VolumeServer_VolumeSyncDataClient, error) { - stream, err := grpc.NewClientStream(ctx, &_VolumeServer_serviceDesc.Streams[1], c.cc, "/volume_server_pb.VolumeServer/VolumeSyncData", opts...) + stream, err := c.cc.NewStream(ctx, &_VolumeServer_serviceDesc.Streams[1], "/volume_server_pb.VolumeServer/VolumeSyncData", opts...) if err != nil { return nil, err } @@ -912,7 +1679,7 @@ func (x *volumeServerVolumeSyncDataClient) Recv() (*VolumeSyncDataResponse, erro func (c *volumeServerClient) VolumeMount(ctx context.Context, in *VolumeMountRequest, opts ...grpc.CallOption) (*VolumeMountResponse, error) { out := new(VolumeMountResponse) - err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeMount", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeMount", in, out, opts...) if err != nil { return nil, err } @@ -921,7 +1688,7 @@ func (c *volumeServerClient) VolumeMount(ctx context.Context, in *VolumeMountReq func (c *volumeServerClient) VolumeUnmount(ctx context.Context, in *VolumeUnmountRequest, opts ...grpc.CallOption) (*VolumeUnmountResponse, error) { out := new(VolumeUnmountResponse) - err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeUnmount", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeUnmount", in, out, opts...) if err != nil { return nil, err } @@ -930,17 +1697,16 @@ func (c *volumeServerClient) VolumeUnmount(ctx context.Context, in *VolumeUnmoun func (c *volumeServerClient) VolumeDelete(ctx context.Context, in *VolumeDeleteRequest, opts ...grpc.CallOption) (*VolumeDeleteResponse, error) { out := new(VolumeDeleteResponse) - err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeDelete", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeDelete", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for VolumeServer service - +// VolumeServerServer is the server API for VolumeServer service. type VolumeServerServer interface { - // Experts only: takes multiple fid parameters. This function does not propagate deletes to replicas. + //Experts only: takes multiple fid parameters. This function does not propagate deletes to replicas. BatchDelete(context.Context, *BatchDeleteRequest) (*BatchDeleteResponse, error) VacuumVolumeCheck(context.Context, *VacuumVolumeCheckRequest) (*VacuumVolumeCheckResponse, error) VacuumVolumeCompact(context.Context, *VacuumVolumeCompactRequest) (*VacuumVolumeCompactResponse, error) @@ -1263,75 +2029,3 @@ var _VolumeServer_serviceDesc = grpc.ServiceDesc{ }, Metadata: "volume_server.proto", } - -func init() { proto.RegisterFile("volume_server.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 1044 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x57, 0xdd, 0x72, 0xdb, 0x44, - 0x14, 0x8e, 0x6a, 0x3b, 0x76, 0x8e, 0x6d, 0x6a, 0xd6, 0x69, 0xa2, 0xaa, 0x10, 0x8c, 0x80, 0xd4, - 0x69, 0x43, 0x80, 0x74, 0x80, 0x32, 0xdc, 0x00, 0x09, 0x30, 0xb9, 0xe8, 0x94, 0xd9, 0x4c, 0x3b, - 0xcc, 0xd0, 0x19, 0x8f, 0x22, 0xad, 0x9d, 0x25, 0xb2, 0xe4, 0x6a, 0x57, 0x99, 0x94, 0x37, 0xe1, - 0x9a, 0x1b, 0x9e, 0x8e, 0x17, 0xe0, 0x86, 0xd9, 0x1f, 0xd9, 0xfa, 0x73, 0x24, 0xe0, 0x6e, 0xf7, - 0xec, 0x39, 0xdf, 0xf9, 0xd9, 0xa3, 0xf3, 0xad, 0x60, 0x78, 0x1d, 0xfa, 0xf1, 0x9c, 0x4c, 0x18, - 0x89, 0xae, 0x49, 0x74, 0xb4, 0x88, 0x42, 0x1e, 0xa2, 0x41, 0x46, 0x38, 0x59, 0x5c, 0xd8, 0x9f, - 0x00, 0xfa, 0xce, 0xe1, 0xee, 0xe5, 0x29, 0xf1, 0x09, 0x27, 0x98, 0xbc, 0x8e, 0x09, 0xe3, 0xe8, - 0x3e, 0x74, 0xa6, 0xd4, 0x27, 0x13, 0xea, 0x31, 0xd3, 0x18, 0x35, 0xc6, 0x5b, 0xb8, 0x2d, 0xf6, - 0x67, 0x1e, 0xb3, 0x9f, 0xc3, 0x30, 0x63, 0xc0, 0x16, 0x61, 0xc0, 0x08, 0x7a, 0x0a, 0xed, 0x88, - 0xb0, 0xd8, 0xe7, 0xca, 0xa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x29, 0x44, 0x2d, 0x2d, 0x35, - 0xee, 0x57, 0xb9, 0x53, 0x9f, 0x38, 0x41, 0xbc, 0xa8, 0x05, 0x9c, 0x8f, 0x38, 0x31, 0x5d, 0x22, - 0xef, 0xaa, 0xe6, 0x38, 0x09, 0x7d, 0x9f, 0xb8, 0x9c, 0x86, 0x41, 0x02, 0xbb, 0x07, 0xe0, 0x2e, - 0x85, 0xba, 0x55, 0x52, 0x12, 0xdb, 0x02, 0xb3, 0x68, 0xaa, 0x61, 0xff, 0x34, 0x60, 0xf8, 0x2d, - 0x63, 0x74, 0x16, 0x28, 0xb7, 0xb5, 0xca, 0x9f, 0x75, 0x78, 0x27, 0xef, 0x30, 0x7f, 0x3d, 0x8d, - 0xc2, 0xf5, 0x08, 0x8d, 0x88, 0x2c, 0x7c, 0xea, 0x3a, 0x12, 0xa2, 0x29, 0x21, 0xd2, 0x22, 0x34, - 0x80, 0x06, 0xe7, 0xbe, 0xd9, 0x92, 0x27, 0x62, 0x69, 0xef, 0xc0, 0x76, 0x36, 0x52, 0x9d, 0xc2, - 0x17, 0xb0, 0xab, 0x24, 0xe7, 0x6f, 0x02, 0xf7, 0x5c, 0x7e, 0x09, 0xb5, 0x0a, 0xfe, 0xb7, 0x01, - 0x66, 0xd1, 0x50, 0x77, 0xf0, 0xff, 0xcd, 0xff, 0xdf, 0x66, 0x87, 0xde, 0x83, 0x2e, 0x77, 0xa8, - 0x3f, 0x09, 0xa7, 0x53, 0x46, 0xb8, 0xb9, 0x39, 0x32, 0xc6, 0x4d, 0x0c, 0x42, 0xf4, 0x5c, 0x4a, - 0xd0, 0x01, 0x0c, 0x5c, 0xd5, 0xc5, 0x93, 0x88, 0x5c, 0x53, 0x26, 0x90, 0xdb, 0x32, 0xb0, 0xbb, - 0x6e, 0xd2, 0xdd, 0x4a, 0x8c, 0x6c, 0xe8, 0x53, 0xef, 0x66, 0x22, 0x87, 0x87, 0xfc, 0xf4, 0x3b, - 0x12, 0xad, 0x4b, 0xbd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 0xd1, 0xc1, 0xba, 0x37, 0x65, 0xe1, 0x75, 0x60, 0x3d, 0xaa, 0xa3, 0xba, 0x74, 0x36, 0x81, 0x5e, - 0x9a, 0x64, 0x51, 0x49, 0xd3, 0x95, 0x3c, 0x17, 0xac, 0xfd, 0x2a, 0xb5, 0x74, 0x36, 0x79, 0xd2, - 0x2d, 0xcb, 0x66, 0x0d, 0xa3, 0x97, 0x65, 0xb3, 0x8e, 0xc3, 0xed, 0x0d, 0xf4, 0x2b, 0xdc, 0xcd, - 0xb1, 0x15, 0x1a, 0xdf, 0x06, 0x90, 0xe6, 0x41, 0xeb, 0xa0, 0x86, 0x66, 0xe2, 0xe9, 0x53, 0x03, - 0xcd, 0xe0, 0xad, 0x2c, 0x69, 0xa0, 0x87, 0xb7, 0x01, 0xa4, 0x18, 0xcf, 0x1a, 0x57, 0x2b, 0xa6, - 0x1c, 0xbd, 0x82, 0x6e, 0x8a, 0x2d, 0xca, 0x86, 0x47, 0x91, 0x7f, 0xca, 0x86, 0x47, 0x19, 0xe5, - 0x6c, 0xa0, 0x0b, 0xe8, 0x67, 0xf8, 0x03, 0xed, 0xaf, 0xb3, 0xcc, 0xb2, 0x92, 0xf5, 0xb0, 0x52, - 0x2f, 0xdd, 0x64, 0x69, 0x5a, 0x41, 0x6b, 0x83, 0xcb, 0x0e, 0xc0, 0xfd, 0x2a, 0xb5, 0xc4, 0xc1, - 0xc5, 0xa6, 0xfc, 0xc9, 0x7b, 0xf2, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xdb, 0x3c, 0x6d, 0xd7, - 0xfb, 0x0d, 0x00, 0x00, -} diff --git a/weed/server/master_grpc_server.go b/weed/server/master_grpc_server.go index 93dce59d8..2a7e5840f 100644 --- a/weed/server/master_grpc_server.go +++ b/weed/server/master_grpc_server.go @@ -61,9 +61,7 @@ func (ms *MasterServer) SendHeartbeat(stream master_pb.Seaweed_SendHeartbeatServ dcName, rackName := t.Configuration.Locate(heartbeat.Ip, heartbeat.DataCenter, heartbeat.Rack) dc := t.GetOrCreateDataCenter(dcName) rack := dc.GetOrCreateRack(rackName) - dn = rack.GetOrCreateDataNode(heartbeat.Ip, - int(heartbeat.Port), heartbeat.PublicUrl, - int(heartbeat.MaxVolumeCount)) + dn = rack.GetOrCreateDataNode(heartbeat.Ip, int(heartbeat.Port), heartbeat.PublicUrl, int(heartbeat.MaxVolumeCount)) glog.V(0).Infof("added volume server %v:%d", heartbeat.GetIp(), heartbeat.GetPort()) if err := stream.Send(&master_pb.HeartbeatResponse{ VolumeSizeLimit: uint64(ms.volumeSizeLimitMB) * 1024 * 1024, diff --git a/weed/storage/store.go b/weed/storage/store.go index e5ff131be..3c00edb95 100644 --- a/weed/storage/store.go +++ b/weed/storage/store.go @@ -27,6 +27,8 @@ type Store struct { NeedleMapType NeedleMapType NewVolumeIdChan chan VolumeId DeletedVolumeIdChan chan VolumeId + + DiskWatermark uint64 } func (s *Store) String() (str string) { @@ -143,14 +145,23 @@ func (s *Store) CollectHeartbeat() *master_pb.Heartbeat { var volumeMessages []*master_pb.VolumeInformationMessage maxVolumeCount := 0 var maxFileKey NeedleId + + memTotal, memFree, _ := MemoryStat() + load1, load5, load15, _ := LoadStat() + _, processCpuUsage, proessRss, _ := ProcessStat() + for _, location := range s.Locations { maxVolumeCount = maxVolumeCount + location.MaxVolumeCount location.Lock() + + diskTotal, diskFree, diskDevice, diskMountPoint, _ := DiskStat(location.Directory) + for k, v := range location.volumes { if maxFileKey < v.nm.MaxFileKey() { maxFileKey = v.nm.MaxFileKey() } if !v.expired(s.VolumeSizeLimit) { + volumeMessage := &master_pb.VolumeInformationMessage{ Id: uint32(k), Size: uint64(v.Size()), @@ -162,6 +173,20 @@ func (s *Store) CollectHeartbeat() *master_pb.Heartbeat { ReplicaPlacement: uint32(v.ReplicaPlacement.Byte()), Version: uint32(v.Version()), Ttl: v.Ttl.ToUint32(), + + MemoryTotal: memTotal, + MemoryFree: memFree, + + DiskWatermark: s.DiskWatermark, + DiskTotal: diskTotal, + DiskFree: diskFree, + DiskDevice: diskDevice, + DiskMountPoint: diskMountPoint, + Load1: load1, + Load5: load5, + Load15: load15, + ProcessCpuUsage: processCpuUsage, + ProcessRss: proessRss, } volumeMessages = append(volumeMessages, volumeMessage) } else { diff --git a/weed/storage/sysstat.go b/weed/storage/sysstat.go new file mode 100644 index 000000000..c825409ab --- /dev/null +++ b/weed/storage/sysstat.go @@ -0,0 +1,108 @@ +package storage + +import ( + "fmt" + "github.com/shirou/gopsutil/disk" + "github.com/shirou/gopsutil/load" + "github.com/shirou/gopsutil/mem" + "github.com/shirou/gopsutil/process" + "os" + "path/filepath" + "syscall" +) + +// MemoryStat stats the current total and free memory of the host +func MemoryStat() (total, free uint64, err error) { + stat, err := mem.VirtualMemory() + if err != nil { + return 0, 0, err + } + + return stat.Total, stat.Free, nil +} + +// DiskStat stats the current total and free of specified dir +func DiskStat(dir string) (total, free uint64, device, mountPoint string, err error) { + absPath, _ := filepath.Abs(dir) + stat, err := disk.Usage(absPath) + if err != nil { + return 0, 0, "", "", err + } + + point, err := MountPoint(absPath) + if err != nil { + return 0, 0, "", "", err + } + + partitions, _ := disk.Partitions(false) + for _, p := range partitions { + if p.Mountpoint == point { + device = p.Device + break + } + fmt.Println(p.Device, p.Fstype, p.Mountpoint) + } + + return stat.Total, stat.Free, device, point, nil +} + +// LoadStat return average load1, load5 and load15 of the host +func LoadStat() (load1, load5, load15 float64, err error) { + stat, e := load.Avg() + if e != nil { + return 0, 0, 0, e + } + + return stat.Load1, stat.Load5, stat.Load15, nil +} + +// ProcessStat return cpu usage and RSS of the current process +func ProcessStat() (name string, cpuUsage float64, rss uint64, err error) { + p, e := process.NewProcess(int32(os.Getpid())) + if e != nil { + return "", 0, 0, e + } + + stat, e := p.MemoryInfo() + if e != nil { + return "", 0, 0, e + } + + cpuUsage, e = p.CPUPercent() + if e != nil { + return "", 0, 0, e + } + + name, e = p.Name() + if e != nil { + return "", 0, 0, e + } + + return name, cpuUsage, stat.RSS, nil +} + +func MountPoint(absPath string) (string, error) { + pi, err := os.Stat(absPath) + if err != nil { + return "", err + } + + odev := pi.Sys().(*syscall.Stat_t).Dev + + for absPath != "/" { + _path := filepath.Dir(absPath) + + in, err := os.Stat(_path) + if err != nil { + return "", err + } + + if odev != in.Sys().(*syscall.Stat_t).Dev { + break + } + + absPath = _path + } + + return absPath, nil +} diff --git a/weed/storage/sysstat_test.go b/weed/storage/sysstat_test.go new file mode 100644 index 000000000..9e8e7a097 --- /dev/null +++ b/weed/storage/sysstat_test.go @@ -0,0 +1,50 @@ +package storage + +import ( + "fmt" + "github.com/stretchr/testify/assert" + "testing" +) + +func TestMemoryStat(t *testing.T) { + total, free, err := MemoryStat() + assert.Nil(t, err) + + if total <= 0 { + println("total", total, "free", free) + t.Fail() + } +} + +func TestDiskStat(t *testing.T) { + total, free, device, mountPoint, err := DiskStat("..") + assert.Nil(t, err) + + if total <= 0 { + println("total", total, "free", free) + t.Fail() + } + + fmt.Println("device", device, "mountPoint", mountPoint) + +} + +func TestAvgLoad(t *testing.T) { + load1, load5, load15, err := LoadStat() + assert.Nil(t, err) + + if load1 <= 0 { + println("load1", load1, "load5", load5, "load15", load15) + t.Fail() + } +} + +func TestProcessStat(t *testing.T) { + name, cpuUsage, rss, err := ProcessStat() + assert.Nil(t, err) + + if rss <= 0 { + println("name", name, "cpuUsage", cpuUsage, "RSS", rss) + t.Fail() + } +} diff --git a/weed/storage/volume_info.go b/weed/storage/volume_info.go index f6614a9de..8d0501554 100644 --- a/weed/storage/volume_info.go +++ b/weed/storage/volume_info.go @@ -18,6 +18,21 @@ type VolumeInfo struct { DeleteCount int DeletedByteCount uint64 ReadOnly bool + + MemoryTotal uint64 + MemoryFree uint64 + + DiskWatermark uint64 + DiskTotal uint64 + DiskFree uint64 + + DiskDevice string + DiskMountPoint string + Load1 float64 + Load5 float64 + Load15 float64 + ProcessCpuUsage float64 + ProcessRss uint64 } func NewVolumeInfo(m *master_pb.VolumeInformationMessage) (vi VolumeInfo, err error) { @@ -30,6 +45,20 @@ func NewVolumeInfo(m *master_pb.VolumeInformationMessage) (vi VolumeInfo, err er DeletedByteCount: m.DeletedByteCount, ReadOnly: m.ReadOnly, Version: Version(m.Version), + + MemoryTotal: m.MemoryTotal, + MemoryFree: m.MemoryFree, + + DiskWatermark: m.DiskWatermark, + DiskTotal: m.DiskTotal, + DiskFree: m.DiskFree, + DiskDevice: m.DiskDevice, + DiskMountPoint: m.DiskMountPoint, + Load1: m.Load1, + Load5: m.Load5, + Load15: m.Load15, + ProcessCpuUsage: m.ProcessCpuUsage, + ProcessRss: m.ProcessRss, } rp, e := NewReplicaPlacementFromByte(byte(m.ReplicaPlacement)) if e != nil { diff --git a/weed/storage/volume_super_block.go b/weed/storage/volume_super_block.go index 6435a051f..2a3be122e 100644 --- a/weed/storage/volume_super_block.go +++ b/weed/storage/volume_super_block.go @@ -2,12 +2,11 @@ package storage import ( "fmt" - "os" - "github.com/chrislusf/seaweedfs/weed/glog" "github.com/chrislusf/seaweedfs/weed/pb/master_pb" "github.com/chrislusf/seaweedfs/weed/util" "github.com/golang/protobuf/proto" + "os" ) const ( diff --git a/weed/topology/store_replicate.go b/weed/topology/store_replicate.go index 8f7f72175..54579071d 100644 --- a/weed/topology/store_replicate.go +++ b/weed/topology/store_replicate.go @@ -135,7 +135,7 @@ type RemoteResult struct { func distributedOperation(masterNode string, store *storage.Store, volumeId storage.VolumeId, op func(location operation.Location) error) error { if lookupResult, lookupErr := operation.Lookup(masterNode, volumeId.String()); lookupErr == nil { length := 0 - selfUrl := (store.Ip + ":" + strconv.Itoa(store.Port)) + selfUrl := store.Ip + ":" + strconv.Itoa(store.Port) results := make(chan RemoteResult) for _, location := range lookupResult.Locations { if location.Url != selfUrl { diff --git a/weed/topology/topology.go b/weed/topology/topology.go index 4242bfa05..0eb2eb32c 100644 --- a/weed/topology/topology.go +++ b/weed/topology/topology.go @@ -101,12 +101,12 @@ func (t *Topology) HasWritableVolume(option *VolumeGrowOption) bool { } func (t *Topology) PickForWrite(count uint64, option *VolumeGrowOption) (string, uint64, *DataNode, error) { - vid, count, datanodes, err := t.GetVolumeLayout(option.Collection, option.ReplicaPlacement, option.Ttl).PickForWrite(count, option) - if err != nil || datanodes.Length() == 0 { + vid, count, dataNodes, err := t.GetVolumeLayout(option.Collection, option.ReplicaPlacement, option.Ttl).PickForWrite(count, option) + if err != nil || dataNodes.Length() == 0 { return "", 0, nil, errors.New("No writable volumes available!") } fileId, count := t.Sequence.NextFileId(count) - return storage.NewFileId(*vid, fileId, rand.Uint32()).String(), count, datanodes.Head(), nil + return storage.NewFileId(*vid, fileId, rand.Uint32()).String(), count, dataNodes.Head(), nil } func (t *Topology) GetVolumeLayout(collectionName string, rp *storage.ReplicaPlacement, ttl *storage.TTL) *VolumeLayout { diff --git a/weed/topology/topology_event_handling.go b/weed/topology/topology_event_handling.go index a301103eb..c5459204f 100644 --- a/weed/topology/topology_event_handling.go +++ b/weed/topology/topology_event_handling.go @@ -20,7 +20,7 @@ func (t *Topology) StartRefreshWritableVolumes(garbageThreshold float64, preallo }() go func(garbageThreshold float64) { c := time.Tick(15 * time.Minute) - for _ = range c { + for range c { if t.IsLeader() { t.Vacuum(garbageThreshold, preallocate) }