Documentation

Overview

    Package gfs implements FUSE on top oh grailfile. Function Main is the entry point.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func Main

    func Main(ctx context.Context, remoteRootDir, mountDir string, daemon bool, tmpDir, logDir string)

      Main starts the FUSE server. It arranges so that contents of remoteRootDir can be accessed through mountDir. Arg remoteRootDir is typically "s3://". mountDir must be a directory in the local file system.

      If daemon==true, this function will fork itself to become a background process, and this process will exit. Otherwise this function blocks until the filesystem is unmounted by a superuser running "umount <dir>".

      Arg tmpDir specifies the directory to store temporary files. If tmpDir=="", it is set to /tmp/gfs-cache-<uid>.

      logDir specifies the directory for storing log files. If "", log messages are sent to stderr.

      func NewRoot

      func NewRoot(ctx context.Context, remoteRootDir, tmpDir string) fs.InodeEmbedder

      Types

      This section is empty.