Documentation ¶
Index ¶
- Constants
- func CreateFlagFile(dir string, filename string, msg Marshaler, fs vfs.IFS) (err error)
- func DirExist(name string, fs vfs.IFS) (bool, error)
- func Exist(name string, fs vfs.IFS) (bool, error)
- func ExtractTarBz2(bz2fn string, toDir string, fs vfs.IFS) error
- func GetFlagFileContent(dir string, filename string, msg Unmarshaler, fs vfs.IFS) (err error)
- func HasFlagFile(dir string, filename string, fs vfs.IFS) bool
- func IsDirMarkedAsDeleted(dir string, fs vfs.IFS) (bool, error)
- func MarkDirAsDeleted(dir string, msg Marshaler, fs vfs.IFS) error
- func Mkdir(dir string, fs vfs.IFS) error
- func MkdirAll(dir string, fs vfs.IFS) error
- func RemoveFlagFile(dir string, filename string, fs vfs.IFS) error
- func SyncDir(dir string, fs vfs.IFS) (err error)
- func TempFile(dir, pattern string, fs vfs.IFS) (f vfs.File, name string, err error)
- type Marshaler
- type Unmarshaler
Constants ¶
const ( // DefaultFileMode is the default file mode for files generated by // Dragonboat. DefaultFileMode = 0640 // SnapshotFlagFilename defines the filename of the snapshot flag file. SnapshotFlagFilename = "dragonboat.snapshot.message" )
Variables ¶
This section is empty.
Functions ¶
func CreateFlagFile ¶
CreateFlagFile creates a flag file in the specific location. The flag file contains the marshaled data of the specified protobuf message.
func ExtractTarBz2 ¶
ExtractTarBz2 extracts files and directories from the specified tar.bz2 file to the specified target directory.
func GetFlagFileContent ¶
GetFlagFileContent gets the content of the flag file found in the specified location. The data of the flag file will be unmarshaled into the specified protobuf message.
func HasFlagFile ¶
HasFlagFile returns a boolean value indicating whether flag file can be found in the specified location.
func IsDirMarkedAsDeleted ¶
IsDirMarkedAsDeleted returns a boolean flag indicating whether the specified directory has been marked as deleted.
func MarkDirAsDeleted ¶
MarkDirAsDeleted marks the specified directory as deleted.
func RemoveFlagFile ¶
RemoveFlagFile removes the specified flag file.