Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 171 for Id (0.02 sec)

  1. src/internal/trace/resources.go

    }
    
    // ResourceID represents a generic resource ID.
    type ResourceID struct {
    	// Kind is the kind of resource this ID is for.
    	Kind ResourceKind
    	id   int64
    }
    
    // MakeResourceID creates a general resource ID from a specific resource's ID.
    func MakeResourceID[T interface{ GoID | ProcID | ThreadID }](id T) ResourceID {
    	var rd ResourceID
    	var a any = id
    	switch a.(type) {
    	case GoID:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. src/internal/concurrent/hashtriemap_test.go

    			wg.Add(1)
    			go func(id int) {
    				defer wg.Done()
    
    				makeKey := func(s string) string {
    					return s + "-" + strconv.Itoa(id)
    				}
    				for _, s := range testData {
    					key := makeKey(s)
    					expectMissing(t, key, 0)(m.Load(key))
    					expectStored(t, key, id)(m.LoadOrStore(key, id))
    					expectPresent(t, key, id)(m.Load(key))
    					expectLoaded(t, key, id)(m.LoadOrStore(key, 0))
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:01:55 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. cmd/storage-rest-common.go

    	storageRESTBitrotHash    = "bitrot-hash"
    	storageRESTDiskID        = "disk-id"
    	storageRESTForceDelete   = "force-delete"
    	storageRESTGlob          = "glob"
    	storageRESTMetrics       = "metrics"
    	storageRESTDriveQuorum   = "drive-quorum"
    	storageRESTOrigVolume    = "orig-volume"
    )
    
    type nsScannerOptions struct {
    	DiskID   string          `msg:"id"`
    	ScanMode int             `msg:"m"`
    	Cache    *dataUsageCache `msg:"c"`
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. src/runtime/trace2map_test.go

    			"aa",
    			"ab",
    			"ba",
    			"bb",
    		}
    		for i, s := range d {
    			id, inserted := m.PutString(s)
    			if !inserted {
    				t.Errorf("expected to have inserted string %q, but did not", s)
    			}
    			if id != uint64(i+1) {
    				t.Errorf("expected string %q to have ID %d, but got %d instead", s, i+1, id)
    			}
    		}
    		for i, s := range d {
    			id, inserted := m.PutString(s)
    			if inserted {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 18:52:49 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. internal/event/targetlist.go

    		if _, ok := list.targets[target.ID()]; ok {
    			return fmt.Errorf("target %v already exists", target.ID())
    		}
    		list.targets[target.ID()] = target
    	}
    
    	return nil
    }
    
    // Exists - checks whether target by target ID exists or not.
    func (list *TargetList) Exists(id TargetID) bool {
    	list.RLock()
    	defer list.RUnlock()
    
    	_, found := list.targets[id]
    	return found
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  6. internal/bucket/lifecycle/rule_test.go

    	                    </Rule>`,
    			expectedErr: errInvalidRuleID,
    		},
    		{ // Rule with empty ID
    			inputXML: `<Rule>
    							<ID></ID>
    							<Filter><Prefix></Prefix></Filter>
    							<Expiration>
    								<Days>365</Days>
    							</Expiration>
                                <Status>Enabled</Status>
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/sysvshm_unix_other.go

    //go:build (darwin && !ios) || zos
    
    package unix
    
    // SysvShmCtl performs control operations on the shared memory segment
    // specified by id.
    func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) {
    	return shmctl(id, cmd, desc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 407 bytes
    - Viewed (0)
  8. src/runtime/tracestring.go

    	ss := stringStructOf(&s)
    	id, added := t.tab.put(ss.str, uintptr(ss.len))
    	if added {
    		// Write the string to the buffer.
    		systemstack(func() {
    			t.writeString(gen, id, s)
    		})
    	}
    	return id
    }
    
    // emit emits a string and creates an ID for it, but doesn't add it to the table. Returns the ID.
    func (t *traceStringTable) emit(gen uintptr, s string) uint64 {
    	// Grab an ID and write the string to the buffer.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. security/pkg/server/ca/authenticate/kubeauth/kube_jwt.go

    	}
    	if id.PodServiceAccount == "" {
    		return nil, fmt.Errorf("failed to parse the JWT; service account required")
    	}
    	if id.PodNamespace == "" {
    		return nil, fmt.Errorf("failed to parse the JWT; namespace required")
    	}
    	return &security.Caller{
    		AuthSource:     security.AuthSourceIDToken,
    		Identities:     []string{spiffe.MustGenSpiffeURI(a.meshHolder.Mesh(), id.PodNamespace, id.PodServiceAccount)},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. pkg/test/framework/suitecontext.go

    		// No cleanup.
    		return
    	}
    }
    
    // TrackResource adds a new resource to track to the context at this level.
    func (c *suiteContext) TrackResource(r resource.Resource) resource.ID {
    	id := c.allocateResourceID(c.globalScope.id, r)
    	rid := &resourceID{id: id}
    	c.globalScope.add(r, rid)
    	return rid
    }
    
    func (c *suiteContext) GetResource(ref any) error {
    	return c.globalScope.get(ref)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top