digestcache

package
v0.0.0-...-c152b52 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch(ctx context.Context, cacheDir, url, sha256Digest string) (retCachedFile string, retFound bool, _ error)

Fetch ensures that the content of the given URL is stored in the local file cache, if its contents' SHA256 digest is as expected.

Only works in a source tree

func FetchWithClient

func FetchWithClient(ctx context.Context, client *http.Client, cacheDir string, url string, sha256Digest string) (retCachedFile string, retFound bool, _ error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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