Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for fetchOpts (0.14 sec)

  1. pkg/wasm/imagefetcher.go

    		// so must set the envvar when reaching this branch is expected.
    		fetchOpts = append(fetchOpts, remote.WithAuthFromKeychain(authn.DefaultKeychain))
    	} else {
    		fetchOpts = append(fetchOpts, remote.WithAuthFromKeychain(&wasmKeyChain{data: opt.PullSecret}))
    	}
    
    	if opt.Insecure {
    		t := remote.DefaultTransport.(*http.Transport).Clone()
    		// nolint: gosec
    		// This is only when a user explicitly sets a flag to enable insecure mode
    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/imagefetcher_test.go

    			if actual != c.exp {
    				t.Errorf("useDefaultKeyChain got %v want %v", actual, c.exp)
    			}
    		})
    	}
    }
    
    func TestImageFetcher_Fetch(t *testing.T) {
    	// Fetcher with anonymous auth.
    	fetcher := ImageFetcher{fetchOpts: []remote.Option{remote.WithAuth(authn.Anonymous)}}
    
    	// Set up a fake registry.
    	s := httptest.NewServer(registry.New())
    	defer s.Close()
    	u, err := url.Parse(s.URL)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Feb 05 04:15:17 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  3. pkg/wasm/cache_test.go

    	}
    	manifest.MediaType = types.DockerManifestSchema2
    
    	// Push image to the registry.
    	err = crane.Push(img, ref, fetchOpt)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Push image to the registry with latest tag as well
    	ref = fmt.Sprintf("%s/test/valid/docker:latest", host)
    	err = crane.Push(img, ref, fetchOpt)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Calculate sum
    	d, _ := img.Digest()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_initializer_function_ops_to_main.cc

        BlockArgument main_arg = main_func_op.getArgument(main_arg_idx);
        mapper.map(src_arg, main_arg);
      }
    
      return mapper;
    }
    
    // Copies ops from `src_func_op` to `main_body` except for the FetchOps. Returns
    // the fetch values in the main GraphOp corresponding to the original fetch
    // values from `src_func_op`. Returns an empty vector when `src_func_op` is
    // empty. `main_func_op` must have a GraphOp.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:54:52 UTC 2024
    - 15.3K bytes
    - Viewed (0)
Back to top