gittarutil

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commit

type Commit struct {
	ID        string `json:"id"`
	Committer struct {
		Email string `json:"email"`
		Name  string `json:"name"`
		When  string `json:"when"`
	} `json:"committer"`
	CommitMessage string `json:"commitMessage"`
}

type Ref

type Ref struct {
	Name string `json:"name"`
}

type Repo

type Repo struct {
	GittarAddr string
	Repo       string
}

func NewRepo

func NewRepo(gittarAddr, repo string) *Repo

func (*Repo) Branches

func (r *Repo) Branches() ([]string, error)

func (*Repo) FetchFile

func (r *Repo) FetchFile(ref string, filename string) (b []byte, err error)

func (*Repo) GetCommit

func (r *Repo) GetCommit(ref string) (Commit, error)

func (*Repo) Tags

func (r *Repo) Tags() ([]string, error)

Jump to

Keyboard shortcuts

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