Documentation ¶
Index ¶
- 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
- 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
- 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
- type MergeTag
- type PersonInfo
- type Tag
- 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
- 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) ResolveLink(path []string) (*node.Link, []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
- type TreeEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Blob ¶
type Blob struct {
// contains filtered or unexported fields
}
func (*Blob) MarshalJSON ¶
type Commit ¶
type Commit struct { DataSize string `json:"-"` GitTree cid.Cid `json:"tree"` Parents []cid.Cid `json:"parents"` Message string `json:"message"` Author *PersonInfo `json:"author"` Committer *PersonInfo `json:"committer"` Encoding string `json:"encoding,omitempty"` Sig *GpgSig `json:"signature,omitempty"` MergeTag []*MergeTag `json:"mergetag,omitempty"` // Other contains all the non-standard headers, such as 'HG:extra' Other []string `json:"other,omitempty"` // contains filtered or unexported fields }
func (*Commit) ResolveLink ¶
type MergeTag ¶
type PersonInfo ¶
func (*PersonInfo) MarshalJSON ¶
func (pi *PersonInfo) MarshalJSON() ([]byte, error)
func (*PersonInfo) String ¶
func (pi *PersonInfo) String() string
type Tag ¶
type Tree ¶
type Tree struct {
// contains filtered or unexported fields
}
func (*Tree) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.