Documentation ¶
Index ¶
- func DigestVerify(path, digest string) error
- func HashString(input string) string
- func PathExists(path string) bool
- func PathExpand(path string) string
- func PathSimplify(path string) string
- func UrlIsRemote(url string) bool
- func UrlJoin(base string, elems ...string) string
- type DownloadableFile
- type VolatileTempFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DigestVerify ¶
func HashString ¶
func PathExists ¶
func PathExpand ¶
func PathSimplify ¶
func UrlIsRemote ¶
Types ¶
type DownloadableFile ¶ added in v0.3.0
type DownloadableFile struct { Url string Digest string ExtractPattern string // must be set to extract archives }
func (DownloadableFile) Open ¶ added in v0.3.0
func (d DownloadableFile) Open() (io.ReadCloser, error)
func (DownloadableFile) ReadAll ¶ added in v0.3.0
func (d DownloadableFile) ReadAll() ([]byte, error)
func (DownloadableFile) ReadAllWithCache ¶ added in v0.3.0
func (DownloadableFile) SaveTo ¶ added in v0.3.0
func (d DownloadableFile) SaveTo(path string) error
type VolatileTempFile ¶
type VolatileTempFile struct {
// contains filtered or unexported fields
}
func (VolatileTempFile) Close ¶
func (f VolatileTempFile) Close() error
Click to show internal directories.
Click to hide internal directories.