Add missing Kubernetes doc strings

This commit is contained in:
Fabian Reinartz 2015-08-18 14:37:28 +02:00
parent 205d391409
commit 0f5022c091
1 changed files with 2 additions and 0 deletions

View File

@ -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)