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