Add missing Kubernetes doc strings
This commit is contained in:
parent
205d391409
commit
0f5022c091
|
@ -64,6 +64,7 @@ const (
|
||||||
serviceEndpointsURL = apiPrefix + "/namespaces/%s/endpoints/%s"
|
serviceEndpointsURL = apiPrefix + "/namespaces/%s/endpoints/%s"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// KubernetesDiscovery implements a TargetProvider for Kubernetes services.
|
||||||
type KubernetesDiscovery struct {
|
type KubernetesDiscovery struct {
|
||||||
client *http.Client
|
client *http.Client
|
||||||
Conf *config.KubernetesSDConfig
|
Conf *config.KubernetesSDConfig
|
||||||
|
@ -78,6 +79,7 @@ type KubernetesDiscovery struct {
|
||||||
runDone chan struct{}
|
runDone chan struct{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Initialize sets up the discovery for usage.
|
||||||
func (kd *KubernetesDiscovery) Initialize() error {
|
func (kd *KubernetesDiscovery) Initialize() error {
|
||||||
client, err := newKubernetesHTTPClient(kd.Conf)
|
client, err := newKubernetesHTTPClient(kd.Conf)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue