github.com/yinchengtsinghua/golang-Eos-dpos-Ethereum@v0.0.0-20190121132951-92cc4225ed8e/swarm/fuse/swarmfs_fallback.go (about) 1 2 //此源码被清华学神尹成大魔王专业翻译分析并修改 3 //尹成QQ77025077 4 //尹成微信18510341407 5 //尹成所在QQ群721929980 6 //尹成邮箱 yinc13@mails.tsinghua.edu.cn 7 //尹成毕业于清华大学,微软区块链领域全球最有价值专家 8 //https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 9 // 10 // 11 // 12 // 13 // 14 // 15 // 16 // 17 // 18 // 19 // 20 // 21 // 22 // 23 // 24 25 // 26 27 package fuse 28 29 import ( 30 "errors" 31 ) 32 33 var errNoFUSE = errors.New("FUSE is not supported on this platform") 34 35 func isFUSEUnsupportedError(err error) bool { 36 return err == errNoFUSE 37 } 38 39 type MountInfo struct { 40 MountPoint string 41 StartManifest string 42 LatestManifest string 43 } 44 45 func (self *SwarmFS) Mount(mhash, mountpoint string) (*MountInfo, error) { 46 return nil, errNoFUSE 47 } 48 49 func (self *SwarmFS) Unmount(mountpoint string) (bool, error) { 50 return false, errNoFUSE 51 } 52 53 func (self *SwarmFS) Listmounts() ([]*MountInfo, error) { 54 return nil, errNoFUSE 55 } 56 57 func (self *SwarmFS) Stop() error { 58 return nil 59 }