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: 0

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