directory

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: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUnixFSBasicDir

func NewUnixFSBasicDir(ctx context.Context, substrate dagpb.PBNode, nddata data.UnixFSData, _ *ipld.LinkSystem) (ipld.Node, error)

Types

type UnixFSBasicDir

type UnixFSBasicDir = *_UnixFSBasicDir

func (UnixFSBasicDir) AsBool

func (n UnixFSBasicDir) AsBool() (bool, error)

func (UnixFSBasicDir) AsBytes

func (n UnixFSBasicDir) AsBytes() ([]byte, error)

func (UnixFSBasicDir) AsFloat

func (n UnixFSBasicDir) AsFloat() (float64, error)

func (UnixFSBasicDir) AsInt

func (n UnixFSBasicDir) AsInt() (int64, error)
func (n UnixFSBasicDir) AsLink() (ipld.Link, error)

func (UnixFSBasicDir) AsString

func (n UnixFSBasicDir) AsString() (string, error)

func (UnixFSBasicDir) FieldData

func (n UnixFSBasicDir) FieldData() dagpb.MaybeBytes
func (n UnixFSBasicDir) FieldLinks() dagpb.PBLinks

func (UnixFSBasicDir) IsAbsent

func (n UnixFSBasicDir) IsAbsent() bool

func (UnixFSBasicDir) IsNull

func (n UnixFSBasicDir) IsNull() bool

func (UnixFSBasicDir) Iterator

func (n UnixFSBasicDir) Iterator() *iter.UnixFSDir__Itr

func (UnixFSBasicDir) Kind

func (n UnixFSBasicDir) Kind() ipld.Kind

func (UnixFSBasicDir) Length

func (n UnixFSBasicDir) Length() int64

Length returns the length of a list, or the number of entries in a map, or -1 if the node is not of list nor map kind.

func (UnixFSBasicDir) ListIterator

func (n UnixFSBasicDir) ListIterator() ipld.ListIterator

ListIterator returns an iterator which yields key-value pairs traversing the node. If the node kind is anything other than a list, nil will be returned.

The iterator will yield every entry in the list; that is, it can be expected that itr.Next will be called node.Length times before itr.Done becomes true.

func (UnixFSBasicDir) Lookup

func (n UnixFSBasicDir) Lookup(key dagpb.String) dagpb.Link

func (UnixFSBasicDir) LookupByIndex

func (n UnixFSBasicDir) LookupByIndex(idx int64) (ipld.Node, error)

func (UnixFSBasicDir) LookupByNode

func (n UnixFSBasicDir) LookupByNode(key ipld.Node) (ipld.Node, error)

func (UnixFSBasicDir) LookupBySegment

func (n UnixFSBasicDir) LookupBySegment(seg ipld.PathSegment) (ipld.Node, error)

func (UnixFSBasicDir) LookupByString

func (n UnixFSBasicDir) LookupByString(key string) (ipld.Node, error)

LookupByString looks for the key in the list of links with a matching name

func (UnixFSBasicDir) MapIterator

func (n UnixFSBasicDir) MapIterator() ipld.MapIterator

func (UnixFSBasicDir) Prototype

func (n UnixFSBasicDir) Prototype() ipld.NodePrototype

func (UnixFSBasicDir) Representation

func (n UnixFSBasicDir) Representation() ipld.Node

func (UnixFSBasicDir) Substrate

func (n UnixFSBasicDir) Substrate() ipld.Node

Substrate returns the underlying PBNode -- note: only the substrate will encode successfully to protobuf if writing

func (UnixFSBasicDir) Type

func (UnixFSBasicDir) Type() schema.Type

satisfy schema.TypedNode

Jump to

Keyboard shortcuts

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