Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeKumaV1alpha1
- type FakeTrafficRoutes
- func (c *FakeTrafficRoutes) Create(ctx context.Context, trafficRoute *v1alpha1.TrafficRoute, ...) (result *v1alpha1.TrafficRoute, err error)
- func (c *FakeTrafficRoutes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeTrafficRoutes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeTrafficRoutes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.TrafficRoute, err error)
- func (c *FakeTrafficRoutes) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.TrafficRouteList, err error)
- func (c *FakeTrafficRoutes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.TrafficRoute, err error)
- func (c *FakeTrafficRoutes) Update(ctx context.Context, trafficRoute *v1alpha1.TrafficRoute, ...) (result *v1alpha1.TrafficRoute, err error)
- func (c *FakeTrafficRoutes) 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 FakeKumaV1alpha1 ¶
func (*FakeKumaV1alpha1) RESTClient ¶
func (c *FakeKumaV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeKumaV1alpha1) TrafficRoutes ¶
func (c *FakeKumaV1alpha1) TrafficRoutes() v1alpha1.TrafficRouteInterface
type FakeTrafficRoutes ¶
type FakeTrafficRoutes struct {
Fake *FakeKumaV1alpha1
}
FakeTrafficRoutes implements TrafficRouteInterface
func (*FakeTrafficRoutes) Create ¶
func (c *FakeTrafficRoutes) Create(ctx context.Context, trafficRoute *v1alpha1.TrafficRoute, opts v1.CreateOptions) (result *v1alpha1.TrafficRoute, err error)
Create takes the representation of a trafficRoute and creates it. Returns the server's representation of the trafficRoute, and an error, if there is any.
func (*FakeTrafficRoutes) Delete ¶
func (c *FakeTrafficRoutes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the trafficRoute and deletes it. Returns an error if one occurs.
func (*FakeTrafficRoutes) DeleteCollection ¶
func (c *FakeTrafficRoutes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeTrafficRoutes) Get ¶
func (c *FakeTrafficRoutes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.TrafficRoute, err error)
Get takes name of the trafficRoute, and returns the corresponding trafficRoute object, and an error if there is any.
func (*FakeTrafficRoutes) List ¶
func (c *FakeTrafficRoutes) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.TrafficRouteList, err error)
List takes label and field selectors, and returns the list of TrafficRoutes that match those selectors.
func (*FakeTrafficRoutes) Patch ¶
func (c *FakeTrafficRoutes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.TrafficRoute, err error)
Patch applies the patch and returns the patched trafficRoute.
func (*FakeTrafficRoutes) Update ¶
func (c *FakeTrafficRoutes) Update(ctx context.Context, trafficRoute *v1alpha1.TrafficRoute, opts v1.UpdateOptions) (result *v1alpha1.TrafficRoute, err error)
Update takes the representation of a trafficRoute and updates it. Returns the server's representation of the trafficRoute, and an error, if there is any.
func (*FakeTrafficRoutes) Watch ¶
func (c *FakeTrafficRoutes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested trafficRoutes.