Skip to content

Commit

Permalink
Merge pull request kubernetes#2346 from pmorie/endpoints
Browse files Browse the repository at this point in the history
Make client.Interface contain EndpointsNamespacer
  • Loading branch information
smarterclayton committed Nov 13, 2014
2 parents d4108ec + 47b0f33 commit 97ee5d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ type Interface interface {
PodsNamespacer
ReplicationControllersNamespacer
ServicesNamespacer
EndpointsNamespacer
VersionInterface
MinionsInterface
EventsInterface
Expand Down
6 changes: 3 additions & 3 deletions pkg/client/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 97ee5d9

Please sign in to comment.