Documentation ¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
github.com/containerd/containerd/snapshot/storage/proto/record.proto
It has these top-level messages:
Snapshot
Index ¶
- Variables
- type Kind
- type Snapshot
- func (*Snapshot) Descriptor() ([]byte, []int)
- func (m *Snapshot) Marshal() (dAtA []byte, err error)
- func (m *Snapshot) MarshalTo(dAtA []byte) (int, error)
- func (*Snapshot) ProtoMessage()
- func (m *Snapshot) Reset()
- func (m *Snapshot) Size() (n int)
- func (this *Snapshot) String() string
- func (m *Snapshot) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthRecord = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRecord = fmt.Errorf("proto: integer overflow") )
View Source
var Kind_name = map[int32]string{
0: "ACTIVE",
1: "COMMITTED",
}
View Source
var Kind_value = map[string]int32{
"ACTIVE": 0,
"COMMITTED": 1,
}
Functions ¶
This section is empty.
Types ¶
type Snapshot ¶
type Snapshot struct { ID uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"` Kind Kind `protobuf:"varint,4,opt,name=kind,proto3,enum=containerd.snapshot.v1.Kind" json:"kind,omitempty"` Readonly bool `protobuf:"varint,5,opt,name=readonly,proto3" json:"readonly,omitempty"` // inodes stores the number inodes in use for the snapshot. // // Only valid for committed snapshots. Inodes int64 `protobuf:"varint,6,opt,name=inodes,proto3" json:"inodes,omitempty"` // Size reports the disk used by the snapshot, excluding the parents. // // Only valid for committed snapshots, active snapshots must read the // current usage from the disk. Size_ int64 `protobuf:"varint,7,opt,name=size,proto3" json:"size,omitempty"` }
Snapshot defines the storage type for a snapshot in the metadata store.
func (*Snapshot) Descriptor ¶
func (*Snapshot) ProtoMessage ¶
func (*Snapshot) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.