Make client.Interface contain EndpointsNamespacer

This commit is contained in:
Paul Morie 2014-11-13 09:25:47 -05:00
parent d4108ec47e
commit 47b0f3333e
2 changed files with 4 additions and 3 deletions

View File

@ -30,6 +30,7 @@ type Interface interface {
PodsNamespacer
ReplicationControllersNamespacer
ServicesNamespacer
EndpointsNamespacer
VersionInterface
MinionsInterface
EventsInterface

View File

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