Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 232 for Ttl (0.02 sec)

  1. security/pkg/pki/ca/ca_test.go

    	if !rootCert.Equal(signingCert) {
    		t.Error("CA root cert does not match signing cert")
    	}
    
    	if ttl := rootCert.NotAfter.Sub(rootCert.NotBefore); ttl != caCertTTL {
    		t.Errorf("Unexpected CA certificate TTL (expecting %v, actual %v)", caCertTTL, ttl)
    	}
    
    	if certOrg := rootCert.Issuer.Organization[0]; certOrg != org {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 08:51:27 UTC 2023
    - 29.1K bytes
    - Viewed (0)
  2. security/pkg/pki/ca/fuzz_test.go

    		if err != nil {
    			return
    		}
    
    		// create cert options
    		certOpts := CertOpts{}
    		err = ff.GenerateStruct(&certOpts)
    		if err != nil {
    			return
    		}
    		TTL, err := time.ParseDuration("800ms")
    		if err != nil {
    			return
    		}
    		certOpts.TTL = TTL
    
    		// call target
    		ca.Sign(csrPEM, certOpts)
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 12 14:51:41 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cache_simple.go

    	record, ok := c.cache.Get(key)
    	if !ok {
    		return nil, false
    	}
    	value, ok := record.(*cacheRecord)
    	return value, ok
    }
    
    func (c *simpleCache) set(key string, value *cacheRecord, ttl time.Duration) {
    	c.cache.Set(key, value, ttl)
    }
    
    func (c *simpleCache) remove(key string) {
    	c.cache.Delete(key)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 15 09:52:18 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  4. pkg/test/csrctrl/authority/policies.go

    //   - It sets allowed usages as configured in the policy.
    //   - It sets NotAfter based on the TTL configured in the policy.
    //   - It zeros all extensions.
    //   - It sets BasicConstraints to true.
    //   - It sets IsCA to false.
    type PermissiveSigningPolicy struct {
    	// TTL is the certificate TTL. It's used to calculate the NotAfter value of
    	// the certificate.
    	TTL time.Duration
    	// Usages are the allowed usages of a certificate.
    	Usages []capi.KeyUsage
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 03 17:06:22 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/cache.go

    }
    
    func newSimpleCache(clock clock.Clock, ttl time.Duration, providerName string) *simpleCache {
    	cache := utilcache.NewExpiringWithClock(clock)
    	cache.AllowExpiredGet = true // for a given key, the value (the decryptTransformer) is always the same
    	return &simpleCache{
    		cache: cache,
    		ttl:   ttl,
    		hashPool: &sync.Pool{
    			New: func() interface{} {
    				return sha256.New()
    			},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 31 20:26:58 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  6. src/net/resolverdialfunc_test.go

    func (w ResponseWriter) header() dnsmessage.ResourceHeader {
    	q := w.a.q
    	return dnsmessage.ResourceHeader{
    		Name:  q.Name,
    		Type:  q.Type,
    		Class: q.Class,
    		TTL:   w.a.ttl,
    	}
    }
    
    // SetTTL sets the TTL for subsequent written resources.
    // Once a resource has been written, SetTTL calls are no-ops.
    // That is, it can only be called at most once, before anything
    // else is written.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  7. pkg/kubelet/util/manager/cache_based_manager_test.go

    		ttl, exists := GetObjectTTLFromNodeFunc(getNode)()
    		if exists != testCase.exists {
    			t.Errorf("%d: incorrect parsing: %t", i, exists)
    			continue
    		}
    		if exists && ttl != testCase.ttl {
    			t.Errorf("%d: incorrect ttl: %v", i, ttl)
    		}
    	}
    }
    
    type envSecrets struct {
    	envVarNames  []string
    	envFromNames []string
    }
    
    type secretsToAttach struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/Dfs.java

    import java.io.*;
    
    public class Dfs {
    
        static class CacheEntry {
            long expiration;
            HashMap map;
    
            CacheEntry(long ttl) {
                if (ttl == 0)
                    ttl = Dfs.TTL;
                expiration = System.currentTimeMillis() + ttl * 1000L;
                map = new HashMap();
            }
        }
    
        static LogStream log = LogStream.getInstance();
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 11.7K bytes
    - Viewed (0)
  9. pkg/kubelet/util/manager/cache_based_manager.go

    	getTTL     GetObjectTTLFunc
    }
    
    // NewObjectStore returns a new ttl-based instance of Store interface.
    func NewObjectStore(getObject GetObjectFunc, clock clock.Clock, getTTL GetObjectTTLFunc, ttl time.Duration) Store {
    	return &objectStore{
    		getObject:  getObject,
    		clock:      clock,
    		items:      make(map[objectKey]*objectStoreItem),
    		defaultTTL: ttl,
    		getTTL:     getTTL,
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  10. security/pkg/pki/util/verify_cert.go

    			return fmt.Errorf("unexpected value for 'NotBefore' field: want %v but got %v", nb, cert.NotBefore)
    		}
    
    		if ttl := expectedFields.TTL; ttl != 0 && ttl != (cert.NotAfter.Sub(cert.NotBefore)) {
    			return fmt.Errorf("unexpected value for 'NotAfter' - 'NotBefore': want %v but got %v", ttl, cert.NotAfter.Sub(cert.NotBefore))
    		}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Sep 05 10:37:29 UTC 2022
    - 5.9K bytes
    - Viewed (0)
Back to top