0dcbd3dc08
Change-Id: Id29f14b76a8c9cb2be31001b9a7a4356a4bda183
2987 lines
110 KiB
Go
2987 lines
110 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: inspector.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
_ "github.com/gogo/protobuf/gogoproto"
|
|
proto "github.com/gogo/protobuf/proto"
|
|
duration "github.com/golang/protobuf/ptypes/duration"
|
|
_ "github.com/golang/protobuf/ptypes/timestamp"
|
|
grpc "google.golang.org/grpc"
|
|
math "math"
|
|
drpc "storj.io/drpc"
|
|
time "time"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
var _ = time.Kitchen
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
// ListSegments
|
|
type ListIrreparableSegmentsRequest struct {
|
|
Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
LastSeenSegmentPath []byte `protobuf:"bytes,2,opt,name=last_seen_segment_path,json=lastSeenSegmentPath,proto3" json:"last_seen_segment_path,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ListIrreparableSegmentsRequest) Reset() { *m = ListIrreparableSegmentsRequest{} }
|
|
func (m *ListIrreparableSegmentsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ListIrreparableSegmentsRequest) ProtoMessage() {}
|
|
func (*ListIrreparableSegmentsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{0}
|
|
}
|
|
func (m *ListIrreparableSegmentsRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ListIrreparableSegmentsRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *ListIrreparableSegmentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ListIrreparableSegmentsRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ListIrreparableSegmentsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ListIrreparableSegmentsRequest.Merge(m, src)
|
|
}
|
|
func (m *ListIrreparableSegmentsRequest) XXX_Size() int {
|
|
return xxx_messageInfo_ListIrreparableSegmentsRequest.Size(m)
|
|
}
|
|
func (m *ListIrreparableSegmentsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ListIrreparableSegmentsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ListIrreparableSegmentsRequest proto.InternalMessageInfo
|
|
|
|
func (m *ListIrreparableSegmentsRequest) GetLimit() int32 {
|
|
if m != nil {
|
|
return m.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ListIrreparableSegmentsRequest) GetLastSeenSegmentPath() []byte {
|
|
if m != nil {
|
|
return m.LastSeenSegmentPath
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type IrreparableSegment struct {
|
|
Path []byte `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
|
SegmentDetail *Pointer `protobuf:"bytes,2,opt,name=segment_detail,json=segmentDetail,proto3" json:"segment_detail,omitempty"`
|
|
LostPieces int32 `protobuf:"varint,3,opt,name=lost_pieces,json=lostPieces,proto3" json:"lost_pieces,omitempty"`
|
|
LastRepairAttempt int64 `protobuf:"varint,4,opt,name=last_repair_attempt,json=lastRepairAttempt,proto3" json:"last_repair_attempt,omitempty"`
|
|
RepairAttemptCount int64 `protobuf:"varint,5,opt,name=repair_attempt_count,json=repairAttemptCount,proto3" json:"repair_attempt_count,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *IrreparableSegment) Reset() { *m = IrreparableSegment{} }
|
|
func (m *IrreparableSegment) String() string { return proto.CompactTextString(m) }
|
|
func (*IrreparableSegment) ProtoMessage() {}
|
|
func (*IrreparableSegment) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{1}
|
|
}
|
|
func (m *IrreparableSegment) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_IrreparableSegment.Unmarshal(m, b)
|
|
}
|
|
func (m *IrreparableSegment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_IrreparableSegment.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *IrreparableSegment) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_IrreparableSegment.Merge(m, src)
|
|
}
|
|
func (m *IrreparableSegment) XXX_Size() int {
|
|
return xxx_messageInfo_IrreparableSegment.Size(m)
|
|
}
|
|
func (m *IrreparableSegment) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_IrreparableSegment.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_IrreparableSegment proto.InternalMessageInfo
|
|
|
|
func (m *IrreparableSegment) GetPath() []byte {
|
|
if m != nil {
|
|
return m.Path
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *IrreparableSegment) GetSegmentDetail() *Pointer {
|
|
if m != nil {
|
|
return m.SegmentDetail
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *IrreparableSegment) GetLostPieces() int32 {
|
|
if m != nil {
|
|
return m.LostPieces
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *IrreparableSegment) GetLastRepairAttempt() int64 {
|
|
if m != nil {
|
|
return m.LastRepairAttempt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *IrreparableSegment) GetRepairAttemptCount() int64 {
|
|
if m != nil {
|
|
return m.RepairAttemptCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListIrreparableSegmentsResponse struct {
|
|
Segments []*IrreparableSegment `protobuf:"bytes,1,rep,name=segments,proto3" json:"segments,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ListIrreparableSegmentsResponse) Reset() { *m = ListIrreparableSegmentsResponse{} }
|
|
func (m *ListIrreparableSegmentsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ListIrreparableSegmentsResponse) ProtoMessage() {}
|
|
func (*ListIrreparableSegmentsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{2}
|
|
}
|
|
func (m *ListIrreparableSegmentsResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ListIrreparableSegmentsResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *ListIrreparableSegmentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ListIrreparableSegmentsResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ListIrreparableSegmentsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ListIrreparableSegmentsResponse.Merge(m, src)
|
|
}
|
|
func (m *ListIrreparableSegmentsResponse) XXX_Size() int {
|
|
return xxx_messageInfo_ListIrreparableSegmentsResponse.Size(m)
|
|
}
|
|
func (m *ListIrreparableSegmentsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ListIrreparableSegmentsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ListIrreparableSegmentsResponse proto.InternalMessageInfo
|
|
|
|
func (m *ListIrreparableSegmentsResponse) GetSegments() []*IrreparableSegment {
|
|
if m != nil {
|
|
return m.Segments
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// CountNodes
|
|
type CountNodesResponse struct {
|
|
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CountNodesResponse) Reset() { *m = CountNodesResponse{} }
|
|
func (m *CountNodesResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*CountNodesResponse) ProtoMessage() {}
|
|
func (*CountNodesResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{3}
|
|
}
|
|
func (m *CountNodesResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CountNodesResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *CountNodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CountNodesResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CountNodesResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CountNodesResponse.Merge(m, src)
|
|
}
|
|
func (m *CountNodesResponse) XXX_Size() int {
|
|
return xxx_messageInfo_CountNodesResponse.Size(m)
|
|
}
|
|
func (m *CountNodesResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CountNodesResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CountNodesResponse proto.InternalMessageInfo
|
|
|
|
func (m *CountNodesResponse) GetCount() int64 {
|
|
if m != nil {
|
|
return m.Count
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CountNodesRequest struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CountNodesRequest) Reset() { *m = CountNodesRequest{} }
|
|
func (m *CountNodesRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*CountNodesRequest) ProtoMessage() {}
|
|
func (*CountNodesRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{4}
|
|
}
|
|
func (m *CountNodesRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CountNodesRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *CountNodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CountNodesRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CountNodesRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CountNodesRequest.Merge(m, src)
|
|
}
|
|
func (m *CountNodesRequest) XXX_Size() int {
|
|
return xxx_messageInfo_CountNodesRequest.Size(m)
|
|
}
|
|
func (m *CountNodesRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CountNodesRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CountNodesRequest proto.InternalMessageInfo
|
|
|
|
type GetBucketListRequest struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GetBucketListRequest) Reset() { *m = GetBucketListRequest{} }
|
|
func (m *GetBucketListRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*GetBucketListRequest) ProtoMessage() {}
|
|
func (*GetBucketListRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{5}
|
|
}
|
|
func (m *GetBucketListRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_GetBucketListRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *GetBucketListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_GetBucketListRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *GetBucketListRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetBucketListRequest.Merge(m, src)
|
|
}
|
|
func (m *GetBucketListRequest) XXX_Size() int {
|
|
return xxx_messageInfo_GetBucketListRequest.Size(m)
|
|
}
|
|
func (m *GetBucketListRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GetBucketListRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GetBucketListRequest proto.InternalMessageInfo
|
|
|
|
type GetBucketListResponse struct {
|
|
Buckets []*GetBucketListResponse_Bucket `protobuf:"bytes,1,rep,name=buckets,proto3" json:"buckets,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GetBucketListResponse) Reset() { *m = GetBucketListResponse{} }
|
|
func (m *GetBucketListResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*GetBucketListResponse) ProtoMessage() {}
|
|
func (*GetBucketListResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{6}
|
|
}
|
|
func (m *GetBucketListResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_GetBucketListResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *GetBucketListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_GetBucketListResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *GetBucketListResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetBucketListResponse.Merge(m, src)
|
|
}
|
|
func (m *GetBucketListResponse) XXX_Size() int {
|
|
return xxx_messageInfo_GetBucketListResponse.Size(m)
|
|
}
|
|
func (m *GetBucketListResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GetBucketListResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GetBucketListResponse proto.InternalMessageInfo
|
|
|
|
func (m *GetBucketListResponse) GetBuckets() []*GetBucketListResponse_Bucket {
|
|
if m != nil {
|
|
return m.Buckets
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetBucketListResponse_Bucket struct {
|
|
BucketId NodeID `protobuf:"bytes,1,opt,name=bucket_id,json=bucketId,proto3,customtype=NodeID" json:"bucket_id"`
|
|
RoutingNodes []*Node `protobuf:"bytes,2,rep,name=routing_nodes,json=routingNodes,proto3" json:"routing_nodes,omitempty"`
|
|
CachedNodes []*Node `protobuf:"bytes,3,rep,name=cached_nodes,json=cachedNodes,proto3" json:"cached_nodes,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GetBucketListResponse_Bucket) Reset() { *m = GetBucketListResponse_Bucket{} }
|
|
func (m *GetBucketListResponse_Bucket) String() string { return proto.CompactTextString(m) }
|
|
func (*GetBucketListResponse_Bucket) ProtoMessage() {}
|
|
func (*GetBucketListResponse_Bucket) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{6, 0}
|
|
}
|
|
func (m *GetBucketListResponse_Bucket) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_GetBucketListResponse_Bucket.Unmarshal(m, b)
|
|
}
|
|
func (m *GetBucketListResponse_Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_GetBucketListResponse_Bucket.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *GetBucketListResponse_Bucket) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetBucketListResponse_Bucket.Merge(m, src)
|
|
}
|
|
func (m *GetBucketListResponse_Bucket) XXX_Size() int {
|
|
return xxx_messageInfo_GetBucketListResponse_Bucket.Size(m)
|
|
}
|
|
func (m *GetBucketListResponse_Bucket) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GetBucketListResponse_Bucket.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GetBucketListResponse_Bucket proto.InternalMessageInfo
|
|
|
|
func (m *GetBucketListResponse_Bucket) GetRoutingNodes() []*Node {
|
|
if m != nil {
|
|
return m.RoutingNodes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *GetBucketListResponse_Bucket) GetCachedNodes() []*Node {
|
|
if m != nil {
|
|
return m.CachedNodes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// GetBuckets
|
|
type GetBucketsRequest struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GetBucketsRequest) Reset() { *m = GetBucketsRequest{} }
|
|
func (m *GetBucketsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*GetBucketsRequest) ProtoMessage() {}
|
|
func (*GetBucketsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{7}
|
|
}
|
|
func (m *GetBucketsRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_GetBucketsRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *GetBucketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_GetBucketsRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *GetBucketsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetBucketsRequest.Merge(m, src)
|
|
}
|
|
func (m *GetBucketsRequest) XXX_Size() int {
|
|
return xxx_messageInfo_GetBucketsRequest.Size(m)
|
|
}
|
|
func (m *GetBucketsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GetBucketsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GetBucketsRequest proto.InternalMessageInfo
|
|
|
|
type GetBucketsResponse struct {
|
|
Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
|
|
Ids []NodeID `protobuf:"bytes,2,rep,name=ids,proto3,customtype=NodeID" json:"ids,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GetBucketsResponse) Reset() { *m = GetBucketsResponse{} }
|
|
func (m *GetBucketsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*GetBucketsResponse) ProtoMessage() {}
|
|
func (*GetBucketsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{8}
|
|
}
|
|
func (m *GetBucketsResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_GetBucketsResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *GetBucketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_GetBucketsResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *GetBucketsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetBucketsResponse.Merge(m, src)
|
|
}
|
|
func (m *GetBucketsResponse) XXX_Size() int {
|
|
return xxx_messageInfo_GetBucketsResponse.Size(m)
|
|
}
|
|
func (m *GetBucketsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GetBucketsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GetBucketsResponse proto.InternalMessageInfo
|
|
|
|
func (m *GetBucketsResponse) GetTotal() int64 {
|
|
if m != nil {
|
|
return m.Total
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// GetBucket
|
|
type GetBucketRequest struct {
|
|
Id NodeID `protobuf:"bytes,1,opt,name=id,proto3,customtype=NodeID" json:"id"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GetBucketRequest) Reset() { *m = GetBucketRequest{} }
|
|
func (m *GetBucketRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*GetBucketRequest) ProtoMessage() {}
|
|
func (*GetBucketRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{9}
|
|
}
|
|
func (m *GetBucketRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_GetBucketRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *GetBucketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_GetBucketRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *GetBucketRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetBucketRequest.Merge(m, src)
|
|
}
|
|
func (m *GetBucketRequest) XXX_Size() int {
|
|
return xxx_messageInfo_GetBucketRequest.Size(m)
|
|
}
|
|
func (m *GetBucketRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GetBucketRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GetBucketRequest proto.InternalMessageInfo
|
|
|
|
type GetBucketResponse struct {
|
|
Id NodeID `protobuf:"bytes,1,opt,name=id,proto3,customtype=NodeID" json:"id"`
|
|
Nodes []*Node `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GetBucketResponse) Reset() { *m = GetBucketResponse{} }
|
|
func (m *GetBucketResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*GetBucketResponse) ProtoMessage() {}
|
|
func (*GetBucketResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{10}
|
|
}
|
|
func (m *GetBucketResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_GetBucketResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *GetBucketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_GetBucketResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *GetBucketResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetBucketResponse.Merge(m, src)
|
|
}
|
|
func (m *GetBucketResponse) XXX_Size() int {
|
|
return xxx_messageInfo_GetBucketResponse.Size(m)
|
|
}
|
|
func (m *GetBucketResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GetBucketResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GetBucketResponse proto.InternalMessageInfo
|
|
|
|
func (m *GetBucketResponse) GetNodes() []*Node {
|
|
if m != nil {
|
|
return m.Nodes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type BucketList struct {
|
|
Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *BucketList) Reset() { *m = BucketList{} }
|
|
func (m *BucketList) String() string { return proto.CompactTextString(m) }
|
|
func (*BucketList) ProtoMessage() {}
|
|
func (*BucketList) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{11}
|
|
}
|
|
func (m *BucketList) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_BucketList.Unmarshal(m, b)
|
|
}
|
|
func (m *BucketList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_BucketList.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *BucketList) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BucketList.Merge(m, src)
|
|
}
|
|
func (m *BucketList) XXX_Size() int {
|
|
return xxx_messageInfo_BucketList.Size(m)
|
|
}
|
|
func (m *BucketList) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BucketList.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BucketList proto.InternalMessageInfo
|
|
|
|
func (m *BucketList) GetNodes() []*Node {
|
|
if m != nil {
|
|
return m.Nodes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// PingNode
|
|
type PingNodeRequest struct {
|
|
Id NodeID `protobuf:"bytes,1,opt,name=id,proto3,customtype=NodeID" json:"id"`
|
|
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PingNodeRequest) Reset() { *m = PingNodeRequest{} }
|
|
func (m *PingNodeRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*PingNodeRequest) ProtoMessage() {}
|
|
func (*PingNodeRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{12}
|
|
}
|
|
func (m *PingNodeRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_PingNodeRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *PingNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_PingNodeRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *PingNodeRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PingNodeRequest.Merge(m, src)
|
|
}
|
|
func (m *PingNodeRequest) XXX_Size() int {
|
|
return xxx_messageInfo_PingNodeRequest.Size(m)
|
|
}
|
|
func (m *PingNodeRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PingNodeRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PingNodeRequest proto.InternalMessageInfo
|
|
|
|
func (m *PingNodeRequest) GetAddress() string {
|
|
if m != nil {
|
|
return m.Address
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PingNodeResponse struct {
|
|
Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PingNodeResponse) Reset() { *m = PingNodeResponse{} }
|
|
func (m *PingNodeResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*PingNodeResponse) ProtoMessage() {}
|
|
func (*PingNodeResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{13}
|
|
}
|
|
func (m *PingNodeResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_PingNodeResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *PingNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_PingNodeResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *PingNodeResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PingNodeResponse.Merge(m, src)
|
|
}
|
|
func (m *PingNodeResponse) XXX_Size() int {
|
|
return xxx_messageInfo_PingNodeResponse.Size(m)
|
|
}
|
|
func (m *PingNodeResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PingNodeResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PingNodeResponse proto.InternalMessageInfo
|
|
|
|
func (m *PingNodeResponse) GetOk() bool {
|
|
if m != nil {
|
|
return m.Ok
|
|
}
|
|
return false
|
|
}
|
|
|
|
type LookupNodeRequest struct {
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *LookupNodeRequest) Reset() { *m = LookupNodeRequest{} }
|
|
func (m *LookupNodeRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*LookupNodeRequest) ProtoMessage() {}
|
|
func (*LookupNodeRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{14}
|
|
}
|
|
func (m *LookupNodeRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_LookupNodeRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *LookupNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_LookupNodeRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *LookupNodeRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_LookupNodeRequest.Merge(m, src)
|
|
}
|
|
func (m *LookupNodeRequest) XXX_Size() int {
|
|
return xxx_messageInfo_LookupNodeRequest.Size(m)
|
|
}
|
|
func (m *LookupNodeRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_LookupNodeRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_LookupNodeRequest proto.InternalMessageInfo
|
|
|
|
func (m *LookupNodeRequest) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *LookupNodeRequest) GetAddress() string {
|
|
if m != nil {
|
|
return m.Address
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type LookupNodeResponse struct {
|
|
Node *Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
|
|
Meta *NodeMetadata `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *LookupNodeResponse) Reset() { *m = LookupNodeResponse{} }
|
|
func (m *LookupNodeResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*LookupNodeResponse) ProtoMessage() {}
|
|
func (*LookupNodeResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{15}
|
|
}
|
|
func (m *LookupNodeResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_LookupNodeResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *LookupNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_LookupNodeResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *LookupNodeResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_LookupNodeResponse.Merge(m, src)
|
|
}
|
|
func (m *LookupNodeResponse) XXX_Size() int {
|
|
return xxx_messageInfo_LookupNodeResponse.Size(m)
|
|
}
|
|
func (m *LookupNodeResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_LookupNodeResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_LookupNodeResponse proto.InternalMessageInfo
|
|
|
|
func (m *LookupNodeResponse) GetNode() *Node {
|
|
if m != nil {
|
|
return m.Node
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *LookupNodeResponse) GetMeta() *NodeMetadata {
|
|
if m != nil {
|
|
return m.Meta
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type NodeInfoRequest struct {
|
|
Id NodeID `protobuf:"bytes,1,opt,name=id,proto3,customtype=NodeID" json:"id"`
|
|
Address *NodeAddress `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *NodeInfoRequest) Reset() { *m = NodeInfoRequest{} }
|
|
func (m *NodeInfoRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*NodeInfoRequest) ProtoMessage() {}
|
|
func (*NodeInfoRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{16}
|
|
}
|
|
func (m *NodeInfoRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_NodeInfoRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *NodeInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_NodeInfoRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *NodeInfoRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_NodeInfoRequest.Merge(m, src)
|
|
}
|
|
func (m *NodeInfoRequest) XXX_Size() int {
|
|
return xxx_messageInfo_NodeInfoRequest.Size(m)
|
|
}
|
|
func (m *NodeInfoRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_NodeInfoRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_NodeInfoRequest proto.InternalMessageInfo
|
|
|
|
func (m *NodeInfoRequest) GetAddress() *NodeAddress {
|
|
if m != nil {
|
|
return m.Address
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type NodeInfoResponse struct {
|
|
Type NodeType `protobuf:"varint,1,opt,name=type,proto3,enum=node.NodeType" json:"type,omitempty"`
|
|
Operator *NodeOperator `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
|
|
Capacity *NodeCapacity `protobuf:"bytes,3,opt,name=capacity,proto3" json:"capacity,omitempty"`
|
|
Version *NodeVersion `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *NodeInfoResponse) Reset() { *m = NodeInfoResponse{} }
|
|
func (m *NodeInfoResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*NodeInfoResponse) ProtoMessage() {}
|
|
func (*NodeInfoResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{17}
|
|
}
|
|
func (m *NodeInfoResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_NodeInfoResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *NodeInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_NodeInfoResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *NodeInfoResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_NodeInfoResponse.Merge(m, src)
|
|
}
|
|
func (m *NodeInfoResponse) XXX_Size() int {
|
|
return xxx_messageInfo_NodeInfoResponse.Size(m)
|
|
}
|
|
func (m *NodeInfoResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_NodeInfoResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_NodeInfoResponse proto.InternalMessageInfo
|
|
|
|
func (m *NodeInfoResponse) GetType() NodeType {
|
|
if m != nil {
|
|
return m.Type
|
|
}
|
|
return NodeType_INVALID
|
|
}
|
|
|
|
func (m *NodeInfoResponse) GetOperator() *NodeOperator {
|
|
if m != nil {
|
|
return m.Operator
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *NodeInfoResponse) GetCapacity() *NodeCapacity {
|
|
if m != nil {
|
|
return m.Capacity
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *NodeInfoResponse) GetVersion() *NodeVersion {
|
|
if m != nil {
|
|
return m.Version
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type FindNearRequest struct {
|
|
Id NodeID `protobuf:"bytes,1,opt,name=id,proto3,customtype=NodeID" json:"id"`
|
|
Start NodeID `protobuf:"bytes,2,opt,name=start,proto3,customtype=NodeID" json:"start"`
|
|
Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *FindNearRequest) Reset() { *m = FindNearRequest{} }
|
|
func (m *FindNearRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*FindNearRequest) ProtoMessage() {}
|
|
func (*FindNearRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{18}
|
|
}
|
|
func (m *FindNearRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_FindNearRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *FindNearRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_FindNearRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *FindNearRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_FindNearRequest.Merge(m, src)
|
|
}
|
|
func (m *FindNearRequest) XXX_Size() int {
|
|
return xxx_messageInfo_FindNearRequest.Size(m)
|
|
}
|
|
func (m *FindNearRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_FindNearRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_FindNearRequest proto.InternalMessageInfo
|
|
|
|
func (m *FindNearRequest) GetLimit() int64 {
|
|
if m != nil {
|
|
return m.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FindNearResponse struct {
|
|
Nodes []*Node `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *FindNearResponse) Reset() { *m = FindNearResponse{} }
|
|
func (m *FindNearResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*FindNearResponse) ProtoMessage() {}
|
|
func (*FindNearResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{19}
|
|
}
|
|
func (m *FindNearResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_FindNearResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *FindNearResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_FindNearResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *FindNearResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_FindNearResponse.Merge(m, src)
|
|
}
|
|
func (m *FindNearResponse) XXX_Size() int {
|
|
return xxx_messageInfo_FindNearResponse.Size(m)
|
|
}
|
|
func (m *FindNearResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_FindNearResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_FindNearResponse proto.InternalMessageInfo
|
|
|
|
func (m *FindNearResponse) GetNodes() []*Node {
|
|
if m != nil {
|
|
return m.Nodes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DumpNodesRequest struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DumpNodesRequest) Reset() { *m = DumpNodesRequest{} }
|
|
func (m *DumpNodesRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*DumpNodesRequest) ProtoMessage() {}
|
|
func (*DumpNodesRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{20}
|
|
}
|
|
func (m *DumpNodesRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DumpNodesRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *DumpNodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DumpNodesRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *DumpNodesRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DumpNodesRequest.Merge(m, src)
|
|
}
|
|
func (m *DumpNodesRequest) XXX_Size() int {
|
|
return xxx_messageInfo_DumpNodesRequest.Size(m)
|
|
}
|
|
func (m *DumpNodesRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DumpNodesRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DumpNodesRequest proto.InternalMessageInfo
|
|
|
|
type DumpNodesResponse struct {
|
|
Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DumpNodesResponse) Reset() { *m = DumpNodesResponse{} }
|
|
func (m *DumpNodesResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*DumpNodesResponse) ProtoMessage() {}
|
|
func (*DumpNodesResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{21}
|
|
}
|
|
func (m *DumpNodesResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DumpNodesResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *DumpNodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DumpNodesResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *DumpNodesResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DumpNodesResponse.Merge(m, src)
|
|
}
|
|
func (m *DumpNodesResponse) XXX_Size() int {
|
|
return xxx_messageInfo_DumpNodesResponse.Size(m)
|
|
}
|
|
func (m *DumpNodesResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DumpNodesResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DumpNodesResponse proto.InternalMessageInfo
|
|
|
|
func (m *DumpNodesResponse) GetNodes() []*Node {
|
|
if m != nil {
|
|
return m.Nodes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type StatsRequest struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *StatsRequest) Reset() { *m = StatsRequest{} }
|
|
func (m *StatsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*StatsRequest) ProtoMessage() {}
|
|
func (*StatsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{22}
|
|
}
|
|
func (m *StatsRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_StatsRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *StatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_StatsRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *StatsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_StatsRequest.Merge(m, src)
|
|
}
|
|
func (m *StatsRequest) XXX_Size() int {
|
|
return xxx_messageInfo_StatsRequest.Size(m)
|
|
}
|
|
func (m *StatsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_StatsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_StatsRequest proto.InternalMessageInfo
|
|
|
|
type StatSummaryResponse struct {
|
|
UsedSpace int64 `protobuf:"varint,1,opt,name=used_space,json=usedSpace,proto3" json:"used_space,omitempty"`
|
|
AvailableSpace int64 `protobuf:"varint,2,opt,name=available_space,json=availableSpace,proto3" json:"available_space,omitempty"`
|
|
UsedIngress int64 `protobuf:"varint,3,opt,name=used_ingress,json=usedIngress,proto3" json:"used_ingress,omitempty"`
|
|
UsedEgress int64 `protobuf:"varint,4,opt,name=used_egress,json=usedEgress,proto3" json:"used_egress,omitempty"`
|
|
UsedBandwidth int64 `protobuf:"varint,5,opt,name=used_bandwidth,json=usedBandwidth,proto3" json:"used_bandwidth,omitempty"`
|
|
AvailableBandwidth int64 `protobuf:"varint,6,opt,name=available_bandwidth,json=availableBandwidth,proto3" json:"available_bandwidth,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *StatSummaryResponse) Reset() { *m = StatSummaryResponse{} }
|
|
func (m *StatSummaryResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*StatSummaryResponse) ProtoMessage() {}
|
|
func (*StatSummaryResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{23}
|
|
}
|
|
func (m *StatSummaryResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_StatSummaryResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *StatSummaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_StatSummaryResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *StatSummaryResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_StatSummaryResponse.Merge(m, src)
|
|
}
|
|
func (m *StatSummaryResponse) XXX_Size() int {
|
|
return xxx_messageInfo_StatSummaryResponse.Size(m)
|
|
}
|
|
func (m *StatSummaryResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_StatSummaryResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_StatSummaryResponse proto.InternalMessageInfo
|
|
|
|
func (m *StatSummaryResponse) GetUsedSpace() int64 {
|
|
if m != nil {
|
|
return m.UsedSpace
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *StatSummaryResponse) GetAvailableSpace() int64 {
|
|
if m != nil {
|
|
return m.AvailableSpace
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *StatSummaryResponse) GetUsedIngress() int64 {
|
|
if m != nil {
|
|
return m.UsedIngress
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *StatSummaryResponse) GetUsedEgress() int64 {
|
|
if m != nil {
|
|
return m.UsedEgress
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *StatSummaryResponse) GetUsedBandwidth() int64 {
|
|
if m != nil {
|
|
return m.UsedBandwidth
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *StatSummaryResponse) GetAvailableBandwidth() int64 {
|
|
if m != nil {
|
|
return m.AvailableBandwidth
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DashboardRequest struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DashboardRequest) Reset() { *m = DashboardRequest{} }
|
|
func (m *DashboardRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*DashboardRequest) ProtoMessage() {}
|
|
func (*DashboardRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{24}
|
|
}
|
|
func (m *DashboardRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DashboardRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *DashboardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DashboardRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *DashboardRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DashboardRequest.Merge(m, src)
|
|
}
|
|
func (m *DashboardRequest) XXX_Size() int {
|
|
return xxx_messageInfo_DashboardRequest.Size(m)
|
|
}
|
|
func (m *DashboardRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DashboardRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DashboardRequest proto.InternalMessageInfo
|
|
|
|
type DashboardResponse struct {
|
|
NodeId NodeID `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3,customtype=NodeID" json:"node_id"`
|
|
NodeConnections int64 `protobuf:"varint,2,opt,name=node_connections,json=nodeConnections,proto3" json:"node_connections,omitempty"`
|
|
BootstrapAddress string `protobuf:"bytes,3,opt,name=bootstrap_address,json=bootstrapAddress,proto3" json:"bootstrap_address,omitempty"`
|
|
InternalAddress string `protobuf:"bytes,4,opt,name=internal_address,json=internalAddress,proto3" json:"internal_address,omitempty"`
|
|
ExternalAddress string `protobuf:"bytes,5,opt,name=external_address,json=externalAddress,proto3" json:"external_address,omitempty"`
|
|
DashboardAddress string `protobuf:"bytes,6,opt,name=dashboard_address,json=dashboardAddress,proto3" json:"dashboard_address,omitempty"`
|
|
Stats *StatSummaryResponse `protobuf:"bytes,7,opt,name=stats,proto3" json:"stats,omitempty"`
|
|
Uptime *duration.Duration `protobuf:"bytes,8,opt,name=uptime,proto3" json:"uptime,omitempty"`
|
|
LastPinged time.Time `protobuf:"bytes,9,opt,name=last_pinged,json=lastPinged,proto3,stdtime" json:"last_pinged"`
|
|
LastQueried time.Time `protobuf:"bytes,10,opt,name=last_queried,json=lastQueried,proto3,stdtime" json:"last_queried"`
|
|
LastPingFromId *NodeID `protobuf:"bytes,11,opt,name=last_ping_from_id,json=lastPingFromId,proto3,customtype=NodeID" json:"last_ping_from_id,omitempty"`
|
|
LastPingFromAddress string `protobuf:"bytes,12,opt,name=last_ping_from_address,json=lastPingFromAddress,proto3" json:"last_ping_from_address,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DashboardResponse) Reset() { *m = DashboardResponse{} }
|
|
func (m *DashboardResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*DashboardResponse) ProtoMessage() {}
|
|
func (*DashboardResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{25}
|
|
}
|
|
func (m *DashboardResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DashboardResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *DashboardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DashboardResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *DashboardResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DashboardResponse.Merge(m, src)
|
|
}
|
|
func (m *DashboardResponse) XXX_Size() int {
|
|
return xxx_messageInfo_DashboardResponse.Size(m)
|
|
}
|
|
func (m *DashboardResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DashboardResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DashboardResponse proto.InternalMessageInfo
|
|
|
|
func (m *DashboardResponse) GetNodeConnections() int64 {
|
|
if m != nil {
|
|
return m.NodeConnections
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *DashboardResponse) GetBootstrapAddress() string {
|
|
if m != nil {
|
|
return m.BootstrapAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DashboardResponse) GetInternalAddress() string {
|
|
if m != nil {
|
|
return m.InternalAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DashboardResponse) GetExternalAddress() string {
|
|
if m != nil {
|
|
return m.ExternalAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DashboardResponse) GetDashboardAddress() string {
|
|
if m != nil {
|
|
return m.DashboardAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DashboardResponse) GetStats() *StatSummaryResponse {
|
|
if m != nil {
|
|
return m.Stats
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *DashboardResponse) GetUptime() *duration.Duration {
|
|
if m != nil {
|
|
return m.Uptime
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *DashboardResponse) GetLastPinged() time.Time {
|
|
if m != nil {
|
|
return m.LastPinged
|
|
}
|
|
return time.Time{}
|
|
}
|
|
|
|
func (m *DashboardResponse) GetLastQueried() time.Time {
|
|
if m != nil {
|
|
return m.LastQueried
|
|
}
|
|
return time.Time{}
|
|
}
|
|
|
|
func (m *DashboardResponse) GetLastPingFromAddress() string {
|
|
if m != nil {
|
|
return m.LastPingFromAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SegmentHealthRequest struct {
|
|
Bucket []byte `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
|
|
EncryptedPath []byte `protobuf:"bytes,2,opt,name=encrypted_path,json=encryptedPath,proto3" json:"encrypted_path,omitempty"`
|
|
SegmentIndex int64 `protobuf:"varint,3,opt,name=segment_index,json=segmentIndex,proto3" json:"segment_index,omitempty"`
|
|
ProjectId []byte `protobuf:"bytes,4,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SegmentHealthRequest) Reset() { *m = SegmentHealthRequest{} }
|
|
func (m *SegmentHealthRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*SegmentHealthRequest) ProtoMessage() {}
|
|
func (*SegmentHealthRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{26}
|
|
}
|
|
func (m *SegmentHealthRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SegmentHealthRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *SegmentHealthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SegmentHealthRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *SegmentHealthRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SegmentHealthRequest.Merge(m, src)
|
|
}
|
|
func (m *SegmentHealthRequest) XXX_Size() int {
|
|
return xxx_messageInfo_SegmentHealthRequest.Size(m)
|
|
}
|
|
func (m *SegmentHealthRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SegmentHealthRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SegmentHealthRequest proto.InternalMessageInfo
|
|
|
|
func (m *SegmentHealthRequest) GetBucket() []byte {
|
|
if m != nil {
|
|
return m.Bucket
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *SegmentHealthRequest) GetEncryptedPath() []byte {
|
|
if m != nil {
|
|
return m.EncryptedPath
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *SegmentHealthRequest) GetSegmentIndex() int64 {
|
|
if m != nil {
|
|
return m.SegmentIndex
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *SegmentHealthRequest) GetProjectId() []byte {
|
|
if m != nil {
|
|
return m.ProjectId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SegmentHealth struct {
|
|
HealthyIds []NodeID `protobuf:"bytes,1,rep,name=healthy_ids,json=healthyIds,proto3,customtype=NodeID" json:"healthy_ids,omitempty"`
|
|
UnhealthyIds []NodeID `protobuf:"bytes,2,rep,name=unhealthy_ids,json=unhealthyIds,proto3,customtype=NodeID" json:"unhealthy_ids,omitempty"`
|
|
OfflineIds []NodeID `protobuf:"bytes,3,rep,name=offline_ids,json=offlineIds,proto3,customtype=NodeID" json:"offline_ids,omitempty"`
|
|
Segment []byte `protobuf:"bytes,4,opt,name=segment,proto3" json:"segment,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SegmentHealth) Reset() { *m = SegmentHealth{} }
|
|
func (m *SegmentHealth) String() string { return proto.CompactTextString(m) }
|
|
func (*SegmentHealth) ProtoMessage() {}
|
|
func (*SegmentHealth) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{27}
|
|
}
|
|
func (m *SegmentHealth) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SegmentHealth.Unmarshal(m, b)
|
|
}
|
|
func (m *SegmentHealth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SegmentHealth.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *SegmentHealth) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SegmentHealth.Merge(m, src)
|
|
}
|
|
func (m *SegmentHealth) XXX_Size() int {
|
|
return xxx_messageInfo_SegmentHealth.Size(m)
|
|
}
|
|
func (m *SegmentHealth) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SegmentHealth.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SegmentHealth proto.InternalMessageInfo
|
|
|
|
func (m *SegmentHealth) GetSegment() []byte {
|
|
if m != nil {
|
|
return m.Segment
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SegmentHealthResponse struct {
|
|
Health *SegmentHealth `protobuf:"bytes,1,opt,name=health,proto3" json:"health,omitempty"`
|
|
Redundancy *RedundancyScheme `protobuf:"bytes,2,opt,name=redundancy,proto3" json:"redundancy,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SegmentHealthResponse) Reset() { *m = SegmentHealthResponse{} }
|
|
func (m *SegmentHealthResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*SegmentHealthResponse) ProtoMessage() {}
|
|
func (*SegmentHealthResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{28}
|
|
}
|
|
func (m *SegmentHealthResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SegmentHealthResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *SegmentHealthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SegmentHealthResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *SegmentHealthResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SegmentHealthResponse.Merge(m, src)
|
|
}
|
|
func (m *SegmentHealthResponse) XXX_Size() int {
|
|
return xxx_messageInfo_SegmentHealthResponse.Size(m)
|
|
}
|
|
func (m *SegmentHealthResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SegmentHealthResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SegmentHealthResponse proto.InternalMessageInfo
|
|
|
|
func (m *SegmentHealthResponse) GetHealth() *SegmentHealth {
|
|
if m != nil {
|
|
return m.Health
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *SegmentHealthResponse) GetRedundancy() *RedundancyScheme {
|
|
if m != nil {
|
|
return m.Redundancy
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ObjectHealthRequest struct {
|
|
EncryptedPath []byte `protobuf:"bytes,1,opt,name=encrypted_path,json=encryptedPath,proto3" json:"encrypted_path,omitempty"`
|
|
Bucket []byte `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"`
|
|
ProjectId []byte `protobuf:"bytes,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
|
|
StartAfterSegment int64 `protobuf:"varint,4,opt,name=start_after_segment,json=startAfterSegment,proto3" json:"start_after_segment,omitempty"`
|
|
EndBeforeSegment int64 `protobuf:"varint,5,opt,name=end_before_segment,json=endBeforeSegment,proto3" json:"end_before_segment,omitempty"`
|
|
Limit int32 `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ObjectHealthRequest) Reset() { *m = ObjectHealthRequest{} }
|
|
func (m *ObjectHealthRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ObjectHealthRequest) ProtoMessage() {}
|
|
func (*ObjectHealthRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{29}
|
|
}
|
|
func (m *ObjectHealthRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ObjectHealthRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *ObjectHealthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ObjectHealthRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ObjectHealthRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ObjectHealthRequest.Merge(m, src)
|
|
}
|
|
func (m *ObjectHealthRequest) XXX_Size() int {
|
|
return xxx_messageInfo_ObjectHealthRequest.Size(m)
|
|
}
|
|
func (m *ObjectHealthRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ObjectHealthRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ObjectHealthRequest proto.InternalMessageInfo
|
|
|
|
func (m *ObjectHealthRequest) GetEncryptedPath() []byte {
|
|
if m != nil {
|
|
return m.EncryptedPath
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ObjectHealthRequest) GetBucket() []byte {
|
|
if m != nil {
|
|
return m.Bucket
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ObjectHealthRequest) GetProjectId() []byte {
|
|
if m != nil {
|
|
return m.ProjectId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ObjectHealthRequest) GetStartAfterSegment() int64 {
|
|
if m != nil {
|
|
return m.StartAfterSegment
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ObjectHealthRequest) GetEndBeforeSegment() int64 {
|
|
if m != nil {
|
|
return m.EndBeforeSegment
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ObjectHealthRequest) GetLimit() int32 {
|
|
if m != nil {
|
|
return m.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ObjectHealthResponse struct {
|
|
Segments []*SegmentHealth `protobuf:"bytes,1,rep,name=segments,proto3" json:"segments,omitempty"`
|
|
Redundancy *RedundancyScheme `protobuf:"bytes,2,opt,name=redundancy,proto3" json:"redundancy,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ObjectHealthResponse) Reset() { *m = ObjectHealthResponse{} }
|
|
func (m *ObjectHealthResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ObjectHealthResponse) ProtoMessage() {}
|
|
func (*ObjectHealthResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{30}
|
|
}
|
|
func (m *ObjectHealthResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ObjectHealthResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *ObjectHealthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ObjectHealthResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ObjectHealthResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ObjectHealthResponse.Merge(m, src)
|
|
}
|
|
func (m *ObjectHealthResponse) XXX_Size() int {
|
|
return xxx_messageInfo_ObjectHealthResponse.Size(m)
|
|
}
|
|
func (m *ObjectHealthResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ObjectHealthResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ObjectHealthResponse proto.InternalMessageInfo
|
|
|
|
func (m *ObjectHealthResponse) GetSegments() []*SegmentHealth {
|
|
if m != nil {
|
|
return m.Segments
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ObjectHealthResponse) GetRedundancy() *RedundancyScheme {
|
|
if m != nil {
|
|
return m.Redundancy
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*ListIrreparableSegmentsRequest)(nil), "inspector.ListIrreparableSegmentsRequest")
|
|
proto.RegisterType((*IrreparableSegment)(nil), "inspector.IrreparableSegment")
|
|
proto.RegisterType((*ListIrreparableSegmentsResponse)(nil), "inspector.ListIrreparableSegmentsResponse")
|
|
proto.RegisterType((*CountNodesResponse)(nil), "inspector.CountNodesResponse")
|
|
proto.RegisterType((*CountNodesRequest)(nil), "inspector.CountNodesRequest")
|
|
proto.RegisterType((*GetBucketListRequest)(nil), "inspector.GetBucketListRequest")
|
|
proto.RegisterType((*GetBucketListResponse)(nil), "inspector.GetBucketListResponse")
|
|
proto.RegisterType((*GetBucketListResponse_Bucket)(nil), "inspector.GetBucketListResponse.Bucket")
|
|
proto.RegisterType((*GetBucketsRequest)(nil), "inspector.GetBucketsRequest")
|
|
proto.RegisterType((*GetBucketsResponse)(nil), "inspector.GetBucketsResponse")
|
|
proto.RegisterType((*GetBucketRequest)(nil), "inspector.GetBucketRequest")
|
|
proto.RegisterType((*GetBucketResponse)(nil), "inspector.GetBucketResponse")
|
|
proto.RegisterType((*BucketList)(nil), "inspector.BucketList")
|
|
proto.RegisterType((*PingNodeRequest)(nil), "inspector.PingNodeRequest")
|
|
proto.RegisterType((*PingNodeResponse)(nil), "inspector.PingNodeResponse")
|
|
proto.RegisterType((*LookupNodeRequest)(nil), "inspector.LookupNodeRequest")
|
|
proto.RegisterType((*LookupNodeResponse)(nil), "inspector.LookupNodeResponse")
|
|
proto.RegisterType((*NodeInfoRequest)(nil), "inspector.NodeInfoRequest")
|
|
proto.RegisterType((*NodeInfoResponse)(nil), "inspector.NodeInfoResponse")
|
|
proto.RegisterType((*FindNearRequest)(nil), "inspector.FindNearRequest")
|
|
proto.RegisterType((*FindNearResponse)(nil), "inspector.FindNearResponse")
|
|
proto.RegisterType((*DumpNodesRequest)(nil), "inspector.DumpNodesRequest")
|
|
proto.RegisterType((*DumpNodesResponse)(nil), "inspector.DumpNodesResponse")
|
|
proto.RegisterType((*StatsRequest)(nil), "inspector.StatsRequest")
|
|
proto.RegisterType((*StatSummaryResponse)(nil), "inspector.StatSummaryResponse")
|
|
proto.RegisterType((*DashboardRequest)(nil), "inspector.DashboardRequest")
|
|
proto.RegisterType((*DashboardResponse)(nil), "inspector.DashboardResponse")
|
|
proto.RegisterType((*SegmentHealthRequest)(nil), "inspector.SegmentHealthRequest")
|
|
proto.RegisterType((*SegmentHealth)(nil), "inspector.SegmentHealth")
|
|
proto.RegisterType((*SegmentHealthResponse)(nil), "inspector.SegmentHealthResponse")
|
|
proto.RegisterType((*ObjectHealthRequest)(nil), "inspector.ObjectHealthRequest")
|
|
proto.RegisterType((*ObjectHealthResponse)(nil), "inspector.ObjectHealthResponse")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("inspector.proto", fileDescriptor_a07d9034b2dd9d26) }
|
|
|
|
var fileDescriptor_a07d9034b2dd9d26 = []byte{
|
|
// 1728 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4b, 0x73, 0x23, 0x49,
|
|
0x11, 0x76, 0xeb, 0x65, 0x29, 0x25, 0xeb, 0x51, 0xf6, 0xce, 0x0a, 0xed, 0x8c, 0x65, 0x9a, 0xc7,
|
|
0x78, 0xd7, 0x20, 0x2f, 0xda, 0xd9, 0xc3, 0x06, 0xc1, 0xc1, 0xb2, 0x77, 0x76, 0x14, 0x3b, 0xcc,
|
|
0x78, 0xda, 0x03, 0x07, 0x62, 0x82, 0x8e, 0x92, 0xaa, 0x2c, 0x35, 0x96, 0xba, 0x7a, 0xba, 0x4b,
|
|
0xc3, 0xe8, 0x0f, 0x10, 0x70, 0x82, 0x0b, 0x07, 0xce, 0x04, 0xff, 0x80, 0x13, 0x57, 0x2e, 0xfc,
|
|
0x06, 0x0e, 0xc3, 0x0d, 0xee, 0xdc, 0x88, 0xe0, 0x40, 0xd4, 0xa3, 0xab, 0xbb, 0xf5, 0xc0, 0x26,
|
|
0x80, 0x9b, 0x3a, 0xf3, 0xcb, 0xac, 0xaf, 0xb2, 0x1e, 0xf9, 0x95, 0xa0, 0xe1, 0xf9, 0x51, 0x40,
|
|
0xc7, 0x9c, 0x85,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, 0x17, 0x8c, 0x46, 0x25, 0x29, 0x4b,
|
|
0x3e, 0xf9, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x55, 0xd5, 0x03, 0xf3, 0x6d, 0x13, 0x00, 0x00,
|
|
}
|
|
|
|
type DRPCKadInspectorClient interface {
|
|
DRPCConn() drpc.Conn
|
|
|
|
// CountNodes returns the number of nodes in the routing table
|
|
CountNodes(ctx context.Context, in *CountNodesRequest) (*CountNodesResponse, error)
|
|
// PingNode sends a PING RPC to a node and returns its availability
|
|
PingNode(ctx context.Context, in *PingNodeRequest) (*PingNodeResponse, error)
|
|
// LookupNode triggers a Kademlia FindNode and returns the response
|
|
LookupNode(ctx context.Context, in *LookupNodeRequest) (*LookupNodeResponse, error)
|
|
// NodeInfo sends a PING RPC to a node and returns its local info
|
|
NodeInfo(ctx context.Context, in *NodeInfoRequest) (*NodeInfoResponse, error)
|
|
// FindNear returns limit number of IDs "near" the Start ID
|
|
FindNear(ctx context.Context, in *FindNearRequest) (*FindNearResponse, error)
|
|
// DumpNodes returns all the nodes in the node database
|
|
DumpNodes(ctx context.Context, in *DumpNodesRequest) (*DumpNodesResponse, error)
|
|
// GetBucketList returns all the buckets with all their nodes
|
|
GetBucketList(ctx context.Context, in *GetBucketListRequest) (*GetBucketListResponse, error)
|
|
}
|
|
|
|
type drpcKadInspectorClient struct {
|
|
cc drpc.Conn
|
|
}
|
|
|
|
func NewDRPCKadInspectorClient(cc drpc.Conn) DRPCKadInspectorClient {
|
|
return &drpcKadInspectorClient{cc}
|
|
}
|
|
|
|
func (c *drpcKadInspectorClient) DRPCConn() drpc.Conn { return c.cc }
|
|
|
|
func (c *drpcKadInspectorClient) CountNodes(ctx context.Context, in *CountNodesRequest) (*CountNodesResponse, error) {
|
|
out := new(CountNodesResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/CountNodes", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *drpcKadInspectorClient) PingNode(ctx context.Context, in *PingNodeRequest) (*PingNodeResponse, error) {
|
|
out := new(PingNodeResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/PingNode", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *drpcKadInspectorClient) LookupNode(ctx context.Context, in *LookupNodeRequest) (*LookupNodeResponse, error) {
|
|
out := new(LookupNodeResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/LookupNode", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *drpcKadInspectorClient) NodeInfo(ctx context.Context, in *NodeInfoRequest) (*NodeInfoResponse, error) {
|
|
out := new(NodeInfoResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/NodeInfo", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *drpcKadInspectorClient) FindNear(ctx context.Context, in *FindNearRequest) (*FindNearResponse, error) {
|
|
out := new(FindNearResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/FindNear", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *drpcKadInspectorClient) DumpNodes(ctx context.Context, in *DumpNodesRequest) (*DumpNodesResponse, error) {
|
|
out := new(DumpNodesResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/DumpNodes", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *drpcKadInspectorClient) GetBucketList(ctx context.Context, in *GetBucketListRequest) (*GetBucketListResponse, error) {
|
|
out := new(GetBucketListResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/GetBucketList", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
type DRPCKadInspectorServer interface {
|
|
// CountNodes returns the number of nodes in the routing table
|
|
CountNodes(context.Context, *CountNodesRequest) (*CountNodesResponse, error)
|
|
// PingNode sends a PING RPC to a node and returns its availability
|
|
PingNode(context.Context, *PingNodeRequest) (*PingNodeResponse, error)
|
|
// LookupNode triggers a Kademlia FindNode and returns the response
|
|
LookupNode(context.Context, *LookupNodeRequest) (*LookupNodeResponse, error)
|
|
// NodeInfo sends a PING RPC to a node and returns its local info
|
|
NodeInfo(context.Context, *NodeInfoRequest) (*NodeInfoResponse, error)
|
|
// FindNear returns limit number of IDs "near" the Start ID
|
|
FindNear(context.Context, *FindNearRequest) (*FindNearResponse, error)
|
|
// DumpNodes returns all the nodes in the node database
|
|
DumpNodes(context.Context, *DumpNodesRequest) (*DumpNodesResponse, error)
|
|
// GetBucketList returns all the buckets with all their nodes
|
|
GetBucketList(context.Context, *GetBucketListRequest) (*GetBucketListResponse, error)
|
|
}
|
|
|
|
type DRPCKadInspectorDescription struct{}
|
|
|
|
func (DRPCKadInspectorDescription) NumMethods() int { return 7 }
|
|
|
|
func (DRPCKadInspectorDescription) Method(n int) (string, drpc.Handler, interface{}, bool) {
|
|
switch n {
|
|
case 0:
|
|
return "/inspector.KadInspector/CountNodes",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCKadInspectorServer).
|
|
CountNodes(
|
|
ctx,
|
|
in1.(*CountNodesRequest),
|
|
)
|
|
}, DRPCKadInspectorServer.CountNodes, true
|
|
case 1:
|
|
return "/inspector.KadInspector/PingNode",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCKadInspectorServer).
|
|
PingNode(
|
|
ctx,
|
|
in1.(*PingNodeRequest),
|
|
)
|
|
}, DRPCKadInspectorServer.PingNode, true
|
|
case 2:
|
|
return "/inspector.KadInspector/LookupNode",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCKadInspectorServer).
|
|
LookupNode(
|
|
ctx,
|
|
in1.(*LookupNodeRequest),
|
|
)
|
|
}, DRPCKadInspectorServer.LookupNode, true
|
|
case 3:
|
|
return "/inspector.KadInspector/NodeInfo",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCKadInspectorServer).
|
|
NodeInfo(
|
|
ctx,
|
|
in1.(*NodeInfoRequest),
|
|
)
|
|
}, DRPCKadInspectorServer.NodeInfo, true
|
|
case 4:
|
|
return "/inspector.KadInspector/FindNear",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCKadInspectorServer).
|
|
FindNear(
|
|
ctx,
|
|
in1.(*FindNearRequest),
|
|
)
|
|
}, DRPCKadInspectorServer.FindNear, true
|
|
case 5:
|
|
return "/inspector.KadInspector/DumpNodes",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCKadInspectorServer).
|
|
DumpNodes(
|
|
ctx,
|
|
in1.(*DumpNodesRequest),
|
|
)
|
|
}, DRPCKadInspectorServer.DumpNodes, true
|
|
case 6:
|
|
return "/inspector.KadInspector/GetBucketList",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCKadInspectorServer).
|
|
GetBucketList(
|
|
ctx,
|
|
in1.(*GetBucketListRequest),
|
|
)
|
|
}, DRPCKadInspectorServer.GetBucketList, true
|
|
default:
|
|
return "", nil, nil, false
|
|
}
|
|
}
|
|
|
|
func DRPCRegisterKadInspector(srv drpc.Server, impl DRPCKadInspectorServer) {
|
|
srv.Register(impl, DRPCKadInspectorDescription{})
|
|
}
|
|
|
|
type DRPCKadInspector_CountNodesStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*CountNodesResponse) error
|
|
}
|
|
|
|
type drpcKadInspectorCountNodesStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcKadInspectorCountNodesStream) SendAndClose(m *CountNodesResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
type DRPCKadInspector_PingNodeStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*PingNodeResponse) error
|
|
}
|
|
|
|
type drpcKadInspectorPingNodeStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcKadInspectorPingNodeStream) SendAndClose(m *PingNodeResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
type DRPCKadInspector_LookupNodeStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*LookupNodeResponse) error
|
|
}
|
|
|
|
type drpcKadInspectorLookupNodeStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcKadInspectorLookupNodeStream) SendAndClose(m *LookupNodeResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
type DRPCKadInspector_NodeInfoStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*NodeInfoResponse) error
|
|
}
|
|
|
|
type drpcKadInspectorNodeInfoStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcKadInspectorNodeInfoStream) SendAndClose(m *NodeInfoResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
type DRPCKadInspector_FindNearStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*FindNearResponse) error
|
|
}
|
|
|
|
type drpcKadInspectorFindNearStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcKadInspectorFindNearStream) SendAndClose(m *FindNearResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
type DRPCKadInspector_DumpNodesStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*DumpNodesResponse) error
|
|
}
|
|
|
|
type drpcKadInspectorDumpNodesStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcKadInspectorDumpNodesStream) SendAndClose(m *DumpNodesResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
type DRPCKadInspector_GetBucketListStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*GetBucketListResponse) error
|
|
}
|
|
|
|
type drpcKadInspectorGetBucketListStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcKadInspectorGetBucketListStream) SendAndClose(m *GetBucketListResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
type DRPCOverlayInspectorClient interface {
|
|
DRPCConn() drpc.Conn
|
|
|
|
// CountNodes returns the number of nodes in the cache
|
|
CountNodes(ctx context.Context, in *CountNodesRequest) (*CountNodesResponse, error)
|
|
// DumpNodes returns all the nodes in the cache
|
|
DumpNodes(ctx context.Context, in *DumpNodesRequest) (*DumpNodesResponse, error)
|
|
}
|
|
|
|
type drpcOverlayInspectorClient struct {
|
|
cc drpc.Conn
|
|
}
|
|
|
|
func NewDRPCOverlayInspectorClient(cc drpc.Conn) DRPCOverlayInspectorClient {
|
|
return &drpcOverlayInspectorClient{cc}
|
|
}
|
|
|
|
func (c *drpcOverlayInspectorClient) DRPCConn() drpc.Conn { return c.cc }
|
|
|
|
func (c *drpcOverlayInspectorClient) CountNodes(ctx context.Context, in *CountNodesRequest) (*CountNodesResponse, error) {
|
|
out := new(CountNodesResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.OverlayInspector/CountNodes", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *drpcOverlayInspectorClient) DumpNodes(ctx context.Context, in *DumpNodesRequest) (*DumpNodesResponse, error) {
|
|
out := new(DumpNodesResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.OverlayInspector/DumpNodes", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
type DRPCOverlayInspectorServer interface {
|
|
// CountNodes returns the number of nodes in the cache
|
|
CountNodes(context.Context, *CountNodesRequest) (*CountNodesResponse, error)
|
|
// DumpNodes returns all the nodes in the cache
|
|
DumpNodes(context.Context, *DumpNodesRequest) (*DumpNodesResponse, error)
|
|
}
|
|
|
|
type DRPCOverlayInspectorDescription struct{}
|
|
|
|
func (DRPCOverlayInspectorDescription) NumMethods() int { return 2 }
|
|
|
|
func (DRPCOverlayInspectorDescription) Method(n int) (string, drpc.Handler, interface{}, bool) {
|
|
switch n {
|
|
case 0:
|
|
return "/inspector.OverlayInspector/CountNodes",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCOverlayInspectorServer).
|
|
CountNodes(
|
|
ctx,
|
|
in1.(*CountNodesRequest),
|
|
)
|
|
}, DRPCOverlayInspectorServer.CountNodes, true
|
|
case 1:
|
|
return "/inspector.OverlayInspector/DumpNodes",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCOverlayInspectorServer).
|
|
DumpNodes(
|
|
ctx,
|
|
in1.(*DumpNodesRequest),
|
|
)
|
|
}, DRPCOverlayInspectorServer.DumpNodes, true
|
|
default:
|
|
return "", nil, nil, false
|
|
}
|
|
}
|
|
|
|
func DRPCRegisterOverlayInspector(srv drpc.Server, impl DRPCOverlayInspectorServer) {
|
|
srv.Register(impl, DRPCOverlayInspectorDescription{})
|
|
}
|
|
|
|
type DRPCOverlayInspector_CountNodesStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*CountNodesResponse) error
|
|
}
|
|
|
|
type drpcOverlayInspectorCountNodesStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcOverlayInspectorCountNodesStream) SendAndClose(m *CountNodesResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
type DRPCOverlayInspector_DumpNodesStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*DumpNodesResponse) error
|
|
}
|
|
|
|
type drpcOverlayInspectorDumpNodesStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcOverlayInspectorDumpNodesStream) SendAndClose(m *DumpNodesResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
type DRPCPieceStoreInspectorClient interface {
|
|
DRPCConn() drpc.Conn
|
|
|
|
// Stats return space and bandwidth stats for a storagenode
|
|
Stats(ctx context.Context, in *StatsRequest) (*StatSummaryResponse, error)
|
|
// Dashboard returns stats for a specific storagenode
|
|
Dashboard(ctx context.Context, in *DashboardRequest) (*DashboardResponse, error)
|
|
}
|
|
|
|
type drpcPieceStoreInspectorClient struct {
|
|
cc drpc.Conn
|
|
}
|
|
|
|
func NewDRPCPieceStoreInspectorClient(cc drpc.Conn) DRPCPieceStoreInspectorClient {
|
|
return &drpcPieceStoreInspectorClient{cc}
|
|
}
|
|
|
|
func (c *drpcPieceStoreInspectorClient) DRPCConn() drpc.Conn { return c.cc }
|
|
|
|
func (c *drpcPieceStoreInspectorClient) Stats(ctx context.Context, in *StatsRequest) (*StatSummaryResponse, error) {
|
|
out := new(StatSummaryResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.PieceStoreInspector/Stats", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *drpcPieceStoreInspectorClient) Dashboard(ctx context.Context, in *DashboardRequest) (*DashboardResponse, error) {
|
|
out := new(DashboardResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.PieceStoreInspector/Dashboard", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
type DRPCPieceStoreInspectorServer interface {
|
|
// Stats return space and bandwidth stats for a storagenode
|
|
Stats(context.Context, *StatsRequest) (*StatSummaryResponse, error)
|
|
// Dashboard returns stats for a specific storagenode
|
|
Dashboard(context.Context, *DashboardRequest) (*DashboardResponse, error)
|
|
}
|
|
|
|
type DRPCPieceStoreInspectorDescription struct{}
|
|
|
|
func (DRPCPieceStoreInspectorDescription) NumMethods() int { return 2 }
|
|
|
|
func (DRPCPieceStoreInspectorDescription) Method(n int) (string, drpc.Handler, interface{}, bool) {
|
|
switch n {
|
|
case 0:
|
|
return "/inspector.PieceStoreInspector/Stats",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCPieceStoreInspectorServer).
|
|
Stats(
|
|
ctx,
|
|
in1.(*StatsRequest),
|
|
)
|
|
}, DRPCPieceStoreInspectorServer.Stats, true
|
|
case 1:
|
|
return "/inspector.PieceStoreInspector/Dashboard",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCPieceStoreInspectorServer).
|
|
Dashboard(
|
|
ctx,
|
|
in1.(*DashboardRequest),
|
|
)
|
|
}, DRPCPieceStoreInspectorServer.Dashboard, true
|
|
default:
|
|
return "", nil, nil, false
|
|
}
|
|
}
|
|
|
|
func DRPCRegisterPieceStoreInspector(srv drpc.Server, impl DRPCPieceStoreInspectorServer) {
|
|
srv.Register(impl, DRPCPieceStoreInspectorDescription{})
|
|
}
|
|
|
|
type DRPCPieceStoreInspector_StatsStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*StatSummaryResponse) error
|
|
}
|
|
|
|
type drpcPieceStoreInspectorStatsStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcPieceStoreInspectorStatsStream) SendAndClose(m *StatSummaryResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
type DRPCPieceStoreInspector_DashboardStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*DashboardResponse) error
|
|
}
|
|
|
|
type drpcPieceStoreInspectorDashboardStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcPieceStoreInspectorDashboardStream) SendAndClose(m *DashboardResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
type DRPCIrreparableInspectorClient interface {
|
|
DRPCConn() drpc.Conn
|
|
|
|
// ListIrreparableSegments returns damaged segments
|
|
ListIrreparableSegments(ctx context.Context, in *ListIrreparableSegmentsRequest) (*ListIrreparableSegmentsResponse, error)
|
|
}
|
|
|
|
type drpcIrreparableInspectorClient struct {
|
|
cc drpc.Conn
|
|
}
|
|
|
|
func NewDRPCIrreparableInspectorClient(cc drpc.Conn) DRPCIrreparableInspectorClient {
|
|
return &drpcIrreparableInspectorClient{cc}
|
|
}
|
|
|
|
func (c *drpcIrreparableInspectorClient) DRPCConn() drpc.Conn { return c.cc }
|
|
|
|
func (c *drpcIrreparableInspectorClient) ListIrreparableSegments(ctx context.Context, in *ListIrreparableSegmentsRequest) (*ListIrreparableSegmentsResponse, error) {
|
|
out := new(ListIrreparableSegmentsResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.IrreparableInspector/ListIrreparableSegments", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
type DRPCIrreparableInspectorServer interface {
|
|
// ListIrreparableSegments returns damaged segments
|
|
ListIrreparableSegments(context.Context, *ListIrreparableSegmentsRequest) (*ListIrreparableSegmentsResponse, error)
|
|
}
|
|
|
|
type DRPCIrreparableInspectorDescription struct{}
|
|
|
|
func (DRPCIrreparableInspectorDescription) NumMethods() int { return 1 }
|
|
|
|
func (DRPCIrreparableInspectorDescription) Method(n int) (string, drpc.Handler, interface{}, bool) {
|
|
switch n {
|
|
case 0:
|
|
return "/inspector.IrreparableInspector/ListIrreparableSegments",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCIrreparableInspectorServer).
|
|
ListIrreparableSegments(
|
|
ctx,
|
|
in1.(*ListIrreparableSegmentsRequest),
|
|
)
|
|
}, DRPCIrreparableInspectorServer.ListIrreparableSegments, true
|
|
default:
|
|
return "", nil, nil, false
|
|
}
|
|
}
|
|
|
|
func DRPCRegisterIrreparableInspector(srv drpc.Server, impl DRPCIrreparableInspectorServer) {
|
|
srv.Register(impl, DRPCIrreparableInspectorDescription{})
|
|
}
|
|
|
|
type DRPCIrreparableInspector_ListIrreparableSegmentsStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*ListIrreparableSegmentsResponse) error
|
|
}
|
|
|
|
type drpcIrreparableInspectorListIrreparableSegmentsStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcIrreparableInspectorListIrreparableSegmentsStream) SendAndClose(m *ListIrreparableSegmentsResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
type DRPCHealthInspectorClient interface {
|
|
DRPCConn() drpc.Conn
|
|
|
|
// ObjectHealth will return stats about the health of an object
|
|
ObjectHealth(ctx context.Context, in *ObjectHealthRequest) (*ObjectHealthResponse, error)
|
|
// SegmentHealth will return stats about the health of a segment
|
|
SegmentHealth(ctx context.Context, in *SegmentHealthRequest) (*SegmentHealthResponse, error)
|
|
}
|
|
|
|
type drpcHealthInspectorClient struct {
|
|
cc drpc.Conn
|
|
}
|
|
|
|
func NewDRPCHealthInspectorClient(cc drpc.Conn) DRPCHealthInspectorClient {
|
|
return &drpcHealthInspectorClient{cc}
|
|
}
|
|
|
|
func (c *drpcHealthInspectorClient) DRPCConn() drpc.Conn { return c.cc }
|
|
|
|
func (c *drpcHealthInspectorClient) ObjectHealth(ctx context.Context, in *ObjectHealthRequest) (*ObjectHealthResponse, error) {
|
|
out := new(ObjectHealthResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.HealthInspector/ObjectHealth", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *drpcHealthInspectorClient) SegmentHealth(ctx context.Context, in *SegmentHealthRequest) (*SegmentHealthResponse, error) {
|
|
out := new(SegmentHealthResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.HealthInspector/SegmentHealth", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
type DRPCHealthInspectorServer interface {
|
|
// ObjectHealth will return stats about the health of an object
|
|
ObjectHealth(context.Context, *ObjectHealthRequest) (*ObjectHealthResponse, error)
|
|
// SegmentHealth will return stats about the health of a segment
|
|
SegmentHealth(context.Context, *SegmentHealthRequest) (*SegmentHealthResponse, error)
|
|
}
|
|
|
|
type DRPCHealthInspectorDescription struct{}
|
|
|
|
func (DRPCHealthInspectorDescription) NumMethods() int { return 2 }
|
|
|
|
func (DRPCHealthInspectorDescription) Method(n int) (string, drpc.Handler, interface{}, bool) {
|
|
switch n {
|
|
case 0:
|
|
return "/inspector.HealthInspector/ObjectHealth",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCHealthInspectorServer).
|
|
ObjectHealth(
|
|
ctx,
|
|
in1.(*ObjectHealthRequest),
|
|
)
|
|
}, DRPCHealthInspectorServer.ObjectHealth, true
|
|
case 1:
|
|
return "/inspector.HealthInspector/SegmentHealth",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCHealthInspectorServer).
|
|
SegmentHealth(
|
|
ctx,
|
|
in1.(*SegmentHealthRequest),
|
|
)
|
|
}, DRPCHealthInspectorServer.SegmentHealth, true
|
|
default:
|
|
return "", nil, nil, false
|
|
}
|
|
}
|
|
|
|
func DRPCRegisterHealthInspector(srv drpc.Server, impl DRPCHealthInspectorServer) {
|
|
srv.Register(impl, DRPCHealthInspectorDescription{})
|
|
}
|
|
|
|
type DRPCHealthInspector_ObjectHealthStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*ObjectHealthResponse) error
|
|
}
|
|
|
|
type drpcHealthInspectorObjectHealthStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcHealthInspectorObjectHealthStream) SendAndClose(m *ObjectHealthResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
type DRPCHealthInspector_SegmentHealthStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*SegmentHealthResponse) error
|
|
}
|
|
|
|
type drpcHealthInspectorSegmentHealthStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcHealthInspectorSegmentHealthStream) SendAndClose(m *SegmentHealthResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConn
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
// KadInspectorClient is the client API for KadInspector service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type KadInspectorClient interface {
|
|
// CountNodes returns the number of nodes in the routing table
|
|
CountNodes(ctx context.Context, in *CountNodesRequest, opts ...grpc.CallOption) (*CountNodesResponse, error)
|
|
// PingNode sends a PING RPC to a node and returns its availability
|
|
PingNode(ctx context.Context, in *PingNodeRequest, opts ...grpc.CallOption) (*PingNodeResponse, error)
|
|
// LookupNode triggers a Kademlia FindNode and returns the response
|
|
LookupNode(ctx context.Context, in *LookupNodeRequest, opts ...grpc.CallOption) (*LookupNodeResponse, error)
|
|
// NodeInfo sends a PING RPC to a node and returns its local info
|
|
NodeInfo(ctx context.Context, in *NodeInfoRequest, opts ...grpc.CallOption) (*NodeInfoResponse, error)
|
|
// FindNear returns limit number of IDs "near" the Start ID
|
|
FindNear(ctx context.Context, in *FindNearRequest, opts ...grpc.CallOption) (*FindNearResponse, error)
|
|
// DumpNodes returns all the nodes in the node database
|
|
DumpNodes(ctx context.Context, in *DumpNodesRequest, opts ...grpc.CallOption) (*DumpNodesResponse, error)
|
|
// GetBucketList returns all the buckets with all their nodes
|
|
GetBucketList(ctx context.Context, in *GetBucketListRequest, opts ...grpc.CallOption) (*GetBucketListResponse, error)
|
|
}
|
|
|
|
type kadInspectorClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewKadInspectorClient(cc *grpc.ClientConn) KadInspectorClient {
|
|
return &kadInspectorClient{cc}
|
|
}
|
|
|
|
func (c *kadInspectorClient) CountNodes(ctx context.Context, in *CountNodesRequest, opts ...grpc.CallOption) (*CountNodesResponse, error) {
|
|
out := new(CountNodesResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/CountNodes", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *kadInspectorClient) PingNode(ctx context.Context, in *PingNodeRequest, opts ...grpc.CallOption) (*PingNodeResponse, error) {
|
|
out := new(PingNodeResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/PingNode", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *kadInspectorClient) LookupNode(ctx context.Context, in *LookupNodeRequest, opts ...grpc.CallOption) (*LookupNodeResponse, error) {
|
|
out := new(LookupNodeResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/LookupNode", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *kadInspectorClient) NodeInfo(ctx context.Context, in *NodeInfoRequest, opts ...grpc.CallOption) (*NodeInfoResponse, error) {
|
|
out := new(NodeInfoResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/NodeInfo", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *kadInspectorClient) FindNear(ctx context.Context, in *FindNearRequest, opts ...grpc.CallOption) (*FindNearResponse, error) {
|
|
out := new(FindNearResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/FindNear", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *kadInspectorClient) DumpNodes(ctx context.Context, in *DumpNodesRequest, opts ...grpc.CallOption) (*DumpNodesResponse, error) {
|
|
out := new(DumpNodesResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/DumpNodes", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *kadInspectorClient) GetBucketList(ctx context.Context, in *GetBucketListRequest, opts ...grpc.CallOption) (*GetBucketListResponse, error) {
|
|
out := new(GetBucketListResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/GetBucketList", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// KadInspectorServer is the server API for KadInspector service.
|
|
type KadInspectorServer interface {
|
|
// CountNodes returns the number of nodes in the routing table
|
|
CountNodes(context.Context, *CountNodesRequest) (*CountNodesResponse, error)
|
|
// PingNode sends a PING RPC to a node and returns its availability
|
|
PingNode(context.Context, *PingNodeRequest) (*PingNodeResponse, error)
|
|
// LookupNode triggers a Kademlia FindNode and returns the response
|
|
LookupNode(context.Context, *LookupNodeRequest) (*LookupNodeResponse, error)
|
|
// NodeInfo sends a PING RPC to a node and returns its local info
|
|
NodeInfo(context.Context, *NodeInfoRequest) (*NodeInfoResponse, error)
|
|
// FindNear returns limit number of IDs "near" the Start ID
|
|
FindNear(context.Context, *FindNearRequest) (*FindNearResponse, error)
|
|
// DumpNodes returns all the nodes in the node database
|
|
DumpNodes(context.Context, *DumpNodesRequest) (*DumpNodesResponse, error)
|
|
// GetBucketList returns all the buckets with all their nodes
|
|
GetBucketList(context.Context, *GetBucketListRequest) (*GetBucketListResponse, error)
|
|
}
|
|
|
|
func RegisterKadInspectorServer(s *grpc.Server, srv KadInspectorServer) {
|
|
s.RegisterService(&_KadInspector_serviceDesc, srv)
|
|
}
|
|
|
|
func _KadInspector_CountNodes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CountNodesRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(KadInspectorServer).CountNodes(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inspector.KadInspector/CountNodes",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(KadInspectorServer).CountNodes(ctx, req.(*CountNodesRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _KadInspector_PingNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(PingNodeRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(KadInspectorServer).PingNode(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inspector.KadInspector/PingNode",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(KadInspectorServer).PingNode(ctx, req.(*PingNodeRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _KadInspector_LookupNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(LookupNodeRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(KadInspectorServer).LookupNode(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inspector.KadInspector/LookupNode",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(KadInspectorServer).LookupNode(ctx, req.(*LookupNodeRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _KadInspector_NodeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(NodeInfoRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(KadInspectorServer).NodeInfo(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inspector.KadInspector/NodeInfo",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(KadInspectorServer).NodeInfo(ctx, req.(*NodeInfoRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _KadInspector_FindNear_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(FindNearRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(KadInspectorServer).FindNear(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inspector.KadInspector/FindNear",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(KadInspectorServer).FindNear(ctx, req.(*FindNearRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _KadInspector_DumpNodes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(DumpNodesRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(KadInspectorServer).DumpNodes(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inspector.KadInspector/DumpNodes",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(KadInspectorServer).DumpNodes(ctx, req.(*DumpNodesRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _KadInspector_GetBucketList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetBucketListRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(KadInspectorServer).GetBucketList(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inspector.KadInspector/GetBucketList",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(KadInspectorServer).GetBucketList(ctx, req.(*GetBucketListRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _KadInspector_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "inspector.KadInspector",
|
|
HandlerType: (*KadInspectorServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "CountNodes",
|
|
Handler: _KadInspector_CountNodes_Handler,
|
|
},
|
|
{
|
|
MethodName: "PingNode",
|
|
Handler: _KadInspector_PingNode_Handler,
|
|
},
|
|
{
|
|
MethodName: "LookupNode",
|
|
Handler: _KadInspector_LookupNode_Handler,
|
|
},
|
|
{
|
|
MethodName: "NodeInfo",
|
|
Handler: _KadInspector_NodeInfo_Handler,
|
|
},
|
|
{
|
|
MethodName: "FindNear",
|
|
Handler: _KadInspector_FindNear_Handler,
|
|
},
|
|
{
|
|
MethodName: "DumpNodes",
|
|
Handler: _KadInspector_DumpNodes_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetBucketList",
|
|
Handler: _KadInspector_GetBucketList_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "inspector.proto",
|
|
}
|
|
|
|
// OverlayInspectorClient is the client API for OverlayInspector service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type OverlayInspectorClient interface {
|
|
// CountNodes returns the number of nodes in the cache
|
|
CountNodes(ctx context.Context, in *CountNodesRequest, opts ...grpc.CallOption) (*CountNodesResponse, error)
|
|
// DumpNodes returns all the nodes in the cache
|
|
DumpNodes(ctx context.Context, in *DumpNodesRequest, opts ...grpc.CallOption) (*DumpNodesResponse, error)
|
|
}
|
|
|
|
type overlayInspectorClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewOverlayInspectorClient(cc *grpc.ClientConn) OverlayInspectorClient {
|
|
return &overlayInspectorClient{cc}
|
|
}
|
|
|
|
func (c *overlayInspectorClient) CountNodes(ctx context.Context, in *CountNodesRequest, opts ...grpc.CallOption) (*CountNodesResponse, error) {
|
|
out := new(CountNodesResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.OverlayInspector/CountNodes", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *overlayInspectorClient) DumpNodes(ctx context.Context, in *DumpNodesRequest, opts ...grpc.CallOption) (*DumpNodesResponse, error) {
|
|
out := new(DumpNodesResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.OverlayInspector/DumpNodes", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// OverlayInspectorServer is the server API for OverlayInspector service.
|
|
type OverlayInspectorServer interface {
|
|
// CountNodes returns the number of nodes in the cache
|
|
CountNodes(context.Context, *CountNodesRequest) (*CountNodesResponse, error)
|
|
// DumpNodes returns all the nodes in the cache
|
|
DumpNodes(context.Context, *DumpNodesRequest) (*DumpNodesResponse, error)
|
|
}
|
|
|
|
func RegisterOverlayInspectorServer(s *grpc.Server, srv OverlayInspectorServer) {
|
|
s.RegisterService(&_OverlayInspector_serviceDesc, srv)
|
|
}
|
|
|
|
func _OverlayInspector_CountNodes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CountNodesRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(OverlayInspectorServer).CountNodes(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inspector.OverlayInspector/CountNodes",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OverlayInspectorServer).CountNodes(ctx, req.(*CountNodesRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _OverlayInspector_DumpNodes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(DumpNodesRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(OverlayInspectorServer).DumpNodes(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inspector.OverlayInspector/DumpNodes",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OverlayInspectorServer).DumpNodes(ctx, req.(*DumpNodesRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _OverlayInspector_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "inspector.OverlayInspector",
|
|
HandlerType: (*OverlayInspectorServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "CountNodes",
|
|
Handler: _OverlayInspector_CountNodes_Handler,
|
|
},
|
|
{
|
|
MethodName: "DumpNodes",
|
|
Handler: _OverlayInspector_DumpNodes_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "inspector.proto",
|
|
}
|
|
|
|
// PieceStoreInspectorClient is the client API for PieceStoreInspector service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type PieceStoreInspectorClient interface {
|
|
// Stats return space and bandwidth stats for a storagenode
|
|
Stats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*StatSummaryResponse, error)
|
|
// Dashboard returns stats for a specific storagenode
|
|
Dashboard(ctx context.Context, in *DashboardRequest, opts ...grpc.CallOption) (*DashboardResponse, error)
|
|
}
|
|
|
|
type pieceStoreInspectorClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewPieceStoreInspectorClient(cc *grpc.ClientConn) PieceStoreInspectorClient {
|
|
return &pieceStoreInspectorClient{cc}
|
|
}
|
|
|
|
func (c *pieceStoreInspectorClient) Stats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*StatSummaryResponse, error) {
|
|
out := new(StatSummaryResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.PieceStoreInspector/Stats", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *pieceStoreInspectorClient) Dashboard(ctx context.Context, in *DashboardRequest, opts ...grpc.CallOption) (*DashboardResponse, error) {
|
|
out := new(DashboardResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.PieceStoreInspector/Dashboard", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// PieceStoreInspectorServer is the server API for PieceStoreInspector service.
|
|
type PieceStoreInspectorServer interface {
|
|
// Stats return space and bandwidth stats for a storagenode
|
|
Stats(context.Context, *StatsRequest) (*StatSummaryResponse, error)
|
|
// Dashboard returns stats for a specific storagenode
|
|
Dashboard(context.Context, *DashboardRequest) (*DashboardResponse, error)
|
|
}
|
|
|
|
func RegisterPieceStoreInspectorServer(s *grpc.Server, srv PieceStoreInspectorServer) {
|
|
s.RegisterService(&_PieceStoreInspector_serviceDesc, srv)
|
|
}
|
|
|
|
func _PieceStoreInspector_Stats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(StatsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(PieceStoreInspectorServer).Stats(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inspector.PieceStoreInspector/Stats",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(PieceStoreInspectorServer).Stats(ctx, req.(*StatsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _PieceStoreInspector_Dashboard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(DashboardRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(PieceStoreInspectorServer).Dashboard(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inspector.PieceStoreInspector/Dashboard",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(PieceStoreInspectorServer).Dashboard(ctx, req.(*DashboardRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _PieceStoreInspector_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "inspector.PieceStoreInspector",
|
|
HandlerType: (*PieceStoreInspectorServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Stats",
|
|
Handler: _PieceStoreInspector_Stats_Handler,
|
|
},
|
|
{
|
|
MethodName: "Dashboard",
|
|
Handler: _PieceStoreInspector_Dashboard_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "inspector.proto",
|
|
}
|
|
|
|
// IrreparableInspectorClient is the client API for IrreparableInspector service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type IrreparableInspectorClient interface {
|
|
// ListIrreparableSegments returns damaged segments
|
|
ListIrreparableSegments(ctx context.Context, in *ListIrreparableSegmentsRequest, opts ...grpc.CallOption) (*ListIrreparableSegmentsResponse, error)
|
|
}
|
|
|
|
type irreparableInspectorClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewIrreparableInspectorClient(cc *grpc.ClientConn) IrreparableInspectorClient {
|
|
return &irreparableInspectorClient{cc}
|
|
}
|
|
|
|
func (c *irreparableInspectorClient) ListIrreparableSegments(ctx context.Context, in *ListIrreparableSegmentsRequest, opts ...grpc.CallOption) (*ListIrreparableSegmentsResponse, error) {
|
|
out := new(ListIrreparableSegmentsResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.IrreparableInspector/ListIrreparableSegments", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// IrreparableInspectorServer is the server API for IrreparableInspector service.
|
|
type IrreparableInspectorServer interface {
|
|
// ListIrreparableSegments returns damaged segments
|
|
ListIrreparableSegments(context.Context, *ListIrreparableSegmentsRequest) (*ListIrreparableSegmentsResponse, error)
|
|
}
|
|
|
|
func RegisterIrreparableInspectorServer(s *grpc.Server, srv IrreparableInspectorServer) {
|
|
s.RegisterService(&_IrreparableInspector_serviceDesc, srv)
|
|
}
|
|
|
|
func _IrreparableInspector_ListIrreparableSegments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ListIrreparableSegmentsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(IrreparableInspectorServer).ListIrreparableSegments(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inspector.IrreparableInspector/ListIrreparableSegments",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(IrreparableInspectorServer).ListIrreparableSegments(ctx, req.(*ListIrreparableSegmentsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _IrreparableInspector_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "inspector.IrreparableInspector",
|
|
HandlerType: (*IrreparableInspectorServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "ListIrreparableSegments",
|
|
Handler: _IrreparableInspector_ListIrreparableSegments_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "inspector.proto",
|
|
}
|
|
|
|
// HealthInspectorClient is the client API for HealthInspector service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type HealthInspectorClient interface {
|
|
// ObjectHealth will return stats about the health of an object
|
|
ObjectHealth(ctx context.Context, in *ObjectHealthRequest, opts ...grpc.CallOption) (*ObjectHealthResponse, error)
|
|
// SegmentHealth will return stats about the health of a segment
|
|
SegmentHealth(ctx context.Context, in *SegmentHealthRequest, opts ...grpc.CallOption) (*SegmentHealthResponse, error)
|
|
}
|
|
|
|
type healthInspectorClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewHealthInspectorClient(cc *grpc.ClientConn) HealthInspectorClient {
|
|
return &healthInspectorClient{cc}
|
|
}
|
|
|
|
func (c *healthInspectorClient) ObjectHealth(ctx context.Context, in *ObjectHealthRequest, opts ...grpc.CallOption) (*ObjectHealthResponse, error) {
|
|
out := new(ObjectHealthResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.HealthInspector/ObjectHealth", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *healthInspectorClient) SegmentHealth(ctx context.Context, in *SegmentHealthRequest, opts ...grpc.CallOption) (*SegmentHealthResponse, error) {
|
|
out := new(SegmentHealthResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.HealthInspector/SegmentHealth", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// HealthInspectorServer is the server API for HealthInspector service.
|
|
type HealthInspectorServer interface {
|
|
// ObjectHealth will return stats about the health of an object
|
|
ObjectHealth(context.Context, *ObjectHealthRequest) (*ObjectHealthResponse, error)
|
|
// SegmentHealth will return stats about the health of a segment
|
|
SegmentHealth(context.Context, *SegmentHealthRequest) (*SegmentHealthResponse, error)
|
|
}
|
|
|
|
func RegisterHealthInspectorServer(s *grpc.Server, srv HealthInspectorServer) {
|
|
s.RegisterService(&_HealthInspector_serviceDesc, srv)
|
|
}
|
|
|
|
func _HealthInspector_ObjectHealth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ObjectHealthRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(HealthInspectorServer).ObjectHealth(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inspector.HealthInspector/ObjectHealth",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(HealthInspectorServer).ObjectHealth(ctx, req.(*ObjectHealthRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _HealthInspector_SegmentHealth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(SegmentHealthRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(HealthInspectorServer).SegmentHealth(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inspector.HealthInspector/SegmentHealth",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(HealthInspectorServer).SegmentHealth(ctx, req.(*SegmentHealthRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _HealthInspector_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "inspector.HealthInspector",
|
|
HandlerType: (*HealthInspectorServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "ObjectHealth",
|
|
Handler: _HealthInspector_ObjectHealth_Handler,
|
|
},
|
|
{
|
|
MethodName: "SegmentHealth",
|
|
Handler: _HealthInspector_SegmentHealth_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "inspector.proto",
|
|
}
|