Versions in this module Expand all Collapse all v0 v0.61.1 Apr 27, 2023 Changes in this version + const GB + const KB + const MB + var ErrNonArchiveSource = fmt.Errorf("non-archive sources are not supported for directory destinations") + func CopyDir(fs afero.Fs, src string, dst string) error + func CopyFile(fs afero.Fs, src, dst string) error + func Exists(fs afero.Fs, path string) (bool, error) + func HashFile(fs afero.Fs, path string, hasher hash.Hash) (string, error) + func UnTarGz(dst string, r io.Reader) error + func ValidateByHash(fs afero.Fs, path, hashStr string) (bool, string, error) + type Getter interface + GetFile func(dst, src string, monitor ...*progress.Manual) error + GetToDir func(dst, src string, monitor ...*progress.Manual) error + type HashiGoGetter struct + func NewGetter(httpClient *http.Client) *HashiGoGetter + func (g HashiGoGetter) GetFile(dst, src string, monitors ...*progress.Manual) error + func (g HashiGoGetter) GetToDir(dst, src string, monitors ...*progress.Manual) error