wire

package
v0.0.0-...-810cf82 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2019 License: MIT Imports: 4 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dir

type Dir struct {
	Manifest *wire.Manifest `protobuf:"bytes,1,opt,name=manifest,proto3" 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,proto3" json:"align,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Dir) Descriptor

func (*Dir) Descriptor() ([]byte, []int)

func (*Dir) GetAlign

func (m *Dir) GetAlign() uint32

func (*Dir) GetManifest

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

func (*Dir) ProtoMessage

func (*Dir) ProtoMessage()

func (*Dir) Reset

func (m *Dir) Reset()

func (*Dir) String

func (m *Dir) String() string

func (*Dir) XXX_DiscardUnknown

func (m *Dir) XXX_DiscardUnknown()

func (*Dir) XXX_Marshal

func (m *Dir) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Dir) XXX_Merge

func (m *Dir) XXX_Merge(src proto.Message)

func (*Dir) XXX_Size

func (m *Dir) XXX_Size() int

func (*Dir) XXX_Unmarshal

func (m *Dir) XXX_Unmarshal(b []byte) error

type Dirent

type Dirent struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Types that are valid to be assigned to Type:
	//	*Dirent_File
	//	*Dirent_Dir
	Type                 isDirent_Type `protobuf_oneof:"type"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*Dirent) Descriptor

func (*Dirent) Descriptor() ([]byte, []int)

func (*Dirent) GetDir

func (m *Dirent) GetDir() *Dir

func (*Dirent) GetFile

func (m *Dirent) GetFile() *File

func (*Dirent) GetName

func (m *Dirent) GetName() string

func (*Dirent) GetType

func (m *Dirent) GetType() isDirent_Type

func (*Dirent) ProtoMessage

func (*Dirent) ProtoMessage()

func (*Dirent) Reset

func (m *Dirent) Reset()

func (*Dirent) String

func (m *Dirent) String() string

func (*Dirent) XXX_DiscardUnknown

func (m *Dirent) XXX_DiscardUnknown()

func (*Dirent) XXX_Marshal

func (m *Dirent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Dirent) XXX_Merge

func (m *Dirent) XXX_Merge(src proto.Message)

func (*Dirent) XXX_OneofWrappers

func (*Dirent) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Dirent) XXX_Size

func (m *Dirent) XXX_Size() int

func (*Dirent) XXX_Unmarshal

func (m *Dirent) XXX_Unmarshal(b []byte) error

type Dirent_Dir

type Dirent_Dir struct {
	Dir *Dir `protobuf:"bytes,3,opt,name=dir,proto3,oneof"`
}

type Dirent_File

type Dirent_File struct {
	File *File `protobuf:"bytes,2,opt,name=file,proto3,oneof"`
}

type File

type File struct {
	Manifest             *wire.Manifest `protobuf:"bytes,1,opt,name=manifest,proto3" json:"manifest,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*File) Descriptor

func (*File) Descriptor() ([]byte, []int)

func (*File) GetManifest

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

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) Reset

func (m *File) Reset()

func (*File) String

func (m *File) String() string

func (*File) XXX_DiscardUnknown

func (m *File) XXX_DiscardUnknown()

func (*File) XXX_Marshal

func (m *File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*File) XXX_Merge

func (m *File) XXX_Merge(src proto.Message)

func (*File) XXX_Size

func (m *File) XXX_Size() int

func (*File) XXX_Unmarshal

func (m *File) XXX_Unmarshal(b []byte) error

type Snapshot

type Snapshot struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The name field of the root directory is empty.
	Contents             *Dirent  `protobuf:"bytes,2,opt,name=contents,proto3" json:"contents,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Snapshot as it is stored into CAS.

func (*Snapshot) Descriptor

func (*Snapshot) Descriptor() ([]byte, []int)

func (*Snapshot) GetContents

func (m *Snapshot) GetContents() *Dirent

func (*Snapshot) GetName

func (m *Snapshot) GetName() string

func (*Snapshot) ProtoMessage

func (*Snapshot) ProtoMessage()

func (*Snapshot) Reset

func (m *Snapshot) Reset()

func (*Snapshot) String

func (m *Snapshot) String() string

func (*Snapshot) XXX_DiscardUnknown

func (m *Snapshot) XXX_DiscardUnknown()

func (*Snapshot) XXX_Marshal

func (m *Snapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Snapshot) XXX_Merge

func (m *Snapshot) XXX_Merge(src proto.Message)

func (*Snapshot) XXX_Size

func (m *Snapshot) XXX_Size() int

func (*Snapshot) XXX_Unmarshal

func (m *Snapshot) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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