Documentation
¶
Overview ¶
Package github provides TESTING functionality for GitHub.
This should eventually be refactored to provide universal functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveReader ¶ added in v0.14.0
type ArchiveReader interface {
// GetArchive gets the GitHub archive and untars it to the output directory path.
//
// The root directory within the tarball is stripped.
// If the directory already exists, this is a no-op.
//
// Only use for testing.
GetArchive(
ctx context.Context,
container app.EnvStdinContainer,
outputDirPath string,
owner string,
repository string,
ref string,
) error
}
ArchiveReader reads GitHub archives.
func NewArchiveReader ¶ added in v0.14.0
func NewArchiveReader( logger *zap.Logger, httpClient *http.Client, httpAuthenticator httpauth.Authenticator, ) ArchiveReader
NewArchiveReader returns a new ArchiveReader.
Click to show internal directories.
Click to hide internal directories.