Documentation ¶
Index ¶
- func DownloadToMemory(url string) ([]byte, error)
- func EnsureDir(path string, mode os.FileMode) (os.FileInfo, error)
- func FileExists(path string) bool
- func ReadLines(filepath string) ([]string, error)
- func ReadYamlFromFile(filename string, target interface{}) error
- func RemoveFileMatches(pattern string, logger log.Logger) error
- func TempFile(contents string) (string, error)
- func WriteYamlToFile(filename string, target interface{}) error
- func WriteYamlToWriter(writer io.Writer, target interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadToMemory ¶
DownloadToMemory downloads a file from a url to memory
func FileExists ¶
FileExists exists and is accessible and the specified path.
func ReadYamlFromFile ¶
ReadYamlFromFile at path filename into the target interface.
func RemoveFileMatches ¶
RemoveFileMatches for the given filepath pattern.
func WriteYamlToFile ¶
WriteYamlToFile at path filename sourcing the data from the passed target.
func WriteYamlToWriter ¶
WriteYamlToWriter returning any errors that occur.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.