Search Options

Results per page
Sort
Preferred Languages
Advance

Results 661 - 670 of 1,123 for Nil (0.01 sec)

  1. cmd/config-encrypted_test.go

    		AccessKey: "minio",
    		SecretKey: "minio1234",
    	}
    
    	data := []byte(`config data`)
    	edata1, err := madmin.EncryptData(cred1.String(), data)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	edata2, err := madmin.EncryptData(cred2.String(), data)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	tests := []struct {
    		edata   []byte
    		cred    auth.Credentials
    		success bool
    	}{
    		{edata1, cred1, true},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 20 00:53:08 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. cmd/metrics-v3-api.go

    	labelsFilter := map[string]set.StringSet{}
    	m.SetHistogram(apiRequestsTTFBSecondsDistribution, httpRequestsDuration, labelsFilter, renameLabels, nil,
    		"type", "s3")
    	return nil
    }
    
    // loadAPIRequestsNetworkMetrics - loads S3 network metrics.
    //
    // This is a `MetricsLoaderFn`.
    func loadAPIRequestsNetworkMetrics(ctx context.Context, m MetricValues, _ *metricsCache) error {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. cmd/batch-expire.go

    	for _, tag := range ef.Tags {
    		if err := tag.Validate(); err != nil {
    			return err
    		}
    	}
    
    	for _, meta := range ef.Metadata {
    		if err := meta.Validate(); err != nil {
    			return err
    		}
    	}
    	if err := ef.Purge.Validate(); err != nil {
    		return err
    	}
    	if err := ef.Size.Validate(); err != nil {
    		return err
    	}
    	if ef.CreatedBefore != nil && !ef.CreatedBefore.Before(time.Now()) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  4. cmd/signature-v4-parser.go

    	signedHdrFields := strings.Split(strings.TrimSpace(signedHdrElement), "=")
    	if len(signedHdrFields) != 2 {
    		return nil, ErrMissingFields
    	}
    	if signedHdrFields[0] != "SignedHeaders" {
    		return nil, ErrMissingSignHeadersTag
    	}
    	if signedHdrFields[1] == "" {
    		return nil, ErrMissingFields
    	}
    	signedHeaders := strings.Split(signedHdrFields[1], ";")
    	return signedHeaders, ErrNone
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  5. internal/bucket/replication/replication.go

    func ParseConfig(reader io.Reader) (*Config, error) {
    	config := Config{}
    	if err := xml.NewDecoder(io.LimitReader(reader, maxReplicationConfigSize)).Decode(&config); err != nil {
    		return nil, err
    	}
    	// By default, set replica modification to enabled if unset.
    	for i := range config.Rules {
    		if len(config.Rules[i].SourceSelectionCriteria.ReplicaModifications.Status) == 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 28 17:44:56 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. internal/config/bool-flag_test.go

    		var flag BoolFlag
    		err := (&flag).UnmarshalJSON(testCase.data)
    		if !testCase.expectedErr && err != nil {
    			t.Fatalf("error: expected = <nil>, got = %v", err)
    		}
    		if testCase.expectedErr && err == nil {
    			t.Fatalf("error: expected error, got = <nil>")
    		}
    		if err == nil && testCase.expectedResult != flag {
    			t.Fatalf("result: expected: %v, got: %v", testCase.expectedResult, flag)
    		}
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  7. cmd/metrics-v3-ilm.go

    )
    
    // loadILMMetrics - `MetricsLoaderFn` for ILM metrics.
    func loadILMMetrics(_ context.Context, m MetricValues, _ *metricsCache) error {
    	if globalExpiryState != nil {
    		m.Set(expiryPendingTasks, float64(globalExpiryState.PendingTasks()))
    	}
    	if globalTransitionState != nil {
    		m.Set(transitionActiveTasks, float64(globalTransitionState.ActiveTasks()))
    		m.Set(transitionPendingTasks, float64(globalTransitionState.PendingTasks()))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jun 06 09:36:25 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. istioctl/pkg/util/ambient/util.go

    )
    
    func IsZtunnelPod(client kube.CLIClient, podName, podNamespace string) bool {
    	isZtunnel := strings.HasPrefix(podName, "ztunnel")
    	if client == nil {
    		return isZtunnel
    	}
    	pod, err := client.Kube().CoreV1().Pods(podNamespace).Get(context.Background(), podName, metav1.GetOptions{})
    	if err != nil {
    		return isZtunnel
    	}
    	if v, ok := pod.Labels["app"]; ok {
    		return v == "ztunnel"
    	}
    	return isZtunnel
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. docs/site-replication/gen-oidc-sts-cred.go

    	if err != nil {
    		log.Fatalf("Failed to generate OIDC token: %v", err)
    	}
    
    	roleARN := os.Getenv("ROLE_ARN")
    	webID := cr.STSWebIdentity{
    		Client:      &http.Client{},
    		STSEndpoint: endpoint,
    		GetWebIDTokenExpiry: func() (*cr.WebIdentityToken, error) {
    			return &cr.WebIdentityToken{
    				Token: oidcToken,
    			}, nil
    		},
    		RoleARN: roleARN,
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 29 01:27:09 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  10. cmd/url_test.go

    	if err != nil {
    		b.Fatal(err)
    	}
    
    	// benchmark utility which helps obtain number of allocations and bytes allocated per ops.
    	b.ReportAllocs()
    	// the actual benchmark for PutObject starts here. Reset the benchmark timer.
    	b.ResetTimer()
    
    	if err := req.ParseForm(); err != nil {
    		b.Fatal(err)
    	}
    
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 16 17:28:29 UTC 2021
    - 2K bytes
    - Viewed (0)
Back to top