github

package
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package github is working version only We need to (re-)consider - multiple go.mod files in one repo e.g (owner/repo/cli/go.mod owner/repo/web/go.mod) - v2 (or any other vX) folder - something else which I cannot think of right now because I had too many cakes today

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGitFetcher

func NewGitFetcher(fs afero.Fs, owner string, repoName string, tag string) (repo.Fetcher, error)

NewGitFetcher creates a new Fetcher for repositories hosted on github

Types

type Author

type Author struct {
	Date time.Time
}

Author represents author information from response message of git API

type Commit

type Commit struct {
	Author Author
}

Commit represents commit information from response message of git API

type CommitInfo

type CommitInfo struct {
	Version string
	Name    string
	Short   string
	Time    time.Time
}

CommitInfo represents information store in go.info

type CommitResponse

type CommitResponse struct {
	Sha    string
	Commit Commit
}

CommitResponse represents commit information from response message of git API

Jump to

Keyboard shortcuts

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