Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GoGetter ¶
type GoGetter struct {
Logger *zap.SugaredLogger
}
type InvalidURLError ¶
type InvalidURLError struct {
// contains filtered or unexported fields
}
func (InvalidURLError) Error ¶
func (e InvalidURLError) Error() string
type Remote ¶
type Remote struct {
Logger *zap.SugaredLogger
// Home is the directory in which remote downloads files. If empty, user cache directory is used
Home string
// Getter is the underlying implementation of getter used for fetching remote files
Getter Getter
// ReadFile is the implementation of the file reader that reads a local file from the specified path.
// Inject any implementation of your choice, like an im-memory impl for testing, ioutil.ReadFile for the real-world use.
ReadFile func(string) ([]byte, error)
DirExists func(string) bool
FileExists func(string) bool
}
Click to show internal directories.
Click to hide internal directories.