Documentation ¶
Index ¶
- Variables
- type Metadata
- type PBLink
- type PBNode
- type UnixfsData
- func (*UnixfsData) Descriptor() ([]byte, []int)deprecated
- func (x *UnixfsData) GetBlocksizes() []uint64
- func (x *UnixfsData) GetData() []byte
- func (x *UnixfsData) GetFanout() uint64
- func (x *UnixfsData) GetFilesize() uint64
- func (x *UnixfsData) GetHashType() uint64
- func (x *UnixfsData) GetType() UnixfsData_DataType
- func (*UnixfsData) ProtoMessage()
- func (x *UnixfsData) ProtoReflect() protoreflect.Message
- func (x *UnixfsData) Reset()
- func (x *UnixfsData) String() string
- type UnixfsData_DataType
- func (UnixfsData_DataType) Descriptor() protoreflect.EnumDescriptor
- func (x UnixfsData_DataType) Enum() *UnixfsData_DataType
- func (UnixfsData_DataType) EnumDescriptor() ([]byte, []int)deprecated
- func (x UnixfsData_DataType) Number() protoreflect.EnumNumber
- func (x UnixfsData_DataType) String() string
- func (UnixfsData_DataType) Type() protoreflect.EnumType
- func (x *UnixfsData_DataType) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UnixfsData_DataType_name = map[int32]string{ 0: "Raw", 1: "Directory", 2: "File", 3: "Metadata", 4: "Symlink", 5: "HAMTShard", } UnixfsData_DataType_value = map[string]int32{ "Raw": 0, "Directory": 1, "File": 2, "Metadata": 3, "Symlink": 4, "HAMTShard": 5, } )
Enum value maps for UnixfsData_DataType.
View Source
var File_file_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct { MimeType *string `protobuf:"bytes,1,opt,name=MimeType" json:"MimeType,omitempty"` // contains filtered or unexported fields }
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetMimeType ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
type PBLink ¶
type PBLink struct { // binary CID (with no multibase prefix) of the target object Hash []byte `protobuf:"bytes,1,opt,name=Hash" json:"Hash,omitempty"` // UTF-8 string name Name *string `protobuf:"bytes,2,opt,name=Name" json:"Name,omitempty"` // cumulative size of target object Tsize *uint64 `protobuf:"varint,3,opt,name=Tsize" json:"Tsize,omitempty"` // contains filtered or unexported fields }
func (*PBLink) Descriptor
deprecated
func (*PBLink) ProtoMessage ¶
func (*PBLink) ProtoMessage()
func (*PBLink) ProtoReflect ¶
func (x *PBLink) ProtoReflect() protoreflect.Message
type PBNode ¶
type PBNode struct { // refs to other objects Links []*PBLink `protobuf:"bytes,2,rep,name=Links" json:"Links,omitempty"` // opaque user data Data []byte `protobuf:"bytes,1,opt,name=Data" json:"Data,omitempty"` // contains filtered or unexported fields }
func (*PBNode) Descriptor
deprecated
func (*PBNode) ProtoMessage ¶
func (*PBNode) ProtoMessage()
func (*PBNode) ProtoReflect ¶
func (x *PBNode) ProtoReflect() protoreflect.Message
type UnixfsData ¶
type UnixfsData struct { Type *UnixfsData_DataType `protobuf:"varint,1,req,name=Type,enum=pb.UnixfsData_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"` // contains filtered or unexported fields }
func (*UnixfsData) Descriptor
deprecated
func (*UnixfsData) Descriptor() ([]byte, []int)
Deprecated: Use UnixfsData.ProtoReflect.Descriptor instead.
func (*UnixfsData) GetBlocksizes ¶
func (x *UnixfsData) GetBlocksizes() []uint64
func (*UnixfsData) GetData ¶
func (x *UnixfsData) GetData() []byte
func (*UnixfsData) GetFanout ¶
func (x *UnixfsData) GetFanout() uint64
func (*UnixfsData) GetFilesize ¶
func (x *UnixfsData) GetFilesize() uint64
func (*UnixfsData) GetHashType ¶
func (x *UnixfsData) GetHashType() uint64
func (*UnixfsData) GetType ¶
func (x *UnixfsData) GetType() UnixfsData_DataType
func (*UnixfsData) ProtoMessage ¶
func (*UnixfsData) ProtoMessage()
func (*UnixfsData) ProtoReflect ¶
func (x *UnixfsData) ProtoReflect() protoreflect.Message
func (*UnixfsData) Reset ¶
func (x *UnixfsData) Reset()
func (*UnixfsData) String ¶
func (x *UnixfsData) String() string
type UnixfsData_DataType ¶
type UnixfsData_DataType int32
const ( UnixfsData_Raw UnixfsData_DataType = 0 UnixfsData_Directory UnixfsData_DataType = 1 UnixfsData_File UnixfsData_DataType = 2 UnixfsData_Metadata UnixfsData_DataType = 3 UnixfsData_Symlink UnixfsData_DataType = 4 UnixfsData_HAMTShard UnixfsData_DataType = 5 )
func (UnixfsData_DataType) Descriptor ¶
func (UnixfsData_DataType) Descriptor() protoreflect.EnumDescriptor
func (UnixfsData_DataType) Enum ¶
func (x UnixfsData_DataType) Enum() *UnixfsData_DataType
func (UnixfsData_DataType) EnumDescriptor
deprecated
func (UnixfsData_DataType) EnumDescriptor() ([]byte, []int)
Deprecated: Use UnixfsData_DataType.Descriptor instead.
func (UnixfsData_DataType) Number ¶
func (x UnixfsData_DataType) Number() protoreflect.EnumNumber
func (UnixfsData_DataType) String ¶
func (x UnixfsData_DataType) String() string
func (UnixfsData_DataType) Type ¶
func (UnixfsData_DataType) Type() protoreflect.EnumType
func (*UnixfsData_DataType) UnmarshalJSON
deprecated
func (x *UnixfsData_DataType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
Click to show internal directories.
Click to hide internal directories.