github.com/linapex/ethereum-go-chinese@v0.0.0-20190316121929-f8b7a73c3fa1/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 19:16:43</date>
    10  //</624450112969510912>
    11  
    12  
    13  //+建设!Linux!达尔文!FreeBSD
    14  
    15  package fuse
    16  
    17  import (
    18  	"errors"
    19  )
    20  
    21  var errNoFUSE = errors.New("FUSE is not supported on this platform")
    22  
    23  func isFUSEUnsupportedError(err error) bool {
    24  	return err == errNoFUSE
    25  }
    26  
    27  type MountInfo struct {
    28  	MountPoint     string
    29  	StartManifest  string
    30  	LatestManifest string
    31  }
    32  
    33  func (self *SwarmFS) Mount(mhash, mountpoint string) (*MountInfo, error) {
    34  	return nil, errNoFUSE
    35  }
    36  
    37  func (self *SwarmFS) Unmount(mountpoint string) (bool, error) {
    38  	return false, errNoFUSE
    39  }
    40  
    41  func (self *SwarmFS) Listmounts() ([]*MountInfo, error) {
    42  	return nil, errNoFUSE
    43  }
    44  
    45  func (self *SwarmFS) Stop() error {
    46  	return nil
    47  }
    48