package
Version:
v0.0.0-...-c152b52
Opens a new window with list of versions in this module.
Published: Oct 9, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 18
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Fetch(ctx context.Context, cacheDir, url, sha256Digest string) (retCachedFile string, retFound bool, _ error)
-
func FetchWithClient(ctx context.Context, client *http.Client, cacheDir string, url 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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.