Documentation
¶
Index ¶
- Constants
- 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
- 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
- type HashiGoGetter
Constants ¶
View Source
const ( KB = 1 << (10 * iota) MB GB )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HashiGoGetter ¶
type HashiGoGetter struct { }
func (HashiGoGetter) GetFile ¶
func (g HashiGoGetter) GetFile(dst, src string) error
func (HashiGoGetter) GetToDir ¶
func (g HashiGoGetter) GetToDir(dst, src string) error
Click to show internal directories.
Click to hide internal directories.