Documentation ¶
Index ¶
- func CopyFile(src, dst string) (int64, error)
- func Download(url string) (resp *http.Response, err error)
- func FolderExists(path *string) (bool, error)
- func GetFileSize(path string) (int64, error)
- func Go(f func() error) chan error
- func IsURL(str string) bool
- func ParseKeyValueOpt(opt string) (string, string, error)
- func ReadSymlinkedDirectory(path string) (string, error)
- func SecureCompare(x string, y string) bool
- func SelfPath() string
- func TimeToMicroseconds(t time.Time) int64
- func TreeSize(dir string) (size int64, err error)
- func Trunc(s string, maxlen int) string
- func ValidateContextDirectory(srcPath string) error
- type EnhancedTime
- type KeyValuePair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FolderExists ¶
func GetFileSize ¶
func Go ¶
Go is a basic promise implementation: it wraps calls a function in a goroutine, and returns a channel which will later return the function's return value.
func ReadSymlinkedDirectory ¶
ReadSymlinkedDirectory returns the target directory of a symlink. The target of the symbolic link may not be a file.
func SecureCompare ¶
SecureCompare performs a constant time compare of two strings to limit timing attacks.
func SelfPath ¶
func SelfPath() string
Figure out the absolute path of our own binary (if it's still around).
func TimeToMicroseconds ¶
func ValidateContextDirectory ¶
ValidateContextDirectory checks if all the contents of the directory can be read and returns an error if some files can't be read symlinks which point to non-existing files don't trigger an error
Types ¶
type EnhancedTime ¶
type KeyValuePair ¶
Click to show internal directories.
Click to hide internal directories.