generated from crossplane/provider-template
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathconfig.go
29 lines (25 loc) · 885 Bytes
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package kafka
// Config is a Kafka client configuration
type Config struct {
Brokers []string `json:"brokers"`
SASL *SASL `json:"sasl,omitempty"`
TLS *TLS `json:"tls,omitempty"`
}
// SASL is an sasl option
type SASL struct {
Mechanism string `json:"mechanism"`
Username string `json:"username"`
Password string `json:"password"`
}
// TLS is an option for enabling encryption in transit
type TLS struct {
ClientCertificateSecretRef *ClientCertificateSecretRef `json:"clientCertificateSecretRef,omitempty"`
InsecureSkipVerify bool `json:"insecureSkipVerify"`
}
// ClientCertificateSecretRef is a TLS option for enable mTLS
type ClientCertificateSecretRef struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
KeyField string `json:"keyField,omitempty"`
CertField string `json:"certField,omitempty"`
}