wire

package
v0.0.0-...-42c81d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2015 License: MIT Imports: 5 Imported by: 0

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

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) GetAlign

func (m *Dir) GetAlign() uint32

func (*Dir) GetManifest

func (m *Dir) GetManifest() bazil_cas.Manifest

func (*Dir) Marshal

func (m *Dir) Marshal() (data []byte, err error)

func (*Dir) MarshalTo

func (m *Dir) MarshalTo(data []byte) (n int, err error)

func (*Dir) ProtoMessage

func (*Dir) ProtoMessage()

func (*Dir) Reset

func (m *Dir) Reset()

func (*Dir) Size

func (m *Dir) Size() (n int)

func (*Dir) String

func (m *Dir) String() string

func (*Dir) Unmarshal

func (m *Dir) Unmarshal(data []byte) error

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) GetName

func (m *Dirent) GetName() string

func (*Dirent) Marshal

func (m *Dirent) Marshal() (data []byte, err error)

func (*Dirent) MarshalTo

func (m *Dirent) MarshalTo(data []byte) (n int, err error)

func (*Dirent) ProtoMessage

func (*Dirent) ProtoMessage()

func (*Dirent) Reset

func (m *Dirent) Reset()

func (*Dirent) Size

func (m *Dirent) Size() (n int)

func (*Dirent) String

func (m *Dirent) String() string

func (*Dirent) Unmarshal

func (m *Dirent) Unmarshal(data []byte) error

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 (m *File) GetManifest() bazil_cas.Manifest

func (*File) Marshal

func (m *File) Marshal() (data []byte, err error)

func (*File) MarshalTo

func (m *File) MarshalTo(data []byte) (n int, err error)

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) Reset

func (m *File) Reset()

func (*File) Size

func (m *File) Size() (n int)

func (*File) String

func (m *File) String() string

func (*File) Unmarshal

func (m *File) Unmarshal(data []byte) error

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 (m *Snapshot) GetContents() Dir

func (*Snapshot) GetName

func (m *Snapshot) GetName() string

func (*Snapshot) Marshal

func (m *Snapshot) Marshal() (data []byte, err error)

func (*Snapshot) MarshalTo

func (m *Snapshot) MarshalTo(data []byte) (n int, err error)

func (*Snapshot) ProtoMessage

func (*Snapshot) ProtoMessage()

func (*Snapshot) Reset

func (m *Snapshot) Reset()

func (*Snapshot) Size

func (m *Snapshot) Size() (n int)

func (*Snapshot) String

func (m *Snapshot) String() string

func (*Snapshot) Unmarshal

func (m *Snapshot) Unmarshal(data []byte) error

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) GetDir

func (m *Type) GetDir() *Dir

func (*Type) GetFile

func (m *Type) GetFile() *File

func (*Type) GetValue

func (this *Type) GetValue() interface{}

func (*Type) Marshal

func (m *Type) Marshal() (data []byte, err error)

func (*Type) MarshalTo

func (m *Type) MarshalTo(data []byte) (n int, err error)

func (*Type) ProtoMessage

func (*Type) ProtoMessage()

func (*Type) Reset

func (m *Type) Reset()

func (*Type) SetValue

func (this *Type) SetValue(value interface{}) bool

func (*Type) Size

func (m *Type) Size() (n int)

func (*Type) String

func (m *Type) String() string

func (*Type) Unmarshal

func (m *Type) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL