mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Merge pull request #2346 from pmorie/endpoints
Make client.Interface contain EndpointsNamespacer
This commit is contained in:
commit
97ee5d9b79
@ -30,6 +30,7 @@ type Interface interface {
|
|||||||
PodsNamespacer
|
PodsNamespacer
|
||||||
ReplicationControllersNamespacer
|
ReplicationControllersNamespacer
|
||||||
ServicesNamespacer
|
ServicesNamespacer
|
||||||
|
EndpointsNamespacer
|
||||||
VersionInterface
|
VersionInterface
|
||||||
MinionsInterface
|
MinionsInterface
|
||||||
EventsInterface
|
EventsInterface
|
||||||
|
@ -24,9 +24,9 @@ import (
|
|||||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/watch"
|
"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 {
|
type EndpointsNamespacer interface {
|
||||||
Endpoint(namespace string) EndpointsInterface
|
Endpoints(namespace string) EndpointsInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
// EndpointsInterface has methods to work with Endpoints resources
|
// 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)
|
Watch(label, field labels.Selector, resourceVersion string) (watch.Interface, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// endpoints implements EndpointsNamespacer interface
|
// endpoints implements EndpointsInterface
|
||||||
type endpoints struct {
|
type endpoints struct {
|
||||||
r *Client
|
r *Client
|
||||||
ns string
|
ns string
|
||||||
|
Loading…
Reference in New Issue
Block a user