Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for pathPrefix (0.15 sec)

  1. internal/config/etcd/etcd.go

    		return nil, nil
    	}
    	cli, err := clientv3.New(cfg.Config)
    	if err != nil {
    		return nil, err
    	}
    	cli.KV = namespace.NewKV(cli.KV, cfg.PathPrefix)
    	cli.Watcher = namespace.NewWatcher(cli.Watcher, cfg.PathPrefix)
    	cli.Lease = namespace.NewLease(cli.Lease, cfg.PathPrefix)
    	return cli, nil
    }
    
    func parseEndpoints(endpoints string) ([]string, bool, error) {
    	etcdEndpoints := strings.Split(endpoints, config.ValueSeparator)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. pilot/pkg/security/authz/builder/extauthz.go

    	}
    	if config.PathPrefix != "" {
    		if _, err := url.Parse(config.PathPrefix); err != nil {
    			errs = multierror.Append(errs, multierror.Prefix(err, fmt.Sprintf("invalid pathPrefix %q:", config.PathPrefix)))
    		}
    		if !strings.HasPrefix(config.PathPrefix, "/") {
    			errs = multierror.Append(errs, fmt.Errorf("pathPrefix must begin with `/`, found: %q", config.PathPrefix))
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. pkg/config/validation/agent/extensionprovider.go

    		errs = AppendErrors(errs, err)
    	}
    	if config.PathPrefix != "" {
    		if _, err := url.Parse(config.PathPrefix); err != nil {
    			errs = AppendErrors(errs, fmt.Errorf("invalid pathPrefix %s: %v", config.PathPrefix, err))
    		}
    		if !strings.HasPrefix(config.PathPrefix, "/") {
    			errs = AppendErrors(errs, fmt.Errorf("pathPrefix should begin with `/` but found %q", config.PathPrefix))
    		}
    	}
    	return
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. pilot/pkg/config/kube/gateway/testdata/isolation.yaml

        - "abc.foo.example.com" # request matching is prevented by the isolation of abc-foo-example-com listener
      rules:
        - matches:
            - path:
                type: PathPrefix
                value: /empty-hostname
          backendRefs:
            - name: infra-backend-v1
              port: 8080
    ---
    apiVersion: gateway.networking.k8s.io/v1
    kind: HTTPRoute
    metadata:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 20:24:52 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modfetch/coderepo.go

    	if codeRoot != path {
    		if !hasPathPrefix(pathPrefix, codeRoot) {
    			return nil, fmt.Errorf("repository rooted at %s cannot contain module %s", codeRoot, path)
    		}
    		codeDir = strings.Trim(pathPrefix[len(codeRoot):], "/")
    	}
    
    	r := &codeRepo{
    		modPath:     path,
    		code:        code,
    		codeRoot:    codeRoot,
    		codeDir:     codeDir,
    		pathPrefix:  pathPrefix,
    		pathMajor:   pathMajor,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/api/engine/SearchEngineApiManager.java

                    final String pathPrefix = ADMIN_SERVER + token;
                    if (!servletPath.startsWith(pathPrefix)) {
                        throw new WebApiException(HttpServletResponse.SC_FORBIDDEN, "Invalid access token.");
                    }
                    final String path;
                    final String value = servletPath.substring(pathPrefix.length());
                    if (!value.startsWith("/")) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu May 09 06:28:46 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  7. pkg/ctrlz/ctrlz.go

    	return assets.ParseTemplate(layout, page)
    }
    
    func registerTopic(router *mux.Router, layout *template.Template, t fw.Topic) {
    	htmlRouter := router.NewRoute().PathPrefix("/" + t.Prefix() + "z").Subrouter()
    	jsonRouter := router.NewRoute().PathPrefix("/" + t.Prefix() + "j").Subrouter()
    
    	tmpl := template.Must(template.Must(layout.Clone()).Parse("{{ define \"title\" }}" + t.Title() + "{{ end }}"))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 21:22:53 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. cmd/kms-router.go

    )
    
    type kmsAPIHandlers struct{}
    
    // registerKMSRouter - Registers KMS APIs
    func registerKMSRouter(router *mux.Router) {
    	kmsAPI := kmsAPIHandlers{}
    	kmsRouter := router.PathPrefix(kmsPathPrefix).Subrouter()
    
    	KMSVersions := []string{
    		kmsAPIVersionPrefix,
    	}
    
    	gz, err := gzhttp.NewWrapper(gzhttp.MinSize(1000), gzhttp.CompressionLevel(gzip.BestSpeed))
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store.go

    	// no-op for default prefix of '/registry'.
    	// keeps compatibility with etcd2 impl for custom prefixes that don't start with '/'
    	pathPrefix := path.Join("/", prefix)
    	if !strings.HasSuffix(pathPrefix, "/") {
    		// Ensure the pathPrefix ends in "/" here to simplify key concatenation later.
    		pathPrefix += "/"
    	}
    
    	w := &watcher{
    		client:        c,
    		codec:         codec,
    		newFunc:       newFunc,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 11:56:42 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go

    		"/../foo",
    		"/foo/bar/../",
    		".",
    		"/.",
    		"./",
    		"/./",
    		"/foo/.",
    		"./bar",
    		"/foo/./bar/",
    	}
    	const (
    		pathPrefix   = "/first/second"
    		expectPrefix = pathPrefix + "/"
    	)
    	_, store, _ := testSetup(t, withPrefix(pathPrefix))
    
    	for _, key := range validKeys {
    		k, err := store.prepareKey(key)
    		if err != nil {
    			t.Errorf("key %q should be valid; unexpected error: %v", key, err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 26.5K bytes
    - Viewed (0)
Back to top