mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
Make client.Interface contain EndpointsNamespacer
This commit is contained in:
parent
d4108ec47e
commit
47b0f3333e
@ -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