Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 117 for Scheme (0.14 sec)

  1. istioctl/pkg/util/handlers/handlers_test.go

    			wantNamespace: "test",
    		},
    	}
    	factory := cmdtesting.NewTestFactory().WithNamespace("test")
    	ns := scheme.Codecs.WithoutConversion()
    	codec := scheme.Codecs.LegacyCodec(scheme.Scheme.PrioritizedVersionsAllGroups()...)
    	factory.Client = &fake.RESTClient{
    		GroupVersion:         schema.GroupVersion{Group: "", Version: "v1"},
    		NegotiatedSerializer: ns,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jun 09 18:17:49 GMT 2023
    - 6.6K bytes
    - Viewed (0)
  2. internal/handlers/proxy.go

    	// prefixed by 'proto='. The match is case-insensitive.
    	protoRegex = regexp.MustCompile(`(?i)^(;|,| )+(?:proto=)(https|http)`)
    )
    
    // GetSourceScheme retrieves the scheme from the X-Forwarded-Proto and RFC7239
    // Forwarded headers (in that order).
    func GetSourceScheme(r *http.Request) string {
    	var scheme string
    
    	// Retrieve the scheme from X-Forwarded-Proto.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 22 00:56:55 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  3. cmd/net.go

    		return "", "", err
    	}
    
    	addr = u.Host
    	scheme = u.Scheme
    
    	// Use the given parameter again if url.Parse()
    	// didn't return any useful result.
    	if addr == "" {
    		addr = hostAddr
    		scheme = "http"
    	}
    
    	// At this point, addr can be one of the following form:
    	//	":9000"
    	//	"localhost:9000"
    	//	"localhost" <- in this case, we check for scheme
    
    	host, port, err := net.SplitHostPort(addr)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 26 15:00:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  4. operator/cmd/mesh/manifest_shared_test.go

    	testRestConfig.QPS = 50
    	testRestConfig.Burst = 100
    	if err != nil {
    		return err
    	}
    
    	s := scheme.Scheme
    	s.AddKnownTypes(v1alpha1.SchemeGroupVersion, &v1alpha1.IstioOperator{})
    
    	testClient, err = client.New(testRestConfig, client.Options{Scheme: s})
    	if err != nil {
    		return err
    	}
    	return nil
    }
    
    var interceptorFunc = interceptor.Funcs{Patch: func(
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Feb 20 22:39:28 GMT 2024
    - 11.7K bytes
    - Viewed (1)
  5. internal/config/storageclass/storage-class.go

    // Parses given storageClassEnv and returns a storageClass structure.
    // Supported Storage Class format is "Scheme:Number of parity drives".
    // Currently only supported scheme is "EC".
    func parseStorageClass(storageClassEnv string) (sc StorageClass, err error) {
    	s := strings.Split(storageClassEnv, ":")
    
    	// only two elements allowed in the string - "scheme" and "number of parity drives"
    	if len(s) > 2 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  6. cmd/bucket-targets.go

    	tgts := sys.ListTargets(ctx, "", "")
    	sys.hMutex.Lock()
    	for _, t := range tgts {
    		if _, ok := m[t.Endpoint]; !ok {
    			scheme := "http"
    			if t.Secure {
    				scheme = "https"
    			}
    			epHealth := epHealth{
    				Online:   true,
    				Endpoint: t.Endpoint,
    				Scheme:   scheme,
    			}
    			if prev, ok := sys.hc[t.Endpoint]; ok {
    				epHealth.lastOnline = prev.lastOnline
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  7. cmd/speedtest.go

    			} else {
    				// Use dperf on only formatted drives.
    				ignoredPaths = append(ignoredPaths, lp)
    			}
    		}
    		return tmpPaths
    	}()
    
    	scheme := "http"
    	if globalIsTLS {
    		scheme = "https"
    	}
    
    	u := &url.URL{
    		Scheme: scheme,
    		Host:   globalLocalNodeName,
    	}
    
    	perfs, err := perf.Run(ctx, paths...)
    	return madmin.DriveSpeedTestResult{
    		Endpoint: u.String(),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 28 18:04:17 GMT 2024
    - 9K bytes
    - Viewed (0)
  8. cmd/auth-handler_test.go

    				URL: &url.URL{
    					Host:   "127.0.0.1:9000",
    					Scheme: httpScheme,
    					Path:   SlashSeparator,
    				},
    				Header: http.Header{
    					"Authorization": []string{"Bearer 12313123"},
    				},
    			},
    			authT: authTypeJWT,
    		},
    		// Test case - 3
    		// Empty authorization header.
    		{
    			req: &http.Request{
    				URL: &url.URL{
    					Host:   "127.0.0.1:9000",
    					Scheme: httpScheme,
    					Path:   SlashSeparator,
    				},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  9. cmd/bucket-replication-stats.go

    	TransferDuration time.Duration
    	Endpoint         string
    	Secure           bool
    	Err              error
    }
    
    func (rs *replStat) endpoint() string {
    	scheme := "http"
    	if rs.Secure {
    		scheme = "https"
    	}
    	return scheme + "://" + rs.Endpoint
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  10. internal/event/target/nats.go

    func (n NATSArgs) connectStan() (stan.Conn, error) {
    	scheme := "nats"
    	if n.Secure {
    		scheme = "tls"
    	}
    
    	var addressURL string
    	//nolint:gocritic
    	if n.Username != "" && n.Password != "" {
    		addressURL = scheme + "://" + n.Username + ":" + n.Password + "@" + n.Address.String()
    	} else if n.Token != "" {
    		addressURL = scheme + "://" + n.Token + "@" + n.Address.String()
    	} else {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 27 18:11:55 GMT 2024
    - 12.8K bytes
    - Viewed (0)
Back to top