internal

package
v0.1.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFromRepoWithCache

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

DownloadFromRepoWithCache downloads a repo as ZIP or recursively via API

func ListDirsInRepoWithCache

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

///////////////////////// List directories in repo /////////////////////////

Types

type FetchOptions added in v0.1.10

type FetchOptions struct {
	Verbose bool
	Branch  string
	UseZIP  bool // true for full repo ZIP, false for API directory fetch
}

type GitContent added in v0.1.10

type GitContent struct {
	Name        string `json:"name"`
	Path        string `json:"path"`
	DownloadURL string `json:"download_url"`
	Type        string `json:"type"`
	SHA         string `json:"sha"`
	URL         string `json:"url"` // <--- add this
}

type RepoSpec added in v0.1.10

type RepoSpec struct {
	Host   string
	Owner  string
	Repo   string
	Branch string
	IsGHA  bool
}

func ParseRepoSpec added in v0.1.10

func ParseRepoSpec(apiURL string) (*RepoSpec, error)

ParseRepoSpec parses GitHub/GitLab/Bitbucket repo URLs

func (*RepoSpec) CacheKey added in v0.1.10

func (r *RepoSpec) CacheKey() string

func (*RepoSpec) ZIPURL added in v0.1.10

func (r *RepoSpec) ZIPURL() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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