Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for path_prefix (0.45 sec)

  1. src/cmd/go/internal/modload/init.go

    	// modRoot maps each module in versions to its absolute filesystem path.
    	modRoot map[module.Version]string
    
    	// pathPrefix is the path prefix for packages in the module, without a trailing
    	// slash. For most modules, pathPrefix is just version.Path, but the
    	// standard-library module "std" has an empty prefix.
    	pathPrefix map[module.Version]string
    
    	// inGorootSrc caches whether modRoot is within GOROOT/src.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/load.go

    	for _, v := range mms.Versions() {
    		modRoot := mms.ModRoot(v)
    		if dir == modRoot {
    			return mms.PathPrefix(v), v
    		}
    		if str.HasFilePathPrefix(dir, modRoot) {
    			pathPrefix := MainModules.PathPrefix(v)
    			if pathPrefix > longestPrefix {
    				longestPrefix = pathPrefix
    				longestPrefixVersion = v
    				suffix := filepath.ToSlash(str.TrimFilePathPrefix(dir, modRoot))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    	return c.storage.GuaranteedUpdate(ctx, key, destination, ignoreNotFound, preconditions, tryUpdate, nil)
    }
    
    // Count implements storage.Interface.
    func (c *Cacher) Count(pathPrefix string) (int64, error) {
    	return c.storage.Count(pathPrefix)
    }
    
    // baseObjectThreadUnsafe omits locking for cachingObject.
    func baseObjectThreadUnsafe(object runtime.Object) runtime.Object {
    	if co, ok := object.(*cachingObject); ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  4. cmd/test-utils_test.go

    	if len(apiFunctions) == 0 {
    		// Register all api endpoints by default.
    		registerAPIRouter(muxRouter)
    		return
    	}
    	// API Router.
    	apiRouter := muxRouter.PathPrefix(SlashSeparator).Subrouter()
    	// Bucket router.
    	bucketRouter := apiRouter.PathPrefix("/{bucket}").Subrouter()
    
    	// All object storage operations are registered as HTTP handlers on `objectAPIHandlers`.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  5. cmd/peer-rest-server.go

    	h := func(f http.HandlerFunc) http.HandlerFunc {
    		return collectInternodeStats(httpTraceHdrs(f))
    	}
    
    	server := &peerRESTServer{}
    	subrouter := router.PathPrefix(peerRESTPrefix).Subrouter()
    	subrouter.Methods(http.MethodPost).Path(peerRESTVersionPrefix + peerRESTMethodHealth).HandlerFunc(h(server.HealthHandler))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/lib.go

    	a.fmag = artrim(buf[58:60])
    
    	arsize := atolwhex(a.size)
    	if arsize&1 != 0 {
    		arsize++
    	}
    	return arsize + SAR_HDR
    }
    
    func loadobjfile(ctxt *Link, lib *sym.Library) {
    	pkg := objabi.PathToPrefix(lib.Pkg)
    
    	if ctxt.Debugvlog > 1 {
    		ctxt.Logf("ldobj: %s (%s)\n", lib.File, pkg)
    	}
    	f, err := bio.Open(lib.File)
    	if err != nil {
    		Exitf("cannot open file %s: %v", lib.File, err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  7. src/cmd/link/internal/loader/loader.go

    		sects:                []*sym.Section{nil}, // reserve index 0 for nil section
    	}
    	reporter.ldr = ldr
    	return ldr
    }
    
    // Add object file r
    func (l *Loader) addObj(pkg string, r *oReader) {
    	pkg = objabi.PathToPrefix(pkg) // the object file contains escaped package path
    	if _, ok := l.objByPkg[pkg]; !ok {
    		l.objByPkg[pkg] = r.objidx
    	}
    	l.objs = append(l.objs, r)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:10 UTC 2024
    - 81.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    		t.Errorf("Unexpected 429 error without ResilientWatchCacheInitialization feature for Watch")
    	}
    }
    
    func TestEmptyWatchEventCache(t *testing.T) {
    	server, etcdStorage := newEtcdTestStorage(t, etcd3testing.PathPrefix())
    	defer server.Terminate(t)
    
    	// add a few objects
    	v := storage.APIObjectVersioner{}
    	lastRV := uint64(0)
    	for i := 0; i < 5; i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
Back to top