Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeFetcher ¶
type CodeFetcher interface { GetCommitSHA(tracer.Span, string, string, string) (string, error) Get(tracer.Span, string, string, string) (io.Reader, error) }
CodeFetcher represents an object capable of fetching code and returning a gzip-compressed tarball io.Reader
type GitHubFetcher ¶
type GitHubFetcher struct {
// contains filtered or unexported fields
}
GitHubFetcher represents a github data fetcher
func NewGitHubFetcher ¶
func NewGitHubFetcher(token string) *GitHubFetcher
NewGitHubFetcher returns a new github fetcher
func (*GitHubFetcher) Get ¶
func (gf *GitHubFetcher) Get(parentSpan tracer.Span, owner string, repo string, ref string) (tarball io.Reader, err error)
Get fetches contents of GitHub repo and returns the processed contents as an in-memory io.Reader.
func (*GitHubFetcher) GetCommitSHA ¶
func (gf *GitHubFetcher) GetCommitSHA(parentSpan tracer.Span, owner string, repo string, ref string) (csha string, err error)
GetCommitSHA returns the commit SHA for a reference
Click to show internal directories.
Click to hide internal directories.