Documentation ¶
Index ¶
- func CopyFile(sourcePath string, targetPath string) error
- func GenerateRandomString(length int) string
- func GetRandomFileName(parentPath string) (string, error)
- func GetRandomFilePath(parentPath string) (string, error)
- func HandleExitCode(err error) int
- func MergePaths(rootSourcePath string, rootTargetDir string) error
- func ReturnError(e error) string
- func ReturnFormattedOutput(output interface{}) string
- type BuildInfo
- type MsgFormat
- type OutputFormat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomString ¶
GenerateRandomString generate a random string
func GetRandomFileName ¶
GetRandomFileName get a random file name unique from the files found in the parentPath
func GetRandomFilePath ¶
GetRandomFilePath get a random file name unique from the file paths found in the parentPath
func HandleExitCode ¶
HandleExitCode retrieve a command exit code from an error
func MergePaths ¶
MergePaths merge a source path into a target path
func ReturnFormattedOutput ¶
func ReturnFormattedOutput(output interface{}) string
ReturnFormattedOutput returns a formatted message
Types ¶
type MsgFormat ¶
type MsgFormat struct { Type string `json:"type"` Content interface{} `json:"content"` }
MsgFormat is a format used to communicate with the Volback API
type OutputFormat ¶
OutputFormat stores output of Restic commands
Click to show internal directories.
Click to hide internal directories.