Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 115 for newCounter (0.3 sec)

  1. pkg/volume/iscsi/iscsi.go

    }
    
    func (plugin *iscsiPlugin) GetAccessModes() []v1.PersistentVolumeAccessMode {
    	return []v1.PersistentVolumeAccessMode{
    		v1.ReadWriteOnce,
    		v1.ReadOnlyMany,
    	}
    }
    
    func (plugin *iscsiPlugin) NewMounter(spec *volume.Spec, pod *v1.Pod, _ volume.VolumeOptions) (volume.Mounter, error) {
    	if pod == nil {
    		return nil, fmt.Errorf("nil pod")
    	}
    	secret, err := createSecretMap(spec, plugin, pod.Namespace)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  2. pkg/volume/local/local.go

    		return spec.PersistentVolume.Spec.Local, spec.ReadOnly, nil
    	}
    
    	return nil, false, fmt.Errorf("Spec does not reference a Local volume type")
    }
    
    func (plugin *localVolumePlugin) NewMounter(spec *volume.Spec, pod *v1.Pod, _ volume.VolumeOptions) (volume.Mounter, error) {
    	_, readOnly, err := getVolumeSource(spec)
    	if err != nil {
    		return nil, err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  3. src/go/internal/gcimporter/ureader.go

    	case pkgbits.TypeChan:
    		dir := types.ChanDir(r.Len())
    		return types.NewChan(dir, r.typ())
    	case pkgbits.TypeMap:
    		return types.NewMap(r.typ(), r.typ())
    	case pkgbits.TypePointer:
    		return types.NewPointer(r.typ())
    	case pkgbits.TypeSignature:
    		return r.signature(nil, nil, nil)
    	case pkgbits.TypeSlice:
    		return types.NewSlice(r.typ())
    	case pkgbits.TypeStruct:
    		return r.structType()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  4. src/go/internal/gcimporter/iimport.go

    		return nil
    
    	case definedType:
    		pkg, name := r.qualifiedIdent()
    		r.p.doDecl(pkg, name)
    		return pkg.Scope().Lookup(name).(*types.TypeName).Type()
    	case pointerType:
    		return types.NewPointer(r.typ())
    	case sliceType:
    		return types.NewSlice(r.typ())
    	case arrayType:
    		n := r.uint64()
    		return types.NewArray(r.typ(), int64(n))
    	case chanType:
    		dir := chanDir(int(r.uint64()))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  5. src/go/internal/gcimporter/gcimporter_test.go

    	_, err := Import(fset, imports, "net/http", ".", nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	mutex := imports["sync"].Scope().Lookup("Mutex").(*types.TypeName).Type()
    	mset := types.NewMethodSet(types.NewPointer(mutex)) // methods of *sync.Mutex
    	sel := mset.Lookup(nil, "Lock")
    	lock := sel.Obj().(*types.Func)
    	if got, want := lock.Pkg().Path(), "sync"; got != want {
    		t.Errorf("got package path %q; want %q", got, want)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  6. pkg/kubelet/volumemanager/cache/desired_state_of_world.go

    // should mount it once it is attached.
    type podToMount struct {
    	// podName contains the name of this pod.
    	podName types.UniquePodName
    
    	// Pod to mount the volume to. Used to create NewMounter.
    	pod *v1.Pod
    
    	// volume spec containing the specification for this volume. Used to
    	// generate the volume plugin object, and passed to plugin methods.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  7. pkg/volume/csi/csi_plugin.go

    	if err != nil {
    		klog.V(5).Info(log("Failed to mark %q as republish required, err: %v", spec.Name(), err))
    		return false
    	}
    	return *csiDriver.Spec.RequiresRepublish
    }
    
    func (p *csiPlugin) NewMounter(
    	spec *volume.Spec,
    	pod *api.Pod,
    	_ volume.VolumeOptions) (volume.Mounter, error) {
    
    	volSrc, pvSrc, err := getSourceFromSpec(spec)
    	if err != nil {
    		return nil, err
    	}
    
    	var (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/api_test.go

    		{Typ[UntypedInt], Typ[Int], true},
    		{NewSlice(Typ[Int]), NewArray(Typ[Int], 10), true},
    		{NewSlice(Typ[Int]), NewArray(Typ[Uint], 10), false},
    		{NewSlice(Typ[Int]), NewPointer(NewArray(Typ[Int], 10)), true},
    		{NewSlice(Typ[Int]), NewPointer(NewArray(Typ[Uint], 10)), false},
    		// Untyped string values are not permitted by the spec, so the behavior below is undefined.
    		{Typ[UntypedString], Typ[String], true},
    	} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  9. src/go/types/api_test.go

    		{Typ[UntypedInt], Typ[Int], true},
    		{NewSlice(Typ[Int]), NewArray(Typ[Int], 10), true},
    		{NewSlice(Typ[Int]), NewArray(Typ[Uint], 10), false},
    		{NewSlice(Typ[Int]), NewPointer(NewArray(Typ[Int], 10)), true},
    		{NewSlice(Typ[Int]), NewPointer(NewArray(Typ[Uint], 10)), false},
    		// Untyped string values are not permitted by the spec, so the behavior below is undefined.
    		{Typ[UntypedString], Typ[String], true},
    	} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/named.go

    		// No substitution occurred, but we still need to create a new signature to
    		// hold the instantiated receiver.
    		copy := *origSig
    		sig = &copy
    	}
    
    	var rtyp Type
    	if origm.hasPtrRecv() {
    		rtyp = NewPointer(t)
    	} else {
    		rtyp = t
    	}
    
    	sig.recv = substVar(origSig.recv, rtyp)
    	return substFunc(origm, sig)
    }
    
    // SetUnderlying sets the underlying type and marks t as complete.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top