ipldgit

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: MIT Imports: 18 Imported by: 18

README

Git ipld format

An IPLD codec for git objects allowing path traversals across the git graph.

Table of Contents

Install

go get github.com/ipfs/go-ipld-git

About

This is an IPLD codec which handles git objects. Objects are transformed into IPLD graph as detailed below. Objects are demonstrated here using both IPLD Schemas and example JSON forms.

Commit
type GpgSig string

type PersonInfo struct {
  date String
  timezone String
  email String
  name String
}

type Commit struct {
  tree &Tree # see "Tree" section below
  parents [&Commit]
  message String
  author optional PersonInfo
  committer optional PersonInfo
  encoding optional String
  signature optional GpgSig
  mergetag [Tag]
  other [String]
}

As JSON, real data would look something like:

{
  "author": {
    "date": "1503667703",
    "timezone": "+0200",
    "email": "author@mail",
    "name": "Author Name"
  },
  "committer": {
    "date": "1503667703",
    "timezone": "+0200",
    "email": "author@mail",
    "name": "Author Name"
  },
  "message": "Commit Message\n",
  "parents": [
    <LINK>, <LINK>, ...
  ],
  "tree": <LINK>
}
Tag
type Tag struct {
  object &Any
  type String
  tag String
  tagger PersonInfo
  message String
}

As JSON, real data would look something like:

{
  "message": "message\n",
  "object": {
    "/": "baf4bcfg3mbz3yj3njqyr3ifdaqyfv3prei6h6bq"
  },
  "tag": "tagname",
  "tagger": {
    "date": "1503667703 +0200",
    "email": "author@mail",
    "name": "Author Name"
  },
  "type": "commit"
}
Tree
type Tree {String:TreeEntry}

type TreeEntry struct {
  mode String
  hash &Any
}

As JSON, real data would look something like:

{
  "file.name": {
    "mode": "100664",
    "hash": <LINK>
  },
  "directoryname": {
    "mode": "40000",
    "hash": <LINK>
  },
  ...
}
Blob
type Blob bytes

As JSON, real data would look something like:

"<base64 of 'blob <size>\0<data>'>"

Lead Maintainers

Contribute

PRs are welcome!

Small note: If editing the Readme, please conform to the standard-readme specification.

License

MIT © Jeromy Johnson

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Type typeSlab

Type is a struct embeding a NodePrototype/Type for every Node implementation in this package. One of its major uses is to start the construction of a value. You can use it like this:

ipldgit.Type.YourTypeName.NewBuilder().BeginMap() //...

and:

ipldgit.Type.OtherTypeName.NewBuilder().AssignString("x") // ...

Functions

func Decode added in v0.1.0

func Decode(na ipld.NodeAssembler, r io.Reader) error

Decode reads from a reader to fill a NodeAssembler

func DecodeBlob added in v0.1.0

func DecodeBlob(na ipld.NodeAssembler, rd *bufio.Reader) error

DecodeBlob fills a NodeAssembler (from `Type.Blob__Repr.NewBuilder()`) from a stream of bytes

func DecodeBlock

func DecodeBlock(block blocks.Block) (ipld.Node, error)

DecodeBlock attempts to parse a serialized ipfs block into an ipld node dag Deprecated: Parse ifrom data instead.

func DecodeCommit added in v0.1.0

func DecodeCommit(na ipld.NodeAssembler, rd *bufio.Reader) error

DecodeCommit fills a NodeAssembler (from `Type.Commit__Repr.NewBuilder()`) from a stream of bytes

func DecodeTag added in v0.1.0

func DecodeTag(na ipld.NodeAssembler, rd *bufio.Reader) error

DecodeTag fills a NodeAssembler (from `Type.Tag__Repr.NewBuilder()`) from a stream of bytes

func DecodeTree added in v0.1.0

func DecodeTree(na ipld.NodeAssembler, rd *bufio.Reader) error

DecodeTree fills a NodeAssembler (from `Type.Tree__Repr.NewBuilder()`) from a stream of bytes

func DecodeTreeEntry added in v0.1.0

func DecodeTreeEntry(rd *bufio.Reader) (string, ipld.Node, error)

DecodeTreeEntry fills a NodeAssembler (from `Type.TreeEntry__Repr.NewBuilder()`) from a stream of bytes

func Encode added in v0.1.0

func Encode(n ipld.Node, w io.Writer) error

Encode serializes a git node to a raw binary form.

func ParseCompressedObject

func ParseCompressedObject(r io.Reader) (ipld.Node, error)

ParseCompressedObject works like ParseObject, but with a surrounding zlib compression.

func ParseObject

func ParseObject(r io.Reader) (ipld.Node, error)

ParseObject produces an ipld.Node from a stream / binary represnetation.

func ParseObjectFromBuffer

func ParseObjectFromBuffer(b []byte) (ipld.Node, error)

ParseObjectFromBuffer is like ParseObject, but with a fully in-memory stream

Types

type Blob

type Blob = *_Blob

Blob matches the IPLD Schema type "Blob". It has bytes kind.

func (Blob) AsBool added in v0.1.0

func (Blob) AsBool() (bool, error)

func (Blob) AsBytes added in v0.1.0

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

func (Blob) AsFloat added in v0.1.0

func (Blob) AsFloat() (float64, error)

func (Blob) AsInt added in v0.1.0

func (Blob) AsInt() (int64, error)
func (Blob) AsLink() (ipld.Link, error)

func (Blob) AsString added in v0.1.0

func (Blob) AsString() (string, error)

func (Blob) Bytes added in v0.1.0

func (n Blob) Bytes() []byte

func (Blob) IsAbsent added in v0.1.0

func (Blob) IsAbsent() bool

func (Blob) IsNull added in v0.1.0

func (Blob) IsNull() bool

func (Blob) Kind added in v0.1.0

func (Blob) Kind() ipld.Kind

func (Blob) Length added in v0.1.0

func (Blob) Length() int64

func (Blob) ListIterator added in v0.1.0

func (Blob) ListIterator() ipld.ListIterator

func (Blob) LookupByIndex added in v0.1.0

func (Blob) LookupByIndex(idx int64) (ipld.Node, error)

func (Blob) LookupByNode added in v0.1.0

func (Blob) LookupByNode(ipld.Node) (ipld.Node, error)

func (Blob) LookupBySegment added in v0.1.0

func (Blob) LookupBySegment(seg ipld.PathSegment) (ipld.Node, error)

func (Blob) LookupByString added in v0.1.0

func (Blob) LookupByString(string) (ipld.Node, error)

func (Blob) MapIterator added in v0.1.0

func (Blob) MapIterator() ipld.MapIterator

func (Blob) Prototype added in v0.1.0

func (Blob) Prototype() ipld.NodePrototype

func (Blob) Representation added in v0.1.0

func (n Blob) Representation() ipld.Node

func (Blob) Type added in v0.1.0

func (Blob) Type() schema.Type

type Commit

type Commit = *_Commit

Commit matches the IPLD Schema type "Commit". It has Struct type-kind, and may be interrogated like map kind.

func (Commit) AsBool added in v0.1.0

func (Commit) AsBool() (bool, error)

func (Commit) AsBytes added in v0.1.0

func (Commit) AsBytes() ([]byte, error)

func (Commit) AsFloat added in v0.1.0

func (Commit) AsFloat() (float64, error)

func (Commit) AsInt added in v0.1.0

func (Commit) AsInt() (int64, error)
func (Commit) AsLink() (ipld.Link, error)

func (Commit) AsString added in v0.1.0

func (Commit) AsString() (string, error)

func (Commit) IsAbsent added in v0.1.0

func (Commit) IsAbsent() bool

func (Commit) IsNull added in v0.1.0

func (Commit) IsNull() bool

func (Commit) Kind added in v0.1.0

func (Commit) Kind() ipld.Kind

func (Commit) Length added in v0.1.0

func (Commit) Length() int64

func (Commit) ListIterator added in v0.1.0

func (Commit) ListIterator() ipld.ListIterator

func (Commit) LookupByIndex added in v0.1.0

func (Commit) LookupByIndex(idx int64) (ipld.Node, error)

func (Commit) LookupByNode added in v0.1.0

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

func (Commit) LookupBySegment added in v0.1.0

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

func (Commit) LookupByString added in v0.1.0

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

func (Commit) MapIterator added in v0.1.0

func (n Commit) MapIterator() ipld.MapIterator

func (Commit) Prototype added in v0.1.0

func (Commit) Prototype() ipld.NodePrototype

func (Commit) Representation added in v0.1.0

func (n Commit) Representation() ipld.Node

func (Commit) Type added in v0.1.0

func (Commit) Type() schema.Type
type Commit_Link = *_Commit_Link

Commit_Link matches the IPLD Schema type "Commit_Link". It has link kind.

func (Commit_Link) AsBool added in v0.1.0

func (Commit_Link) AsBool() (bool, error)

func (Commit_Link) AsBytes added in v0.1.0

func (Commit_Link) AsBytes() ([]byte, error)

func (Commit_Link) AsFloat added in v0.1.0

func (Commit_Link) AsFloat() (float64, error)

func (Commit_Link) AsInt added in v0.1.0

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

func (Commit_Link) AsString added in v0.1.0

func (Commit_Link) AsString() (string, error)

func (Commit_Link) IsAbsent added in v0.1.0

func (Commit_Link) IsAbsent() bool

func (Commit_Link) IsNull added in v0.1.0

func (Commit_Link) IsNull() bool

func (Commit_Link) Kind added in v0.1.0

func (Commit_Link) Kind() ipld.Kind

func (Commit_Link) Length added in v0.1.0

func (Commit_Link) Length() int64
func (n Commit_Link) Link() ipld.Link

func (Commit_Link) LinkTargetNodePrototype added in v0.1.0

func (Commit_Link) LinkTargetNodePrototype() ipld.NodePrototype

func (Commit_Link) ListIterator added in v0.1.0

func (Commit_Link) ListIterator() ipld.ListIterator

func (Commit_Link) LookupByIndex added in v0.1.0

func (Commit_Link) LookupByIndex(idx int64) (ipld.Node, error)

func (Commit_Link) LookupByNode added in v0.1.0

func (Commit_Link) LookupByNode(ipld.Node) (ipld.Node, error)

func (Commit_Link) LookupBySegment added in v0.1.0

func (Commit_Link) LookupBySegment(seg ipld.PathSegment) (ipld.Node, error)

func (Commit_Link) LookupByString added in v0.1.0

func (Commit_Link) LookupByString(string) (ipld.Node, error)

func (Commit_Link) MapIterator added in v0.1.0

func (Commit_Link) MapIterator() ipld.MapIterator

func (Commit_Link) Prototype added in v0.1.0

func (Commit_Link) Prototype() ipld.NodePrototype

func (Commit_Link) Representation added in v0.1.0

func (n Commit_Link) Representation() ipld.Node

func (Commit_Link) Type added in v0.1.0

func (Commit_Link) Type() schema.Type
type Commit_Link_List = *_Commit_Link_List

Commit_Link_List matches the IPLD Schema type "Commit_Link_List". It has list kind.

func (Commit_Link_List) AsBool() (bool, error)
func (Commit_Link_List) AsBytes() ([]byte, error)
func (Commit_Link_List) AsFloat() (float64, error)
func (Commit_Link_List) AsInt() (int64, error)
func (Commit_Link_List) AsLink() (ipld.Link, error)
func (Commit_Link_List) AsString() (string, error)
func (Commit_Link_List) IsAbsent() bool
func (Commit_Link_List) IsNull() bool
func (Commit_Link_List) Kind() ipld.Kind
func (n Commit_Link_List) Length() int64
func (n Commit_Link_List) ListIterator() ipld.ListIterator
func (n Commit_Link_List) LookupByIndex(idx int64) (ipld.Node, error)
func (n Commit_Link_List) LookupByNode(k ipld.Node) (ipld.Node, error)
func (n Commit_Link_List) LookupBySegment(seg ipld.PathSegment) (ipld.Node, error)
func (Commit_Link_List) LookupByString(string) (ipld.Node, error)
func (Commit_Link_List) MapIterator() ipld.MapIterator
func (Commit_Link_List) Prototype() ipld.NodePrototype
func (n Commit_Link_List) Representation() ipld.Node
func (Commit_Link_List) Type() schema.Type
type Commit_Link_List__Itr struct {
	// contains filtered or unexported fields
}
func (itr *Commit_Link_List__Itr) Done() bool
func (itr *Commit_Link_List__Itr) Next() (idx int64, v Commit_Link)

type GpgSig

type GpgSig = *_GpgSig

GpgSig matches the IPLD Schema type "GpgSig". It has string kind.

func (GpgSig) AsBool added in v0.1.0

func (GpgSig) AsBool() (bool, error)

func (GpgSig) AsBytes added in v0.1.0

func (GpgSig) AsBytes() ([]byte, error)

func (GpgSig) AsFloat added in v0.1.0

func (GpgSig) AsFloat() (float64, error)

func (GpgSig) AsInt added in v0.1.0

func (GpgSig) AsInt() (int64, error)
func (GpgSig) AsLink() (ipld.Link, error)

func (GpgSig) AsString added in v0.1.0

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

func (GpgSig) IsAbsent added in v0.1.0

func (GpgSig) IsAbsent() bool

func (GpgSig) IsNull added in v0.1.0

func (GpgSig) IsNull() bool

func (GpgSig) Kind added in v0.1.0

func (GpgSig) Kind() ipld.Kind

func (GpgSig) Length added in v0.1.0

func (GpgSig) Length() int64

func (GpgSig) ListIterator added in v0.1.0

func (GpgSig) ListIterator() ipld.ListIterator

func (GpgSig) LookupByIndex added in v0.1.0

func (GpgSig) LookupByIndex(idx int64) (ipld.Node, error)

func (GpgSig) LookupByNode added in v0.1.0

func (GpgSig) LookupByNode(ipld.Node) (ipld.Node, error)

func (GpgSig) LookupBySegment added in v0.1.0

func (GpgSig) LookupBySegment(seg ipld.PathSegment) (ipld.Node, error)

func (GpgSig) LookupByString added in v0.1.0

func (GpgSig) LookupByString(string) (ipld.Node, error)

func (GpgSig) MapIterator added in v0.1.0

func (GpgSig) MapIterator() ipld.MapIterator

func (GpgSig) Prototype added in v0.1.0

func (GpgSig) Prototype() ipld.NodePrototype

func (GpgSig) Representation added in v0.1.0

func (n GpgSig) Representation() ipld.Node

func (GpgSig) String added in v0.1.0

func (n GpgSig) String() string

func (GpgSig) Type added in v0.1.0

func (GpgSig) Type() schema.Type
type Link = *_Link

Link matches the IPLD Schema type "Link". It has link kind.

func (Link) AsBool added in v0.1.0

func (Link) AsBool() (bool, error)

func (Link) AsBytes added in v0.1.0

func (Link) AsBytes() ([]byte, error)

func (Link) AsFloat added in v0.1.0

func (Link) AsFloat() (float64, error)

func (Link) AsInt added in v0.1.0

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

func (Link) AsString added in v0.1.0

func (Link) AsString() (string, error)

func (Link) IsAbsent added in v0.1.0

func (Link) IsAbsent() bool

func (Link) IsNull added in v0.1.0

func (Link) IsNull() bool

func (Link) Kind added in v0.1.0

func (Link) Kind() ipld.Kind

func (Link) Length added in v0.1.0

func (Link) Length() int64
func (n Link) Link() ipld.Link

func (Link) ListIterator added in v0.1.0

func (Link) ListIterator() ipld.ListIterator

func (Link) LookupByIndex added in v0.1.0

func (Link) LookupByIndex(idx int64) (ipld.Node, error)

func (Link) LookupByNode added in v0.1.0

func (Link) LookupByNode(ipld.Node) (ipld.Node, error)

func (Link) LookupBySegment added in v0.1.0

func (Link) LookupBySegment(seg ipld.PathSegment) (ipld.Node, error)

func (Link) LookupByString added in v0.1.0

func (Link) LookupByString(string) (ipld.Node, error)

func (Link) MapIterator added in v0.1.0

func (Link) MapIterator() ipld.MapIterator

func (Link) Prototype added in v0.1.0

func (Link) Prototype() ipld.NodePrototype

func (Link) Representation added in v0.1.0

func (n Link) Representation() ipld.Node

func (Link) Type added in v0.1.0

func (Link) Type() schema.Type

type MaybeBlob added in v0.1.0

type MaybeBlob = *_Blob__Maybe

func (MaybeBlob) AsNode added in v0.1.0

func (m MaybeBlob) AsNode() ipld.Node

func (MaybeBlob) Exists added in v0.1.0

func (m MaybeBlob) Exists() bool

func (MaybeBlob) IsAbsent added in v0.1.0

func (m MaybeBlob) IsAbsent() bool

func (MaybeBlob) IsNull added in v0.1.0

func (m MaybeBlob) IsNull() bool

func (MaybeBlob) Must added in v0.1.0

func (m MaybeBlob) Must() Blob

type MaybeCommit added in v0.1.0

type MaybeCommit = *_Commit__Maybe

func (MaybeCommit) AsNode added in v0.1.0

func (m MaybeCommit) AsNode() ipld.Node

func (MaybeCommit) Exists added in v0.1.0

func (m MaybeCommit) Exists() bool

func (MaybeCommit) IsAbsent added in v0.1.0

func (m MaybeCommit) IsAbsent() bool

func (MaybeCommit) IsNull added in v0.1.0

func (m MaybeCommit) IsNull() bool

func (MaybeCommit) Must added in v0.1.0

func (m MaybeCommit) Must() Commit
type MaybeCommit_Link = *_Commit_Link__Maybe

func (MaybeCommit_Link) AsNode added in v0.1.0

func (m MaybeCommit_Link) AsNode() ipld.Node

func (MaybeCommit_Link) Exists added in v0.1.0

func (m MaybeCommit_Link) Exists() bool

func (MaybeCommit_Link) IsAbsent added in v0.1.0

func (m MaybeCommit_Link) IsAbsent() bool

func (MaybeCommit_Link) IsNull added in v0.1.0

func (m MaybeCommit_Link) IsNull() bool

func (MaybeCommit_Link) Must added in v0.1.0

func (m MaybeCommit_Link) Must() Commit_Link
type MaybeCommit_Link_List = *_Commit_Link_List__Maybe
func (m MaybeCommit_Link_List) AsNode() ipld.Node
func (m MaybeCommit_Link_List) Exists() bool
func (m MaybeCommit_Link_List) IsAbsent() bool
func (m MaybeCommit_Link_List) IsNull() bool

type MaybeGpgSig added in v0.1.0

type MaybeGpgSig = *_GpgSig__Maybe

func (MaybeGpgSig) AsNode added in v0.1.0

func (m MaybeGpgSig) AsNode() ipld.Node

func (MaybeGpgSig) Exists added in v0.1.0

func (m MaybeGpgSig) Exists() bool

func (MaybeGpgSig) IsAbsent added in v0.1.0

func (m MaybeGpgSig) IsAbsent() bool

func (MaybeGpgSig) IsNull added in v0.1.0

func (m MaybeGpgSig) IsNull() bool

func (MaybeGpgSig) Must added in v0.1.0

func (m MaybeGpgSig) Must() GpgSig
type MaybeLink = *_Link__Maybe

func (MaybeLink) AsNode added in v0.1.0

func (m MaybeLink) AsNode() ipld.Node

func (MaybeLink) Exists added in v0.1.0

func (m MaybeLink) Exists() bool

func (MaybeLink) IsAbsent added in v0.1.0

func (m MaybeLink) IsAbsent() bool

func (MaybeLink) IsNull added in v0.1.0

func (m MaybeLink) IsNull() bool

func (MaybeLink) Must added in v0.1.0

func (m MaybeLink) Must() Link

type MaybePersonInfo added in v0.1.0

type MaybePersonInfo = *_PersonInfo__Maybe

func (MaybePersonInfo) AsNode added in v0.1.0

func (m MaybePersonInfo) AsNode() ipld.Node

func (MaybePersonInfo) Exists added in v0.1.0

func (m MaybePersonInfo) Exists() bool

func (MaybePersonInfo) IsAbsent added in v0.1.0

func (m MaybePersonInfo) IsAbsent() bool

func (MaybePersonInfo) IsNull added in v0.1.0

func (m MaybePersonInfo) IsNull() bool

func (MaybePersonInfo) Must added in v0.1.0

func (m MaybePersonInfo) Must() PersonInfo

type MaybeString added in v0.1.0

type MaybeString = *_String__Maybe

func (MaybeString) AsNode added in v0.1.0

func (m MaybeString) AsNode() ipld.Node

func (MaybeString) Exists added in v0.1.0

func (m MaybeString) Exists() bool

func (MaybeString) IsAbsent added in v0.1.0

func (m MaybeString) IsAbsent() bool

func (MaybeString) IsNull added in v0.1.0

func (m MaybeString) IsNull() bool

func (MaybeString) Must added in v0.1.0

func (m MaybeString) Must() String

type MaybeString_List added in v0.1.0

type MaybeString_List = *_String_List__Maybe

func (MaybeString_List) AsNode added in v0.1.0

func (m MaybeString_List) AsNode() ipld.Node

func (MaybeString_List) Exists added in v0.1.0

func (m MaybeString_List) Exists() bool

func (MaybeString_List) IsAbsent added in v0.1.0

func (m MaybeString_List) IsAbsent() bool

func (MaybeString_List) IsNull added in v0.1.0

func (m MaybeString_List) IsNull() bool

func (MaybeString_List) Must added in v0.1.0

func (m MaybeString_List) Must() String_List

type MaybeTag added in v0.1.0

type MaybeTag = *_Tag__Maybe

func (MaybeTag) AsNode added in v0.1.0

func (m MaybeTag) AsNode() ipld.Node

func (MaybeTag) Exists added in v0.1.0

func (m MaybeTag) Exists() bool

func (MaybeTag) IsAbsent added in v0.1.0

func (m MaybeTag) IsAbsent() bool

func (MaybeTag) IsNull added in v0.1.0

func (m MaybeTag) IsNull() bool

func (MaybeTag) Must added in v0.1.0

func (m MaybeTag) Must() Tag

type MaybeTag_List added in v0.1.0

type MaybeTag_List = *_Tag_List__Maybe

func (MaybeTag_List) AsNode added in v0.1.0

func (m MaybeTag_List) AsNode() ipld.Node

func (MaybeTag_List) Exists added in v0.1.0

func (m MaybeTag_List) Exists() bool

func (MaybeTag_List) IsAbsent added in v0.1.0

func (m MaybeTag_List) IsAbsent() bool

func (MaybeTag_List) IsNull added in v0.1.0

func (m MaybeTag_List) IsNull() bool

func (MaybeTag_List) Must added in v0.1.0

func (m MaybeTag_List) Must() Tag_List

type MaybeTree added in v0.1.0

type MaybeTree = *_Tree__Maybe

func (MaybeTree) AsNode added in v0.1.0

func (m MaybeTree) AsNode() ipld.Node

func (MaybeTree) Exists added in v0.1.0

func (m MaybeTree) Exists() bool

func (MaybeTree) IsAbsent added in v0.1.0

func (m MaybeTree) IsAbsent() bool

func (MaybeTree) IsNull added in v0.1.0

func (m MaybeTree) IsNull() bool

func (MaybeTree) Must added in v0.1.0

func (m MaybeTree) Must() Tree

type MaybeTreeEntry added in v0.1.0

type MaybeTreeEntry = *_TreeEntry__Maybe

func (MaybeTreeEntry) AsNode added in v0.1.0

func (m MaybeTreeEntry) AsNode() ipld.Node

func (MaybeTreeEntry) Exists added in v0.1.0

func (m MaybeTreeEntry) Exists() bool

func (MaybeTreeEntry) IsAbsent added in v0.1.0

func (m MaybeTreeEntry) IsAbsent() bool

func (MaybeTreeEntry) IsNull added in v0.1.0

func (m MaybeTreeEntry) IsNull() bool

func (MaybeTreeEntry) Must added in v0.1.0

func (m MaybeTreeEntry) Must() TreeEntry
type MaybeTree_Link = *_Tree_Link__Maybe

func (MaybeTree_Link) AsNode added in v0.1.0

func (m MaybeTree_Link) AsNode() ipld.Node

func (MaybeTree_Link) Exists added in v0.1.0

func (m MaybeTree_Link) Exists() bool

func (MaybeTree_Link) IsAbsent added in v0.1.0

func (m MaybeTree_Link) IsAbsent() bool

func (MaybeTree_Link) IsNull added in v0.1.0

func (m MaybeTree_Link) IsNull() bool

func (MaybeTree_Link) Must added in v0.1.0

func (m MaybeTree_Link) Must() Tree_Link

type PersonInfo

type PersonInfo = *_PersonInfo

PersonInfo matches the IPLD Schema type "PersonInfo". It has Struct type-kind, and may be interrogated like map kind.

func (PersonInfo) AsBool added in v0.1.0

func (PersonInfo) AsBool() (bool, error)

func (PersonInfo) AsBytes added in v0.1.0

func (PersonInfo) AsBytes() ([]byte, error)

func (PersonInfo) AsFloat added in v0.1.0

func (PersonInfo) AsFloat() (float64, error)

func (PersonInfo) AsInt added in v0.1.0

func (PersonInfo) AsInt() (int64, error)
func (PersonInfo) AsLink() (ipld.Link, error)

func (PersonInfo) AsString added in v0.1.0

func (PersonInfo) AsString() (string, error)

func (PersonInfo) IsAbsent added in v0.1.0

func (PersonInfo) IsAbsent() bool

func (PersonInfo) IsNull added in v0.1.0

func (PersonInfo) IsNull() bool

func (PersonInfo) Kind added in v0.1.0

func (PersonInfo) Kind() ipld.Kind

func (PersonInfo) Length added in v0.1.0

func (PersonInfo) Length() int64

func (PersonInfo) ListIterator added in v0.1.0

func (PersonInfo) ListIterator() ipld.ListIterator

func (PersonInfo) LookupByIndex added in v0.1.0

func (PersonInfo) LookupByIndex(idx int64) (ipld.Node, error)

func (PersonInfo) LookupByNode added in v0.1.0

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

func (PersonInfo) LookupBySegment added in v0.1.0

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

func (PersonInfo) LookupByString added in v0.1.0

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

func (PersonInfo) MapIterator added in v0.1.0

func (n PersonInfo) MapIterator() ipld.MapIterator

func (PersonInfo) Prototype added in v0.1.0

func (PersonInfo) Prototype() ipld.NodePrototype

func (PersonInfo) Representation added in v0.1.0

func (n PersonInfo) Representation() ipld.Node

func (PersonInfo) Type added in v0.1.0

func (PersonInfo) Type() schema.Type

type String added in v0.1.0

type String = *_String

String matches the IPLD Schema type "String". It has string kind.

func (String) AsBool added in v0.1.0

func (String) AsBool() (bool, error)

func (String) AsBytes added in v0.1.0

func (String) AsBytes() ([]byte, error)

func (String) AsFloat added in v0.1.0

func (String) AsFloat() (float64, error)

func (String) AsInt added in v0.1.0

func (String) AsInt() (int64, error)
func (String) AsLink() (ipld.Link, error)

func (String) AsString added in v0.1.0

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

func (String) IsAbsent added in v0.1.0

func (String) IsAbsent() bool

func (String) IsNull added in v0.1.0

func (String) IsNull() bool

func (String) Kind added in v0.1.0

func (String) Kind() ipld.Kind

func (String) Length added in v0.1.0

func (String) Length() int64

func (String) ListIterator added in v0.1.0

func (String) ListIterator() ipld.ListIterator

func (String) LookupByIndex added in v0.1.0

func (String) LookupByIndex(idx int64) (ipld.Node, error)

func (String) LookupByNode added in v0.1.0

func (String) LookupByNode(ipld.Node) (ipld.Node, error)

func (String) LookupBySegment added in v0.1.0

func (String) LookupBySegment(seg ipld.PathSegment) (ipld.Node, error)

func (String) LookupByString added in v0.1.0

func (String) LookupByString(string) (ipld.Node, error)

func (String) MapIterator added in v0.1.0

func (String) MapIterator() ipld.MapIterator

func (String) Prototype added in v0.1.0

func (String) Prototype() ipld.NodePrototype

func (String) Representation added in v0.1.0

func (n String) Representation() ipld.Node

func (String) String added in v0.1.0

func (n String) String() string

func (String) Type added in v0.1.0

func (String) Type() schema.Type

type String_List added in v0.1.0

type String_List = *_String_List

String_List matches the IPLD Schema type "String_List". It has list kind.

func (String_List) AsBool added in v0.1.0

func (String_List) AsBool() (bool, error)

func (String_List) AsBytes added in v0.1.0

func (String_List) AsBytes() ([]byte, error)

func (String_List) AsFloat added in v0.1.0

func (String_List) AsFloat() (float64, error)

func (String_List) AsInt added in v0.1.0

func (String_List) AsInt() (int64, error)
func (String_List) AsLink() (ipld.Link, error)

func (String_List) AsString added in v0.1.0

func (String_List) AsString() (string, error)

func (String_List) IsAbsent added in v0.1.0

func (String_List) IsAbsent() bool

func (String_List) IsNull added in v0.1.0

func (String_List) IsNull() bool

func (String_List) Iterator added in v0.1.0

func (n String_List) Iterator() *String_List__Itr

func (String_List) Kind added in v0.1.0

func (String_List) Kind() ipld.Kind

func (String_List) Length added in v0.1.0

func (n String_List) Length() int64

func (String_List) ListIterator added in v0.1.0

func (n String_List) ListIterator() ipld.ListIterator

func (String_List) LookupByIndex added in v0.1.0

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

func (String_List) LookupByNode added in v0.1.0

func (n String_List) LookupByNode(k ipld.Node) (ipld.Node, error)

func (String_List) LookupBySegment added in v0.1.0

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

func (String_List) LookupByString added in v0.1.0

func (String_List) LookupByString(string) (ipld.Node, error)

func (String_List) MapIterator added in v0.1.0

func (String_List) MapIterator() ipld.MapIterator

func (String_List) Prototype added in v0.1.0

func (String_List) Prototype() ipld.NodePrototype

func (String_List) Representation added in v0.1.0

func (n String_List) Representation() ipld.Node

func (String_List) Type added in v0.1.0

func (String_List) Type() schema.Type

type String_List__Itr added in v0.1.0

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

func (*String_List__Itr) Done added in v0.1.0

func (itr *String_List__Itr) Done() bool

func (*String_List__Itr) Next added in v0.1.0

func (itr *String_List__Itr) Next() (idx int64, v String)

type Tag

type Tag = *_Tag

Tag matches the IPLD Schema type "Tag". It has Struct type-kind, and may be interrogated like map kind.

func (Tag) AsBool added in v0.1.0

func (Tag) AsBool() (bool, error)

func (Tag) AsBytes added in v0.1.0

func (Tag) AsBytes() ([]byte, error)

func (Tag) AsFloat added in v0.1.0

func (Tag) AsFloat() (float64, error)

func (Tag) AsInt added in v0.1.0

func (Tag) AsInt() (int64, error)
func (Tag) AsLink() (ipld.Link, error)

func (Tag) AsString added in v0.1.0

func (Tag) AsString() (string, error)

func (Tag) IsAbsent added in v0.1.0

func (Tag) IsAbsent() bool

func (Tag) IsNull added in v0.1.0

func (Tag) IsNull() bool

func (Tag) Kind added in v0.1.0

func (Tag) Kind() ipld.Kind

func (Tag) Length added in v0.1.0

func (Tag) Length() int64

func (Tag) ListIterator added in v0.1.0

func (Tag) ListIterator() ipld.ListIterator

func (Tag) LookupByIndex added in v0.1.0

func (Tag) LookupByIndex(idx int64) (ipld.Node, error)

func (Tag) LookupByNode added in v0.1.0

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

func (Tag) LookupBySegment added in v0.1.0

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

func (Tag) LookupByString added in v0.1.0

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

func (Tag) MapIterator added in v0.1.0

func (n Tag) MapIterator() ipld.MapIterator

func (Tag) Prototype added in v0.1.0

func (Tag) Prototype() ipld.NodePrototype

func (Tag) Representation added in v0.1.0

func (n Tag) Representation() ipld.Node

func (Tag) Type

func (Tag) Type() schema.Type

type Tag_List added in v0.1.0

type Tag_List = *_Tag_List

Tag_List matches the IPLD Schema type "Tag_List". It has list kind.

func (Tag_List) AsBool added in v0.1.0

func (Tag_List) AsBool() (bool, error)

func (Tag_List) AsBytes added in v0.1.0

func (Tag_List) AsBytes() ([]byte, error)

func (Tag_List) AsFloat added in v0.1.0

func (Tag_List) AsFloat() (float64, error)

func (Tag_List) AsInt added in v0.1.0

func (Tag_List) AsInt() (int64, error)
func (Tag_List) AsLink() (ipld.Link, error)

func (Tag_List) AsString added in v0.1.0

func (Tag_List) AsString() (string, error)

func (Tag_List) IsAbsent added in v0.1.0

func (Tag_List) IsAbsent() bool

func (Tag_List) IsNull added in v0.1.0

func (Tag_List) IsNull() bool

func (Tag_List) Iterator added in v0.1.0

func (n Tag_List) Iterator() *Tag_List__Itr

func (Tag_List) Kind added in v0.1.0

func (Tag_List) Kind() ipld.Kind

func (Tag_List) Length added in v0.1.0

func (n Tag_List) Length() int64

func (Tag_List) ListIterator added in v0.1.0

func (n Tag_List) ListIterator() ipld.ListIterator

func (Tag_List) LookupByIndex added in v0.1.0

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

func (Tag_List) LookupByNode added in v0.1.0

func (n Tag_List) LookupByNode(k ipld.Node) (ipld.Node, error)

func (Tag_List) LookupBySegment added in v0.1.0

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

func (Tag_List) LookupByString added in v0.1.0

func (Tag_List) LookupByString(string) (ipld.Node, error)

func (Tag_List) MapIterator added in v0.1.0

func (Tag_List) MapIterator() ipld.MapIterator

func (Tag_List) Prototype added in v0.1.0

func (Tag_List) Prototype() ipld.NodePrototype

func (Tag_List) Representation added in v0.1.0

func (n Tag_List) Representation() ipld.Node

func (Tag_List) Type added in v0.1.0

func (Tag_List) Type() schema.Type

type Tag_List__Itr added in v0.1.0

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

func (*Tag_List__Itr) Done added in v0.1.0

func (itr *Tag_List__Itr) Done() bool

func (*Tag_List__Itr) Next added in v0.1.0

func (itr *Tag_List__Itr) Next() (idx int64, v Tag)

type Tree

type Tree = *_Tree

Tree matches the IPLD Schema type "Tree". It has map kind.

func (Tree) AsBool added in v0.1.0

func (Tree) AsBool() (bool, error)

func (Tree) AsBytes added in v0.1.0

func (Tree) AsBytes() ([]byte, error)

func (Tree) AsFloat added in v0.1.0

func (Tree) AsFloat() (float64, error)

func (Tree) AsInt added in v0.1.0

func (Tree) AsInt() (int64, error)
func (Tree) AsLink() (ipld.Link, error)

func (Tree) AsString added in v0.1.0

func (Tree) AsString() (string, error)

func (Tree) IsAbsent added in v0.1.0

func (Tree) IsAbsent() bool

func (Tree) IsNull added in v0.1.0

func (Tree) IsNull() bool

func (Tree) Iterator added in v0.1.0

func (n Tree) Iterator() *Tree__Itr

func (Tree) Kind added in v0.1.0

func (Tree) Kind() ipld.Kind

func (Tree) Length added in v0.1.0

func (n Tree) Length() int64

func (Tree) ListIterator added in v0.1.0

func (Tree) ListIterator() ipld.ListIterator

func (Tree) LookupByIndex added in v0.1.0

func (Tree) LookupByIndex(idx int64) (ipld.Node, error)

func (Tree) LookupByNode added in v0.1.0

func (n Tree) LookupByNode(k ipld.Node) (ipld.Node, error)

func (Tree) LookupBySegment added in v0.1.0

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

func (Tree) LookupByString added in v0.1.0

func (n Tree) LookupByString(k string) (ipld.Node, error)

func (Tree) MapIterator added in v0.1.0

func (n Tree) MapIterator() ipld.MapIterator

func (Tree) Prototype added in v0.1.0

func (Tree) Prototype() ipld.NodePrototype

func (Tree) Representation added in v0.1.0

func (n Tree) Representation() ipld.Node

func (Tree) Type added in v0.1.0

func (Tree) Type() schema.Type

type TreeEntry

type TreeEntry = *_TreeEntry

TreeEntry matches the IPLD Schema type "TreeEntry". It has Struct type-kind, and may be interrogated like map kind.

func (TreeEntry) AsBool added in v0.1.0

func (TreeEntry) AsBool() (bool, error)

func (TreeEntry) AsBytes added in v0.1.0

func (TreeEntry) AsBytes() ([]byte, error)

func (TreeEntry) AsFloat added in v0.1.0

func (TreeEntry) AsFloat() (float64, error)

func (TreeEntry) AsInt added in v0.1.0

func (TreeEntry) AsInt() (int64, error)
func (TreeEntry) AsLink() (ipld.Link, error)

func (TreeEntry) AsString added in v0.1.0

func (TreeEntry) AsString() (string, error)

func (TreeEntry) IsAbsent added in v0.1.0

func (TreeEntry) IsAbsent() bool

func (TreeEntry) IsNull added in v0.1.0

func (TreeEntry) IsNull() bool

func (TreeEntry) Kind added in v0.1.0

func (TreeEntry) Kind() ipld.Kind

func (TreeEntry) Length added in v0.1.0

func (TreeEntry) Length() int64

func (TreeEntry) ListIterator added in v0.1.0

func (TreeEntry) ListIterator() ipld.ListIterator

func (TreeEntry) LookupByIndex added in v0.1.0

func (TreeEntry) LookupByIndex(idx int64) (ipld.Node, error)

func (TreeEntry) LookupByNode added in v0.1.0

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

func (TreeEntry) LookupBySegment added in v0.1.0

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

func (TreeEntry) LookupByString added in v0.1.0

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

func (TreeEntry) MapIterator added in v0.1.0

func (n TreeEntry) MapIterator() ipld.MapIterator

func (TreeEntry) Prototype added in v0.1.0

func (TreeEntry) Prototype() ipld.NodePrototype

func (TreeEntry) Representation added in v0.1.0

func (n TreeEntry) Representation() ipld.Node

func (TreeEntry) Type added in v0.1.0

func (TreeEntry) Type() schema.Type
type Tree_Link = *_Tree_Link

Tree_Link matches the IPLD Schema type "Tree_Link". It has link kind.

func (Tree_Link) AsBool added in v0.1.0

func (Tree_Link) AsBool() (bool, error)

func (Tree_Link) AsBytes added in v0.1.0

func (Tree_Link) AsBytes() ([]byte, error)

func (Tree_Link) AsFloat added in v0.1.0

func (Tree_Link) AsFloat() (float64, error)

func (Tree_Link) AsInt added in v0.1.0

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

func (Tree_Link) AsString added in v0.1.0

func (Tree_Link) AsString() (string, error)

func (Tree_Link) IsAbsent added in v0.1.0

func (Tree_Link) IsAbsent() bool

func (Tree_Link) IsNull added in v0.1.0

func (Tree_Link) IsNull() bool

func (Tree_Link) Kind added in v0.1.0

func (Tree_Link) Kind() ipld.Kind

func (Tree_Link) Length added in v0.1.0

func (Tree_Link) Length() int64
func (n Tree_Link) Link() ipld.Link

func (Tree_Link) LinkTargetNodePrototype added in v0.1.0

func (Tree_Link) LinkTargetNodePrototype() ipld.NodePrototype

func (Tree_Link) ListIterator added in v0.1.0

func (Tree_Link) ListIterator() ipld.ListIterator

func (Tree_Link) LookupByIndex added in v0.1.0

func (Tree_Link) LookupByIndex(idx int64) (ipld.Node, error)

func (Tree_Link) LookupByNode added in v0.1.0

func (Tree_Link) LookupByNode(ipld.Node) (ipld.Node, error)

func (Tree_Link) LookupBySegment added in v0.1.0

func (Tree_Link) LookupBySegment(seg ipld.PathSegment) (ipld.Node, error)

func (Tree_Link) LookupByString added in v0.1.0

func (Tree_Link) LookupByString(string) (ipld.Node, error)

func (Tree_Link) MapIterator added in v0.1.0

func (Tree_Link) MapIterator() ipld.MapIterator

func (Tree_Link) Prototype added in v0.1.0

func (Tree_Link) Prototype() ipld.NodePrototype

func (Tree_Link) Representation added in v0.1.0

func (n Tree_Link) Representation() ipld.Node

func (Tree_Link) Type added in v0.1.0

func (Tree_Link) Type() schema.Type

type Tree__Itr added in v0.1.0

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

func (*Tree__Itr) Done added in v0.1.0

func (itr *Tree__Itr) Done() bool

func (*Tree__Itr) Next added in v0.1.0

func (itr *Tree__Itr) Next() (k String, v TreeEntry)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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