Documentation

Index

Constants

View Source
const (
	LRUSize = 1000
)

    The number of entries for the files cache.

    Variables

    This section is empty.

    Functions

    func IDtoInode

    func IDtoInode(id string) uint64

      IDtoInode maps a Drive id into an inode.

      It uses CRC64 ECMA table to do the mapping.

      func MountAll

      func MountAll(client *drive.Service, mounts Mountpoints)

        MountAll mounts multiple mountpoints and blocks until they are all unmounted.

        Types

        type Mountpoint

        type Mountpoint struct {
        	*fuse.Server
        
        	Logger *zap.SugaredLogger
        }

          Mountpoint defines a single mountpoint.

          func Mount

          func Mount(tc gdrive.TracedClient, rootID string, to string) (*Mountpoint, error)

            Mount mounts the fs.

            type Mountpoints

            type Mountpoints map[string]string

              Mountpoints defines a mapping from local mount directory to Drive directory name.