iter

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0, MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUnixFSDirMapIterator

func NewUnixFSDirMapIterator(itr pbLinkItr, transformName TransformNameFunc) ipld.MapIterator

Types

type IterLink struct {
	Substrate dagpb.PBLink
}

func (*IterLink) AsBool added in v1.7.4

func (il *IterLink) AsBool() (bool, error)

func (*IterLink) AsBytes added in v1.7.4

func (il *IterLink) AsBytes() ([]byte, error)

func (*IterLink) AsFloat added in v1.7.4

func (il *IterLink) AsFloat() (float64, error)

func (*IterLink) AsInt added in v1.7.4

func (il *IterLink) AsInt() (int64, error)
func (il *IterLink) AsLink() (datamodel.Link, error)

func (*IterLink) AsString added in v1.7.4

func (il *IterLink) AsString() (string, error)

func (*IterLink) IsAbsent added in v1.7.4

func (il *IterLink) IsAbsent() bool

func (*IterLink) IsNull added in v1.7.4

func (il *IterLink) IsNull() bool

func (*IterLink) Kind added in v1.7.4

func (il *IterLink) Kind() datamodel.Kind

func (*IterLink) Length added in v1.7.4

func (il *IterLink) Length() int64

func (*IterLink) ListIterator added in v1.7.4

func (il *IterLink) ListIterator() datamodel.ListIterator

func (*IterLink) LookupByIndex added in v1.7.4

func (il *IterLink) LookupByIndex(idx int64) (datamodel.Node, error)

func (*IterLink) LookupByNode added in v1.7.4

func (il *IterLink) LookupByNode(key datamodel.Node) (datamodel.Node, error)

func (*IterLink) LookupBySegment added in v1.7.4

func (il *IterLink) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)

func (*IterLink) LookupByString added in v1.7.4

func (il *IterLink) LookupByString(key string) (datamodel.Node, error)

func (*IterLink) MapIterator added in v1.7.4

func (il *IterLink) MapIterator() datamodel.MapIterator

func (*IterLink) Prototype added in v1.7.4

func (il *IterLink) Prototype() datamodel.NodePrototype

func (*IterLink) Representation added in v1.7.4

func (il *IterLink) Representation() datamodel.Node

type TransformNameFunc

type TransformNameFunc func(dagpb.String) dagpb.String

type UnixFSDir__Itr

type UnixFSDir__Itr struct {
	// contains filtered or unexported fields
}

func NewUnixFSDirIterator

func NewUnixFSDirIterator(itr pbLinkItr, transformName TransformNameFunc) *UnixFSDir__Itr

func (*UnixFSDir__Itr) Done

func (itr *UnixFSDir__Itr) Done() bool

func (*UnixFSDir__Itr) Next

func (itr *UnixFSDir__Itr) Next() (k dagpb.String, v dagpb.Link)

type UnixFSDir__MapItr

type UnixFSDir__MapItr struct {
	// contains filtered or unexported fields
}

UnixFSDir__MapItr throught the links as if they were a map Note: for now it does return links with no name, where the key is just String("")

func (*UnixFSDir__MapItr) Done

func (itr *UnixFSDir__MapItr) Done() bool

func (*UnixFSDir__MapItr) Next

func (itr *UnixFSDir__MapItr) Next() (k ipld.Node, v ipld.Node, err error)

Jump to

Keyboard shortcuts

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