Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetKeyCertBundle (0.18 sec)

  1. pilot/pkg/keycertbundle/watcher_test.go

    	case <-watch1:
    		keyCertBundle := watcher.GetKeyCertBundle()
    		if !bytes.Equal(keyCertBundle.KeyPem, key) || !bytes.Equal(keyCertBundle.CertPem, cert) ||
    			!bytes.Equal(keyCertBundle.CABundle, ca) {
    			t.Errorf("got wrong keyCertBundle %v", keyCertBundle)
    		}
    	default:
    		t.Errorf("watcher1 watched non keyCertBundle")
    	}
    	select {
    	case <-watch2:
    		keyCertBundle := watcher.GetKeyCertBundle()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 28 17:46:00 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  2. pilot/pkg/keycertbundle/watcher.go

    }
    
    // GetCABundle returns the CABundle.
    func (w *Watcher) GetCABundle() []byte {
    	w.mutex.RLock()
    	defer w.mutex.RUnlock()
    	return w.bundle.CABundle
    }
    
    // GetKeyCertBundle returns the bundle.
    func (w *Watcher) GetKeyCertBundle() KeyCertBundle {
    	w.mutex.RLock()
    	defer w.mutex.RUnlock()
    	return w.bundle
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 05 14:00:18 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top