Documentation ¶
Index ¶
- Variables
- type BlockCommandRequest
- func (*BlockCommandRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BlockCommandRequest) GetCmd() BlockCommandRequest_Cmd
- func (x *BlockCommandRequest) GetData() []byte
- func (x *BlockCommandRequest) GetLength() int32
- func (x *BlockCommandRequest) GetOffset() int64
- func (x *BlockCommandRequest) GetVolume() string
- func (*BlockCommandRequest) ProtoMessage()
- func (x *BlockCommandRequest) ProtoReflect() protoreflect.Message
- func (x *BlockCommandRequest) Reset()
- func (x *BlockCommandRequest) String() string
- type BlockCommandRequest_Cmd
- func (BlockCommandRequest_Cmd) Descriptor() protoreflect.EnumDescriptor
- func (x BlockCommandRequest_Cmd) Enum() *BlockCommandRequest_Cmd
- func (BlockCommandRequest_Cmd) EnumDescriptor() ([]byte, []int)deprecated
- func (x BlockCommandRequest_Cmd) Number() protoreflect.EnumNumber
- func (x BlockCommandRequest_Cmd) String() string
- func (BlockCommandRequest_Cmd) Type() protoreflect.EnumType
- type BlockCommandResponse
- func (*BlockCommandResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BlockCommandResponse) GetData() []byte
- func (x *BlockCommandResponse) GetError() string
- func (x *BlockCommandResponse) GetRetryAt() string
- func (x *BlockCommandResponse) GetVolume() string
- func (*BlockCommandResponse) ProtoMessage()
- func (x *BlockCommandResponse) ProtoReflect() protoreflect.Message
- func (x *BlockCommandResponse) Reset()
- func (x *BlockCommandResponse) String() string
- type PeerNegotiate
- func (*PeerNegotiate) Descriptor() ([]byte, []int)deprecated
- func (x *PeerNegotiate) GetIAm() string
- func (x *PeerNegotiate) GetYouAre() string
- func (*PeerNegotiate) ProtoMessage()
- func (x *PeerNegotiate) ProtoReflect() protoreflect.Message
- func (x *PeerNegotiate) Reset()
- func (x *PeerNegotiate) String() string
- type PeerPing
- type PeerRPC
- func (*PeerRPC) Descriptor() ([]byte, []int)deprecated
- func (x *PeerRPC) GetAsync() bool
- func (x *PeerRPC) GetBlockCommand() *BlockCommandRequest
- func (x *PeerRPC) GetBlockCommandResponse() *BlockCommandResponse
- func (x *PeerRPC) GetMetadata() *RPCMetadata
- func (x *PeerRPC) GetPeerPing() *PeerPing
- func (m *PeerRPC) GetRPC() isPeerRPC_RPC
- func (x *PeerRPC) GetRaftRPC() *RaftRPC
- func (*PeerRPC) ProtoMessage()
- func (x *PeerRPC) ProtoReflect() protoreflect.Message
- func (x *PeerRPC) Reset()
- func (x *PeerRPC) String() string
- type PeerRPC_BlockCommand
- type PeerRPC_BlockCommandResponse
- type PeerRPC_PeerPing
- type PeerRPC_RaftRPC
- type RPCMetadata
- func (*RPCMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *RPCMetadata) GetAllowForwarding() bool
- func (x *RPCMetadata) GetLeaderOnly() bool
- func (x *RPCMetadata) GetTTL() int32
- func (*RPCMetadata) ProtoMessage()
- func (x *RPCMetadata) ProtoReflect() protoreflect.Message
- func (x *RPCMetadata) Reset()
- func (x *RPCMetadata) String() string
- type RaftRPC
- func (*RaftRPC) Descriptor() ([]byte, []int)deprecated
- func (x *RaftRPC) GetCommand() []byte
- func (x *RaftRPC) GetError() string
- func (x *RaftRPC) GetType() int32
- func (x *RaftRPC) GetVolume() string
- func (*RaftRPC) ProtoMessage()
- func (x *RaftRPC) ProtoReflect() protoreflect.Message
- func (x *RaftRPC) Reset()
- func (x *RaftRPC) String() string
- type Snapshot
- func (*Snapshot) Descriptor() ([]byte, []int)deprecated
- func (x *Snapshot) GetAvailabilityArea() string
- func (x *Snapshot) GetCreatedAt() string
- func (x *Snapshot) GetId() string
- func (x *Snapshot) GetMetadata() map[string][]byte
- func (x *Snapshot) GetSize() int64
- func (x *Snapshot) GetStatus() VolumeStatus
- func (x *Snapshot) GetStore() string
- func (x *Snapshot) GetUpdatedAt() string
- func (x *Snapshot) GetVolume() string
- func (*Snapshot) ProtoMessage()
- func (x *Snapshot) ProtoReflect() protoreflect.Message
- func (x *Snapshot) Reset()
- func (x *Snapshot) String() string
- type Volume
- func (*Volume) Descriptor() ([]byte, []int)deprecated
- func (x *Volume) GetAccount() int32
- func (x *Volume) GetAvailabilityArea() string
- func (x *Volume) GetCreatedAt() string
- func (x *Volume) GetId() string
- func (x *Volume) GetMetadata() map[string][]byte
- func (x *Volume) GetSize() int64
- func (x *Volume) GetStatus() VolumeStatus
- func (x *Volume) GetStore() string
- func (x *Volume) GetUpdatedAt() string
- func (*Volume) ProtoMessage()
- func (x *Volume) ProtoReflect() protoreflect.Message
- func (x *Volume) Reset()
- func (x *Volume) String() string
- type VolumeStatus
- func (VolumeStatus) Descriptor() protoreflect.EnumDescriptor
- func (x VolumeStatus) Enum() *VolumeStatus
- func (VolumeStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x VolumeStatus) Number() protoreflect.EnumNumber
- func (x VolumeStatus) String() string
- func (VolumeStatus) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( VolumeStatus_name = map[int32]string{ 0: "PENDING", 1: "CREATING", 2: "AVAILABLE", 3: "INUSE", 4: "BACKINGUP", 5: "RESTORING", 6: "RESIZING", 7: "DELETING", 8: "DELETED", 99: "ERROR", } VolumeStatus_value = map[string]int32{ "PENDING": 0, "CREATING": 1, "AVAILABLE": 2, "INUSE": 3, "BACKINGUP": 4, "RESTORING": 5, "RESIZING": 6, "DELETING": 7, "DELETED": 8, "ERROR": 99, } )
Enum value maps for VolumeStatus.
View Source
var ( BlockCommandRequest_Cmd_name = map[int32]string{ 0: "WRITE", 1: "READ", 2: "ZERO", } BlockCommandRequest_Cmd_value = map[string]int32{ "WRITE": 0, "READ": 1, "ZERO": 2, } )
Enum value maps for BlockCommandRequest_Cmd.
View Source
var File_volumes_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BlockCommandRequest ¶
type BlockCommandRequest struct { Volume string `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume,omitempty"` Cmd BlockCommandRequest_Cmd `protobuf:"varint,2,opt,name=cmd,proto3,enum=vpc.volumes.BlockCommandRequest_Cmd" json:"cmd,omitempty"` Offset int64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` Length int32 `protobuf:"varint,4,opt,name=length,proto3" json:"length,omitempty"` Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*BlockCommandRequest) Descriptor
deprecated
func (*BlockCommandRequest) Descriptor() ([]byte, []int)
Deprecated: Use BlockCommandRequest.ProtoReflect.Descriptor instead.
func (*BlockCommandRequest) GetCmd ¶
func (x *BlockCommandRequest) GetCmd() BlockCommandRequest_Cmd
func (*BlockCommandRequest) GetData ¶
func (x *BlockCommandRequest) GetData() []byte
func (*BlockCommandRequest) GetLength ¶
func (x *BlockCommandRequest) GetLength() int32
func (*BlockCommandRequest) GetOffset ¶
func (x *BlockCommandRequest) GetOffset() int64
func (*BlockCommandRequest) GetVolume ¶
func (x *BlockCommandRequest) GetVolume() string
func (*BlockCommandRequest) ProtoMessage ¶
func (*BlockCommandRequest) ProtoMessage()
func (*BlockCommandRequest) ProtoReflect ¶
func (x *BlockCommandRequest) ProtoReflect() protoreflect.Message
func (*BlockCommandRequest) Reset ¶
func (x *BlockCommandRequest) Reset()
func (*BlockCommandRequest) String ¶
func (x *BlockCommandRequest) String() string
type BlockCommandRequest_Cmd ¶
type BlockCommandRequest_Cmd int32
const ( BlockCommandRequest_WRITE BlockCommandRequest_Cmd = 0 BlockCommandRequest_READ BlockCommandRequest_Cmd = 1 BlockCommandRequest_ZERO BlockCommandRequest_Cmd = 2 )
func (BlockCommandRequest_Cmd) Descriptor ¶
func (BlockCommandRequest_Cmd) Descriptor() protoreflect.EnumDescriptor
func (BlockCommandRequest_Cmd) Enum ¶
func (x BlockCommandRequest_Cmd) Enum() *BlockCommandRequest_Cmd
func (BlockCommandRequest_Cmd) EnumDescriptor
deprecated
func (BlockCommandRequest_Cmd) EnumDescriptor() ([]byte, []int)
Deprecated: Use BlockCommandRequest_Cmd.Descriptor instead.
func (BlockCommandRequest_Cmd) Number ¶
func (x BlockCommandRequest_Cmd) Number() protoreflect.EnumNumber
func (BlockCommandRequest_Cmd) String ¶
func (x BlockCommandRequest_Cmd) String() string
func (BlockCommandRequest_Cmd) Type ¶
func (BlockCommandRequest_Cmd) Type() protoreflect.EnumType
type BlockCommandResponse ¶
type BlockCommandResponse struct { Volume string `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume,omitempty"` RetryAt string `protobuf:"bytes,2,opt,name=retryAt,proto3" json:"retryAt,omitempty"` //peer ID to retry to request at - i.e. peer not leader Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*BlockCommandResponse) Descriptor
deprecated
func (*BlockCommandResponse) Descriptor() ([]byte, []int)
Deprecated: Use BlockCommandResponse.ProtoReflect.Descriptor instead.
func (*BlockCommandResponse) GetData ¶
func (x *BlockCommandResponse) GetData() []byte
func (*BlockCommandResponse) GetError ¶
func (x *BlockCommandResponse) GetError() string
func (*BlockCommandResponse) GetRetryAt ¶
func (x *BlockCommandResponse) GetRetryAt() string
func (*BlockCommandResponse) GetVolume ¶
func (x *BlockCommandResponse) GetVolume() string
func (*BlockCommandResponse) ProtoMessage ¶
func (*BlockCommandResponse) ProtoMessage()
func (*BlockCommandResponse) ProtoReflect ¶
func (x *BlockCommandResponse) ProtoReflect() protoreflect.Message
func (*BlockCommandResponse) Reset ¶
func (x *BlockCommandResponse) Reset()
func (*BlockCommandResponse) String ¶
func (x *BlockCommandResponse) String() string
type PeerNegotiate ¶
type PeerNegotiate struct { IAm string `protobuf:"bytes,1,opt,name=IAm,proto3" json:"IAm,omitempty"` YouAre string `protobuf:"bytes,2,opt,name=YouAre,proto3" json:"YouAre,omitempty"` // contains filtered or unexported fields }
func (*PeerNegotiate) Descriptor
deprecated
func (*PeerNegotiate) Descriptor() ([]byte, []int)
Deprecated: Use PeerNegotiate.ProtoReflect.Descriptor instead.
func (*PeerNegotiate) GetIAm ¶
func (x *PeerNegotiate) GetIAm() string
func (*PeerNegotiate) GetYouAre ¶
func (x *PeerNegotiate) GetYouAre() string
func (*PeerNegotiate) ProtoMessage ¶
func (*PeerNegotiate) ProtoMessage()
func (*PeerNegotiate) ProtoReflect ¶
func (x *PeerNegotiate) ProtoReflect() protoreflect.Message
func (*PeerNegotiate) Reset ¶
func (x *PeerNegotiate) Reset()
func (*PeerNegotiate) String ¶
func (x *PeerNegotiate) String() string
type PeerPing ¶
type PeerPing struct { Ts int64 `protobuf:"varint,1,opt,name=ts,proto3" json:"ts,omitempty"` // contains filtered or unexported fields }
func (*PeerPing) Descriptor
deprecated
func (*PeerPing) ProtoMessage ¶
func (*PeerPing) ProtoMessage()
func (*PeerPing) ProtoReflect ¶
func (x *PeerPing) ProtoReflect() protoreflect.Message
type PeerRPC ¶
type PeerRPC struct { Metadata *RPCMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // Types that are assignable to RPC: // *PeerRPC_RaftRPC // *PeerRPC_PeerPing // *PeerRPC_BlockCommand // *PeerRPC_BlockCommandResponse RPC isPeerRPC_RPC `protobuf_oneof:"RPC"` Async bool `protobuf:"varint,101,opt,name=async,proto3" json:"async,omitempty"` // contains filtered or unexported fields }
func (*PeerRPC) Descriptor
deprecated
func (*PeerRPC) GetBlockCommand ¶
func (x *PeerRPC) GetBlockCommand() *BlockCommandRequest
func (*PeerRPC) GetBlockCommandResponse ¶
func (x *PeerRPC) GetBlockCommandResponse() *BlockCommandResponse
func (*PeerRPC) GetMetadata ¶
func (x *PeerRPC) GetMetadata() *RPCMetadata
func (*PeerRPC) GetPeerPing ¶
func (*PeerRPC) GetRaftRPC ¶
func (*PeerRPC) ProtoMessage ¶
func (*PeerRPC) ProtoMessage()
func (*PeerRPC) ProtoReflect ¶
func (x *PeerRPC) ProtoReflect() protoreflect.Message
type PeerRPC_BlockCommand ¶
type PeerRPC_BlockCommand struct {
BlockCommand *BlockCommandRequest `protobuf:"bytes,4,opt,name=BlockCommand,proto3,oneof"`
}
type PeerRPC_BlockCommandResponse ¶
type PeerRPC_BlockCommandResponse struct {
BlockCommandResponse *BlockCommandResponse `protobuf:"bytes,5,opt,name=BlockCommandResponse,proto3,oneof"`
}
type PeerRPC_PeerPing ¶
type PeerRPC_PeerPing struct {
PeerPing *PeerPing `protobuf:"bytes,3,opt,name=PeerPing,proto3,oneof"`
}
type PeerRPC_RaftRPC ¶
type PeerRPC_RaftRPC struct {
RaftRPC *RaftRPC `protobuf:"bytes,2,opt,name=RaftRPC,proto3,oneof"`
}
type RPCMetadata ¶
type RPCMetadata struct { LeaderOnly bool `protobuf:"varint,1,opt,name=leaderOnly,proto3" json:"leaderOnly,omitempty"` //to prevent stale reads if no caching on client side - all writes must still go to leader AllowForwarding bool `protobuf:"varint,2,opt,name=allowForwarding,proto3" json:"allowForwarding,omitempty"` TTL int32 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"` // contains filtered or unexported fields }
func (*RPCMetadata) Descriptor
deprecated
func (*RPCMetadata) Descriptor() ([]byte, []int)
Deprecated: Use RPCMetadata.ProtoReflect.Descriptor instead.
func (*RPCMetadata) GetAllowForwarding ¶
func (x *RPCMetadata) GetAllowForwarding() bool
func (*RPCMetadata) GetLeaderOnly ¶
func (x *RPCMetadata) GetLeaderOnly() bool
func (*RPCMetadata) GetTTL ¶
func (x *RPCMetadata) GetTTL() int32
func (*RPCMetadata) ProtoMessage ¶
func (*RPCMetadata) ProtoMessage()
func (*RPCMetadata) ProtoReflect ¶
func (x *RPCMetadata) ProtoReflect() protoreflect.Message
func (*RPCMetadata) Reset ¶
func (x *RPCMetadata) Reset()
func (*RPCMetadata) String ¶
func (x *RPCMetadata) String() string
type RaftRPC ¶
type RaftRPC struct { Volume string `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume,omitempty"` Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` Command []byte `protobuf:"bytes,3,opt,name=command,proto3" json:"command,omitempty"` Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*RaftRPC) Descriptor
deprecated
func (*RaftRPC) GetCommand ¶
func (*RaftRPC) ProtoMessage ¶
func (*RaftRPC) ProtoMessage()
func (*RaftRPC) ProtoReflect ¶
func (x *RaftRPC) ProtoReflect() protoreflect.Message
type Snapshot ¶
type Snapshot struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Volume string `protobuf:"bytes,2,opt,name=volume,proto3" json:"volume,omitempty"` Status VolumeStatus `protobuf:"varint,3,opt,name=status,proto3,enum=vpc.volumes.VolumeStatus" json:"status,omitempty"` Metadata map[string][]byte `` /* 157-byte string literal not displayed */ CreatedAt string `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` Size int64 `protobuf:"varint,7,opt,name=size,proto3" json:"size,omitempty"` Store string `protobuf:"bytes,8,opt,name=store,proto3" json:"store,omitempty"` AvailabilityArea string `protobuf:"bytes,9,opt,name=availability_area,json=availabilityArea,proto3" json:"availability_area,omitempty"` // contains filtered or unexported fields }
func (*Snapshot) Descriptor
deprecated
func (*Snapshot) GetAvailabilityArea ¶
func (*Snapshot) GetCreatedAt ¶
func (*Snapshot) GetMetadata ¶
func (*Snapshot) GetStatus ¶
func (x *Snapshot) GetStatus() VolumeStatus
func (*Snapshot) GetUpdatedAt ¶
func (*Snapshot) ProtoMessage ¶
func (*Snapshot) ProtoMessage()
func (*Snapshot) ProtoReflect ¶
func (x *Snapshot) ProtoReflect() protoreflect.Message
type Volume ¶
type Volume struct { Account int32 `protobuf:"varint,1,opt,name=account,proto3" json:"account,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Status VolumeStatus `protobuf:"varint,3,opt,name=status,proto3,enum=vpc.volumes.VolumeStatus" json:"status,omitempty"` Metadata map[string][]byte `` /* 157-byte string literal not displayed */ CreatedAt string `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` Size int64 `protobuf:"varint,7,opt,name=size,proto3" json:"size,omitempty"` Store string `protobuf:"bytes,8,opt,name=store,proto3" json:"store,omitempty"` AvailabilityArea string `protobuf:"bytes,9,opt,name=availability_area,json=availabilityArea,proto3" json:"availability_area,omitempty"` // contains filtered or unexported fields }
func (*Volume) Descriptor
deprecated
func (*Volume) GetAccount ¶
func (*Volume) GetAvailabilityArea ¶
func (*Volume) GetCreatedAt ¶
func (*Volume) GetMetadata ¶
func (*Volume) GetStatus ¶
func (x *Volume) GetStatus() VolumeStatus
func (*Volume) GetUpdatedAt ¶
func (*Volume) ProtoMessage ¶
func (*Volume) ProtoMessage()
func (*Volume) ProtoReflect ¶
func (x *Volume) ProtoReflect() protoreflect.Message
type VolumeStatus ¶
type VolumeStatus int32
const ( VolumeStatus_PENDING VolumeStatus = 0 VolumeStatus_CREATING VolumeStatus = 1 VolumeStatus_AVAILABLE VolumeStatus = 2 VolumeStatus_INUSE VolumeStatus = 3 VolumeStatus_BACKINGUP VolumeStatus = 4 VolumeStatus_RESTORING VolumeStatus = 5 VolumeStatus_RESIZING VolumeStatus = 6 VolumeStatus_DELETING VolumeStatus = 7 VolumeStatus_DELETED VolumeStatus = 8 VolumeStatus_ERROR VolumeStatus = 99 )
func (VolumeStatus) Descriptor ¶
func (VolumeStatus) Descriptor() protoreflect.EnumDescriptor
func (VolumeStatus) Enum ¶
func (x VolumeStatus) Enum() *VolumeStatus
func (VolumeStatus) EnumDescriptor
deprecated
func (VolumeStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use VolumeStatus.Descriptor instead.
func (VolumeStatus) Number ¶
func (x VolumeStatus) Number() protoreflect.EnumNumber
func (VolumeStatus) String ¶
func (x VolumeStatus) String() string
func (VolumeStatus) Type ¶
func (VolumeStatus) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.