Documentation
¶
Index ¶
- func CacheDir() string
- func HttpFileExists(path string) error
- func IsRemote(goGetterSrc string) bool
- func ParseNormalProtocol(path string) (string, error)
- func ParseS3Url(s3URL string) (string, string, error)
- type Getter
- type GoGetter
- type HttpGetter
- type InvalidURLError
- type Remote
- type S3Getter
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HttpFileExists ¶ added in v0.158.0
func ParseNormalProtocol ¶ added in v0.158.0
Types ¶
type GoGetter ¶
type GoGetter struct {
Logger *zap.SugaredLogger
}
type HttpGetter ¶ added in v0.158.0
type HttpGetter struct {
Logger *zap.SugaredLogger
}
func (*HttpGetter) Get ¶ added in v0.158.0
func (g *HttpGetter) Get(wd, src, dst string) error
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 S3Getter Getter HttpGetter Getter // contains filtered or unexported fields }
func NewRemote ¶
func NewRemote(logger *zap.SugaredLogger, homeDir string, fs *filesystem.FileSystem) *Remote
type S3Getter ¶ added in v0.158.0
type S3Getter struct {
Logger *zap.SugaredLogger
}
Click to show internal directories.
Click to hide internal directories.