Documentation
¶
Index ¶
- func BackupDatabase(url, filename string, bType wotoConfig.DatabaseBackupType) error
- func FormatFileSize(size int64) string
- func GenerateCaption(opts *GenerateCaptionOptions) wotoStyle.WStyle
- func GenerateFileNameFromValue(value string) string
- func ZipSource(source, target string) error
- type GenerateCaptionOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackupDatabase ¶
func BackupDatabase(url, filename string, bType wotoConfig.DatabaseBackupType) error
BackupDatabase backups a database using its url to the specified filename and the type. for seeing which types are currently supported, refer to DatabaseBackupType.IsInvalidType method.
func FormatFileSize ¶
func GenerateCaption ¶
func GenerateCaption(opts *GenerateCaptionOptions) wotoStyle.WStyle
GenerateCaption generates caption for the backup using the specified options.
func GenerateFileNameFromValue ¶
GenerateFileNameFromOrigin creates a filename from the origin, in "VALUE-backup-2022-5-16--15-30-59" format.
Types ¶
Click to show internal directories.
Click to hide internal directories.