Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDownloadedPath ¶
GetDownloadedPath downloads the content using suitable downloader and then returns the downloaded file path
func IsRemotePath ¶
IsRemotePath checks if the provided string is a valid remote path or not
Types ¶
type DownloadOptions ¶
DownloadOptions stores options for the downloader
type Downloader ¶
type Downloader interface {
Download(DownloadOptions) (string, error)
}
Downloader defines interface for downloaders
type HTTPContent ¶
type HTTPContent struct {
ContentFilePath string
}
HTTPContent stores remote content config
func (*HTTPContent) Download ¶
func (content *HTTPContent) Download(downloadOptions DownloadOptions) (string, error)
Download downloads content from the given content URL
Click to show internal directories.
Click to hide internal directories.