github

package
v0.0.0-...-0c672af Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	//PUBLIC_HOSTNAME default github hostname
	PUBLIC_HOSTNAME = "github.com"
)

Variables

This section is empty.

Functions

func Unzip

func Unzip(zipReader io.ReaderAt, len int64, dest string) (string, error)

Unzip archive represented by zipReader

Types

type FileRepository

type FileRepository struct {
	// contains filtered or unexported fields
}

FileRepository represents a Github FileRepository source

func NewGithubFileRepository

func NewGithubFileRepository(githubHostname string, accessToken string, lastModifiedScanCutoff int, repoNameFQ string, workingDir string, fileScanner scanner.FileScanner) *FileRepository

NewGithubFileRepository returns a new GithubFileRepository structure used to scan any number of repositories on the given github host.

func (*FileRepository) Scan

func (this *FileRepository) Scan(defectReport *defect.Report) (err error)

Scan scans this repoOwner/repoBranch when repoOwner & repoBranch are set. When not set, all repositories on this hostname accessible by this accessToken are scanned

Jump to

Keyboard shortcuts

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