Documentation
¶
Index ¶
- func BackupFile(source string) (string, error)
- func BackupFileToDir(sourcePath, dstDir string) (string, error)
- func BackupFileToDirWithSuffix(sourcePath, dstDir, suffix string) (string, error)
- func GenerateTempFile(buf []byte, prefix string) (string, error)
- func GenerateTempFileFullOptions(buf []byte, prefix, dirPath string, perm fs.FileMode) (string, error)
- func GenerateTempFileWithDir(buf []byte, prefix, dirPath string) (string, error)
- func GenerateTempFileWithPerm(buf []byte, prefix string, perm fs.FileMode) (string, error)
- func GenerateYAMLTempFile(obj interface{}, prefix string) (string, error)
- func GenerateYAMLTempFileFullOptions(obj interface{}, prefix, dirPath string, perm fs.FileMode) (string, error)
- func GenerateYAMLTempFileWithDir(obj interface{}, prefix, dirPath string) (string, error)
- func GenerateYAMLTempFileWithPerm(obj interface{}, prefix string, perm fs.FileMode) (string, error)
- func GetFileName(path string) string
- func RemoveFiles(path ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackupFile ¶
func BackupFileToDir ¶
func GenerateTempFile ¶
Generate Temp file with buffer, return the file name
func GenerateTempFileFullOptions ¶
func GenerateTempFileFullOptions(buf []byte, prefix, dirPath string, perm fs.FileMode) (string, error)
Generate Temp file with buffer, directory and permission, return the file name
func GenerateTempFileWithDir ¶
Generate Temp file with buffer and directory, return the fullpath
func GenerateTempFileWithPerm ¶
Generate Temp file with buffer and permission, return the file name
func GenerateYAMLTempFile ¶
Generate Temp file with YAML content, return the file name
func GenerateYAMLTempFileFullOptions ¶
func GenerateYAMLTempFileFullOptions(obj interface{}, prefix, dirPath string, perm fs.FileMode) (string, error)
Generate Temp file with YAML content and permission, return the file name
func GetFileName ¶
func RemoveFiles ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.