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