Versions in this module Expand all Collapse all v0 v0.0.1 Jun 17, 2021 Changes in this version + func DecodeBlock(block blocks.Block) (node.Node, error) + func ParseCompressedObject(r io.Reader) (node.Node, error) + func ParseObject(r io.Reader) (node.Node, error) + func ParseObjectFromBuffer(b []byte) (node.Node, error) + type Blob struct + func ReadBlob(rd *bufio.Reader) (*Blob, error) + func (b *Blob) Cid() cid.Cid + func (b *Blob) Copy() node.Node + func (b *Blob) GitSha() []byte + func (b *Blob) Links() []*node.Link + func (b *Blob) Loggable() map[string]interface{} + func (b *Blob) MarshalJSON() ([]byte, error) + func (b *Blob) RawData() []byte + func (b *Blob) Resolve(_ []string) (interface{}, []string, error) + func (b *Blob) ResolveLink(_ []string) (*node.Link, []string, error) + func (b *Blob) Size() (uint64, error) + func (b *Blob) Stat() (*node.NodeStat, error) + func (b *Blob) String() string + func (b *Blob) Tree(p string, depth int) []string + type Commit struct + Author *PersonInfo + Committer *PersonInfo + DataSize string + Encoding string + GitTree cid.Cid + MergeTag []*MergeTag + Message string + Other []string + Parents []cid.Cid + Sig *GpgSig + func ReadCommit(rd *bufio.Reader) (*Commit, error) + func (c *Commit) Cid() cid.Cid + func (c *Commit) Copy() node.Node + func (c *Commit) GitSha() []byte + func (c *Commit) Links() []*node.Link + func (c *Commit) Loggable() map[string]interface{} + func (c *Commit) RawData() []byte + func (c *Commit) Resolve(path []string) (interface{}, []string, error) + func (c *Commit) ResolveLink(path []string) (*node.Link, []string, error) + func (c *Commit) Size() (uint64, error) + func (c *Commit) Stat() (*node.NodeStat, error) + func (c *Commit) String() string + func (c *Commit) Tree(p string, depth int) []string + type GpgSig struct + Text string + func ReadGpgSig(rd *bufio.Reader) (*GpgSig, error) + type MergeTag struct + Object cid.Cid + Tag string + Tagger *PersonInfo + Text string + Type string + func ReadMergeTag(hash []byte, rd *bufio.Reader) (*MergeTag, []byte, error) + type PersonInfo struct + Date string + Email string + Name string + Timezone string + func (pi *PersonInfo) MarshalJSON() ([]byte, error) + func (pi *PersonInfo) String() string + type Tag struct + Message string + Object cid.Cid + Tag string + Tagger *PersonInfo + Type string + func ReadTag(rd *bufio.Reader) (*Tag, error) + func (t *Tag) Cid() cid.Cid + func (t *Tag) Copy() node.Node + func (t *Tag) GitSha() []byte + func (t *Tag) Links() []*node.Link + func (t *Tag) Loggable() map[string]interface{} + func (t *Tag) RawData() []byte + func (t *Tag) Resolve(path []string) (interface{}, []string, error) + func (t *Tag) ResolveLink(path []string) (*node.Link, []string, error) + func (t *Tag) Size() (uint64, error) + func (t *Tag) Stat() (*node.NodeStat, error) + func (t *Tag) String() string + func (t *Tag) Tree(p string, depth int) []string + type Tree struct + func ReadTree(rd *bufio.Reader) (*Tree, error) + func (t *Tree) Cid() cid.Cid + func (t *Tree) Copy() node.Node + func (t *Tree) GitSha() []byte + func (t *Tree) Links() []*node.Link + func (t *Tree) Loggable() map[string]interface{} + func (t *Tree) MarshalJSON() ([]byte, error) + func (t *Tree) RawData() []byte + func (t *Tree) Resolve(p []string) (interface{}, []string, error) + func (t *Tree) Size() (uint64, error) + func (t *Tree) Stat() (*node.NodeStat, error) + func (t *Tree) String() string + func (t *Tree) Tree(p string, depth int) []string + func (t Tree) ResolveLink(path []string) (*node.Link, []string, error) + type TreeEntry struct + Hash cid.Cid + Mode string + func ReadEntry(r *bufio.Reader) (*TreeEntry, error) + func (te *TreeEntry) WriteTo(w io.Writer) (int, error)