- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for PrepareFetch (0.12 sec)
-
pkg/wasm/imagefetcher_test.go
t.Fatal(err) } // Fetch docker image with digest d, err := img.Digest() if err != nil { t.Fatal(err) } // Fetch OCI image. binaryFetcher, actualDiget, err := fetcher.PrepareFetch(ref) if err != nil { t.Fatal(err) } actual, err := binaryFetcher() if err != nil { t.Fatal(err) } if string(actual) != exp {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Feb 05 04:15:17 UTC 2023 - 16.3K bytes - Viewed (0) -
pkg/wasm/imagefetcher.go
} } // PrepareFetch is the entrypoint for fetching Wasm binary from Wasm Image Specification compatible images. // Wasm binary is not fetched immediately, but returned by `binaryFetcher` function, which is returned by PrepareFetch. // By this way, we can have another chance to check cache with `actualDigest` without downloading the OCI image.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Dec 10 05:44:51 UTC 2023 - 12K bytes - Viewed (0) -
pkg/wasm/cache.go
} wasmLog.Debugf("fetching oci image from %s with options: %v", key.downloadURL, imgFetcherOps) fetcher := NewImageFetcher(ctx, imgFetcherOps) binaryFetcher, dChecksum, err = fetcher.PrepareFetch(u.Host + u.Path) if err != nil { wasmRemoteFetchCount.With(resultTag.Value(manifestFailure)).Increment() return nil, fmt.Errorf("could not fetch Wasm OCI image: %v", err) } default:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 13.3K bytes - Viewed (0)