keycertbundle

package
v0.0.0-...-fa361b9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyCertBundle

type KeyCertBundle struct {
	CertPem  []byte
	KeyPem   []byte
	CABundle []byte
}

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

func (w *Watcher) AddWatcher() (int32, chan struct{})

AddWatcher returns channel to receive the updated items.

func (*Watcher) GetCABundle

func (w *Watcher) GetCABundle() []byte

GetCABundle returns the CABundle.

func (*Watcher) GetKeyCertBundle

func (w *Watcher) GetKeyCertBundle() KeyCertBundle

GetKeyCertBundle returns the bundle.

func (*Watcher) RemoveWatcher

func (w *Watcher) RemoveWatcher(id int32)

RemoveWatcher removes the given watcher.

func (*Watcher) SetAndNotify

func (w *Watcher) SetAndNotify(key, cert, caBundle []byte)

SetAndNotify sets the key cert and root cert and notify the watchers.

func (*Watcher) SetFromFilesAndNotify

func (w *Watcher) SetFromFilesAndNotify(keyFile, certFile, rootCert string) error

SetFromFilesAndNotify sets the key cert and root cert from files and notify the watchers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL