__

package
v0.0.0-...-e99b191 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetMimeType

func (x *Metadata) GetMimeType() string

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

func (x *Metadata) ProtoReflect() protoreflect.Message

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string
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) Descriptor() ([]byte, []int)

Deprecated: Use PBLink.ProtoReflect.Descriptor instead.

func (*PBLink) GetHash

func (x *PBLink) GetHash() []byte

func (*PBLink) GetName

func (x *PBLink) GetName() string

func (*PBLink) GetTsize

func (x *PBLink) GetTsize() uint64

func (*PBLink) ProtoMessage

func (*PBLink) ProtoMessage()

func (*PBLink) ProtoReflect

func (x *PBLink) ProtoReflect() protoreflect.Message

func (*PBLink) Reset

func (x *PBLink) Reset()

func (*PBLink) String

func (x *PBLink) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use PBNode.ProtoReflect.Descriptor instead.

func (*PBNode) GetData

func (x *PBNode) GetData() []byte
func (x *PBNode) GetLinks() []*PBLink

func (*PBNode) ProtoMessage

func (*PBNode) ProtoMessage()

func (*PBNode) ProtoReflect

func (x *PBNode) ProtoReflect() protoreflect.Message

func (*PBNode) Reset

func (x *PBNode) Reset()

func (*PBNode) String

func (x *PBNode) String() string

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) Enum

func (UnixfsData_DataType) EnumDescriptor deprecated

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

Deprecated: Use UnixfsData_DataType.Descriptor instead.

func (UnixfsData_DataType) Number

func (UnixfsData_DataType) String

func (x UnixfsData_DataType) String() string

func (UnixfsData_DataType) Type

func (*UnixfsData_DataType) UnmarshalJSON deprecated

func (x *UnixfsData_DataType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

Jump to

Keyboard shortcuts

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