gittarutil

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: Apache-2.0 Imports: 4 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(userID string) ([]string, error)

func (*Repo) FetchFile

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

func (*Repo) GetCommit

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

func (*Repo) Tags

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

Jump to

Keyboard shortcuts

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