Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for CodeObj (0.22 sec)

  1. src/internal/pkgbits/codes.go

    	TypeInterface
    	TypeUnion
    	TypeTypeParam
    )
    
    // A CodeObj distinguishes among go/types.Object encodings.
    type CodeObj int
    
    func (c CodeObj) Marker() SyncMarker { return SyncCodeObj }
    func (c CodeObj) Value() int         { return int(c) }
    
    // Note: These values are public and cannot be changed without
    // updating the go/types importers.
    
    const (
    	ObjAlias CodeObj = iota
    	ObjConst
    	ObjType
    	ObjFunc
    	ObjVar
    	ObjStub
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 25 16:15:47 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  2. src/internal/pkgbits/decoder.go

    		pr.RetireDecoder(&r)
    	}
    	if path == "" {
    		path = pr.pkgPath
    	}
    	return path
    }
    
    // PeekObj returns the package path, object name, and CodeObj for the
    // specified object index.
    func (pr *PkgDecoder) PeekObj(idx Index) (string, string, CodeObj) {
    	var ridx Index
    	var name string
    	var rcode int
    	{
    		r := pr.TempDecoder(RelocName, idx, SyncObject1)
    		r.Sync(SyncSym)
    		r.Sync(SyncPkg)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 20:58:46 UTC 2022
    - 13.2K bytes
    - Viewed (0)
  3. src/go/internal/gcimporter/ureader.go

    	var objPkg *types.Package
    	var objName string
    	var tag pkgbits.CodeObj
    	{
    		rname := pr.tempReader(pkgbits.RelocName, idx, pkgbits.SyncObject1)
    
    		objPkg, objName = rname.qualifiedIdent()
    		assert(objName != "")
    
    		tag = pkgbits.CodeObj(rname.Code(pkgbits.SyncCodeObj))
    		pr.retireReader(rname)
    	}
    
    	if tag == pkgbits.ObjStub {
    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. pkg/controller/volume/attachdetach/cache/desired_state_of_world.go

    	dsw.Lock()
    	defer dsw.Unlock()
    
    	nodeObj, nodeExists := dsw.nodesManaged[nodeName]
    	if !nodeExists {
    		return nil
    	}
    
    	if len(nodeObj.volumesToAttach) > 0 {
    		return fmt.Errorf(
    			"failed to delete node %q from list of nodes managed by attach/detach controller--the node still contains %v volumes in its list of volumes to attach",
    			nodeName,
    			len(nodeObj.volumesToAttach))
    	}
    
    	delete(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  5. pkg/controller/volume/attachdetach/statusupdater/node_status_updater.go

    		logger.V(2).Info("Could not update node status; re-marking for update", "node", klog.KObj(nodeObj), "err", err)
    
    		return err
    	}
    	return nil
    }
    
    func (nsu *nodeStatusUpdater) updateNodeStatus(logger klog.Logger, nodeName types.NodeName, nodeObj *v1.Node, attachedVolumes []v1.AttachedVolume) error {
    	node := nodeObj.DeepCopy()
    	node.Status.VolumesAttached = attachedVolumes
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  6. pkg/controller/volume/attachdetach/cache/actual_state_of_world.go

    	defer asw.Unlock()
    
    	volumeObj, nodeObj, err := asw.getNodeAndVolume(volumeName, nodeName)
    	if err != nil {
    		return 0, fmt.Errorf("failed to set detach request time with error: %v", err)
    	}
    	// If there is no previous detach request, set it to the current time
    	if nodeObj.detachRequestedTime.IsZero() {
    		nodeObj.detachRequestedTime = time.Now()
    		volumeObj.nodesAttachedTo[nodeName] = nodeObj
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 07:35:17 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  7. pkg/registry/core/serviceaccount/storage/token.go

    					// set ResourceVersion=0 to allow this to be read/served from the apiservers watch cache
    					nodeObj, err := r.nodes.Get(newCtx, nodeName, &metav1.GetOptions{ResourceVersion: "0"})
    					if err != nil {
    						nodeObj, err = r.nodes.Get(newCtx, nodeName, &metav1.GetOptions{}) // fallback to a live lookup on any error
    					}
    					switch {
    					case errors.IsNotFound(err):
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 05 10:24:31 UTC 2024
    - 10K bytes
    - Viewed (0)
  8. pkg/registry/core/node/strategy.go

    // GetAttrs returns labels and fields of a given object for filtering purposes.
    func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) {
    	nodeObj, ok := obj.(*api.Node)
    	if !ok {
    		return nil, nil, fmt.Errorf("not a node")
    	}
    	return labels.Set(nodeObj.ObjectMeta.Labels), NodeToSelectableFields(nodeObj), nil
    }
    
    // MatchNode returns a generic matcher for a given label and field selector.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 13 23:06:39 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top