Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,354 for Id (0.04 sec)

  1. pkg/kubelet/images/image_gc_manager_test.go

    	return &vCopy, ok
    }
    
    // Returns the id of the image with the given ID.
    func imageID(id int) string {
    	return fmt.Sprintf("image-%d", id)
    }
    
    // Returns the name of the image with the given ID.
    func imageName(id int) string {
    	return imageID(id) + "-name"
    }
    
    // Make an image with the specified ID.
    func makeImage(id int, size int64) container.Image {
    	return container.Image{
    		ID:   imageID(id),
    		Size: size,
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 15:38:20 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  2. src/os/user/lookup_stubs.go

    }
    
    func currentUID() string {
    	if id := os.Getuid(); id >= 0 {
    		return strconv.Itoa(id)
    	}
    	// Note: Windows returns -1, but this file isn't used on
    	// Windows anyway, so this empty return path shouldn't be
    	// used.
    	return ""
    }
    
    func currentGID() string {
    	if id := os.Getgid(); id >= 0 {
    		return strconv.Itoa(id)
    	}
    	return ""
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 07 16:09:09 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/text/internal/language/compact/compact.go

    func (id ID) Parent() ID {
    	return parents[id]
    }
    
    // Tag converts id to an internal language Tag.
    func (id ID) Tag() language.Tag {
    	if int(id) >= len(coreTags) {
    		return specialTags[int(id)-len(coreTags)]
    	}
    	return coreTags[id].Tag()
    }
    
    var specialTags []language.Tag
    
    func init() {
    	tags := strings.Split(specialTagsStr, " ")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. src/internal/trace/base.go

    	for id, data := range d.sparse {
    		d.dense[id] = data
    		d.present[id/8] |= uint8(1) << (id % 8)
    	}
    	d.sparse = nil
    }
    
    // get returns the E for id or false if it doesn't
    // exist. This should be used for validation during parsing.
    func (d *dataTable[EI, E]) get(id EI) (E, bool) {
    	if id == 0 {
    		return *new(E), true
    	}
    	if uint64(id) < uint64(len(d.dense)) {
    		if d.present[id/8]&(uint8(1)<<(id%8)) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/profile/encode.go

    		l.mappingIDX = 0
    		for i, ln := range l.Line {
    			if id := ln.functionIDX; id != 0 {
    				l.Line[i].functionIDX = 0
    				if id < uint64(len(functionIds)) {
    					l.Line[i].Function = functionIds[id]
    				} else {
    					l.Line[i].Function = functions[id]
    				}
    			}
    		}
    		if l.ID < uint64(len(locationIds)) {
    			locationIds[l.ID] = l
    		} else {
    			locations[l.ID] = l
    		}
    	}
    
    	for _, st := range p.SampleType {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  6. src/net/textproto/textproto.go

    //	if err != nil {
    //		return nil, err
    //	}
    //	return c.ReadCodeLine(250)
    func (c *Conn) Cmd(format string, args ...any) (id uint, err error) {
    	id = c.Next()
    	c.StartRequest(id)
    	err = c.PrintfLine(format, args...)
    	c.EndRequest(id)
    	if err != nil {
    		return 0, err
    	}
    	return id, nil
    }
    
    // TrimString returns s without leading and trailing ASCII space.
    func TrimString(s string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/apis/bootstraptoken/v1/utils.go

    	if err != nil {
    		return err
    	}
    	bts.ID = newbts.ID
    	bts.Secret = newbts.Secret
    	return nil
    }
    
    // String returns the string representation of the BootstrapTokenString
    func (bts BootstrapTokenString) String() string {
    	if len(bts.ID) > 0 && len(bts.Secret) > 0 {
    		return bootstraputil.TokenFromIDAndSecret(bts.ID, bts.Secret)
    	}
    	return ""
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 26 15:51:39 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/debug.go

    		panic("unexpected pointer size")
    	}
    	if ID(int16(b)) != b || ID(int16(v)) != v {
    		return 0, false
    	}
    	return uint64(b)<<16 | uint64(uint16(v)), true
    }
    
    // Unpack a value and block ID encoded by encodeValue.
    func decodeValue(ctxt *obj.Link, word uint64) (ID, ID) {
    	if ctxt.Arch.PtrSize == 8 {
    		b, v := ID(word>>32), ID(word)
    		//ctxt.Logf("%#x -> b %#x (%d) v %#x (%d)\n", word, b, b, v, v)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 58.4K bytes
    - Viewed (0)
  9. src/runtime/trace/annotation.go

    //	    trace.WithRegion(ctx, "remainingWork", remainingWork)
    //	}()
    func NewTask(pctx context.Context, taskType string) (ctx context.Context, task *Task) {
    	pid := fromContext(pctx).id
    	id := newID()
    	userTaskCreate(id, pid, taskType)
    	s := &Task{id: id}
    	return context.WithValue(pctx, traceContextKey{}, s), s
    
    	// We allocate a new task even when
    	// the tracing is disabled because the context and task
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 20 00:47:09 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/sysvshm_unix.go

    // shared memory identifier id.
    func SysvShmAttach(id int, addr uintptr, flag int) ([]byte, error) {
    	addr, errno := shmat(id, addr, flag)
    	if errno != nil {
    		return nil, errno
    	}
    
    	// Retrieve the size of the shared memory to enable slice creation
    	var info SysvShmDesc
    
    	_, err := SysvShmCtl(id, IPC_STAT, &info)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top