Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeServices
- func (c *FakeServices) Create(ctx context.Context, service *v1beta1.Service, opts v1.CreateOptions) (result *v1beta1.Service, err error)
- func (c *FakeServices) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeServices) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeServices) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Service, err error)
- func (c *FakeServices) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ServiceList, err error)
- func (c *FakeServices) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1beta1.Service, err error)
- func (c *FakeServices) Update(ctx context.Context, service *v1beta1.Service, opts v1.UpdateOptions) (result *v1beta1.Service, err error)
- func (c *FakeServices) UpdateStatus(ctx context.Context, service *v1beta1.Service, opts v1.UpdateOptions) (*v1beta1.Service, error)
- func (c *FakeServices) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeServiceusageV1beta1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeServices ¶
type FakeServices struct { Fake *FakeServiceusageV1beta1 // contains filtered or unexported fields }
FakeServices implements ServiceInterface
func (*FakeServices) Create ¶
func (c *FakeServices) Create(ctx context.Context, service *v1beta1.Service, opts v1.CreateOptions) (result *v1beta1.Service, err error)
Create takes the representation of a service and creates it. Returns the server's representation of the service, and an error, if there is any.
func (*FakeServices) Delete ¶
func (c *FakeServices) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the service and deletes it. Returns an error if one occurs.
func (*FakeServices) DeleteCollection ¶
func (c *FakeServices) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeServices) Get ¶
func (c *FakeServices) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Service, err error)
Get takes name of the service, and returns the corresponding service object, and an error if there is any.
func (*FakeServices) List ¶
func (c *FakeServices) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ServiceList, err error)
List takes label and field selectors, and returns the list of Services that match those selectors.
func (*FakeServices) Patch ¶
func (c *FakeServices) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Service, err error)
Patch applies the patch and returns the patched service.
func (*FakeServices) Update ¶
func (c *FakeServices) Update(ctx context.Context, service *v1beta1.Service, opts v1.UpdateOptions) (result *v1beta1.Service, err error)
Update takes the representation of a service and updates it. Returns the server's representation of the service, and an error, if there is any.
func (*FakeServices) UpdateStatus ¶
func (c *FakeServices) UpdateStatus(ctx context.Context, service *v1beta1.Service, opts v1.UpdateOptions) (*v1beta1.Service, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeServices) Watch ¶
func (c *FakeServices) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested services.
type FakeServiceusageV1beta1 ¶
func (*FakeServiceusageV1beta1) RESTClient ¶
func (c *FakeServiceusageV1beta1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeServiceusageV1beta1) Services ¶
func (c *FakeServiceusageV1beta1) Services(namespace string) v1beta1.ServiceInterface