Versions in this module Expand all Collapse all v1 v1.1.2 Mar 5, 2019 Changes in this version + const E2BIG + const EACCES + const EADDRINUSE + const EADDRNOTAVAIL + const EAFNOSUPPORT + const EAGAIN + const EALREADY + const EBADF + const EBADMSG + const EBUSY + const ECANCELED + const ECHILD + const ECONNABORTED + const ECONNREFUSED + const ECONNRESET + const EDEADLK + const EDESTADDRREQ + const EDOM + const EEXIST + const EFAULT + const EFBIG + const EHOSTUNREACH + const EIDRM + const EILSEQ + const EINPROGRESS + const EINTR + const EINVAL + const EIO + const EISCONN + const EISDIR + const ELOOP + const EMFILE + const EMLINK + const EMSGSIZE + const ENAMETOOLONG + const ENETDOWN + const ENETRESET + const ENETUNREACH + const ENFILE + const ENOATTR + const ENOBUFS + const ENODATA + const ENODEV + const ENOENT + const ENOEXEC + const ENOLCK + const ENOLINK + const ENOMEM + const ENOMSG + const ENOPROTOOPT + const ENOSPC + const ENOSR + const ENOSTR + const ENOSYS + const ENOTCONN + const ENOTDIR + const ENOTEMPTY + const ENOTRECOVERABLE + const ENOTSOCK + const ENOTSUP + const ENOTTY + const ENXIO + const EOPNOTSUPP + const EOVERFLOW + const EOWNERDEAD + const EPERM + const EPIPE + const EPROTO + const EPROTONOSUPPORT + const EPROTOTYPE + const ERANGE + const EROFS + const ESPIPE + const ESRCH + const ETIME + const ETIMEDOUT + const ETXTBSY + const EWOULDBLOCK + const EXDEV + const O_ACCMODE + const O_APPEND + const O_CREAT + const O_EXCL + const O_RDONLY + const O_RDWR + const O_TRUNC + const O_WRONLY + const S_IFBLK + const S_IFCHR + const S_IFDIR + const S_IFIFO + const S_IFLNK + const S_IFMT + const S_IFREG + const S_IFSOCK + const S_IRGRP + const S_IROTH + const S_IRUSR + const S_IRWXG + const S_IRWXO + const S_IRWXU + const S_ISGID + const S_ISUID + const S_ISVTX + const S_IWGRP + const S_IWOTH + const S_IWUSR + const S_IXGRP + const S_IXOTH + const S_IXUSR + const UF_ARCHIVE + const UF_HIDDEN + const UF_READONLY + const UF_SYSTEM + const XATTR_CREATE + const XATTR_REPLACE + func Getcontext() (uid uint32, gid uint32, pid int) + func OptParse(args []string, format string, vals ...interface{}) (outargs []string, err error) + type Error int + func (self Error) Error() string + func (self Error) GoString() string + func (self Error) String() string + type FileSystemBase struct + func (*FileSystemBase) Access(path string, mask uint32) int + func (*FileSystemBase) Chmod(path string, mode uint32) int + func (*FileSystemBase) Chown(path string, uid uint32, gid uint32) int + func (*FileSystemBase) Create(path string, flags int, mode uint32) (int, uint64) + func (*FileSystemBase) Destroy() + func (*FileSystemBase) Flush(path string, fh uint64) int + func (*FileSystemBase) Fsync(path string, datasync bool, fh uint64) int + func (*FileSystemBase) Fsyncdir(path string, datasync bool, fh uint64) int + func (*FileSystemBase) Getattr(path string, stat *Stat_t, fh uint64) int + func (*FileSystemBase) Getxattr(path string, name string) (int, []byte) + func (*FileSystemBase) Init() + func (*FileSystemBase) Link(oldpath string, newpath string) int + func (*FileSystemBase) Listxattr(path string, fill func(name string) bool) int + func (*FileSystemBase) Mkdir(path string, mode uint32) int + func (*FileSystemBase) Mknod(path string, mode uint32, dev uint64) int + func (*FileSystemBase) Open(path string, flags int) (int, uint64) + func (*FileSystemBase) Opendir(path string) (int, uint64) + func (*FileSystemBase) Read(path string, buff []byte, ofst int64, fh uint64) int + func (*FileSystemBase) Readdir(path string, fill func(name string, stat *Stat_t, ofst int64) bool, ofst int64, ...) int + func (*FileSystemBase) Readlink(path string) (int, string) + func (*FileSystemBase) Release(path string, fh uint64) int + func (*FileSystemBase) Releasedir(path string, fh uint64) int + func (*FileSystemBase) Removexattr(path string, name string) int + func (*FileSystemBase) Rename(oldpath string, newpath string) int + func (*FileSystemBase) Rmdir(path string) int + func (*FileSystemBase) Setxattr(path string, name string, value []byte, flags int) int + func (*FileSystemBase) Statfs(path string, stat *Statfs_t) int + func (*FileSystemBase) Symlink(target string, newpath string) int + func (*FileSystemBase) Truncate(path string, size int64, fh uint64) int + func (*FileSystemBase) Unlink(path string) int + func (*FileSystemBase) Utimens(path string, tmsp []Timespec) int + func (*FileSystemBase) Write(path string, buff []byte, ofst int64, fh uint64) int + type FileSystemChflags interface + Chflags func(path string, flags uint32) int + type FileSystemHost struct + func NewFileSystemHost(fsop FileSystemInterface) *FileSystemHost + func (host *FileSystemHost) Mount(mountpoint string, opts []string) bool + func (host *FileSystemHost) SetCapCaseInsensitive(value bool) + func (host *FileSystemHost) SetCapReaddirPlus(value bool) + func (host *FileSystemHost) Unmount() bool + type FileSystemInterface interface + Access func(path string, mask uint32) int + Chmod func(path string, mode uint32) int + Chown func(path string, uid uint32, gid uint32) int + Create func(path string, flags int, mode uint32) (int, uint64) + Destroy func() + Flush func(path string, fh uint64) int + Fsync func(path string, datasync bool, fh uint64) int + Fsyncdir func(path string, datasync bool, fh uint64) int + Getattr func(path string, stat *Stat_t, fh uint64) int + Getxattr func(path string, name string) (int, []byte) + Init func() + Link func(oldpath string, newpath string) int + Listxattr func(path string, fill func(name string) bool) int + Mkdir func(path string, mode uint32) int + Mknod func(path string, mode uint32, dev uint64) int + Open func(path string, flags int) (int, uint64) + Opendir func(path string) (int, uint64) + Read func(path string, buff []byte, ofst int64, fh uint64) int + Readdir func(path string, fill func(name string, stat *Stat_t, ofst int64) bool, ofst int64, ...) int + Readlink func(path string) (int, string) + Release func(path string, fh uint64) int + Releasedir func(path string, fh uint64) int + Removexattr func(path string, name string) int + Rename func(oldpath string, newpath string) int + Rmdir func(path string) int + Setxattr func(path string, name string, value []byte, flags int) int + Statfs func(path string, stat *Statfs_t) int + Symlink func(target string, newpath string) int + Truncate func(path string, size int64, fh uint64) int + Unlink func(path string) int + Utimens func(path string, tmsp []Timespec) int + Write func(path string, buff []byte, ofst int64, fh uint64) int + type FileSystemSetchgtime interface + Setchgtime func(path string, tmsp Timespec) int + type FileSystemSetcrtime interface + Setcrtime func(path string, tmsp Timespec) int + type Stat_t struct + Atim Timespec + Birthtim Timespec + Blksize int64 + Blocks int64 + Ctim Timespec + Dev uint64 + Flags uint32 + Gid uint32 + Ino uint64 + Mode uint32 + Mtim Timespec + Nlink uint32 + Rdev uint64 + Size int64 + Uid uint32 + type Statfs_t struct + Bavail uint64 + Bfree uint64 + Blocks uint64 + Bsize uint64 + Favail uint64 + Ffree uint64 + Files uint64 + Flag uint64 + Frsize uint64 + Fsid uint64 + Namemax uint64 + type Timespec struct + Nsec int64 + Sec int64 + func NewTimespec(t time.Time) Timespec + func Now() Timespec + func (ts *Timespec) Time() time.Time