Documentation ¶
Overview ¶
Package wire is a generated protocol buffer package.
It is generated from these files:
bazil.org/bazil/fs/snap/wire/snap.proto
It has these top-level messages:
Dirent Type File Dir Snapshot
Index ¶
- type Dir
- func (m *Dir) GetAlign() uint32
- func (m *Dir) GetManifest() bazil_cas.Manifest
- func (m *Dir) Marshal() (data []byte, err error)
- func (m *Dir) MarshalTo(data []byte) (n int, err error)
- func (*Dir) ProtoMessage()
- func (m *Dir) Reset()
- func (m *Dir) Size() (n int)
- func (m *Dir) String() string
- func (m *Dir) Unmarshal(data []byte) error
- type Dirent
- func (m *Dirent) GetName() string
- func (m *Dirent) Marshal() (data []byte, err error)
- func (m *Dirent) MarshalTo(data []byte) (n int, err error)
- func (*Dirent) ProtoMessage()
- func (m *Dirent) Reset()
- func (m *Dirent) Size() (n int)
- func (m *Dirent) String() string
- func (m *Dirent) Unmarshal(data []byte) error
- type File
- func (m *File) GetManifest() bazil_cas.Manifest
- func (m *File) Marshal() (data []byte, err error)
- func (m *File) MarshalTo(data []byte) (n int, err error)
- func (*File) ProtoMessage()
- func (m *File) Reset()
- func (m *File) Size() (n int)
- func (m *File) String() string
- func (m *File) Unmarshal(data []byte) error
- type Snapshot
- func (m *Snapshot) GetContents() Dir
- func (m *Snapshot) GetName() string
- func (m *Snapshot) Marshal() (data []byte, err error)
- func (m *Snapshot) MarshalTo(data []byte) (n int, err error)
- func (*Snapshot) ProtoMessage()
- func (m *Snapshot) Reset()
- func (m *Snapshot) Size() (n int)
- func (m *Snapshot) String() string
- func (m *Snapshot) Unmarshal(data []byte) error
- type Type
- func (m *Type) GetDir() *Dir
- func (m *Type) GetFile() *File
- func (this *Type) GetValue() interface{}
- func (m *Type) Marshal() (data []byte, err error)
- func (m *Type) MarshalTo(data []byte) (n int, err error)
- func (*Type) ProtoMessage()
- func (m *Type) Reset()
- func (this *Type) SetValue(value interface{}) bool
- func (m *Type) Size() (n int)
- func (m *Type) String() string
- func (m *Type) Unmarshal(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dir ¶
type Dir struct { Manifest bazil_cas.Manifest `protobuf:"bytes,1,req,name=manifest" json:"manifest"` // If >0, the direntries are guaranteed to be aligned at // 1<<(12+align-1) byte boundaries (that is, minimum alignment is // 4kB). // // Required, with value 0 reserved for disabled, to avoid pointer // indirection costs for a few bytes. Align uint32 `protobuf:"varint,2,req,name=align" json:"align"` XXX_unrecognized []byte `json:"-"` }
func (*Dir) GetManifest ¶
func (*Dir) ProtoMessage ¶
func (*Dir) ProtoMessage()
type Dirent ¶
type Dirent struct { Name string `protobuf:"bytes,1,req,name=name" json:"name"` Type `protobuf:"bytes,2,req,name=type,embedded=type" json:"type"` XXX_unrecognized []byte `json:"-"` }
func (*Dirent) ProtoMessage ¶
func (*Dirent) ProtoMessage()
type File ¶
type File struct { Manifest bazil_cas.Manifest `protobuf:"bytes,1,req,name=manifest" json:"manifest"` XXX_unrecognized []byte `json:"-"` }
func (*File) GetManifest ¶
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
type Snapshot ¶
type Snapshot struct { Name string `protobuf:"bytes,1,req,name=name" json:"name"` Contents Dir `protobuf:"bytes,2,req,name=contents" json:"contents"` XXX_unrecognized []byte `json:"-"` }
Snapshot as it is stored into CAS.
func (*Snapshot) GetContents ¶
func (*Snapshot) ProtoMessage ¶
func (*Snapshot) ProtoMessage()
type Type ¶
type Type struct { File *File `protobuf:"bytes,1,opt,name=file" json:"file,omitempty"` Dir *Dir `protobuf:"bytes,2,opt,name=dir" json:"dir,omitempty"` XXX_unrecognized []byte `json:"-"` }
TODO is this any better than embedding these as optionals right into Dirent
func (*Type) ProtoMessage ¶
func (*Type) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.