Documentation
¶
Index ¶
- func DownloadFromRepo(apiURL, outDir string, opts Options) error
- func DownloadFromRepoWithCache(apiURL, outDir string, c *cache.Cache, opts Options) error
- func ListDirsInRepo(apiUrl string) (*[]GithubContent, error)
- func ListDirsInRepoWithCache(apiURL string, c *cache.Cache) (*[]GithubContent, error)
- type GithubContent
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFromRepo ¶
DownloadFromRepo downloads all files from a GitHub Contents API URL into outDir without including the top-level "cookbook" folder.
func ListDirsInRepo ¶
func ListDirsInRepo(apiUrl string) (*[]GithubContent, error)
func ListDirsInRepoWithCache ¶
func ListDirsInRepoWithCache(apiURL string, c *cache.Cache) (*[]GithubContent, error)
Types ¶
type GithubContent ¶
Click to show internal directories.
Click to hide internal directories.