Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type URLHandler ¶
type URLHandler struct {
// contains filtered or unexported fields
}
URLHandler handles downloading files from URLs
func (*URLHandler) Cleanup ¶
func (h *URLHandler) Cleanup() error
Cleanup removes all downloaded temp files
func (*URLHandler) GetTempFiles ¶
func (h *URLHandler) GetTempFiles() []string
GetTempFiles returns the list of downloaded temp files
func (*URLHandler) ResolveFiles ¶
func (h *URLHandler) ResolveFiles(filePaths []string) ([]string, error)
ResolveFiles takes a list of file paths and resolves any URLs by downloading them Returns the list of local file paths (either original local paths or downloaded temp files)
Click to show internal directories.
Click to hide internal directories.