go-unixfs: github.com/ipfs/go-unixfs/pb Index | Files

package unixfs_pb

import "github.com/ipfs/go-unixfs/pb"

Index

Package Files

unixfs.pb.go

Variables

var Data_DataType_name = map[int32]string{
    0:  "Raw",
    1:  "Directory",
    2:  "File",
    3:  "Metadata",
    4:  "Symlink",
    5:  "HAMTShard",
}
var Data_DataType_value = map[string]int32{
    "Raw":       0,
    "Directory": 1,
    "File":      2,
    "Metadata":  3,
    "Symlink":   4,
    "HAMTShard": 5,
}

type Data Uses

type Data struct {
    Type                 *Data_DataType `protobuf:"varint,1,req,name=Type,enum=unixfs.pb.Data_DataType" json:"Type,omitempty"`
    Data                 []byte         `protobuf:"bytes,2,opt,name=Data" json:"Data,omitempty"`
    Filesize             *uint64        `protobuf:"varint,3,opt,name=filesize" json:"filesize,omitempty"`
    Blocksizes           []uint64       `protobuf:"varint,4,rep,name=blocksizes" json:"blocksizes,omitempty"`
    HashType             *uint64        `protobuf:"varint,5,opt,name=hashType" json:"hashType,omitempty"`
    Fanout               *uint64        `protobuf:"varint,6,opt,name=fanout" json:"fanout,omitempty"`
    XXX_NoUnkeyedLiteral struct{}       `json:"-"`
    XXX_unrecognized     []byte         `json:"-"`
    XXX_sizecache        int32          `json:"-"`
}

func (*Data) Descriptor Uses

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

func (*Data) GetBlocksizes Uses

func (m *Data) GetBlocksizes() []uint64

func (*Data) GetData Uses

func (m *Data) GetData() []byte

func (*Data) GetFanout Uses

func (m *Data) GetFanout() uint64

func (*Data) GetFilesize Uses

func (m *Data) GetFilesize() uint64

func (*Data) GetHashType Uses

func (m *Data) GetHashType() uint64

func (*Data) GetType Uses

func (m *Data) GetType() Data_DataType

func (*Data) ProtoMessage Uses

func (*Data) ProtoMessage()

func (*Data) Reset Uses

func (m *Data) Reset()

func (*Data) String Uses

func (m *Data) String() string

func (*Data) XXX_DiscardUnknown Uses

func (m *Data) XXX_DiscardUnknown()

func (*Data) XXX_Marshal Uses

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

func (*Data) XXX_Merge Uses

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

func (*Data) XXX_Size Uses

func (m *Data) XXX_Size() int

func (*Data) XXX_Unmarshal Uses

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

type Data_DataType Uses

type Data_DataType int32
const (
    Data_Raw       Data_DataType = 0
    Data_Directory Data_DataType = 1
    Data_File      Data_DataType = 2
    Data_Metadata  Data_DataType = 3
    Data_Symlink   Data_DataType = 4
    Data_HAMTShard Data_DataType = 5
)

func (Data_DataType) Enum Uses

func (x Data_DataType) Enum() *Data_DataType

func (Data_DataType) EnumDescriptor Uses

func (Data_DataType) EnumDescriptor() ([]byte, []int)

func (Data_DataType) String Uses

func (x Data_DataType) String() string

func (*Data_DataType) UnmarshalJSON Uses

func (x *Data_DataType) UnmarshalJSON(data []byte) error

type Metadata Uses

type Metadata struct {
    MimeType             *string  `protobuf:"bytes,1,opt,name=MimeType" json:"MimeType,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Metadata) Descriptor Uses

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

func (*Metadata) GetMimeType Uses

func (m *Metadata) GetMimeType() string

func (*Metadata) ProtoMessage Uses

func (*Metadata) ProtoMessage()

func (*Metadata) Reset Uses

func (m *Metadata) Reset()

func (*Metadata) String Uses

func (m *Metadata) String() string

func (*Metadata) XXX_DiscardUnknown Uses

func (m *Metadata) XXX_DiscardUnknown()

func (*Metadata) XXX_Marshal Uses

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

func (*Metadata) XXX_Merge Uses

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

func (*Metadata) XXX_Size Uses

func (m *Metadata) XXX_Size() int

func (*Metadata) XXX_Unmarshal Uses

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

Package unixfs_pb imports 3 packages (graph) and is imported by 12 packages. Updated 2019-02-22. Refresh now. Tools for package owners.