tractor.dev/toolkit-go@v0.0.0-20241010005851-214d91207d07/engine/fs/mutablefs.go (about) 1 package fs 2 3 import "time" 4 5 type MutableFS interface { 6 StatFS 7 8 Chmod(name string, mode FileMode) error 9 Chown(name string, uid, gid int) error 10 Chtimes(name string, atime time.Time, mtime time.Time) error 11 Create(name string) (File, error) 12 Mkdir(name string, perm FileMode) error 13 MkdirAll(path string, perm FileMode) error 14 OpenFile(name string, flag int, perm FileMode) (File, error) 15 Remove(name string) error 16 RemoveAll(path string) error 17 Rename(oldname, newname string) error 18 }