Documentation ¶
Index ¶
- type KeyCertBundle
- type Watcher
- func (w *Watcher) AddWatcher() (int32, chan struct{})
- func (w *Watcher) GetCABundle() []byte
- func (w *Watcher) GetKeyCertBundle() KeyCertBundle
- func (w *Watcher) RemoveWatcher(id int32)
- func (w *Watcher) SetAndNotify(key, cert, caBundle []byte)
- func (w *Watcher) SetFromFilesAndNotify(keyFile, certFile, rootCert string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyCertBundle ¶
KeyCertBundle stores the cert, private key and root cert for istiod.
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
func NewWatcher ¶
func NewWatcher() *Watcher
func (*Watcher) AddWatcher ¶
AddWatcher returns channel to receive the updated items.
func (*Watcher) GetCABundle ¶
GetCABundle returns the CABundle.
func (*Watcher) GetKeyCertBundle ¶
func (w *Watcher) GetKeyCertBundle() KeyCertBundle
GetKeyCertBundle returns the bundle.
func (*Watcher) RemoveWatcher ¶
RemoveWatcher removes the given watcher.
func (*Watcher) SetAndNotify ¶
SetAndNotify sets the key cert and root cert and notify the watchers.
func (*Watcher) SetFromFilesAndNotify ¶
SetFromFilesAndNotify sets the key cert and root cert from files and notify the watchers.
Click to show internal directories.
Click to hide internal directories.