Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NewDigest (0.08 sec)

  1. pkg/wasm/cache.go

    		c.mux.Unlock()
    		wasmCacheLookupCount.With(hitTag.Value(strconv.FormatBool(cacheHit))).Increment()
    	}()
    
    	if len(key.checksum) == 0 && strings.HasPrefix(key.downloadURL, ociURLPrefix) {
    		if d, err := name.NewDigest(key.downloadURL[len(ociURLPrefix):]); err == nil {
    			// If there is no checksum and the digest is suffixed in URL, use the digest.
    			dstr := d.DigestStr()
    			if strings.HasPrefix(dstr, sha256SchemePrefix) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top