Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*api)
Option configures an API handler.
func Git ¶
Git configures API to use a specific git client when trying to download a repository with the given prefix. Auth string can be a path to the SSK key, or a colon-separated username:password string.
func Log ¶
func Log(log logger) Option
Log configures API to use a specific logger function, such as log.Println, testing.T.Log or any other custom logger.
func VCSWorkers ¶ added in v0.1.3
VCSWorkers configures API to use at most n parallel workers when fetching from the VCS. The reason to restrict number of workers is to limit their memory usage.
Click to show internal directories.
Click to hide internal directories.