urlcache

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package urlcache maintains a local cache of files for external urls.

Index

Constants

This section is empty.

Variables

View Source
var BasePath = "/tmp/urlcache"

Functions

func Get

func Get(ctx context.Context, logger logr.Logger, url string) (string, error)

Get returns the local file containing the data found at the specified url. It fetches the url when the local file does not exist yet.

Types

This section is empty.

Jump to

Keyboard shortcuts

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