Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTLSNotConfigured = errors.New("tls config is not yet set")
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn interface {
grpc.ClientConnInterface
io.Closer
GetState() connectivity.State
}
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool keeps the list of clients to inter-cp servers. Because the list of inter-cp servers changes in runtime, we need to properly manage the connections to them (initialize, share, close etc.) Pool helps us to not reimplement this for every inter-cp service (catalog, envoyadmin, etc.)
func (*Pool) SetTLSConfig ¶
SetTLSConfig can configure TLS in runtime. Because CA of the inter-cp server is managed by the CP in the runtime we cannot configure it when we create the pool.
type TLSConfig ¶
type TLSConfig struct {
CaCert x509.Certificate
ClientCert tls.Certificate
}
Click to show internal directories.
Click to hide internal directories.