internal

package
v0.1.31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFromRepo

func DownloadFromRepo(apiURL, outDir string) error

DownloadFromRepo downloads all files from a GitHub Contents API URL into outDir without including the top-level "cookbook" folder.

func DownloadFromRepoWithCache

func DownloadFromRepoWithCache(apiURL, outDir string, c *cache.Cache) error

func ListDirsInRepo

func ListDirsInRepo(apiUrl string) (*[]GithubContent, error)

func ListDirsInRepoWithCache

func ListDirsInRepoWithCache(apiURL string, c *cache.Cache) (*[]GithubContent, error)

Types

type GithubContent

type GithubContent struct {
	Name        string `json:"name"`
	Path        string `json:"path"`
	Type        string `json:"type"`
	DownloadURL string `json:"download_url"`
	URL         string `json:"url"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL