change ingress and componentstatus plural form

pull/6/head
Chao Xu 2016-01-29 11:11:29 -08:00
parent 76f8a800ed
commit 8531ef4979
9 changed files with 95 additions and 97 deletions

View File

@ -55,9 +55,7 @@ type ClientGenArgs struct {
// NameSystems returns the name system used by the generators in this package. // NameSystems returns the name system used by the generators in this package.
func NameSystems() namer.NameSystems { func NameSystems() namer.NameSystems {
pluralExceptions := map[string]string{ pluralExceptions := map[string]string{
"Endpoints": "Endpoints", "Endpoints": "Endpoints",
"ComponentStatus": "ComponentStatus",
"Ingress": "Ingress",
} }
return namer.NameSystems{ return namer.NameSystems{
"public": namer.NewPublicNamer(0), "public": namer.NewPublicNamer(0),

View File

@ -26,7 +26,7 @@ type ExtensionsInterface interface {
DaemonSetsGetter DaemonSetsGetter
DeploymentsGetter DeploymentsGetter
HorizontalPodAutoscalersGetter HorizontalPodAutoscalersGetter
IngressGetter IngressesGetter
JobsGetter JobsGetter
ScalesGetter ScalesGetter
ThirdPartyResourcesGetter ThirdPartyResourcesGetter
@ -49,8 +49,8 @@ func (c *ExtensionsClient) HorizontalPodAutoscalers(namespace string) Horizontal
return newHorizontalPodAutoscalers(c, namespace) return newHorizontalPodAutoscalers(c, namespace)
} }
func (c *ExtensionsClient) Ingress(namespace string) IngressInterface { func (c *ExtensionsClient) Ingresses(namespace string) IngressInterface {
return newIngress(c, namespace) return newIngresses(c, namespace)
} }
func (c *ExtensionsClient) Jobs(namespace string) JobInterface { func (c *ExtensionsClient) Jobs(namespace string) JobInterface {

View File

@ -37,8 +37,8 @@ func (c *FakeExtensions) HorizontalPodAutoscalers(namespace string) unversioned.
return &FakeHorizontalPodAutoscalers{c, namespace} return &FakeHorizontalPodAutoscalers{c, namespace}
} }
func (c *FakeExtensions) Ingress(namespace string) unversioned.IngressInterface { func (c *FakeExtensions) Ingresses(namespace string) unversioned.IngressInterface {
return &FakeIngress{c, namespace} return &FakeIngresses{c, namespace}
} }
func (c *FakeExtensions) Jobs(namespace string) unversioned.JobInterface { func (c *FakeExtensions) Jobs(namespace string) unversioned.JobInterface {

View File

@ -24,15 +24,15 @@ import (
watch "k8s.io/kubernetes/pkg/watch" watch "k8s.io/kubernetes/pkg/watch"
) )
// FakeIngress implements IngressInterface // FakeIngresses implements IngressInterface
type FakeIngress struct { type FakeIngresses struct {
Fake *FakeExtensions Fake *FakeExtensions
ns string ns string
} }
func (c *FakeIngress) Create(ingress *extensions.Ingress) (result *extensions.Ingress, err error) { func (c *FakeIngresses) Create(ingress *extensions.Ingress) (result *extensions.Ingress, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewCreateAction("ingress", c.ns, ingress), &extensions.Ingress{}) Invokes(core.NewCreateAction("ingresses", c.ns, ingress), &extensions.Ingress{})
if obj == nil { if obj == nil {
return nil, err return nil, err
@ -40,9 +40,9 @@ func (c *FakeIngress) Create(ingress *extensions.Ingress) (result *extensions.In
return obj.(*extensions.Ingress), err return obj.(*extensions.Ingress), err
} }
func (c *FakeIngress) Update(ingress *extensions.Ingress) (result *extensions.Ingress, err error) { func (c *FakeIngresses) Update(ingress *extensions.Ingress) (result *extensions.Ingress, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewUpdateAction("ingress", c.ns, ingress), &extensions.Ingress{}) Invokes(core.NewUpdateAction("ingresses", c.ns, ingress), &extensions.Ingress{})
if obj == nil { if obj == nil {
return nil, err return nil, err
@ -50,9 +50,9 @@ func (c *FakeIngress) Update(ingress *extensions.Ingress) (result *extensions.In
return obj.(*extensions.Ingress), err return obj.(*extensions.Ingress), err
} }
func (c *FakeIngress) UpdateStatus(ingress *extensions.Ingress) (*extensions.Ingress, error) { func (c *FakeIngresses) UpdateStatus(ingress *extensions.Ingress) (*extensions.Ingress, error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewUpdateSubresourceAction("ingress", "status", c.ns, ingress), &extensions.Ingress{}) Invokes(core.NewUpdateSubresourceAction("ingresses", "status", c.ns, ingress), &extensions.Ingress{})
if obj == nil { if obj == nil {
return nil, err return nil, err
@ -60,23 +60,23 @@ func (c *FakeIngress) UpdateStatus(ingress *extensions.Ingress) (*extensions.Ing
return obj.(*extensions.Ingress), err return obj.(*extensions.Ingress), err
} }
func (c *FakeIngress) Delete(name string, options *api.DeleteOptions) error { func (c *FakeIngresses) Delete(name string, options *api.DeleteOptions) error {
_, err := c.Fake. _, err := c.Fake.
Invokes(core.NewDeleteAction("ingress", c.ns, name), &extensions.Ingress{}) Invokes(core.NewDeleteAction("ingresses", c.ns, name), &extensions.Ingress{})
return err return err
} }
func (c *FakeIngress) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { func (c *FakeIngresses) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
action := core.NewDeleteCollectionAction("events", c.ns, listOptions) action := core.NewDeleteCollectionAction("events", c.ns, listOptions)
_, err := c.Fake.Invokes(action, &extensions.IngressList{}) _, err := c.Fake.Invokes(action, &extensions.IngressList{})
return err return err
} }
func (c *FakeIngress) Get(name string) (result *extensions.Ingress, err error) { func (c *FakeIngresses) Get(name string) (result *extensions.Ingress, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewGetAction("ingress", c.ns, name), &extensions.Ingress{}) Invokes(core.NewGetAction("ingresses", c.ns, name), &extensions.Ingress{})
if obj == nil { if obj == nil {
return nil, err return nil, err
@ -84,9 +84,9 @@ func (c *FakeIngress) Get(name string) (result *extensions.Ingress, err error) {
return obj.(*extensions.Ingress), err return obj.(*extensions.Ingress), err
} }
func (c *FakeIngress) List(opts api.ListOptions) (result *extensions.IngressList, err error) { func (c *FakeIngresses) List(opts api.ListOptions) (result *extensions.IngressList, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewListAction("ingress", c.ns, opts), &extensions.IngressList{}) Invokes(core.NewListAction("ingresses", c.ns, opts), &extensions.IngressList{})
if obj == nil { if obj == nil {
return nil, err return nil, err
@ -105,9 +105,9 @@ func (c *FakeIngress) List(opts api.ListOptions) (result *extensions.IngressList
return list, err return list, err
} }
// Watch returns a watch.Interface that watches the requested ingress. // Watch returns a watch.Interface that watches the requested ingresses.
func (c *FakeIngress) Watch(opts api.ListOptions) (watch.Interface, error) { func (c *FakeIngresses) Watch(opts api.ListOptions) (watch.Interface, error) {
return c.Fake. return c.Fake.
InvokesWatch(core.NewWatchAction("ingress", c.ns, opts)) InvokesWatch(core.NewWatchAction("ingresses", c.ns, opts))
} }

View File

@ -22,10 +22,10 @@ import (
watch "k8s.io/kubernetes/pkg/watch" watch "k8s.io/kubernetes/pkg/watch"
) )
// IngressGetter has a method to return a IngressInterface. // IngressesGetter has a method to return a IngressInterface.
// A group's client should implement this interface. // A group's client should implement this interface.
type IngressGetter interface { type IngressesGetter interface {
Ingress(namespace string) IngressInterface Ingresses(namespace string) IngressInterface
} }
// IngressInterface has methods to work with Ingress resources. // IngressInterface has methods to work with Ingress resources.
@ -41,26 +41,26 @@ type IngressInterface interface {
IngressExpansion IngressExpansion
} }
// ingress implements IngressInterface // ingresses implements IngressInterface
type ingress struct { type ingresses struct {
client *ExtensionsClient client *ExtensionsClient
ns string ns string
} }
// newIngress returns a Ingress // newIngresses returns a Ingresses
func newIngress(c *ExtensionsClient, namespace string) *ingress { func newIngresses(c *ExtensionsClient, namespace string) *ingresses {
return &ingress{ return &ingresses{
client: c, client: c,
ns: namespace, ns: namespace,
} }
} }
// Create takes the representation of a ingress and creates it. Returns the server's representation of the ingress, and an error, if there is any. // Create takes the representation of a ingress and creates it. Returns the server's representation of the ingress, and an error, if there is any.
func (c *ingress) Create(ingress *extensions.Ingress) (result *extensions.Ingress, err error) { func (c *ingresses) Create(ingress *extensions.Ingress) (result *extensions.Ingress, err error) {
result = &extensions.Ingress{} result = &extensions.Ingress{}
err = c.client.Post(). err = c.client.Post().
Namespace(c.ns). Namespace(c.ns).
Resource("ingress"). Resource("ingresses").
Body(ingress). Body(ingress).
Do(). Do().
Into(result) Into(result)
@ -68,11 +68,11 @@ func (c *ingress) Create(ingress *extensions.Ingress) (result *extensions.Ingres
} }
// Update takes the representation of a ingress and updates it. Returns the server's representation of the ingress, and an error, if there is any. // Update takes the representation of a ingress and updates it. Returns the server's representation of the ingress, and an error, if there is any.
func (c *ingress) Update(ingress *extensions.Ingress) (result *extensions.Ingress, err error) { func (c *ingresses) Update(ingress *extensions.Ingress) (result *extensions.Ingress, err error) {
result = &extensions.Ingress{} result = &extensions.Ingress{}
err = c.client.Put(). err = c.client.Put().
Namespace(c.ns). Namespace(c.ns).
Resource("ingress"). Resource("ingresses").
Name(ingress.Name). Name(ingress.Name).
Body(ingress). Body(ingress).
Do(). Do().
@ -80,11 +80,11 @@ func (c *ingress) Update(ingress *extensions.Ingress) (result *extensions.Ingres
return return
} }
func (c *ingress) UpdateStatus(ingress *extensions.Ingress) (result *extensions.Ingress, err error) { func (c *ingresses) UpdateStatus(ingress *extensions.Ingress) (result *extensions.Ingress, err error) {
result = &extensions.Ingress{} result = &extensions.Ingress{}
err = c.client.Put(). err = c.client.Put().
Namespace(c.ns). Namespace(c.ns).
Resource("ingress"). Resource("ingresses").
Name(ingress.Name). Name(ingress.Name).
SubResource("status"). SubResource("status").
Body(ingress). Body(ingress).
@ -94,10 +94,10 @@ func (c *ingress) UpdateStatus(ingress *extensions.Ingress) (result *extensions.
} }
// Delete takes name of the ingress and deletes it. Returns an error if one occurs. // Delete takes name of the ingress and deletes it. Returns an error if one occurs.
func (c *ingress) Delete(name string, options *api.DeleteOptions) error { func (c *ingresses) Delete(name string, options *api.DeleteOptions) error {
return c.client.Delete(). return c.client.Delete().
Namespace(c.ns). Namespace(c.ns).
Resource("ingress"). Resource("ingresses").
Name(name). Name(name).
Body(options). Body(options).
Do(). Do().
@ -105,10 +105,10 @@ func (c *ingress) Delete(name string, options *api.DeleteOptions) error {
} }
// DeleteCollection deletes a collection of objects. // DeleteCollection deletes a collection of objects.
func (c *ingress) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { func (c *ingresses) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
return c.client.Delete(). return c.client.Delete().
Namespace(c.ns). Namespace(c.ns).
Resource("ingress"). Resource("ingresses").
VersionedParams(&listOptions, api.Scheme). VersionedParams(&listOptions, api.Scheme).
Body(options). Body(options).
Do(). Do().
@ -116,35 +116,35 @@ func (c *ingress) DeleteCollection(options *api.DeleteOptions, listOptions api.L
} }
// Get takes name of the ingress, and returns the corresponding ingress object, and an error if there is any. // Get takes name of the ingress, and returns the corresponding ingress object, and an error if there is any.
func (c *ingress) Get(name string) (result *extensions.Ingress, err error) { func (c *ingresses) Get(name string) (result *extensions.Ingress, err error) {
result = &extensions.Ingress{} result = &extensions.Ingress{}
err = c.client.Get(). err = c.client.Get().
Namespace(c.ns). Namespace(c.ns).
Resource("ingress"). Resource("ingresses").
Name(name). Name(name).
Do(). Do().
Into(result) Into(result)
return return
} }
// List takes label and field selectors, and returns the list of Ingress that match those selectors. // List takes label and field selectors, and returns the list of Ingresses that match those selectors.
func (c *ingress) List(opts api.ListOptions) (result *extensions.IngressList, err error) { func (c *ingresses) List(opts api.ListOptions) (result *extensions.IngressList, err error) {
result = &extensions.IngressList{} result = &extensions.IngressList{}
err = c.client.Get(). err = c.client.Get().
Namespace(c.ns). Namespace(c.ns).
Resource("ingress"). Resource("ingresses").
VersionedParams(&opts, api.Scheme). VersionedParams(&opts, api.Scheme).
Do(). Do().
Into(result) Into(result)
return return
} }
// Watch returns a watch.Interface that watches the requested ingress. // Watch returns a watch.Interface that watches the requested ingresses.
func (c *ingress) Watch(opts api.ListOptions) (watch.Interface, error) { func (c *ingresses) Watch(opts api.ListOptions) (watch.Interface, error) {
return c.client.Get(). return c.client.Get().
Prefix("watch"). Prefix("watch").
Namespace(c.ns). Namespace(c.ns).
Resource("ingress"). Resource("ingresses").
VersionedParams(&opts, api.Scheme). VersionedParams(&opts, api.Scheme).
Watch() Watch()
} }

View File

@ -21,10 +21,10 @@ import (
watch "k8s.io/kubernetes/pkg/watch" watch "k8s.io/kubernetes/pkg/watch"
) )
// ComponentStatusGetter has a method to return a ComponentStatusInterface. // ComponentStatusesGetter has a method to return a ComponentStatusInterface.
// A group's client should implement this interface. // A group's client should implement this interface.
type ComponentStatusGetter interface { type ComponentStatusesGetter interface {
ComponentStatus() ComponentStatusInterface ComponentStatuses() ComponentStatusInterface
} }
// ComponentStatusInterface has methods to work with ComponentStatus resources. // ComponentStatusInterface has methods to work with ComponentStatus resources.
@ -39,23 +39,23 @@ type ComponentStatusInterface interface {
ComponentStatusExpansion ComponentStatusExpansion
} }
// componentStatus implements ComponentStatusInterface // componentStatuses implements ComponentStatusInterface
type componentStatus struct { type componentStatuses struct {
client *LegacyClient client *LegacyClient
} }
// newComponentStatus returns a ComponentStatus // newComponentStatuses returns a ComponentStatuses
func newComponentStatus(c *LegacyClient) *componentStatus { func newComponentStatuses(c *LegacyClient) *componentStatuses {
return &componentStatus{ return &componentStatuses{
client: c, client: c,
} }
} }
// Create takes the representation of a componentStatus and creates it. Returns the server's representation of the componentStatus, and an error, if there is any. // Create takes the representation of a componentStatus and creates it. Returns the server's representation of the componentStatus, and an error, if there is any.
func (c *componentStatus) Create(componentStatus *api.ComponentStatus) (result *api.ComponentStatus, err error) { func (c *componentStatuses) Create(componentStatus *api.ComponentStatus) (result *api.ComponentStatus, err error) {
result = &api.ComponentStatus{} result = &api.ComponentStatus{}
err = c.client.Post(). err = c.client.Post().
Resource("componentstatus"). Resource("componentstatuses").
Body(componentStatus). Body(componentStatus).
Do(). Do().
Into(result) Into(result)
@ -63,10 +63,10 @@ func (c *componentStatus) Create(componentStatus *api.ComponentStatus) (result *
} }
// Update takes the representation of a componentStatus and updates it. Returns the server's representation of the componentStatus, and an error, if there is any. // Update takes the representation of a componentStatus and updates it. Returns the server's representation of the componentStatus, and an error, if there is any.
func (c *componentStatus) Update(componentStatus *api.ComponentStatus) (result *api.ComponentStatus, err error) { func (c *componentStatuses) Update(componentStatus *api.ComponentStatus) (result *api.ComponentStatus, err error) {
result = &api.ComponentStatus{} result = &api.ComponentStatus{}
err = c.client.Put(). err = c.client.Put().
Resource("componentstatus"). Resource("componentstatuses").
Name(componentStatus.Name). Name(componentStatus.Name).
Body(componentStatus). Body(componentStatus).
Do(). Do().
@ -75,9 +75,9 @@ func (c *componentStatus) Update(componentStatus *api.ComponentStatus) (result *
} }
// Delete takes name of the componentStatus and deletes it. Returns an error if one occurs. // Delete takes name of the componentStatus and deletes it. Returns an error if one occurs.
func (c *componentStatus) Delete(name string, options *api.DeleteOptions) error { func (c *componentStatuses) Delete(name string, options *api.DeleteOptions) error {
return c.client.Delete(). return c.client.Delete().
Resource("componentstatus"). Resource("componentstatuses").
Name(name). Name(name).
Body(options). Body(options).
Do(). Do().
@ -85,9 +85,9 @@ func (c *componentStatus) Delete(name string, options *api.DeleteOptions) error
} }
// DeleteCollection deletes a collection of objects. // DeleteCollection deletes a collection of objects.
func (c *componentStatus) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { func (c *componentStatuses) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
return c.client.Delete(). return c.client.Delete().
Resource("componentstatus"). Resource("componentstatuses").
VersionedParams(&listOptions, api.Scheme). VersionedParams(&listOptions, api.Scheme).
Body(options). Body(options).
Do(). Do().
@ -95,32 +95,32 @@ func (c *componentStatus) DeleteCollection(options *api.DeleteOptions, listOptio
} }
// Get takes name of the componentStatus, and returns the corresponding componentStatus object, and an error if there is any. // Get takes name of the componentStatus, and returns the corresponding componentStatus object, and an error if there is any.
func (c *componentStatus) Get(name string) (result *api.ComponentStatus, err error) { func (c *componentStatuses) Get(name string) (result *api.ComponentStatus, err error) {
result = &api.ComponentStatus{} result = &api.ComponentStatus{}
err = c.client.Get(). err = c.client.Get().
Resource("componentstatus"). Resource("componentstatuses").
Name(name). Name(name).
Do(). Do().
Into(result) Into(result)
return return
} }
// List takes label and field selectors, and returns the list of ComponentStatus that match those selectors. // List takes label and field selectors, and returns the list of ComponentStatuses that match those selectors.
func (c *componentStatus) List(opts api.ListOptions) (result *api.ComponentStatusList, err error) { func (c *componentStatuses) List(opts api.ListOptions) (result *api.ComponentStatusList, err error) {
result = &api.ComponentStatusList{} result = &api.ComponentStatusList{}
err = c.client.Get(). err = c.client.Get().
Resource("componentstatus"). Resource("componentstatuses").
VersionedParams(&opts, api.Scheme). VersionedParams(&opts, api.Scheme).
Do(). Do().
Into(result) Into(result)
return return
} }
// Watch returns a watch.Interface that watches the requested componentStatus. // Watch returns a watch.Interface that watches the requested componentStatuses.
func (c *componentStatus) Watch(opts api.ListOptions) (watch.Interface, error) { func (c *componentStatuses) Watch(opts api.ListOptions) (watch.Interface, error) {
return c.client.Get(). return c.client.Get().
Prefix("watch"). Prefix("watch").
Resource("componentstatus"). Resource("componentstatuses").
VersionedParams(&opts, api.Scheme). VersionedParams(&opts, api.Scheme).
Watch() Watch()
} }

View File

@ -23,54 +23,54 @@ import (
watch "k8s.io/kubernetes/pkg/watch" watch "k8s.io/kubernetes/pkg/watch"
) )
// FakeComponentStatus implements ComponentStatusInterface // FakeComponentStatuses implements ComponentStatusInterface
type FakeComponentStatus struct { type FakeComponentStatuses struct {
Fake *FakeLegacy Fake *FakeLegacy
} }
func (c *FakeComponentStatus) Create(componentStatus *api.ComponentStatus) (result *api.ComponentStatus, err error) { func (c *FakeComponentStatuses) Create(componentStatus *api.ComponentStatus) (result *api.ComponentStatus, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewRootCreateAction("componentstatus", componentStatus), &api.ComponentStatus{}) Invokes(core.NewRootCreateAction("componentstatuses", componentStatus), &api.ComponentStatus{})
if obj == nil { if obj == nil {
return nil, err return nil, err
} }
return obj.(*api.ComponentStatus), err return obj.(*api.ComponentStatus), err
} }
func (c *FakeComponentStatus) Update(componentStatus *api.ComponentStatus) (result *api.ComponentStatus, err error) { func (c *FakeComponentStatuses) Update(componentStatus *api.ComponentStatus) (result *api.ComponentStatus, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewRootUpdateAction("componentstatus", componentStatus), &api.ComponentStatus{}) Invokes(core.NewRootUpdateAction("componentstatuses", componentStatus), &api.ComponentStatus{})
if obj == nil { if obj == nil {
return nil, err return nil, err
} }
return obj.(*api.ComponentStatus), err return obj.(*api.ComponentStatus), err
} }
func (c *FakeComponentStatus) Delete(name string, options *api.DeleteOptions) error { func (c *FakeComponentStatuses) Delete(name string, options *api.DeleteOptions) error {
_, err := c.Fake. _, err := c.Fake.
Invokes(core.NewRootDeleteAction("componentstatus", name), &api.ComponentStatus{}) Invokes(core.NewRootDeleteAction("componentstatuses", name), &api.ComponentStatus{})
return err return err
} }
func (c *FakeComponentStatus) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { func (c *FakeComponentStatuses) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
action := core.NewRootDeleteCollectionAction("events", listOptions) action := core.NewRootDeleteCollectionAction("events", listOptions)
_, err := c.Fake.Invokes(action, &api.ComponentStatusList{}) _, err := c.Fake.Invokes(action, &api.ComponentStatusList{})
return err return err
} }
func (c *FakeComponentStatus) Get(name string) (result *api.ComponentStatus, err error) { func (c *FakeComponentStatuses) Get(name string) (result *api.ComponentStatus, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewRootGetAction("componentstatus", name), &api.ComponentStatus{}) Invokes(core.NewRootGetAction("componentstatuses", name), &api.ComponentStatus{})
if obj == nil { if obj == nil {
return nil, err return nil, err
} }
return obj.(*api.ComponentStatus), err return obj.(*api.ComponentStatus), err
} }
func (c *FakeComponentStatus) List(opts api.ListOptions) (result *api.ComponentStatusList, err error) { func (c *FakeComponentStatuses) List(opts api.ListOptions) (result *api.ComponentStatusList, err error) {
obj, err := c.Fake. obj, err := c.Fake.
Invokes(core.NewRootListAction("componentstatus", opts), &api.ComponentStatusList{}) Invokes(core.NewRootListAction("componentstatuses", opts), &api.ComponentStatusList{})
if obj == nil { if obj == nil {
return nil, err return nil, err
} }
@ -88,8 +88,8 @@ func (c *FakeComponentStatus) List(opts api.ListOptions) (result *api.ComponentS
return list, err return list, err
} }
// Watch returns a watch.Interface that watches the requested componentStatus. // Watch returns a watch.Interface that watches the requested componentStatuses.
func (c *FakeComponentStatus) Watch(opts api.ListOptions) (watch.Interface, error) { func (c *FakeComponentStatuses) Watch(opts api.ListOptions) (watch.Interface, error) {
return c.Fake. return c.Fake.
InvokesWatch(core.NewRootWatchAction("componentstatus", opts)) InvokesWatch(core.NewRootWatchAction("componentstatuses", opts))
} }

View File

@ -25,8 +25,8 @@ type FakeLegacy struct {
*core.Fake *core.Fake
} }
func (c *FakeLegacy) ComponentStatus() unversioned.ComponentStatusInterface { func (c *FakeLegacy) ComponentStatuses() unversioned.ComponentStatusInterface {
return &FakeComponentStatus{c} return &FakeComponentStatuses{c}
} }
func (c *FakeLegacy) Endpoints(namespace string) unversioned.EndpointsInterface { func (c *FakeLegacy) Endpoints(namespace string) unversioned.EndpointsInterface {

View File

@ -23,7 +23,7 @@ import (
) )
type LegacyInterface interface { type LegacyInterface interface {
ComponentStatusGetter ComponentStatusesGetter
EndpointsGetter EndpointsGetter
EventsGetter EventsGetter
LimitRangesGetter LimitRangesGetter
@ -45,8 +45,8 @@ type LegacyClient struct {
*unversioned.RESTClient *unversioned.RESTClient
} }
func (c *LegacyClient) ComponentStatus() ComponentStatusInterface { func (c *LegacyClient) ComponentStatuses() ComponentStatusInterface {
return newComponentStatus(c) return newComponentStatuses(c)
} }
func (c *LegacyClient) Endpoints(namespace string) EndpointsInterface { func (c *LegacyClient) Endpoints(namespace string) EndpointsInterface {