Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ParseReference (0.17 sec)

  1. pkg/wasm/imagefetcher.go

    func (o *ImageFetcher) PrepareFetch(url string) (binaryFetcher func() ([]byte, error), actualDigest string, err error) {
    	ref, err := name.ParseReference(url)
    	if err != nil {
    		err = fmt.Errorf("could not parse url in image reference: %v", err)
    		return
    	}
    	wasmLog.Infof("fetching image %s from registry %s with tag %s", ref.Context().RepositoryStr(),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Dec 10 05:44:51 UTC 2023
    - 12K bytes
    - Viewed (0)
  2. pkg/wasm/cache.go

    	}
    
    	go func() {
    		cache.purge()
    	}()
    	return cache
    }
    
    func moduleNameFromURL(fullURLStr string) string {
    	if strings.HasPrefix(fullURLStr, ociURLPrefix) {
    		if tag, err := name.ParseReference(fullURLStr[len(ociURLPrefix):]); err == nil {
    			// remove tag or sha
    			return ociURLPrefix + tag.Context().Name()
    		}
    	}
    	return fullURLStr
    }
    
    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