github.com/linapex/ethereum-dpos-chinese@v0.0.0-20190316121959-b78b3a4a1ece/swarm/fuse/swarmfs_fallback.go (about) 1 2 //<developer> 3 // <name>linapex 曹一峰</name> 4 // <email>linapex@163.com</email> 5 // <wx>superexc</wx> 6 // <qqgroup>128148617</qqgroup> 7 // <url>https://jsq.ink</url> 8 // <role>pku engineer</role> 9 // <date>2019-03-16 12:09:47</date> 10 //</624342671233650688> 11 12 // 13 // 14 // 15 // 16 // 17 // 18 // 19 // 20 // 21 // 22 // 23 // 24 // 25 // 26 // 27 28 // 29 30 package fuse 31 32 import ( 33 "errors" 34 ) 35 36 var errNoFUSE = errors.New("FUSE is not supported on this platform") 37 38 func isFUSEUnsupportedError(err error) bool { 39 return err == errNoFUSE 40 } 41 42 type MountInfo struct { 43 MountPoint string 44 StartManifest string 45 LatestManifest string 46 } 47 48 func (self *SwarmFS) Mount(mhash, mountpoint string) (*MountInfo, error) { 49 return nil, errNoFUSE 50 } 51 52 func (self *SwarmFS) Unmount(mountpoint string) (bool, error) { 53 return false, errNoFUSE 54 } 55 56 func (self *SwarmFS) Listmounts() ([]*MountInfo, error) { 57 return nil, errNoFUSE 58 } 59 60 func (self *SwarmFS) Stop() error { 61 return nil 62 } 63