wire

package
v0.0.0-...-330f150 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2016 License: MIT Imports: 2 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
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,opt,name=manifest" json:"manifest,omitempty"`
	// If >0, the direntries are guaranteed to be aligned at
	// 1<<(12+align-1) byte boundaries (that is, minimum alignment is
	// 4kB).
	Align uint32 `protobuf:"varint,2,opt,name=align" json:"align,omitempty"`
}

func (*Dir) GetManifest

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

func (*Dir) ProtoMessage

func (*Dir) ProtoMessage()

func (*Dir) Reset

func (m *Dir) Reset()

func (*Dir) String

func (m *Dir) String() string

type Dirent

type Dirent struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	File *File  `protobuf:"bytes,2,opt,name=file" json:"file,omitempty"`
	Dir  *Dir   `protobuf:"bytes,3,opt,name=dir" json:"dir,omitempty"`
}

func (*Dirent) GetDir

func (m *Dirent) GetDir() *Dir

func (*Dirent) GetFile

func (m *Dirent) GetFile() *File

func (*Dirent) ProtoMessage

func (*Dirent) ProtoMessage()

func (*Dirent) Reset

func (m *Dirent) Reset()

func (*Dirent) String

func (m *Dirent) String() string

type File

type File struct {
	Manifest *bazil_cas.Manifest `protobuf:"bytes,1,opt,name=manifest" json:"manifest,omitempty"`
}

func (*File) GetManifest

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

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) Reset

func (m *File) Reset()

func (*File) String

func (m *File) String() string

type Snapshot

type Snapshot struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// The name field of the root directory is empty.
	Contents *Dirent `protobuf:"bytes,2,opt,name=contents" json:"contents,omitempty"`
}

Snapshot as it is stored into CAS.

func (*Snapshot) GetContents

func (m *Snapshot) GetContents() *Dirent

func (*Snapshot) ProtoMessage

func (*Snapshot) ProtoMessage()

func (*Snapshot) Reset

func (m *Snapshot) Reset()

func (*Snapshot) String

func (m *Snapshot) String() string

Jump to

Keyboard shortcuts

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