Documentation ¶
Overview ¶
Package protos is a generated protocol buffer package.
It is generated from these files:
backup.proto manifest.proto
It has these top-level messages:
KVPair ManifestChangeSet ManifestChange
Index ¶
- Variables
- type KVPair
- func (*KVPair) Descriptor() ([]byte, []int)
- func (m *KVPair) GetExpiresAt() uint64
- func (m *KVPair) GetKey() []byte
- func (m *KVPair) GetUserMeta() []byte
- func (m *KVPair) GetValue() []byte
- func (m *KVPair) GetVersion() uint64
- func (m *KVPair) Marshal() (dAtA []byte, err error)
- func (m *KVPair) MarshalTo(dAtA []byte) (int, error)
- func (*KVPair) ProtoMessage()
- func (m *KVPair) Reset()
- func (m *KVPair) Size() (n int)
- func (m *KVPair) String() string
- func (m *KVPair) Unmarshal(dAtA []byte) error
- type ManifestChange
- func (*ManifestChange) Descriptor() ([]byte, []int)
- func (m *ManifestChange) GetId() uint64
- func (m *ManifestChange) GetLevel() uint32
- func (m *ManifestChange) GetOp() ManifestChange_Operation
- func (m *ManifestChange) Marshal() (dAtA []byte, err error)
- func (m *ManifestChange) MarshalTo(dAtA []byte) (int, error)
- func (*ManifestChange) ProtoMessage()
- func (m *ManifestChange) Reset()
- func (m *ManifestChange) Size() (n int)
- func (m *ManifestChange) String() string
- func (m *ManifestChange) Unmarshal(dAtA []byte) error
- type ManifestChangeSet
- func (*ManifestChangeSet) Descriptor() ([]byte, []int)
- func (m *ManifestChangeSet) GetChanges() []*ManifestChange
- func (m *ManifestChangeSet) Marshal() (dAtA []byte, err error)
- func (m *ManifestChangeSet) MarshalTo(dAtA []byte) (int, error)
- func (*ManifestChangeSet) ProtoMessage()
- func (m *ManifestChangeSet) Reset()
- func (m *ManifestChangeSet) Size() (n int)
- func (m *ManifestChangeSet) String() string
- func (m *ManifestChangeSet) Unmarshal(dAtA []byte) error
- type ManifestChange_Operation
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthBackup = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBackup = fmt.Errorf("proto: integer overflow") )
View Source
var ( ErrInvalidLengthManifest = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowManifest = fmt.Errorf("proto: integer overflow") )
View Source
var ManifestChange_Operation_name = map[int32]string{
0: "CREATE",
1: "DELETE",
}
View Source
var ManifestChange_Operation_value = map[string]int32{
"CREATE": 0,
"DELETE": 1,
}
Functions ¶
This section is empty.
Types ¶
type KVPair ¶
type KVPair struct { Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` UserMeta []byte `protobuf:"bytes,3,opt,name=userMeta,proto3" json:"userMeta,omitempty"` Version uint64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` ExpiresAt uint64 `protobuf:"varint,5,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` }
func (*KVPair) Descriptor ¶
func (*KVPair) GetExpiresAt ¶ added in v1.0.0
func (*KVPair) GetUserMeta ¶
func (*KVPair) GetVersion ¶ added in v0.9.0
func (*KVPair) ProtoMessage ¶
func (*KVPair) ProtoMessage()
type ManifestChange ¶
type ManifestChange struct { Id uint64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` Op ManifestChange_Operation `protobuf:"varint,2,opt,name=Op,proto3,enum=protos.ManifestChange_Operation" json:"Op,omitempty"` Level uint32 `protobuf:"varint,3,opt,name=Level,proto3" json:"Level,omitempty"` }
func (*ManifestChange) Descriptor ¶
func (*ManifestChange) Descriptor() ([]byte, []int)
func (*ManifestChange) GetId ¶
func (m *ManifestChange) GetId() uint64
func (*ManifestChange) GetLevel ¶
func (m *ManifestChange) GetLevel() uint32
func (*ManifestChange) GetOp ¶
func (m *ManifestChange) GetOp() ManifestChange_Operation
func (*ManifestChange) Marshal ¶
func (m *ManifestChange) Marshal() (dAtA []byte, err error)
func (*ManifestChange) ProtoMessage ¶
func (*ManifestChange) ProtoMessage()
func (*ManifestChange) Reset ¶
func (m *ManifestChange) Reset()
func (*ManifestChange) Size ¶
func (m *ManifestChange) Size() (n int)
func (*ManifestChange) String ¶
func (m *ManifestChange) String() string
func (*ManifestChange) Unmarshal ¶
func (m *ManifestChange) Unmarshal(dAtA []byte) error
type ManifestChangeSet ¶
type ManifestChangeSet struct { // A set of changes that are applied atomically. Changes []*ManifestChange `protobuf:"bytes,1,rep,name=changes" json:"changes,omitempty"` }
func (*ManifestChangeSet) Descriptor ¶
func (*ManifestChangeSet) Descriptor() ([]byte, []int)
func (*ManifestChangeSet) GetChanges ¶
func (m *ManifestChangeSet) GetChanges() []*ManifestChange
func (*ManifestChangeSet) Marshal ¶
func (m *ManifestChangeSet) Marshal() (dAtA []byte, err error)
func (*ManifestChangeSet) MarshalTo ¶
func (m *ManifestChangeSet) MarshalTo(dAtA []byte) (int, error)
func (*ManifestChangeSet) ProtoMessage ¶
func (*ManifestChangeSet) ProtoMessage()
func (*ManifestChangeSet) Reset ¶
func (m *ManifestChangeSet) Reset()
func (*ManifestChangeSet) Size ¶
func (m *ManifestChangeSet) Size() (n int)
func (*ManifestChangeSet) String ¶
func (m *ManifestChangeSet) String() string
func (*ManifestChangeSet) Unmarshal ¶
func (m *ManifestChangeSet) Unmarshal(dAtA []byte) error
type ManifestChange_Operation ¶
type ManifestChange_Operation int32
const ( ManifestChange_CREATE ManifestChange_Operation = 0 ManifestChange_DELETE ManifestChange_Operation = 1 )
func (ManifestChange_Operation) EnumDescriptor ¶
func (ManifestChange_Operation) EnumDescriptor() ([]byte, []int)
func (ManifestChange_Operation) String ¶
func (x ManifestChange_Operation) String() string
Click to show internal directories.
Click to hide internal directories.