From 47b0f3333e6f47eb7054ebb9c8ed667f90672e19 Mon Sep 17 00:00:00 2001 From: Paul Morie Date: Thu, 13 Nov 2014 09:25:47 -0500 Subject: [PATCH] Make client.Interface contain EndpointsNamespacer --- pkg/client/client.go | 1 + pkg/client/endpoints.go | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/client/client.go b/pkg/client/client.go index 1773ab85775..7fd0772ec56 100644 --- a/pkg/client/client.go +++ b/pkg/client/client.go @@ -30,6 +30,7 @@ type Interface interface { PodsNamespacer ReplicationControllersNamespacer ServicesNamespacer + EndpointsNamespacer VersionInterface MinionsInterface EventsInterface diff --git a/pkg/client/endpoints.go b/pkg/client/endpoints.go index 37603211663..b6de397dcf8 100644 --- a/pkg/client/endpoints.go +++ b/pkg/client/endpoints.go @@ -24,9 +24,9 @@ import ( "github.com/GoogleCloudPlatform/kubernetes/pkg/watch" ) -// EndpointsNamespacer has methods to work with Endpoint resources in a namespace +// EndpointsNamespacer has methods to work with Endpoints resources in a namespace type EndpointsNamespacer interface { - Endpoint(namespace string) EndpointsInterface + Endpoints(namespace string) EndpointsInterface } // EndpointsInterface has methods to work with Endpoints resources @@ -38,7 +38,7 @@ type EndpointsInterface interface { Watch(label, field labels.Selector, resourceVersion string) (watch.Interface, error) } -// endpoints implements EndpointsNamespacer interface +// endpoints implements EndpointsInterface type endpoints struct { r *Client ns string