Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
func GetFiles ¶
func GetFiles( ctx context.Context, entries []FileEntry, downloadFn func(ctx context.Context, orig string) ([]byte, error), ) ([]File, error)
GetFiles downloads each entry using downloadFn, hashes the data, and returns a sorted content.File slice. The caller provides the downloadFn so this helper is provider-agnostic.
type FileEntry ¶
FileEntry represents a filtered file entry. Orig is the original path used for API calls. Name is the filtered/rewritten path used for content.File.Path.
func FilterEntries ¶
FilterEntries applies repo.Check() to each raw entry and returns a sorted FileEntry slice of entries that pass the filter. The getPath function extracts the file path string from each entry of type T.
Click to show internal directories.
Click to hide internal directories.