mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
Make client.Interface contain EndpointsNamespacer
This commit is contained in:
parent
d4108ec47e
commit
47b0f3333e
@ -30,6 +30,7 @@ type Interface interface {
|
||||
PodsNamespacer
|
||||
ReplicationControllersNamespacer
|
||||
ServicesNamespacer
|
||||
EndpointsNamespacer
|
||||
VersionInterface
|
||||
MinionsInterface
|
||||
EventsInterface
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user