Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileGetter ¶
FileGetter is a function that downloads the file from the provided path via raw.githubusercontent.com to avoid getting rate limited. It returns a nil error on 404. TODO: Rethink the 404 behavior?
func FileGetterFactory ¶
func FileGetterFactory(org, repo, branch string, opts ...Opt) FileGetter
FileGetterFactory returns a GithubFileGetter that downloads files from raw.githubusercontent.com for the provided org/repo/branch It avoids getting ratelimited by using raw.githubusercontent.com. Because it is using a plain http client it can be heavily paralellized without killing the machine. It supports private repositories when configured WithAuthentication.
Click to show internal directories.
Click to hide internal directories.