Documentation
¶
Index ¶
- func SecureInput(input string) string
- func ValidateIfDirExists(input string) error
- func ValidateIfNotEmpty(input string) error
- func ValidateIfPathExists(input string) error
- func ValidateInt(input string) (int, error)
- func ValidateWithOptions(value string, options ...string) error
- type FileDownloader
- type FileProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateWithOptions ¶
ValidateWithOptions ...
Types ¶
type FileDownloader ¶
type FileDownloader interface { Get(destination, source string) error GetRemoteContents(source string) ([]byte, error) ReadLocalFile(path string) ([]byte, error) }
FileDownloader ..
type FileProvider ¶
type FileProvider struct {
// contains filtered or unexported fields
}
FileProvider supports retrieving the local path to a file either provided as a local path using `file://` scheme or downloading the file to a temporary location and return the path to it.
func NewFileProvider ¶
func NewFileProvider(filedownloader FileDownloader) FileProvider
NewFileProvider ...
Click to show internal directories.
Click to hide internal directories.