Documentation
¶
Index ¶
- func NewUnixFSBasicDir(ctx context.Context, substrate dagpb.PBNode, nddata data.UnixFSData, ...) (ipld.Node, error)
- type UnixFSBasicDir
- func (n UnixFSBasicDir) AsBool() (bool, error)
- func (n UnixFSBasicDir) AsBytes() ([]byte, error)
- func (n UnixFSBasicDir) AsFloat() (float64, error)
- func (n UnixFSBasicDir) AsInt() (int64, error)
- func (n UnixFSBasicDir) AsLink() (ipld.Link, error)
- func (n UnixFSBasicDir) AsString() (string, error)
- func (n UnixFSBasicDir) FieldData() dagpb.MaybeBytes
- func (n UnixFSBasicDir) FieldLinks() dagpb.PBLinks
- func (n UnixFSBasicDir) IsAbsent() bool
- func (n UnixFSBasicDir) IsNull() bool
- func (n UnixFSBasicDir) Iterator() *iter.UnixFSDir__Itr
- func (n UnixFSBasicDir) Kind() ipld.Kind
- func (n UnixFSBasicDir) Length() int64
- func (n UnixFSBasicDir) ListIterator() ipld.ListIterator
- func (n UnixFSBasicDir) Lookup(key dagpb.String) dagpb.Link
- func (n UnixFSBasicDir) LookupByIndex(idx int64) (ipld.Node, error)
- func (n UnixFSBasicDir) LookupByNode(key ipld.Node) (ipld.Node, error)
- func (n UnixFSBasicDir) LookupBySegment(seg ipld.PathSegment) (ipld.Node, error)
- func (n UnixFSBasicDir) LookupByString(key string) (ipld.Node, error)
- func (n UnixFSBasicDir) MapIterator() ipld.MapIterator
- func (n UnixFSBasicDir) Prototype() ipld.NodePrototype
- func (n UnixFSBasicDir) Representation() ipld.Node
- func (n UnixFSBasicDir) Substrate() ipld.Node
- func (UnixFSBasicDir) Type() schema.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUnixFSBasicDir ¶
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 (UnixFSBasicDir) AsLink ¶
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 (UnixFSBasicDir) FieldLinks ¶
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) 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
Click to show internal directories.
Click to hide internal directories.