Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,539 for Hour (0.06 sec)

  1. security/pkg/nodeagent/cache/secretcache_test.go

    			created:     now,
    			expire:      now.Add(time.Hour),
    			gracePeriod: 0.5,
    			expected:    time.Minute * 30,
    		},
    		{
    			name:        "grace period .25",
    			created:     now,
    			expire:      now.Add(time.Hour),
    			gracePeriod: 0.25,
    			expected:    time.Minute * 45,
    		},
    		{
    			name:        "grace period .75",
    			created:     now,
    			expire:      now.Add(time.Hour),
    			gracePeriod: 0.75,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. cmd/object-lambda-handlers.go

    		host = globalMinioEndpointURL.Host
    		secure = globalMinioEndpointURL.Scheme == "https"
    	}
    
    	duration := time.Until(cred.Expiration)
    	if duration > time.Hour || duration < time.Hour {
    		// Always limit to 1 hour.
    		duration = time.Hour
    	}
    
    	clnt, err := miniogo.New(host, &miniogo.Options{
    		Creds:     credentials.NewStaticV4(cred.AccessKey, cred.SecretKey, cred.SessionToken),
    		Secure:    secure,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. security/pkg/pki/util/keycertbundle_test.go

    			caCertFile:    rootCertFile,
    			caKeyFile:     rootKeyFile,
    			certChainFile: nil,
    			rootCertFile:  rootCertFile,
    			certOptions: &CertOptions{
    				Host:       "test_ca.com",
    				TTL:        time.Hour,
    				Org:        "MyOrg",
    				IsCA:       true,
    				RSAKeySize: 2048,
    			},
    			expectedErr: "failed to extract id the SAN extension does not exist",
    		},
    		"RSA Success": {
    			caCertFile:    certChainFile1,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Jan 21 06:07:50 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  4. src/time/sleep_test.go

    			for i := range timers {
    				timers[i] = AfterFunc(Hour, nil)
    			}
    
    			for i := range timers {
    				timers[i].Stop()
    			}
    		}
    	})
    }
    
    func BenchmarkReset(b *testing.B) {
    	b.Run("impl=chan", func(b *testing.B) {
    		benchmark(b, func(pb *testing.PB) {
    			t := NewTimer(Hour)
    			for pb.Next() {
    				t.Reset(Hour)
    			}
    			t.Stop()
    		})
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:33:57 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  5. cmd/local-locker_test.go

    	}
    	if len(l.lockUID) != len(rResources)+len(wResources) {
    		t.Fatalf("lockUID len, got %d, want %d + %d", len(l.lockUID), len(rResources), len(wResources))
    	}
    	// Expire an hour from now, should keep all
    	l.expireOldLocks(time.Hour)
    	if len(l.lockMap) != len(rResources)+len(wResources) {
    		t.Fatalf("lockmap len, got %d, want %d + %d", len(l.lockMap), len(rResources), len(wResources))
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Mar 05 04:57:35 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  6. internal/s3select/sql/parser.go

    	Quantity  *Operand     `parser:" @@ \",\""`
    	Timestamp *PrimaryTerm `parser:" @@ \")\""`
    }
    
    // DateDiffFunc represents the DATE_DIFF function
    type DateDiffFunc struct {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  7. pilot/pkg/model/proxy_config_test.go

    							"B": "2",
    						},
    					}), now.Add(time.Hour)),
    				setCreationTimestamp(newProxyConfig("workload-c", "test-ns",
    					&v1beta1.ProxyConfig{
    						Selector: selector(map[string]string{
    							"test": "selector",
    						}),
    						EnvironmentVariables: map[string]string{
    							"C": "3",
    						},
    					}), now.Add(time.Hour)),
    			},
    			proxy: newMeta(
    				"test-ns",
    				map[string]string{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 21 01:23:19 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  8. security/pkg/pki/util/generate_cert_test.go

    vbw9mUuRBuYCROUaNv2/TAkauxVPCYPq7Ow=
    -----END CERTIFICATE-----`
    )
    
    func TestGenCertKeyFromOptions(t *testing.T) {
    	// set "notBefore" to be one hour ago, this ensures the issued certificate to
    	// be valid as of now.
    	caCertNotBefore := now.Add(-time.Hour)
    	caCertTTL := 24 * time.Hour
    	host := "test_ca.com"
    
    	// Options to generate a CA cert with RSA.
    	rsaCaCertOptions := CertOptions{
    		Host:         host,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 06 12:48:53 UTC 2023
    - 29.4K bytes
    - Viewed (0)
  9. src/time/zoneinfo.go

    	// Most calls to FixedZone have an unnamed zone with an offset by the hour.
    	// Optimize for that case by returning the same *Location for a given hour.
    	const hoursBeforeUTC = 12
    	const hoursAfterUTC = 14
    	hour := offset / 60 / 60
    	if name == "" && -hoursBeforeUTC <= hour && hour <= +hoursAfterUTC && hour*60*60 == offset {
    		unnamedFixedZonesOnce.Do(func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:30 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  10. cmd/kube-scheduler/app/server_test.go

    			},
    			wantLeaderElection: &componentbaseconfig.LeaderElectionConfiguration{
    				LeaderElect:       false,                                    // from CLI args
    				LeaseDuration:     metav1.Duration{Duration: 2 * time.Hour}, // from CLI args
    				RenewDeadline:     metav1.Duration{Duration: 10 * time.Second},
    				RetryPeriod:       metav1.Duration{Duration: 2 * time.Second},
    				ResourceLock:      "leases",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 14.2K bytes
    - Viewed (0)
Back to top