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: 7 Imported by: 0

Documentation

Overview

Package wire is a generated protocol buffer package.

It is generated from these files:

bazil.org/bazil/fs/wire/dirent.proto
bazil.org/bazil/fs/wire/snap.proto
bazil.org/bazil/fs/wire/volume.proto

It has these top-level messages:

Dirent
Type
File
Dir

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dir

type Dir struct {
	XXX_unrecognized []byte `json:"-"`
}

Dir is a directory stored fully in the database, not persisted in objects.

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 {
	Inode            uint64 `protobuf:"varint,1,req,name=inode" json:"inode"`
	Type             `protobuf:"bytes,2,req,name=type,embedded=type" json:"type"`
	XXX_unrecognized []byte `json:"-"`
}

func (*Dirent) GetFUSEDirent

func (d *Dirent) GetFUSEDirent(name string) fuse.Dirent

GetFUSEDirent returns a populated fuse.Dirent

func (*Dirent) GetInode

func (m *Dirent) GetInode() uint64

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 KV

type KV struct {
	Local            *KV_Local      `protobuf:"bytes,1,opt,name=local" json:"local,omitempty"`
	External         []*KV_External `protobuf:"bytes,2,rep,name=external" json:"external,omitempty"`
	XXX_unrecognized []byte         `json:"-"`
}

func (*KV) GetExternal

func (m *KV) GetExternal() []*KV_External

func (*KV) GetLocal

func (m *KV) GetLocal() *KV_Local

func (*KV) Marshal

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

func (*KV) MarshalTo

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

func (*KV) ProtoMessage

func (*KV) ProtoMessage()

func (*KV) Reset

func (m *KV) Reset()

func (*KV) Size

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

func (*KV) String

func (m *KV) String() string

func (*KV) Unmarshal

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

type KV_External

type KV_External struct {
	Path string `protobuf:"bytes,1,req,name=path" json:"path"`
	// Must be exactly 32 bytes long.
	Secret           []byte `protobuf:"bytes,2,opt,name=secret" json:"secret"`
	XXX_unrecognized []byte `json:"-"`
}

func (*KV_External) GetPath

func (m *KV_External) GetPath() string

func (*KV_External) GetSecret

func (m *KV_External) GetSecret() []byte

func (*KV_External) Marshal

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

func (*KV_External) MarshalTo

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

func (*KV_External) ProtoMessage

func (*KV_External) ProtoMessage()

func (*KV_External) Reset

func (m *KV_External) Reset()

func (*KV_External) Size

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

func (*KV_External) String

func (m *KV_External) String() string

func (*KV_External) Unmarshal

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

type KV_Local

type KV_Local struct {
	// Must be exactly 32 bytes long.
	Secret           []byte `protobuf:"bytes,1,opt,name=secret" json:"secret"`
	XXX_unrecognized []byte `json:"-"`
}

func (*KV_Local) GetSecret

func (m *KV_Local) GetSecret() []byte

func (*KV_Local) Marshal

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

func (*KV_Local) MarshalTo

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

func (*KV_Local) ProtoMessage

func (*KV_Local) ProtoMessage()

func (*KV_Local) Reset

func (m *KV_Local) Reset()

func (*KV_Local) Size

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

func (*KV_Local) String

func (m *KV_Local) String() string

func (*KV_Local) Unmarshal

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

type SnapshotRef

type SnapshotRef struct {
	Key              bazil_org_bazil_cas.Key `protobuf:"bytes,1,req,name=key,customtype=bazil.org/bazil/cas.Key" json:"key"`
	XXX_unrecognized []byte                  `json:"-"`
}

Snapshot as it is stored into database.

func (*SnapshotRef) Marshal

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

func (*SnapshotRef) MarshalTo

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

func (*SnapshotRef) ProtoMessage

func (*SnapshotRef) ProtoMessage()

func (*SnapshotRef) Reset

func (m *SnapshotRef) Reset()

func (*SnapshotRef) Size

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

func (*SnapshotRef) String

func (m *SnapshotRef) String() string

func (*SnapshotRef) Unmarshal

func (m *SnapshotRef) 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:"-"`
}

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

type VolumeConfig

type VolumeConfig struct {
	// Must be exactly 64 bytes long.
	VolumeID         []byte `protobuf:"bytes,1,req,name=volumeID" json:"volumeID"`
	Storage          KV     `protobuf:"bytes,2,req,name=storage" json:"storage"`
	XXX_unrecognized []byte `json:"-"`
}

func (*VolumeConfig) GetStorage

func (m *VolumeConfig) GetStorage() KV

func (*VolumeConfig) GetVolumeID

func (m *VolumeConfig) GetVolumeID() []byte

func (*VolumeConfig) Marshal

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

func (*VolumeConfig) MarshalTo

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

func (*VolumeConfig) ProtoMessage

func (*VolumeConfig) ProtoMessage()

func (*VolumeConfig) Reset

func (m *VolumeConfig) Reset()

func (*VolumeConfig) Size

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

func (*VolumeConfig) String

func (m *VolumeConfig) String() string

func (*VolumeConfig) Unmarshal

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

Jump to

Keyboard shortcuts

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