cache

package
v0.0.0-...-102ad6c Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(url string, options files.Options, force bool) (path string, err error)

Download downloads an url to the cache if needed. Additional headers can be given. This is helpful to pass authentication tokens.

func PathToCache

func PathToCache() (string, error)

PathToCache gives the path of the cache.

func PathToFileInCache

func PathToFileInCache(name string) (string, error)

PathToFileInCache gives the path to the file in cache.

func PathToUrl

func PathToUrl(url string) (string, error)

PathToUrl gives the path to the file on disk that caches a given url.

Types

This section is empty.

Jump to

Keyboard shortcuts

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