Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 42 for newCounter (1.83 sec)

  1. src/cmd/go/internal/toolchain/select.go

    	var out []string
    	for _, e := range env {
    		if strings.HasPrefix(e, countEnv+"=") {
    			continue
    		}
    		out = append(out, e)
    	}
    	return out
    }
    
    var counterErrorsInvalidToolchainInFile = telemetry.NewCounter("go/errors:invalid-toolchain-in-file")
    
    // Select invokes a different Go toolchain if directed by
    // the GOTOOLCHAIN environment variable or the user's configuration
    // or go.mod file.
    // It must be called early in startup.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:25:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modfetch/cache.go

    		f.Truncate(0)
    		return err
    	}
    
    	return nil
    }
    
    var (
    	statCacheOnce sync.Once
    	statCacheErr  error
    
    	counterErrorsGOMODCACHEEntryRelative = telemetry.NewCounter("go/errors:gomodcache-entry-relative")
    )
    
    // checkCacheDir checks if the directory specified by GOMODCACHE exists. An
    // error is returned if it does not.
    func checkCacheDir(ctx context.Context) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  3. pkg/kubelet/volumemanager/cache/actual_state_of_world_test.go

    	if err != nil {
    		t.Fatalf("MarkVolumeAsAttached failed. Expected: <no error> Actual: <%v>", err)
    	}
    	podName := util.GetUniquePodName(pod)
    
    	mounter, err := plugin.NewMounter(volumeSpec, pod, volume.VolumeOptions{})
    	if err != nil {
    		t.Fatalf("NewMounter failed. Expected: <no error> Actual: <%v>", err)
    	}
    
    	mapper, err := plugin.NewBlockVolumeMapper(volumeSpec, pod, volume.VolumeOptions{})
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  4. pkg/kubelet/volumemanager/reconciler/reconstruct_common.go

    				volume.podName,
    				pod.UID,
    				newMapperErr)
    		}
    	} else {
    		var err error
    		volumeMounter, err = plugin.NewMounter(
    			volumeSpec,
    			pod,
    			volumepkg.VolumeOptions{})
    		if err != nil {
    			return nil, fmt.Errorf(
    				"reconstructVolume.NewMounter failed for volume %q (spec.Name: %q) pod %q (UID: %q) with: %v",
    				uniqueVolumeName,
    				volumeSpec.Name(),
    				volume.podName,
    				pod.UID,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  5. pkg/volume/csi/csi_plugin_test.go

    		t.Run(tc.name, func(t *testing.T) {
    			featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.SELinuxMountReadWriteOncePod, tc.seLinuxMountEnabled)
    
    			mounter, err := plug.NewMounter(
    				tc.originSpec,
    				&api.Pod{ObjectMeta: meta.ObjectMeta{UID: tc.podUID, Namespace: testns}},
    				volume.VolumeOptions{},
    			)
    			if err != nil {
    				t.Fatal(err)
    			}
    			if mounter == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  6. src/go/types/builtins.go

    			return
    		}
    
    		x.mode = value
    		x.typ = NewPointer(slice.elem)
    		if check.recordTypes() {
    			check.recordBuiltinType(call.Fun, makeSig(x.typ, slice))
    		}
    
    	case _String:
    		// unsafe.String(ptr *byte, len IntegerType) string
    		check.verifyVersionf(call.Fun, go1_20, "unsafe.String")
    
    		check.assignment(x, NewPointer(universeByte), "argument to unsafe.String")
    		if x.mode == invalid {
    			return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/builtins.go

    			return
    		}
    
    		x.mode = value
    		x.typ = NewPointer(slice.elem)
    		if check.recordTypes() {
    			check.recordBuiltinType(call.Fun, makeSig(x.typ, slice))
    		}
    
    	case _String:
    		// unsafe.String(ptr *byte, len IntegerType) string
    		check.verifyVersionf(call.Fun, go1_20, "unsafe.String")
    
    		check.assignment(x, NewPointer(universeByte), "argument to unsafe.String")
    		if x.mode == invalid {
    			return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  8. pkg/volume/downwardapi/downwardapi.go

    	return false
    }
    
    func (plugin *downwardAPIPlugin) SupportsSELinuxContextMount(spec *volume.Spec) (bool, error) {
    	return false, nil
    }
    
    func (plugin *downwardAPIPlugin) NewMounter(spec *volume.Spec, pod *v1.Pod, opts volume.VolumeOptions) (volume.Mounter, error) {
    	v := &downwardAPIVolume{
    		volName:         spec.Name(),
    		items:           spec.Volume.DownwardAPI.Items,
    		pod:             pod,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  9. pkg/volume/configmap/configmap.go

    	return false
    }
    
    func (plugin *configMapPlugin) SupportsSELinuxContextMount(spec *volume.Spec) (bool, error) {
    	return false, nil
    }
    
    func (plugin *configMapPlugin) NewMounter(spec *volume.Spec, pod *v1.Pod, opts volume.VolumeOptions) (volume.Mounter, error) {
    	return &configMapVolumeMounter{
    		configMapVolume: &configMapVolume{
    			spec.Name(),
    			pod.UID,
    			plugin,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 10K bytes
    - Viewed (0)
  10. pkg/volume/emptydir/empty_dir_test.go

    	plug := makePluginUnderTest(t, "kubernetes.io/empty-dir", basePath)
    
    	spec := &v1.Volume{
    		Name: "vol1",
    	}
    	pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{UID: types.UID("poduid")}}
    	mounter, err := plug.NewMounter(volume.NewSpecFromVolume(spec), pod, volume.VolumeOptions{})
    	if err != nil {
    		t.Errorf("Failed to make a new Mounter: %v", err)
    	}
    	if mounter == nil {
    		t.Fatalf("Got a nil Mounter")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top