Documentation ¶
Index ¶
Constants ¶
View Source
const ( GithubAuthToken = "GITHUB_AUTH_TOKEN" // #nosec G101 GithubAppKeyPath = "GITHUB_APP_KEY_PATH" GithubAppID = "GITHUB_APP_ID" GithubAppInstallationID = "GITHUB_APP_INSTALLATION_ID" UseDiskCache = "USE_DISK_CACHE" DiskCachePath = "DISK_CACHE_PATH" UseBlobCache = "USE_BLOB_CACHE" BucketURL = "BLOB_URL" )
Variables ¶
This section is empty.
Functions ¶
func NewTransport ¶
func NewTransport(ctx context.Context, logger *zap.SugaredLogger) http.RoundTripper
NewTransport returns a configured http.Transport for use with GitHub.
Types ¶
type Cache ¶ added in v1.2.0
Cache that use the blob storage like GCS or S3. TODO - Handle returning errors.
func (*Cache) Delete ¶ added in v1.2.0
Delete removes key from the cache.The error is not returned to maintain compatabiltiy with the httpcache Cache interface.
type RateLimitRoundTripper ¶
type RateLimitRoundTripper struct { Logger *zap.SugaredLogger InnerTransport http.RoundTripper }
RateLimitRoundTripper is a rate-limit aware http.Transport for Github.
type RoundRobinTokenSource ¶
type RoundRobinTokenSource struct { AccessTokens []string // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.