model

package
v0.0.0-...-5262f89 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blob

type Blob struct {
	Hash string `json:"hash"`
	Type string `json:"type"`
	Data string `json:"data"`
}

func (Blob) IsObject

func (Blob) IsObject()

type Commit

type Commit struct {
	Hash         string     `json:"hash"`
	Type         string     `json:"type"`
	Author       *Signature `json:"author"`
	Committer    *Signature `json:"committer"`
	Signature    string     `json:"signature"`
	Message      string     `json:"message"`
	Tree         *Tree      `json:"tree"`
	TreeHash     string     `json:"treeHash"`
	Parents      []*Commit  `json:"parents"`
	ParentHashes []string   `json:"parentHashes"`
}

func (Commit) IsObject

func (Commit) IsObject()

type Object

type Object interface {
	IsObject()
}

type Signature

type Signature struct {
	Name  string `json:"name"`
	Email string `json:"email"`
	When  string `json:"when"`
}

type Tree

type Tree struct {
	Hash    string       `json:"hash"`
	Type    string       `json:"type"`
	Entries []*TreeEntry `json:"entries"`
}

func (Tree) IsObject

func (Tree) IsObject()

type TreeEntry

type TreeEntry struct {
	Hash   string `json:"hash"`
	Name   string `json:"name"`
	Mode   string `json:"mode"`
	Object Object `json:"object"`
}

Jump to

Keyboard shortcuts

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