cached

package
v1.13.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2025 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Scheme = "cached"
)

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, localDir string, offline ...bool) (fs http.FileSystem, close fsx.Closer, err error)

func Open

func Open(ctx context.Context, url string) (fs http.FileSystem, _ fsx.Closer, err error)

url = "cached:<localDir>"

func WriteConf added in v1.12.21

func WriteConf(localDir string, conf *Config) (err error)

Types

type Config added in v1.12.21

type Config struct {
	Base      string `json:"base"` // url of base file system
	CacheFile bool   `json:"cacheFile"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL