Documentation ¶
Overview ¶
Package file provides file management modules
Index ¶
Constants ¶
View Source
const DefaultBackupLocation = "/var/lib/bossbox/file_backups"
Variables ¶
View Source
var ErrBackingUpFile = errors.New("failed to backup old file")
View Source
var ErrSwappingFiles = errors.New("failed to swap tmp and dst files")
Functions ¶
func LocalSource ¶
func LocalSource(path string) func() (io.ReadCloser, error)
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func (*File) EnableBackups ¶
func (*File) SetBackupLocation ¶
Click to show internal directories.
Click to hide internal directories.