Versions in this module Expand all Collapse all v1 v1.0.0 Jul 19, 2024 Changes in this version + const DefaultFileMode + const SnapshotFlagFilename + var Discard = io.Discard + func CreateFlagFile(dir string, filename string, msg pb.Marshaler, fs vfs.IFS) (err error) + func CreateTemp(dir string, pattern string) (*os.File, error) + func DirExist(name string, fs vfs.IFS) (result bool, err error) + func Exist(name string, fs vfs.IFS) (bool, error) + func ExtractTarBz2(bz2fn string, toDir string, fs vfs.IFS) (err error) + func GetFlagFileContent(dir string, filename string, msg pb.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 pb.Marshaler, fs vfs.IFS) error + func Mkdir(dir string, fs vfs.IFS) error + func MkdirAll(dir string, fs vfs.IFS) error + func MkdirTemp(dir string, pattern string) (string, error) + func MustWrite(w io.Writer, data []byte) + func ReadAll(r io.Reader) ([]byte, error) + func ReadFile(name string) ([]byte, error) + func RemoveFlagFile(dir string, filename string, fs vfs.IFS) error + func SyncDir(dir string, fs vfs.IFS) (err error) + func TempDir(dir, pattern string, fs vfs.IFS) (name string, err error) + func TempFile(dir, pattern string, fs vfs.IFS) (f vfs.File, name string, err error) Other modules containing this package github.com/foreeest/dragonboat/v2