Documentation ¶
Index ¶
- Variables
- func ContentDigest(fs afero.Fs, path string, hasher hash.Hash) (string, error)
- func Exists(fs afero.Fs, path string) bool
- func HTTPClientWithCerts(fileSystem fs.FS, caCertPath string) (*http.Client, error)
- func ValidateDigest(path, expectedDigest string, hasher hash.Hash) error
- type Getter
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNonArchiveSource = fmt.Errorf("non-archive sources are not supported for directory destinations")
)
Functions ¶
func HTTPClientWithCerts ¶
Types ¶
type Getter ¶
type Getter interface { // GetFile downloads the give URL into the given path. The URL must reference a single file. GetFile(dst, src string, monitor ...*progress.Manual) error // GetToDir downloads the resource found at the `src` URL into the given `dst` directory. // The directory must already exist, and the remote resource MUST BE AN ARCHIVE (e.g. `.tar.gz`). GetToDir(dst, src string, monitor ...*progress.Manual) error }
func NewDefaultGetter ¶
func NewDefaultGetter() Getter
Click to show internal directories.
Click to hide internal directories.