{"modulePath":"github.com/xiaoyawei/buf","version":"v0.0.0-20230306131847-26f457599b8d","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package githubtesting\n\nPackage githubtesting provides testing functionality for GitHub.\n\n## Types\n\n```go\ntype ArchiveReader interface {\n\t// GetArchive gets the GitHub archive and untars it to the output directory path.\n\t//\n\t// The root directory within the tarball is stripped.\n\t// If the directory already exists, this is a no-op.\n\t//\n\t// Uses file locking to make sure the no-op works properly across multiple process invocations,\n\t// which is needed for example with go test.\n\t// This is also thread-safe.\n\t//\n\t// Only use for testing.\n\tGetArchive(\n\t\tctx context.Context,\n\t\toutputDirPath string,\n\t\towner string,\n\t\trepository string,\n\t\tref string,\n\t) error\n}\n```\nArchiveReader reads GitHub archives.\n\n```go\nfunc NewArchiveReader(\n\tlogger *zap.Logger,\n\tstorageosProvider storageos.Provider,\n\thttpClient *http.Client,\n) ArchiveReader\n```\nNewArchiveReader returns a new ArchiveReader.\n\n","path":"github.com/xiaoyawei/buf/private/pkg/github/githubtesting","name":"githubtesting","synopsis":"Package githubtesting provides testing functionality for GitHub.","isRedistributable":true}
