Documentation ¶
Index ¶
- Variables
- type Action
- type CheckPolicy
- type Cluster
- func (*Cluster) Descriptor() ([]byte, []int)
- func (m *Cluster) GetID() uint64
- func (m *Cluster) GetMaxReplicaCount() uint32
- func (m *Cluster) Marshal() (dAtA []byte, err error)
- func (m *Cluster) MarshalTo(dAtA []byte) (int, error)
- func (m *Cluster) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Cluster) ProtoMessage()
- func (m *Cluster) Reset()
- func (m *Cluster) Size() (n int)
- func (m *Cluster) String() string
- func (m *Cluster) Unmarshal(dAtA []byte) error
- func (m *Cluster) XXX_DiscardUnknown()
- func (m *Cluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Cluster) XXX_Merge(src proto.Message)
- func (m *Cluster) XXX_Size() int
- func (m *Cluster) XXX_Unmarshal(b []byte) error
- type ConfigChangeType
- type ContainerState
- type ContainerStats
- func (*ContainerStats) Descriptor() ([]byte, []int)
- func (m *ContainerStats) GetApplyingSnapCount() uint64
- func (m *ContainerStats) GetAvailable() uint64
- func (m *ContainerStats) GetCapacity() uint64
- func (m *ContainerStats) GetContainerID() uint64
- func (m *ContainerStats) GetCpuUsages() []RecordPair
- func (m *ContainerStats) GetInterval() *TimeInterval
- func (m *ContainerStats) GetIsBusy() bool
- func (m *ContainerStats) GetOpLatencies() []RecordPair
- func (m *ContainerStats) GetReadBytes() uint64
- func (m *ContainerStats) GetReadIORates() []RecordPair
- func (m *ContainerStats) GetReadKeys() uint64
- func (m *ContainerStats) GetReceivingSnapCount() uint64
- func (m *ContainerStats) GetResourceCount() uint64
- func (m *ContainerStats) GetSendingSnapCount() uint64
- func (m *ContainerStats) GetStartTime() uint64
- func (m *ContainerStats) GetUsedSize() uint64
- func (m *ContainerStats) GetWriteIORates() []RecordPair
- func (m *ContainerStats) GetWrittenBytes() uint64
- func (m *ContainerStats) GetWrittenKeys() uint64
- func (m *ContainerStats) Marshal() (dAtA []byte, err error)
- func (m *ContainerStats) MarshalTo(dAtA []byte) (int, error)
- func (m *ContainerStats) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ContainerStats) ProtoMessage()
- func (m *ContainerStats) Reset()
- func (m *ContainerStats) Size() (n int)
- func (m *ContainerStats) String() string
- func (m *ContainerStats) Unmarshal(dAtA []byte) error
- func (m *ContainerStats) XXX_DiscardUnknown()
- func (m *ContainerStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContainerStats) XXX_Merge(src proto.Message)
- func (m *ContainerStats) XXX_Size() int
- func (m *ContainerStats) XXX_Unmarshal(b []byte) error
- type DestroyingStatus
- func (*DestroyingStatus) Descriptor() ([]byte, []int)
- func (m *DestroyingStatus) GetIndex() uint64
- func (m *DestroyingStatus) GetRemoveData() bool
- func (m *DestroyingStatus) GetReplicas() map[uint64]bool
- func (m *DestroyingStatus) GetState() ResourceState
- func (m *DestroyingStatus) Marshal() (dAtA []byte, err error)
- func (m *DestroyingStatus) MarshalTo(dAtA []byte) (int, error)
- func (m *DestroyingStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DestroyingStatus) ProtoMessage()
- func (m *DestroyingStatus) Reset()
- func (m *DestroyingStatus) Size() (n int)
- func (m *DestroyingStatus) String() string
- func (m *DestroyingStatus) Unmarshal(dAtA []byte) error
- func (m *DestroyingStatus) XXX_DiscardUnknown()
- func (m *DestroyingStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DestroyingStatus) XXX_Merge(src proto.Message)
- func (m *DestroyingStatus) XXX_Size() int
- func (m *DestroyingStatus) XXX_Unmarshal(b []byte) error
- type Job
- func (*Job) Descriptor() ([]byte, []int)
- func (m *Job) GetContent() []byte
- func (m *Job) GetState() JobState
- func (m *Job) GetType() JobType
- func (m *Job) Marshal() (dAtA []byte, err error)
- func (m *Job) MarshalTo(dAtA []byte) (int, error)
- func (m *Job) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Job) ProtoMessage()
- func (m *Job) Reset()
- func (m *Job) Size() (n int)
- func (m *Job) String() string
- func (m *Job) Unmarshal(dAtA []byte) error
- func (m *Job) XXX_DiscardUnknown()
- func (m *Job) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Job) XXX_Merge(src proto.Message)
- func (m *Job) XXX_Size() int
- func (m *Job) XXX_Unmarshal(b []byte) error
- type JobState
- type JobType
- type Member
- func (*Member) Descriptor() ([]byte, []int)
- func (m *Member) GetAddr() string
- func (m *Member) GetID() uint64
- func (m *Member) GetName() string
- func (m *Member) Marshal() (dAtA []byte, err error)
- func (m *Member) MarshalTo(dAtA []byte) (int, error)
- func (m *Member) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Member) ProtoMessage()
- func (m *Member) Reset()
- func (m *Member) Size() (n int)
- func (m *Member) String() string
- func (m *Member) Unmarshal(dAtA []byte) error
- func (m *Member) XXX_DiscardUnknown()
- func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Member) XXX_Merge(src proto.Message)
- func (m *Member) XXX_Size() int
- func (m *Member) XXX_Unmarshal(b []byte) error
- type OperatorStatus
- type Pair
- func (*Pair) Descriptor() ([]byte, []int)
- func (m *Pair) GetKey() string
- func (m *Pair) GetValue() string
- func (m *Pair) Marshal() (dAtA []byte, err error)
- func (m *Pair) MarshalTo(dAtA []byte) (int, error)
- func (m *Pair) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Pair) ProtoMessage()
- func (m *Pair) Reset()
- func (m *Pair) Size() (n int)
- func (m *Pair) String() string
- func (m *Pair) Unmarshal(dAtA []byte) error
- func (m *Pair) XXX_DiscardUnknown()
- func (m *Pair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pair) XXX_Merge(src proto.Message)
- func (m *Pair) XXX_Size() int
- func (m *Pair) XXX_Unmarshal(b []byte) error
- type RecordPair
- func (*RecordPair) Descriptor() ([]byte, []int)
- func (m *RecordPair) GetKey() string
- func (m *RecordPair) GetValue() uint64
- func (m *RecordPair) Marshal() (dAtA []byte, err error)
- func (m *RecordPair) MarshalTo(dAtA []byte) (int, error)
- func (m *RecordPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RecordPair) ProtoMessage()
- func (m *RecordPair) Reset()
- func (m *RecordPair) Size() (n int)
- func (m *RecordPair) String() string
- func (m *RecordPair) Unmarshal(dAtA []byte) error
- func (m *RecordPair) XXX_DiscardUnknown()
- func (m *RecordPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RecordPair) XXX_Merge(src proto.Message)
- func (m *RecordPair) XXX_Size() int
- func (m *RecordPair) XXX_Unmarshal(b []byte) error
- type RemoveResourceJob
- func (*RemoveResourceJob) Descriptor() ([]byte, []int)
- func (m *RemoveResourceJob) GetID() uint64
- func (m *RemoveResourceJob) GetReplicass() []Replica
- func (m *RemoveResourceJob) Marshal() (dAtA []byte, err error)
- func (m *RemoveResourceJob) MarshalTo(dAtA []byte) (int, error)
- func (m *RemoveResourceJob) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RemoveResourceJob) ProtoMessage()
- func (m *RemoveResourceJob) Reset()
- func (m *RemoveResourceJob) Size() (n int)
- func (m *RemoveResourceJob) String() string
- func (m *RemoveResourceJob) Unmarshal(dAtA []byte) error
- func (m *RemoveResourceJob) XXX_DiscardUnknown()
- func (m *RemoveResourceJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RemoveResourceJob) XXX_Merge(src proto.Message)
- func (m *RemoveResourceJob) XXX_Size() int
- func (m *RemoveResourceJob) XXX_Unmarshal(b []byte) error
- type Replica
- func (*Replica) Descriptor() ([]byte, []int)
- func (m *Replica) GetContainerID() uint64
- func (m *Replica) GetID() uint64
- func (m *Replica) GetInitialMember() bool
- func (m *Replica) GetRole() ReplicaRole
- func (m *Replica) Marshal() (dAtA []byte, err error)
- func (m *Replica) MarshalTo(dAtA []byte) (int, error)
- func (m *Replica) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Replica) ProtoMessage()
- func (m *Replica) Reset()
- func (m *Replica) Size() (n int)
- func (m *Replica) String() string
- func (m *Replica) Unmarshal(dAtA []byte) error
- func (m *Replica) XXX_DiscardUnknown()
- func (m *Replica) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Replica) XXX_Merge(src proto.Message)
- func (m *Replica) XXX_Size() int
- func (m *Replica) XXX_Unmarshal(b []byte) error
- type ReplicaRole
- type ReplicaStats
- func (*ReplicaStats) Descriptor() ([]byte, []int)
- func (m *ReplicaStats) GetDownSeconds() uint64
- func (m *ReplicaStats) GetReplica() Replica
- func (m *ReplicaStats) Marshal() (dAtA []byte, err error)
- func (m *ReplicaStats) MarshalTo(dAtA []byte) (int, error)
- func (m *ReplicaStats) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ReplicaStats) ProtoMessage()
- func (m *ReplicaStats) Reset()
- func (m *ReplicaStats) Size() (n int)
- func (m *ReplicaStats) String() string
- func (m *ReplicaStats) Unmarshal(dAtA []byte) error
- func (m *ReplicaStats) XXX_DiscardUnknown()
- func (m *ReplicaStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplicaStats) XXX_Merge(src proto.Message)
- func (m *ReplicaStats) XXX_Size() int
- func (m *ReplicaStats) XXX_Unmarshal(b []byte) error
- type ResourceEpoch
- func (*ResourceEpoch) Descriptor() ([]byte, []int)
- func (m *ResourceEpoch) GetConfVer() uint64
- func (m *ResourceEpoch) GetVersion() uint64
- func (m *ResourceEpoch) Marshal() (dAtA []byte, err error)
- func (m *ResourceEpoch) MarshalTo(dAtA []byte) (int, error)
- func (m *ResourceEpoch) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ResourceEpoch) ProtoMessage()
- func (m *ResourceEpoch) Reset()
- func (m *ResourceEpoch) Size() (n int)
- func (m *ResourceEpoch) String() string
- func (m *ResourceEpoch) Unmarshal(dAtA []byte) error
- func (m *ResourceEpoch) XXX_DiscardUnknown()
- func (m *ResourceEpoch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourceEpoch) XXX_Merge(src proto.Message)
- func (m *ResourceEpoch) XXX_Size() int
- func (m *ResourceEpoch) XXX_Unmarshal(b []byte) error
- type ResourceExtra
- func (*ResourceExtra) Descriptor() ([]byte, []int)
- func (m *ResourceExtra) GetDestroyingStatus() *DestroyingStatus
- func (m *ResourceExtra) GetLabels() map[string]string
- func (m *ResourceExtra) Marshal() (dAtA []byte, err error)
- func (m *ResourceExtra) MarshalTo(dAtA []byte) (int, error)
- func (m *ResourceExtra) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ResourceExtra) ProtoMessage()
- func (m *ResourceExtra) Reset()
- func (m *ResourceExtra) Size() (n int)
- func (m *ResourceExtra) String() string
- func (m *ResourceExtra) Unmarshal(dAtA []byte) error
- func (m *ResourceExtra) XXX_DiscardUnknown()
- func (m *ResourceExtra) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourceExtra) XXX_Merge(src proto.Message)
- func (m *ResourceExtra) XXX_Size() int
- func (m *ResourceExtra) XXX_Unmarshal(b []byte) error
- type ResourceKind
- type ResourcePool
- func (*ResourcePool) Descriptor() ([]byte, []int)
- func (m *ResourcePool) GetCapacity() uint64
- func (m *ResourcePool) GetGroup() uint64
- func (m *ResourcePool) GetRangePrefix() []byte
- func (m *ResourcePool) Marshal() (dAtA []byte, err error)
- func (m *ResourcePool) MarshalTo(dAtA []byte) (int, error)
- func (m *ResourcePool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ResourcePool) ProtoMessage()
- func (m *ResourcePool) Reset()
- func (m *ResourcePool) Size() (n int)
- func (m *ResourcePool) String() string
- func (m *ResourcePool) Unmarshal(dAtA []byte) error
- func (m *ResourcePool) XXX_DiscardUnknown()
- func (m *ResourcePool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourcePool) XXX_Merge(src proto.Message)
- func (m *ResourcePool) XXX_Size() int
- func (m *ResourcePool) XXX_Unmarshal(b []byte) error
- type ResourcePoolJob
- func (*ResourcePoolJob) Descriptor() ([]byte, []int)
- func (m *ResourcePoolJob) GetPools() []ResourcePool
- func (m *ResourcePoolJob) Marshal() (dAtA []byte, err error)
- func (m *ResourcePoolJob) MarshalTo(dAtA []byte) (int, error)
- func (m *ResourcePoolJob) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ResourcePoolJob) ProtoMessage()
- func (m *ResourcePoolJob) Reset()
- func (m *ResourcePoolJob) Size() (n int)
- func (m *ResourcePoolJob) String() string
- func (m *ResourcePoolJob) Unmarshal(dAtA []byte) error
- func (m *ResourcePoolJob) XXX_DiscardUnknown()
- func (m *ResourcePoolJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourcePoolJob) XXX_Merge(src proto.Message)
- func (m *ResourcePoolJob) XXX_Size() int
- func (m *ResourcePoolJob) XXX_Unmarshal(b []byte) error
- type ResourceState
- type ResourceStats
- func (*ResourceStats) Descriptor() ([]byte, []int)
- func (m *ResourceStats) GetApproximateKeys() uint64
- func (m *ResourceStats) GetApproximateSize() uint64
- func (m *ResourceStats) GetInterval() *TimeInterval
- func (m *ResourceStats) GetReadBytes() uint64
- func (m *ResourceStats) GetReadKeys() uint64
- func (m *ResourceStats) GetResourceID() uint64
- func (m *ResourceStats) GetWrittenBytes() uint64
- func (m *ResourceStats) GetWrittenKeys() uint64
- func (m *ResourceStats) Marshal() (dAtA []byte, err error)
- func (m *ResourceStats) MarshalTo(dAtA []byte) (int, error)
- func (m *ResourceStats) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ResourceStats) ProtoMessage()
- func (m *ResourceStats) Reset()
- func (m *ResourceStats) Size() (n int)
- func (m *ResourceStats) String() string
- func (m *ResourceStats) Unmarshal(dAtA []byte) error
- func (m *ResourceStats) XXX_DiscardUnknown()
- func (m *ResourceStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourceStats) XXX_Merge(src proto.Message)
- func (m *ResourceStats) XXX_Size() int
- func (m *ResourceStats) XXX_Unmarshal(b []byte) error
- type ScheduleGroupRule
- func (*ScheduleGroupRule) Descriptor() ([]byte, []int)
- func (m *ScheduleGroupRule) GetGroupByLabel() string
- func (m *ScheduleGroupRule) GetGroupID() uint64
- func (m *ScheduleGroupRule) GetID() uint64
- func (m *ScheduleGroupRule) GetName() string
- func (m *ScheduleGroupRule) Marshal() (dAtA []byte, err error)
- func (m *ScheduleGroupRule) MarshalTo(dAtA []byte) (int, error)
- func (m *ScheduleGroupRule) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ScheduleGroupRule) ProtoMessage()
- func (m *ScheduleGroupRule) Reset()
- func (m *ScheduleGroupRule) Size() (n int)
- func (m *ScheduleGroupRule) String() string
- func (m *ScheduleGroupRule) Unmarshal(dAtA []byte) error
- func (m *ScheduleGroupRule) XXX_DiscardUnknown()
- func (m *ScheduleGroupRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ScheduleGroupRule) XXX_Merge(src proto.Message)
- func (m *ScheduleGroupRule) XXX_Size() int
- func (m *ScheduleGroupRule) XXX_Unmarshal(b []byte) error
- type TimeInterval
- func (*TimeInterval) Descriptor() ([]byte, []int)
- func (m *TimeInterval) GetEnd() uint64
- func (m *TimeInterval) GetStart() uint64
- func (m *TimeInterval) Marshal() (dAtA []byte, err error)
- func (m *TimeInterval) MarshalTo(dAtA []byte) (int, error)
- func (m *TimeInterval) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TimeInterval) ProtoMessage()
- func (m *TimeInterval) Reset()
- func (m *TimeInterval) Size() (n int)
- func (m *TimeInterval) String() string
- func (m *TimeInterval) Unmarshal(dAtA []byte) error
- func (m *TimeInterval) XXX_DiscardUnknown()
- func (m *TimeInterval) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TimeInterval) XXX_Merge(src proto.Message)
- func (m *TimeInterval) XXX_Size() int
- func (m *TimeInterval) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthMetapb = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMetapb = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMetapb = fmt.Errorf("proto: unexpected end of group") )
var Action_name = map[int32]string{
0: "None",
1: "ScaleOut",
}
var Action_value = map[string]int32{
"None": 0,
"ScaleOut": 1,
}
var CheckPolicy_name = map[int32]string{
0: "SCAN",
1: "APPROXIMATE",
2: "USEKEY",
}
var CheckPolicy_value = map[string]int32{
"SCAN": 0,
"APPROXIMATE": 1,
"USEKEY": 2,
}
var ConfigChangeType_name = map[int32]string{
0: "AddNode",
1: "RemoveNode",
2: "UpdateNode",
3: "AddLearnerNode",
4: "ScalePeer",
}
var ConfigChangeType_value = map[string]int32{
"AddNode": 0,
"RemoveNode": 1,
"UpdateNode": 2,
"AddLearnerNode": 3,
"ScalePeer": 4,
}
var ContainerState_name = map[int32]string{
0: "UP",
1: "Offline",
2: "Tombstone",
}
var ContainerState_value = map[string]int32{
"UP": 0,
"Offline": 1,
"Tombstone": 2,
}
var JobState_name = map[int32]string{
0: "Created",
1: "Working",
2: "Completed",
}
var JobState_value = map[string]int32{
"Created": 0,
"Working": 1,
"Completed": 2,
}
var JobType_name = map[int32]string{
0: "RemoveResource",
1: "CreateResourcePool",
100: "CustomStartAt",
}
var JobType_value = map[string]int32{
"RemoveResource": 0,
"CreateResourcePool": 1,
"CustomStartAt": 100,
}
var OperatorStatus_name = map[int32]string{
0: "SUCCESS",
1: "TIMEOUT",
2: "CANCEL",
3: "REPLACE",
4: "RUNNING",
}
var OperatorStatus_value = map[string]int32{
"SUCCESS": 0,
"TIMEOUT": 1,
"CANCEL": 2,
"REPLACE": 3,
"RUNNING": 4,
}
var ReplicaRole_name = map[int32]string{
0: "Voter",
1: "Learner",
2: "IncomingVoter",
3: "DemotingVoter",
}
var ReplicaRole_value = map[string]int32{
"Voter": 0,
"Learner": 1,
"IncomingVoter": 2,
"DemotingVoter": 3,
}
var ResourceKind_name = map[int32]string{
0: "LeaderKind",
1: "ReplicaKind",
}
var ResourceKind_value = map[string]int32{
"LeaderKind": 0,
"ReplicaKind": 1,
}
var ResourceState_name = map[int32]string{
0: "Running",
1: "Creating",
2: "Destroying",
3: "Destroyed",
}
var ResourceState_value = map[string]int32{
"Running": 0,
"Creating": 1,
"Destroying": 2,
"Destroyed": 3,
}
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action int32
Action the action while a new node join the cluster
func (Action) EnumDescriptor ¶
type CheckPolicy ¶
type CheckPolicy int32
CheckPolicy check policy
const ( CheckPolicy_SCAN CheckPolicy = 0 CheckPolicy_APPROXIMATE CheckPolicy = 1 CheckPolicy_USEKEY CheckPolicy = 2 )
func (CheckPolicy) EnumDescriptor ¶
func (CheckPolicy) EnumDescriptor() ([]byte, []int)
func (CheckPolicy) String ¶
func (x CheckPolicy) String() string
type Cluster ¶
type Cluster struct { ID uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` MaxReplicaCount uint32 `protobuf:"varint,2,opt,name=maxReplicaCount,proto3" json:"maxReplicaCount,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Cluster prophet cluster
func (*Cluster) Descriptor ¶
func (*Cluster) GetMaxReplicaCount ¶ added in v0.2.0
func (*Cluster) MarshalToSizedBuffer ¶ added in v0.2.0
func (*Cluster) ProtoMessage ¶
func (*Cluster) ProtoMessage()
func (*Cluster) XXX_DiscardUnknown ¶
func (m *Cluster) XXX_DiscardUnknown()
func (*Cluster) XXX_Marshal ¶
func (*Cluster) XXX_Unmarshal ¶
type ConfigChangeType ¶ added in v0.2.0
type ConfigChangeType int32
ConfigChangeType change replica type
const ( ConfigChangeType_AddNode ConfigChangeType = 0 ConfigChangeType_RemoveNode ConfigChangeType = 1 ConfigChangeType_UpdateNode ConfigChangeType = 2 ConfigChangeType_AddLearnerNode ConfigChangeType = 3 ConfigChangeType_ScalePeer ConfigChangeType = 4 )
func (ConfigChangeType) EnumDescriptor ¶ added in v0.2.0
func (ConfigChangeType) EnumDescriptor() ([]byte, []int)
func (ConfigChangeType) String ¶ added in v0.2.0
func (x ConfigChangeType) String() string
type ContainerState ¶
type ContainerState int32
State the container state
const ( // UP is normal state ContainerState_UP ContainerState = 0 // Offline is the unavailable state ContainerState_Offline ContainerState = 1 // Tombstone is the destroy state ContainerState_Tombstone ContainerState = 2 )
func (ContainerState) EnumDescriptor ¶
func (ContainerState) EnumDescriptor() ([]byte, []int)
func (ContainerState) String ¶
func (x ContainerState) String() string
type ContainerStats ¶
type ContainerStats struct { // Container id ContainerID uint64 `protobuf:"varint,1,opt,name=containerID,proto3" json:"containerID,omitempty"` // When the container is started (unix timestamp in seconds). StartTime uint64 `protobuf:"varint,2,opt,name=startTime,proto3" json:"startTime,omitempty"` // Actually reported time interval Interval *TimeInterval `protobuf:"bytes,3,opt,name=interval,proto3" json:"interval,omitempty"` // Capacity for the container. Capacity uint64 `protobuf:"varint,4,opt,name=capacity,proto3" json:"capacity,omitempty"` // Available size for the container. Available uint64 `protobuf:"varint,5,opt,name=available,proto3" json:"available,omitempty"` // Actually used space by db UsedSize uint64 `protobuf:"varint,6,opt,name=usedSize,proto3" json:"usedSize,omitempty"` // If the container is busy IsBusy bool `protobuf:"varint,7,opt,name=isBusy,proto3" json:"isBusy,omitempty"` // Total resource count in this container. ResourceCount uint64 `protobuf:"varint,8,opt,name=resourceCount,proto3" json:"resourceCount,omitempty"` // Current sending snapshot count. SendingSnapCount uint64 `protobuf:"varint,9,opt,name=sendingSnapCount,proto3" json:"sendingSnapCount,omitempty"` // Current receiving snapshot count. ReceivingSnapCount uint64 `protobuf:"varint,10,opt,name=receivingSnapCount,proto3" json:"receivingSnapCount,omitempty"` // How many resource is applying snapshot. ApplyingSnapCount uint64 `protobuf:"varint,11,opt,name=applyingSnapCount,proto3" json:"applyingSnapCount,omitempty"` // Bytes written for the container during this period. WrittenBytes uint64 `protobuf:"varint,12,opt,name=writtenBytes,proto3" json:"writtenBytes,omitempty"` // Bytes read for the container during this period. ReadBytes uint64 `protobuf:"varint,13,opt,name=readBytes,proto3" json:"readBytes,omitempty"` // Bytes written for the container during this period. WrittenKeys uint64 `protobuf:"varint,14,opt,name=writtenKeys,proto3" json:"writtenKeys,omitempty"` // Bytes read for the container during this period. ReadKeys uint64 `protobuf:"varint,15,opt,name=readKeys,proto3" json:"readKeys,omitempty"` // Threads' CPU usages in the container CpuUsages []RecordPair `protobuf:"bytes,16,rep,name=cpuUsages,proto3" json:"cpuUsages"` // Threads' read disk I/O rates in the container ReadIORates []RecordPair `protobuf:"bytes,17,rep,name=readIORates,proto3" json:"readIORates"` // Threads' write disk I/O rates in the container WriteIORates []RecordPair `protobuf:"bytes,18,rep,name=writeIORates,proto3" json:"writeIORates"` // Operations' latencies in the container OpLatencies []RecordPair `protobuf:"bytes,19,rep,name=opLatencies,proto3" json:"opLatencies"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ContainerStats container stats
func (*ContainerStats) Descriptor ¶
func (*ContainerStats) Descriptor() ([]byte, []int)
func (*ContainerStats) GetApplyingSnapCount ¶
func (m *ContainerStats) GetApplyingSnapCount() uint64
func (*ContainerStats) GetAvailable ¶
func (m *ContainerStats) GetAvailable() uint64
func (*ContainerStats) GetCapacity ¶
func (m *ContainerStats) GetCapacity() uint64
func (*ContainerStats) GetContainerID ¶
func (m *ContainerStats) GetContainerID() uint64
func (*ContainerStats) GetCpuUsages ¶
func (m *ContainerStats) GetCpuUsages() []RecordPair
func (*ContainerStats) GetInterval ¶
func (m *ContainerStats) GetInterval() *TimeInterval
func (*ContainerStats) GetIsBusy ¶
func (m *ContainerStats) GetIsBusy() bool
func (*ContainerStats) GetOpLatencies ¶
func (m *ContainerStats) GetOpLatencies() []RecordPair
func (*ContainerStats) GetReadBytes ¶
func (m *ContainerStats) GetReadBytes() uint64
func (*ContainerStats) GetReadIORates ¶
func (m *ContainerStats) GetReadIORates() []RecordPair
func (*ContainerStats) GetReadKeys ¶
func (m *ContainerStats) GetReadKeys() uint64
func (*ContainerStats) GetReceivingSnapCount ¶
func (m *ContainerStats) GetReceivingSnapCount() uint64
func (*ContainerStats) GetResourceCount ¶
func (m *ContainerStats) GetResourceCount() uint64
func (*ContainerStats) GetSendingSnapCount ¶
func (m *ContainerStats) GetSendingSnapCount() uint64
func (*ContainerStats) GetStartTime ¶
func (m *ContainerStats) GetStartTime() uint64
func (*ContainerStats) GetUsedSize ¶
func (m *ContainerStats) GetUsedSize() uint64
func (*ContainerStats) GetWriteIORates ¶
func (m *ContainerStats) GetWriteIORates() []RecordPair
func (*ContainerStats) GetWrittenBytes ¶
func (m *ContainerStats) GetWrittenBytes() uint64
func (*ContainerStats) GetWrittenKeys ¶
func (m *ContainerStats) GetWrittenKeys() uint64
func (*ContainerStats) Marshal ¶
func (m *ContainerStats) Marshal() (dAtA []byte, err error)
func (*ContainerStats) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *ContainerStats) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ContainerStats) ProtoMessage ¶
func (*ContainerStats) ProtoMessage()
func (*ContainerStats) Reset ¶
func (m *ContainerStats) Reset()
func (*ContainerStats) Size ¶
func (m *ContainerStats) Size() (n int)
func (*ContainerStats) String ¶
func (m *ContainerStats) String() string
func (*ContainerStats) Unmarshal ¶
func (m *ContainerStats) Unmarshal(dAtA []byte) error
func (*ContainerStats) XXX_DiscardUnknown ¶
func (m *ContainerStats) XXX_DiscardUnknown()
func (*ContainerStats) XXX_Marshal ¶
func (m *ContainerStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContainerStats) XXX_Merge ¶
func (m *ContainerStats) XXX_Merge(src proto.Message)
func (*ContainerStats) XXX_Size ¶
func (m *ContainerStats) XXX_Size() int
func (*ContainerStats) XXX_Unmarshal ¶
func (m *ContainerStats) XXX_Unmarshal(b []byte) error
type DestroyingStatus ¶ added in v0.2.0
type DestroyingStatus struct { Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Replicas map[uint64]bool `` /* 159-byte string literal not displayed */ State ResourceState `protobuf:"varint,3,opt,name=state,proto3,enum=metapb.ResourceState" json:"state,omitempty"` RemoveData bool `protobuf:"varint,4,opt,name=removeData,proto3" json:"removeData,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
DestroyingStatus destroying status
func (*DestroyingStatus) Descriptor ¶ added in v0.2.0
func (*DestroyingStatus) Descriptor() ([]byte, []int)
func (*DestroyingStatus) GetIndex ¶ added in v0.2.0
func (m *DestroyingStatus) GetIndex() uint64
func (*DestroyingStatus) GetRemoveData ¶ added in v0.2.0
func (m *DestroyingStatus) GetRemoveData() bool
func (*DestroyingStatus) GetReplicas ¶ added in v0.2.0
func (m *DestroyingStatus) GetReplicas() map[uint64]bool
func (*DestroyingStatus) GetState ¶ added in v0.2.0
func (m *DestroyingStatus) GetState() ResourceState
func (*DestroyingStatus) Marshal ¶ added in v0.2.0
func (m *DestroyingStatus) Marshal() (dAtA []byte, err error)
func (*DestroyingStatus) MarshalTo ¶ added in v0.2.0
func (m *DestroyingStatus) MarshalTo(dAtA []byte) (int, error)
func (*DestroyingStatus) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *DestroyingStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DestroyingStatus) ProtoMessage ¶ added in v0.2.0
func (*DestroyingStatus) ProtoMessage()
func (*DestroyingStatus) Reset ¶ added in v0.2.0
func (m *DestroyingStatus) Reset()
func (*DestroyingStatus) Size ¶ added in v0.2.0
func (m *DestroyingStatus) Size() (n int)
func (*DestroyingStatus) String ¶ added in v0.2.0
func (m *DestroyingStatus) String() string
func (*DestroyingStatus) Unmarshal ¶ added in v0.2.0
func (m *DestroyingStatus) Unmarshal(dAtA []byte) error
func (*DestroyingStatus) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *DestroyingStatus) XXX_DiscardUnknown()
func (*DestroyingStatus) XXX_Marshal ¶ added in v0.2.0
func (m *DestroyingStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DestroyingStatus) XXX_Merge ¶ added in v0.2.0
func (m *DestroyingStatus) XXX_Merge(src proto.Message)
func (*DestroyingStatus) XXX_Size ¶ added in v0.2.0
func (m *DestroyingStatus) XXX_Size() int
func (*DestroyingStatus) XXX_Unmarshal ¶ added in v0.2.0
func (m *DestroyingStatus) XXX_Unmarshal(b []byte) error
type Job ¶
type Job struct { Type JobType `protobuf:"varint,1,opt,name=type,proto3,enum=metapb.JobType" json:"type,omitempty"` Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` State JobState `protobuf:"varint,3,opt,name=state,proto3,enum=metapb.JobState" json:"state,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Job job
func (*Job) Descriptor ¶
func (*Job) GetContent ¶
func (*Job) MarshalToSizedBuffer ¶ added in v0.2.0
func (*Job) ProtoMessage ¶
func (*Job) ProtoMessage()
func (*Job) XXX_DiscardUnknown ¶
func (m *Job) XXX_DiscardUnknown()
func (*Job) XXX_Unmarshal ¶
type Member ¶
type Member struct { ID uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Addr string `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Member prophet member
func (*Member) Descriptor ¶
func (*Member) MarshalToSizedBuffer ¶ added in v0.2.0
func (*Member) ProtoMessage ¶
func (*Member) ProtoMessage()
func (*Member) XXX_DiscardUnknown ¶
func (m *Member) XXX_DiscardUnknown()
func (*Member) XXX_Marshal ¶
func (*Member) XXX_Unmarshal ¶
type OperatorStatus ¶
type OperatorStatus int32
OperatorStatus Operator Status
const ( OperatorStatus_SUCCESS OperatorStatus = 0 OperatorStatus_TIMEOUT OperatorStatus = 1 OperatorStatus_CANCEL OperatorStatus = 2 OperatorStatus_REPLACE OperatorStatus = 3 OperatorStatus_RUNNING OperatorStatus = 4 )
func (OperatorStatus) EnumDescriptor ¶
func (OperatorStatus) EnumDescriptor() ([]byte, []int)
func (OperatorStatus) String ¶
func (x OperatorStatus) String() string
type Pair ¶
type Pair struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Pair key value pair
func (*Pair) Descriptor ¶
func (*Pair) MarshalToSizedBuffer ¶ added in v0.2.0
func (*Pair) ProtoMessage ¶
func (*Pair) ProtoMessage()
func (*Pair) XXX_DiscardUnknown ¶
func (m *Pair) XXX_DiscardUnknown()
func (*Pair) XXX_Unmarshal ¶
type RecordPair ¶
type RecordPair struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RecordPair record pair
func (*RecordPair) Descriptor ¶
func (*RecordPair) Descriptor() ([]byte, []int)
func (*RecordPair) GetKey ¶
func (m *RecordPair) GetKey() string
func (*RecordPair) GetValue ¶
func (m *RecordPair) GetValue() uint64
func (*RecordPair) Marshal ¶
func (m *RecordPair) Marshal() (dAtA []byte, err error)
func (*RecordPair) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *RecordPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RecordPair) ProtoMessage ¶
func (*RecordPair) ProtoMessage()
func (*RecordPair) Reset ¶
func (m *RecordPair) Reset()
func (*RecordPair) Size ¶
func (m *RecordPair) Size() (n int)
func (*RecordPair) String ¶
func (m *RecordPair) String() string
func (*RecordPair) Unmarshal ¶
func (m *RecordPair) Unmarshal(dAtA []byte) error
func (*RecordPair) XXX_DiscardUnknown ¶
func (m *RecordPair) XXX_DiscardUnknown()
func (*RecordPair) XXX_Marshal ¶
func (m *RecordPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RecordPair) XXX_Merge ¶
func (m *RecordPair) XXX_Merge(src proto.Message)
func (*RecordPair) XXX_Size ¶
func (m *RecordPair) XXX_Size() int
func (*RecordPair) XXX_Unmarshal ¶
func (m *RecordPair) XXX_Unmarshal(b []byte) error
type RemoveResourceJob ¶
type RemoveResourceJob struct { ID uint64 `protobuf:"varint,1,opt,name=resourceID,proto3" json:"resourceID,omitempty"` Replicass []Replica `protobuf:"bytes,2,rep,name=replicass,proto3" json:"replicass"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RemoveResourceJob remove resources job
func (*RemoveResourceJob) Descriptor ¶
func (*RemoveResourceJob) Descriptor() ([]byte, []int)
func (*RemoveResourceJob) GetID ¶
func (m *RemoveResourceJob) GetID() uint64
func (*RemoveResourceJob) GetReplicass ¶ added in v0.2.0
func (m *RemoveResourceJob) GetReplicass() []Replica
func (*RemoveResourceJob) Marshal ¶
func (m *RemoveResourceJob) Marshal() (dAtA []byte, err error)
func (*RemoveResourceJob) MarshalTo ¶
func (m *RemoveResourceJob) MarshalTo(dAtA []byte) (int, error)
func (*RemoveResourceJob) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *RemoveResourceJob) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RemoveResourceJob) ProtoMessage ¶
func (*RemoveResourceJob) ProtoMessage()
func (*RemoveResourceJob) Reset ¶
func (m *RemoveResourceJob) Reset()
func (*RemoveResourceJob) Size ¶
func (m *RemoveResourceJob) Size() (n int)
func (*RemoveResourceJob) String ¶
func (m *RemoveResourceJob) String() string
func (*RemoveResourceJob) Unmarshal ¶
func (m *RemoveResourceJob) Unmarshal(dAtA []byte) error
func (*RemoveResourceJob) XXX_DiscardUnknown ¶
func (m *RemoveResourceJob) XXX_DiscardUnknown()
func (*RemoveResourceJob) XXX_Marshal ¶
func (m *RemoveResourceJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RemoveResourceJob) XXX_Merge ¶
func (m *RemoveResourceJob) XXX_Merge(src proto.Message)
func (*RemoveResourceJob) XXX_Size ¶
func (m *RemoveResourceJob) XXX_Size() int
func (*RemoveResourceJob) XXX_Unmarshal ¶
func (m *RemoveResourceJob) XXX_Unmarshal(b []byte) error
type Replica ¶ added in v0.2.0
type Replica struct { ID uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ContainerID uint64 `protobuf:"varint,2,opt,name=containerID,proto3" json:"containerID,omitempty"` Role ReplicaRole `protobuf:"varint,3,opt,name=role,proto3,enum=metapb.ReplicaRole" json:"role,omitempty"` InitialMember bool `protobuf:"varint,4,opt,name=initialMember,proto3" json:"initialMember,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Replica of the resource
func (*Replica) Descriptor ¶ added in v0.2.0
func (*Replica) GetContainerID ¶ added in v0.2.0
func (*Replica) GetInitialMember ¶ added in v0.2.0
func (*Replica) GetRole ¶ added in v0.2.0
func (m *Replica) GetRole() ReplicaRole
func (*Replica) MarshalToSizedBuffer ¶ added in v0.2.0
func (*Replica) ProtoMessage ¶ added in v0.2.0
func (*Replica) ProtoMessage()
func (*Replica) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *Replica) XXX_DiscardUnknown()
func (*Replica) XXX_Marshal ¶ added in v0.2.0
func (*Replica) XXX_Unmarshal ¶ added in v0.2.0
type ReplicaRole ¶ added in v0.2.0
type ReplicaRole int32
ReplicaRole role of current replica
const ( ReplicaRole_Voter ReplicaRole = 0 ReplicaRole_Learner ReplicaRole = 1 ReplicaRole_IncomingVoter ReplicaRole = 2 ReplicaRole_DemotingVoter ReplicaRole = 3 )
func (ReplicaRole) EnumDescriptor ¶ added in v0.2.0
func (ReplicaRole) EnumDescriptor() ([]byte, []int)
func (ReplicaRole) String ¶ added in v0.2.0
func (x ReplicaRole) String() string
type ReplicaStats ¶ added in v0.2.0
type ReplicaStats struct { Replica Replica `protobuf:"bytes,1,opt,name=replica,proto3" json:"replica"` DownSeconds uint64 `protobuf:"varint,2,opt,name=downSeconds,proto3" json:"downSeconds,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ReplicaStats replica stats
func (*ReplicaStats) Descriptor ¶ added in v0.2.0
func (*ReplicaStats) Descriptor() ([]byte, []int)
func (*ReplicaStats) GetDownSeconds ¶ added in v0.2.0
func (m *ReplicaStats) GetDownSeconds() uint64
func (*ReplicaStats) GetReplica ¶ added in v0.2.0
func (m *ReplicaStats) GetReplica() Replica
func (*ReplicaStats) Marshal ¶ added in v0.2.0
func (m *ReplicaStats) Marshal() (dAtA []byte, err error)
func (*ReplicaStats) MarshalTo ¶ added in v0.2.0
func (m *ReplicaStats) MarshalTo(dAtA []byte) (int, error)
func (*ReplicaStats) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *ReplicaStats) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ReplicaStats) ProtoMessage ¶ added in v0.2.0
func (*ReplicaStats) ProtoMessage()
func (*ReplicaStats) Reset ¶ added in v0.2.0
func (m *ReplicaStats) Reset()
func (*ReplicaStats) Size ¶ added in v0.2.0
func (m *ReplicaStats) Size() (n int)
func (*ReplicaStats) String ¶ added in v0.2.0
func (m *ReplicaStats) String() string
func (*ReplicaStats) Unmarshal ¶ added in v0.2.0
func (m *ReplicaStats) Unmarshal(dAtA []byte) error
func (*ReplicaStats) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *ReplicaStats) XXX_DiscardUnknown()
func (*ReplicaStats) XXX_Marshal ¶ added in v0.2.0
func (m *ReplicaStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplicaStats) XXX_Merge ¶ added in v0.2.0
func (m *ReplicaStats) XXX_Merge(src proto.Message)
func (*ReplicaStats) XXX_Size ¶ added in v0.2.0
func (m *ReplicaStats) XXX_Size() int
func (*ReplicaStats) XXX_Unmarshal ¶ added in v0.2.0
func (m *ReplicaStats) XXX_Unmarshal(b []byte) error
type ResourceEpoch ¶
type ResourceEpoch struct { // Conf change version, auto increment when add or remove replica ConfVer uint64 `protobuf:"varint,1,opt,name=confVer,proto3" json:"confVer,omitempty"` // Resource version, auto increment when split or merge Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ResourceEpoch resource epoch
func (*ResourceEpoch) Descriptor ¶
func (*ResourceEpoch) Descriptor() ([]byte, []int)
func (*ResourceEpoch) GetConfVer ¶
func (m *ResourceEpoch) GetConfVer() uint64
func (*ResourceEpoch) GetVersion ¶
func (m *ResourceEpoch) GetVersion() uint64
func (*ResourceEpoch) Marshal ¶
func (m *ResourceEpoch) Marshal() (dAtA []byte, err error)
func (*ResourceEpoch) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *ResourceEpoch) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResourceEpoch) ProtoMessage ¶
func (*ResourceEpoch) ProtoMessage()
func (*ResourceEpoch) Reset ¶
func (m *ResourceEpoch) Reset()
func (*ResourceEpoch) Size ¶
func (m *ResourceEpoch) Size() (n int)
func (*ResourceEpoch) String ¶
func (m *ResourceEpoch) String() string
func (*ResourceEpoch) Unmarshal ¶
func (m *ResourceEpoch) Unmarshal(dAtA []byte) error
func (*ResourceEpoch) XXX_DiscardUnknown ¶
func (m *ResourceEpoch) XXX_DiscardUnknown()
func (*ResourceEpoch) XXX_Marshal ¶
func (m *ResourceEpoch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourceEpoch) XXX_Merge ¶
func (m *ResourceEpoch) XXX_Merge(src proto.Message)
func (*ResourceEpoch) XXX_Size ¶
func (m *ResourceEpoch) XXX_Size() int
func (*ResourceEpoch) XXX_Unmarshal ¶
func (m *ResourceEpoch) XXX_Unmarshal(b []byte) error
type ResourceExtra ¶ added in v0.2.0
type ResourceExtra struct { Labels map[string]string `` /* 153-byte string literal not displayed */ DestroyingStatus *DestroyingStatus `protobuf:"bytes,2,opt,name=destroyingStatus,proto3" json:"destroyingStatus,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ResourceExtra resource extra
func (*ResourceExtra) Descriptor ¶ added in v0.2.0
func (*ResourceExtra) Descriptor() ([]byte, []int)
func (*ResourceExtra) GetDestroyingStatus ¶ added in v0.2.0
func (m *ResourceExtra) GetDestroyingStatus() *DestroyingStatus
func (*ResourceExtra) GetLabels ¶ added in v0.2.0
func (m *ResourceExtra) GetLabels() map[string]string
func (*ResourceExtra) Marshal ¶ added in v0.2.0
func (m *ResourceExtra) Marshal() (dAtA []byte, err error)
func (*ResourceExtra) MarshalTo ¶ added in v0.2.0
func (m *ResourceExtra) MarshalTo(dAtA []byte) (int, error)
func (*ResourceExtra) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *ResourceExtra) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResourceExtra) ProtoMessage ¶ added in v0.2.0
func (*ResourceExtra) ProtoMessage()
func (*ResourceExtra) Reset ¶ added in v0.2.0
func (m *ResourceExtra) Reset()
func (*ResourceExtra) Size ¶ added in v0.2.0
func (m *ResourceExtra) Size() (n int)
func (*ResourceExtra) String ¶ added in v0.2.0
func (m *ResourceExtra) String() string
func (*ResourceExtra) Unmarshal ¶ added in v0.2.0
func (m *ResourceExtra) Unmarshal(dAtA []byte) error
func (*ResourceExtra) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *ResourceExtra) XXX_DiscardUnknown()
func (*ResourceExtra) XXX_Marshal ¶ added in v0.2.0
func (m *ResourceExtra) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourceExtra) XXX_Merge ¶ added in v0.2.0
func (m *ResourceExtra) XXX_Merge(src proto.Message)
func (*ResourceExtra) XXX_Size ¶ added in v0.2.0
func (m *ResourceExtra) XXX_Size() int
func (*ResourceExtra) XXX_Unmarshal ¶ added in v0.2.0
func (m *ResourceExtra) XXX_Unmarshal(b []byte) error
type ResourceKind ¶
type ResourceKind int32
ResourceKind the resource king
const ( ResourceKind_LeaderKind ResourceKind = 0 ResourceKind_ReplicaKind ResourceKind = 1 )
func (ResourceKind) EnumDescriptor ¶
func (ResourceKind) EnumDescriptor() ([]byte, []int)
func (ResourceKind) String ¶
func (x ResourceKind) String() string
type ResourcePool ¶
type ResourcePool struct { Group uint64 `protobuf:"varint,1,opt,name=group,proto3" json:"group,omitempty"` Capacity uint64 `protobuf:"varint,2,opt,name=capacity,proto3" json:"capacity,omitempty"` RangePrefix []byte `protobuf:"bytes,3,opt,name=rangePrefix,proto3" json:"rangePrefix,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ResourcePool resource pool
func (*ResourcePool) Descriptor ¶
func (*ResourcePool) Descriptor() ([]byte, []int)
func (*ResourcePool) GetCapacity ¶
func (m *ResourcePool) GetCapacity() uint64
func (*ResourcePool) GetGroup ¶
func (m *ResourcePool) GetGroup() uint64
func (*ResourcePool) GetRangePrefix ¶
func (m *ResourcePool) GetRangePrefix() []byte
func (*ResourcePool) Marshal ¶
func (m *ResourcePool) Marshal() (dAtA []byte, err error)
func (*ResourcePool) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *ResourcePool) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResourcePool) ProtoMessage ¶
func (*ResourcePool) ProtoMessage()
func (*ResourcePool) Reset ¶
func (m *ResourcePool) Reset()
func (*ResourcePool) Size ¶
func (m *ResourcePool) Size() (n int)
func (*ResourcePool) String ¶
func (m *ResourcePool) String() string
func (*ResourcePool) Unmarshal ¶
func (m *ResourcePool) Unmarshal(dAtA []byte) error
func (*ResourcePool) XXX_DiscardUnknown ¶
func (m *ResourcePool) XXX_DiscardUnknown()
func (*ResourcePool) XXX_Marshal ¶
func (m *ResourcePool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourcePool) XXX_Merge ¶
func (m *ResourcePool) XXX_Merge(src proto.Message)
func (*ResourcePool) XXX_Size ¶
func (m *ResourcePool) XXX_Size() int
func (*ResourcePool) XXX_Unmarshal ¶
func (m *ResourcePool) XXX_Unmarshal(b []byte) error
type ResourcePoolJob ¶
type ResourcePoolJob struct { Pools []ResourcePool `protobuf:"bytes,1,rep,name=pools,proto3" json:"pools"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ResourcePoolJob resource pool job
func (*ResourcePoolJob) Descriptor ¶
func (*ResourcePoolJob) Descriptor() ([]byte, []int)
func (*ResourcePoolJob) GetPools ¶
func (m *ResourcePoolJob) GetPools() []ResourcePool
func (*ResourcePoolJob) Marshal ¶
func (m *ResourcePoolJob) Marshal() (dAtA []byte, err error)
func (*ResourcePoolJob) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *ResourcePoolJob) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResourcePoolJob) ProtoMessage ¶
func (*ResourcePoolJob) ProtoMessage()
func (*ResourcePoolJob) Reset ¶
func (m *ResourcePoolJob) Reset()
func (*ResourcePoolJob) Size ¶
func (m *ResourcePoolJob) Size() (n int)
func (*ResourcePoolJob) String ¶
func (m *ResourcePoolJob) String() string
func (*ResourcePoolJob) Unmarshal ¶
func (m *ResourcePoolJob) Unmarshal(dAtA []byte) error
func (*ResourcePoolJob) XXX_DiscardUnknown ¶
func (m *ResourcePoolJob) XXX_DiscardUnknown()
func (*ResourcePoolJob) XXX_Marshal ¶
func (m *ResourcePoolJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourcePoolJob) XXX_Merge ¶
func (m *ResourcePoolJob) XXX_Merge(src proto.Message)
func (*ResourcePoolJob) XXX_Size ¶
func (m *ResourcePoolJob) XXX_Size() int
func (*ResourcePoolJob) XXX_Unmarshal ¶
func (m *ResourcePoolJob) XXX_Unmarshal(b []byte) error
type ResourceState ¶
type ResourceState int32
ResourceState the resource state
const ( // Running is serve state, // this state provides read and write services to the public normally. ResourceState_Running ResourceState = 0 // Creating is waiting to create state, // this state does not provide read and write services to the public. ResourceState_Creating ResourceState = 1 // Destroying is waiting to destroy state, // this state normally cannot provide read and write services to the public, // and the destruction process of resources has not yet been completed. ResourceState_Destroying ResourceState = 2 // Destroyed is the destroyed state, // this state is normally not available for external read and write services, // the resources have been destroyed in the whole cluster and cannot be used again. ResourceState_Destroyed ResourceState = 3 )
func (ResourceState) EnumDescriptor ¶
func (ResourceState) EnumDescriptor() ([]byte, []int)
func (ResourceState) String ¶
func (x ResourceState) String() string
type ResourceStats ¶
type ResourceStats struct { // resource ID ResourceID uint64 `protobuf:"varint,1,opt,name=resourceID,proto3" json:"resourceID,omitempty"` // bytes written during this period WrittenBytes uint64 `protobuf:"varint,2,opt,name=writtenBytes,proto3" json:"writtenBytes,omitempty"` // keys written during this period WrittenKeys uint64 `protobuf:"varint,3,opt,name=writtenKeys,proto3" json:"writtenKeys,omitempty"` // bytes read during this period ReadBytes uint64 `protobuf:"varint,4,opt,name=readBytes,proto3" json:"readBytes,omitempty"` // keys read during this period ReadKeys uint64 `protobuf:"varint,5,opt,name=readKeys,proto3" json:"readKeys,omitempty"` // approximate data size in bytes of the resource ApproximateSize uint64 `protobuf:"varint,6,opt,name=approximateSize,proto3" json:"approximateSize,omitempty"` // approximate count of keys in the resource ApproximateKeys uint64 `protobuf:"varint,7,opt,name=approximateKeys,proto3" json:"approximateKeys,omitempty"` // Actually reported time interval Interval *TimeInterval `protobuf:"bytes,8,opt,name=interval,proto3" json:"interval,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ResourceStats resource stats
func (*ResourceStats) Descriptor ¶
func (*ResourceStats) Descriptor() ([]byte, []int)
func (*ResourceStats) GetApproximateKeys ¶
func (m *ResourceStats) GetApproximateKeys() uint64
func (*ResourceStats) GetApproximateSize ¶
func (m *ResourceStats) GetApproximateSize() uint64
func (*ResourceStats) GetInterval ¶
func (m *ResourceStats) GetInterval() *TimeInterval
func (*ResourceStats) GetReadBytes ¶
func (m *ResourceStats) GetReadBytes() uint64
func (*ResourceStats) GetReadKeys ¶
func (m *ResourceStats) GetReadKeys() uint64
func (*ResourceStats) GetResourceID ¶
func (m *ResourceStats) GetResourceID() uint64
func (*ResourceStats) GetWrittenBytes ¶
func (m *ResourceStats) GetWrittenBytes() uint64
func (*ResourceStats) GetWrittenKeys ¶
func (m *ResourceStats) GetWrittenKeys() uint64
func (*ResourceStats) Marshal ¶
func (m *ResourceStats) Marshal() (dAtA []byte, err error)
func (*ResourceStats) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *ResourceStats) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResourceStats) ProtoMessage ¶
func (*ResourceStats) ProtoMessage()
func (*ResourceStats) Reset ¶
func (m *ResourceStats) Reset()
func (*ResourceStats) Size ¶
func (m *ResourceStats) Size() (n int)
func (*ResourceStats) String ¶
func (m *ResourceStats) String() string
func (*ResourceStats) Unmarshal ¶
func (m *ResourceStats) Unmarshal(dAtA []byte) error
func (*ResourceStats) XXX_DiscardUnknown ¶
func (m *ResourceStats) XXX_DiscardUnknown()
func (*ResourceStats) XXX_Marshal ¶
func (m *ResourceStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourceStats) XXX_Merge ¶
func (m *ResourceStats) XXX_Merge(src proto.Message)
func (*ResourceStats) XXX_Size ¶
func (m *ResourceStats) XXX_Size() int
func (*ResourceStats) XXX_Unmarshal ¶
func (m *ResourceStats) XXX_Unmarshal(b []byte) error
type ScheduleGroupRule ¶ added in v0.2.0
type ScheduleGroupRule struct { ID uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` GroupID uint64 `protobuf:"varint,2,opt,name=groupID,proto3" json:"groupID,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` GroupByLabel string `protobuf:"bytes,4,opt,name=groupByLabel,proto3" json:"groupByLabel,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ScheduleGroupRule resoruce group rule
func (*ScheduleGroupRule) Descriptor ¶ added in v0.2.0
func (*ScheduleGroupRule) Descriptor() ([]byte, []int)
func (*ScheduleGroupRule) GetGroupByLabel ¶ added in v0.2.0
func (m *ScheduleGroupRule) GetGroupByLabel() string
func (*ScheduleGroupRule) GetGroupID ¶ added in v0.2.0
func (m *ScheduleGroupRule) GetGroupID() uint64
func (*ScheduleGroupRule) GetID ¶ added in v0.2.0
func (m *ScheduleGroupRule) GetID() uint64
func (*ScheduleGroupRule) GetName ¶ added in v0.2.0
func (m *ScheduleGroupRule) GetName() string
func (*ScheduleGroupRule) Marshal ¶ added in v0.2.0
func (m *ScheduleGroupRule) Marshal() (dAtA []byte, err error)
func (*ScheduleGroupRule) MarshalTo ¶ added in v0.2.0
func (m *ScheduleGroupRule) MarshalTo(dAtA []byte) (int, error)
func (*ScheduleGroupRule) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *ScheduleGroupRule) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ScheduleGroupRule) ProtoMessage ¶ added in v0.2.0
func (*ScheduleGroupRule) ProtoMessage()
func (*ScheduleGroupRule) Reset ¶ added in v0.2.0
func (m *ScheduleGroupRule) Reset()
func (*ScheduleGroupRule) Size ¶ added in v0.2.0
func (m *ScheduleGroupRule) Size() (n int)
func (*ScheduleGroupRule) String ¶ added in v0.2.0
func (m *ScheduleGroupRule) String() string
func (*ScheduleGroupRule) Unmarshal ¶ added in v0.2.0
func (m *ScheduleGroupRule) Unmarshal(dAtA []byte) error
func (*ScheduleGroupRule) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *ScheduleGroupRule) XXX_DiscardUnknown()
func (*ScheduleGroupRule) XXX_Marshal ¶ added in v0.2.0
func (m *ScheduleGroupRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ScheduleGroupRule) XXX_Merge ¶ added in v0.2.0
func (m *ScheduleGroupRule) XXX_Merge(src proto.Message)
func (*ScheduleGroupRule) XXX_Size ¶ added in v0.2.0
func (m *ScheduleGroupRule) XXX_Size() int
func (*ScheduleGroupRule) XXX_Unmarshal ¶ added in v0.2.0
func (m *ScheduleGroupRule) XXX_Unmarshal(b []byte) error
type TimeInterval ¶
type TimeInterval struct { // The unix timestamp in seconds of the start of this period. Start uint64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"` // The unix timestamp in seconds of the end of this period. End uint64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
TimeInterval time interval
func (*TimeInterval) Descriptor ¶
func (*TimeInterval) Descriptor() ([]byte, []int)
func (*TimeInterval) GetEnd ¶
func (m *TimeInterval) GetEnd() uint64
func (*TimeInterval) GetStart ¶
func (m *TimeInterval) GetStart() uint64
func (*TimeInterval) Marshal ¶
func (m *TimeInterval) Marshal() (dAtA []byte, err error)
func (*TimeInterval) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *TimeInterval) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TimeInterval) ProtoMessage ¶
func (*TimeInterval) ProtoMessage()
func (*TimeInterval) Reset ¶
func (m *TimeInterval) Reset()
func (*TimeInterval) Size ¶
func (m *TimeInterval) Size() (n int)
func (*TimeInterval) String ¶
func (m *TimeInterval) String() string
func (*TimeInterval) Unmarshal ¶
func (m *TimeInterval) Unmarshal(dAtA []byte) error
func (*TimeInterval) XXX_DiscardUnknown ¶
func (m *TimeInterval) XXX_DiscardUnknown()
func (*TimeInterval) XXX_Marshal ¶
func (m *TimeInterval) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TimeInterval) XXX_Merge ¶
func (m *TimeInterval) XXX_Merge(src proto.Message)
func (*TimeInterval) XXX_Size ¶
func (m *TimeInterval) XXX_Size() int
func (*TimeInterval) XXX_Unmarshal ¶
func (m *TimeInterval) XXX_Unmarshal(b []byte) error