Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for TC (0.12 sec)

  1. cmd/metrics-v2.go

    	gatherers := prometheus.Gatherers{
    		registry,
    	}
    
    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    		if ok {
    			tc.FuncName = funcName
    			tc.ResponseRecorder.LogErrBody = true
    		}
    
    		mfs, err := gatherers.Gather()
    		if err != nil && len(mfs) == 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
  2. cmd/bucket-targets.go

    	hcDuration := defaultHealthCheckDuration
    	if tcfg.HealthCheckDuration >= 1 { // require minimum health check duration of 1 sec.
    		hcDuration = tcfg.HealthCheckDuration
    	}
    	tc := &TargetClient{
    		Client:              api,
    		healthCheckDuration: hcDuration,
    		replicateSync:       tcfg.ReplicationSync,
    		Bucket:              tcfg.TargetBucket,
    		StorageClass:        tcfg.StorageClass,
    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)
  3. cmd/warm-backend-azure.go

    	// Refresh obtains a fresh token
    	err = spt.Refresh()
    	if err != nil {
    		return nil, err
    	}
    
    	tc := azblob.NewTokenCredential(spt.Token().AccessToken, func(tc azblob.TokenCredential) time.Duration {
    		err := spt.Refresh()
    		if err != nil {
    			return 0
    		}
    		// set the new token value
    		tc.SetToken(spt.Token().AccessToken)
    
    		// get the next token before the current one expires
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 05 16:44:08 GMT 2024
    - 7.8K bytes
    - Viewed (1)
  4. cmd/metrics-v3-handler.go

    	// Add tracing to the prom. handler
    	tracedHandler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    		if ok {
    			tc.FuncName = "handler.MetricsV3"
    			tc.ResponseRecorder.LogErrBody = true
    		}
    
    		innerHandler.ServeHTTP(w, r)
    	})
    
    	// Add authentication
    	h.authFn(tracedHandler).ServeHTTP(w, r)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 17:37:57 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  5. internal/rest/client.go

    		req.Header.Set("Authorization", "Bearer "+c.newAuthToken(u.RawQuery))
    	}
    	req.Header.Set("X-Minio-Time", time.Now().UTC().Format(time.RFC3339))
    
    	if tc, ok := ctx.Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt); ok {
    		req.Header.Set(xhttp.AmzRequestID, tc.AmzReqID)
    	}
    
    	return req, nil
    }
    
    type respBodyMonitor struct {
    	io.ReadCloser
    	expectTimeouts  bool
    	errorStatusOnce sync.Once
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  6. internal/bucket/lifecycle/expiration_test.go

    			expectedErr: errLifecycleDateNotMidnight,
    		},
    	}
    
    	for i, tc := range testCases {
    		t.Run(fmt.Sprintf("Test %d", i+1), func(t *testing.T) {
    			var expiration Expiration
    			err := xml.Unmarshal([]byte(tc.inputXML), &expiration)
    			if err != tc.expectedErr {
    				t.Fatalf("%d: Expected %v but got %v", i+1, tc.expectedErr, err)
    			}
    		})
    	}
    
    	validationTestCases := []struct {
    		inputXML    string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Feb 21 20:28:34 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  7. internal/bucket/lifecycle/transition_test.go

    			input: `<Transition>
    			<Days>1</Days>
    		  </Transition>`,
    			err: errXMLNotWellFormed,
    		},
    	}
    
    	for i, tc := range trTests {
    		var tr Transition
    		err := xml.Unmarshal([]byte(tc.input), &tr)
    		if err != nil {
    			t.Fatalf("%d: xml unmarshal failed with %v", i+1, err)
    		}
    		if err = tr.Validate(); err != tc.err {
    			t.Fatalf("%d: Invalid transition %v: err %v", i+1, tr, err)
    		}
    	}
    
    	ntrTests := []struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Oct 01 18:58:17 GMT 2021
    - 2.3K bytes
    - Viewed (0)
  8. internal/bucket/replication/replication_test.go

    			},
    		},
    	}
    	for _, tc := range testCases {
    		tc := tc
    		cfg, err := ParseConfig(bytes.NewReader([]byte(tc.inputConfig)))
    		if err != nil {
    			t.Fatalf("Got unexpected error: %v", err)
    		}
    		got := cfg.FilterActionableRules(ObjectOpts{Name: tc.prefix})
    		if len(got) != len(tc.ExpectedRules) {
    			t.Fatalf("Expected matching number of actionable rules: `%v`, got: `%v`", tc.ExpectedRules, got)
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  9. cmd/generic-handlers.go

    			if r.Method == http.MethodHead {
    				if ok {
    					tc.FuncName = "handler.ValidRequest"
    					tc.ResponseRecorder.LogErrBody = false
    				}
    
    				defer logger.AuditLog(r.Context(), w, r, mustGetClaimsFromToken(r))
    				writeErrorResponseHeadersOnly(w, errorCodes.ToAPIErr(ErrInsecureSSECustomerRequest))
    			} else {
    				if ok {
    					tc.FuncName = "handler.ValidRequest"
    					tc.ResponseRecorder.LogErrBody = true
    				}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  10. cmd/xl-storage-format-v2_test.go

    	var fileInfos []FileInfo
    	for i, tc := range testCases {
    		fi := fi
    		fi.VersionID = tc.versionID
    		fi.DataDir = tc.dataDir
    		fi.Data = tc.data
    		if tc.data == nil {
    			fi.Size = 42 // to prevent inlining of data
    		}
    		if tc.restoreObjStatus != "" {
    			fi.Metadata = map[string]string{
    				xhttp.AmzRestore: tc.restoreObjStatus,
    			}
    		}
    		fi.TransitionStatus = tc.transitionStatus
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 08 17:50:48 GMT 2024
    - 36.4K bytes
    - Viewed (0)
Back to top