Documentation ¶
Index ¶
- func Copy(src string, dest string) error
- func CreateTempDirectory() (string, func(), error)
- func CreateTempFile() (string, func(), error)
- func CreateTempFileWithContents(content []byte) (string, func(), error)
- func CreateTempFileWithExtension(fileExtension string) (string, func(), error)
- func EnsureLocal(fileReference string) (string, error)
- func Exists(name string) bool
- func GetBaseTempDirectory() string
- func GetExtension(fileReference string) string
- func Sha256String(localPath string) (string, error)
- func Sha512String(localPath string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Copy ¶
Copy duplicates a file from one location to another. The location can be local or remote.
func CreateTempDirectory ¶
CreateTempDirectory creates a temporary empty directory.
func CreateTempFile ¶
CreateTempFile creates a temporary empty file.
func CreateTempFileWithContents ¶
CreateTempFileWithContents creates a temporary file with the contents specified.
func CreateTempFileWithExtension ¶
CreateTempFileWithExtension creates a file with the fileExtension in a random temp directory.
func EnsureLocal ¶
EnsureLocal ensures that the file is downloaded locally and returns a read-only view of the file.
func GetBaseTempDirectory ¶
func GetBaseTempDirectory() string
GetBaseTempDirectory gets the base temp directory.
func GetExtension ¶
GetExtension gets the file extension of the file reference.
func Sha256String ¶
Sha256String returns the SHA-256 hash of a file.
func Sha512String ¶
Sha512String returns the SHA-512 hash of a file.
Types ¶
This section is empty.