rclone: github.com/rclone/rclone/fs/cache Index | Files

package cache

import "github.com/rclone/rclone/fs/cache"

Package cache implements the Fs cache

Index

Package Files

cache.go

func Canonicalize Uses

func Canonicalize(fsString string) string

Canonicalize looks up fsString in the mapping from user supplied names to canonical names and return the canonical form

func Clear Uses

func Clear()

Clear removes everything from the cache

func Get Uses

func Get(fsString string) (f fs.Fs, err error)

Get gets an fs.Fs named fsString either from the cache or creates it afresh

func GetFn Uses

func GetFn(fsString string, create func(fsString string) (fs.Fs, error)) (f fs.Fs, err error)

GetFn gets an fs.Fs named fsString either from the cache or creates it afresh with the create function

func Pin Uses

func Pin(f fs.Fs)

Pin f into the cache until Unpin is called

func Put Uses

func Put(fsString string, f fs.Fs)

Put puts an fs.Fs named fsString into the cache

func Unpin Uses

func Unpin(f fs.Fs)

Unpin f from the cache

Package cache imports 3 packages (graph) and is imported by 43 packages. Updated 2020-07-03. Refresh now. Tools for package owners.