Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 208 for expiresIn (0.26 sec)

  1. platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/WorkerDaemonExpirationTest.groovy

        def expiration = new WorkerDaemonExpiration(clientsManager, MemoryAmount.ofGigaBytes(OS_MEMORY_GB).bytes)
    
        def "expires least recently used idle worker daemon to free system memory when requested to release some memory"() {
            given:
            def client1 = reserveNewClient(twoGbOptions)
            def client2 = reserveNewClient(twoGbOptions)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 14:56:11 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

          if (responseCaching.maxAgeSeconds != -1) {
            return SECONDS.toMillis(responseCaching.maxAgeSeconds.toLong())
          }
    
          val expires = this.expires
          if (expires != null) {
            val servedMillis = servedDate?.time ?: receivedResponseMillis
            val delta = expires.time - servedMillis
            return if (delta > 0L) delta else 0L
          }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 15 13:24:48 UTC 2024
    - 12K bytes
    - Viewed (0)
  3. internal/config/cache/remote.go

    		w.Header().Set(xhttp.LastModified, oi.ModTime.UTC().Format(http.TimeFormat))
    	}
    
    	if oi.ETag != "" {
    		w.Header()[xhttp.ETag] = []string{"\"" + oi.ETag + "\""}
    	}
    
    	if oi.Expires != "" {
    		w.Header().Set(xhttp.Expires, oi.Expires)
    	}
    
    	if oi.CacheControl != "" {
    		w.Header().Set(xhttp.CacheControl, oi.CacheControl)
    	}
    
    	statusCode()
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Nov 22 21:46:17 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  4. cmd/signature-v4_test.go

    		},
    		// (1) Should error on an invalid access key.
    		{
    			queryParams: map[string]string{
    				"X-Amz-Algorithm":     signV4Algorithm,
    				"X-Amz-Date":          now.Format(iso8601Format),
    				"X-Amz-Expires":       "60",
    				"X-Amz-Signature":     "badsignature",
    				"X-Amz-SignedHeaders": "host;x-amz-content-sha256;x-amz-date",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. pkg/credentialprovider/plugin/plugin.go

    		return dockerConfig
    	}
    
    	var expiresAt time.Time
    	// nil cache duration means use the default cache duration
    	if response.CacheDuration == nil {
    		if p.defaultCacheDuration == 0 {
    			return dockerConfig
    		}
    		expiresAt = p.clock.Now().Add(p.defaultCacheDuration)
    	} else {
    		expiresAt = p.clock.Now().Add(response.CacheDuration.Duration)
    	}
    
    	cachedEntry := &cacheEntry{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 05 05:07:28 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  6. pkg/kube/rpc_creds.go

    	its.mu.RLock()
    	token := its.Token
    	needRecreate := time.Until(its.Expires) < its.sunsetPeriod
    	its.mu.RUnlock()
    
    	if needRecreate {
    		its.mu.Lock()
    		// This checks the same condition as above.  (The outer check is to bypass the mutex when it is too early to renew)
    		if time.Until(its.Expires) < its.sunsetPeriod {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 4K bytes
    - Viewed (0)
  7. cmd/signature-v2_test.go

    		// (1) Should error on an invalid access key.
    		{
    			queryParams: map[string]string{
    				"Expires":        "60",
    				"Signature":      "badsignature",
    				"AWSAccessKeyId": "Z7IXGOO6BZ0REAN1Q26I",
    			},
    			expected: ErrInvalidAccessKeyID,
    		},
    		// (2) Should error with malformed expires.
    		{
    			queryParams: map[string]string{
    				"Expires":        "60s",
    				"Signature":      "badsignature",
    				"AWSAccessKeyId": accessKey,
    			},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Oct 14 10:08:40 UTC 2022
    - 8K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/apis/bootstraptoken/v1/zz_generated.deepcopy.go

    		*out = new(BootstrapTokenString)
    		**out = **in
    	}
    	if in.TTL != nil {
    		in, out := &in.TTL, &out.TTL
    		*out = new(metav1.Duration)
    		**out = **in
    	}
    	if in.Expires != nil {
    		in, out := &in.Expires, &out.Expires
    		*out = (*in).DeepCopy()
    	}
    	if in.Usages != nil {
    		in, out := &in.Usages, &out.Usages
    		*out = make([]string, len(*in))
    		copy(*out, *in)
    	}
    	if in.Groups != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/cmd/token.go

    	fmt.Fprintln(out, token)
    	return nil
    }
    
    func formatBootstrapToken(obj *outputapiv1alpha3.BootstrapToken) string {
    	ttl := "<forever>"
    	expires := "<never>"
    	if obj.Expires != nil {
    		ttl = duration.ShortHumanDuration(time.Until(obj.Expires.Time))
    		expires = obj.Expires.Format(time.RFC3339)
    	}
    	ttl = fmt.Sprintf("%-9s", ttl)
    
    	usages := strings.Join(obj.Usages, ",")
    	if len(usages) == 0 {
    		usages = "<none>"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 05:47:48 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  10. cmd/signature-v4-parser.go

    	}
    
    	// Save expires in native time.Duration.
    	preSignV4Values.Expires, e = time.ParseDuration(query.Get(xhttp.AmzExpires) + "s")
    	if e != nil {
    		return psv, ErrMalformedExpires
    	}
    
    	if preSignV4Values.Expires < 0 {
    		return psv, ErrNegativeExpires
    	}
    
    	// Check if Expiry time is less than 7 days (value in seconds).
    	if preSignV4Values.Expires.Seconds() > 604800 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top