mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-28 22:08:01 +08:00
16 lines
395 B
Go
16 lines
395 B
Go
// +build linux darwin freebsd
|
|
// +build !nofuse
|
|
|
|
package readonly
|
|
|
|
import (
|
|
core "github.com/jbenet/go-ipfs/core"
|
|
mount "github.com/jbenet/go-ipfs/fuse/mount"
|
|
)
|
|
|
|
// Mount mounts ipfs at a given location, and returns a mount.Mount instance.
|
|
func Mount(ipfs *core.IpfsNode, mountpoint string) (mount.Mount, error) {
|
|
fsys := NewFileSystem(ipfs)
|
|
return mount.NewMount(ipfs, fsys, mountpoint)
|
|
}
|