fake

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package fake has the automatically generated clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeHubs

type FakeHubs struct {
	Fake *FakeTrafficV1alpha2
	// contains filtered or unexported fields
}

FakeHubs implements HubInterface

func (*FakeHubs) Create

func (c *FakeHubs) Create(ctx context.Context, hub *v1alpha2.Hub, opts v1.CreateOptions) (result *v1alpha2.Hub, err error)

Create takes the representation of a hub and creates it. Returns the server's representation of the hub, and an error, if there is any.

func (*FakeHubs) Delete

func (c *FakeHubs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the hub and deletes it. Returns an error if one occurs.

func (*FakeHubs) DeleteCollection

func (c *FakeHubs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeHubs) Get

func (c *FakeHubs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Hub, err error)

Get takes name of the hub, and returns the corresponding hub object, and an error if there is any.

func (*FakeHubs) List

func (c *FakeHubs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.HubList, err error)

List takes label and field selectors, and returns the list of Hubs that match those selectors.

func (*FakeHubs) Patch

func (c *FakeHubs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Hub, err error)

Patch applies the patch and returns the patched hub.

func (*FakeHubs) Update

func (c *FakeHubs) Update(ctx context.Context, hub *v1alpha2.Hub, opts v1.UpdateOptions) (result *v1alpha2.Hub, err error)

Update takes the representation of a hub and updates it. Returns the server's representation of the hub, and an error, if there is any.

func (*FakeHubs) UpdateStatus

func (c *FakeHubs) UpdateStatus(ctx context.Context, hub *v1alpha2.Hub, opts v1.UpdateOptions) (*v1alpha2.Hub, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeHubs) Watch

func (c *FakeHubs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested hubs.

type FakeRoutePolicies

type FakeRoutePolicies struct {
	Fake *FakeTrafficV1alpha2
	// contains filtered or unexported fields
}

FakeRoutePolicies implements RoutePolicyInterface

func (*FakeRoutePolicies) Create

func (c *FakeRoutePolicies) Create(ctx context.Context, routePolicy *v1alpha2.RoutePolicy, opts v1.CreateOptions) (result *v1alpha2.RoutePolicy, err error)

Create takes the representation of a routePolicy and creates it. Returns the server's representation of the routePolicy, and an error, if there is any.

func (*FakeRoutePolicies) Delete

func (c *FakeRoutePolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the routePolicy and deletes it. Returns an error if one occurs.

func (*FakeRoutePolicies) DeleteCollection

func (c *FakeRoutePolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeRoutePolicies) Get

func (c *FakeRoutePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.RoutePolicy, err error)

Get takes name of the routePolicy, and returns the corresponding routePolicy object, and an error if there is any.

func (*FakeRoutePolicies) List

func (c *FakeRoutePolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.RoutePolicyList, err error)

List takes label and field selectors, and returns the list of RoutePolicies that match those selectors.

func (*FakeRoutePolicies) Patch

func (c *FakeRoutePolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.RoutePolicy, err error)

Patch applies the patch and returns the patched routePolicy.

func (*FakeRoutePolicies) Update

func (c *FakeRoutePolicies) Update(ctx context.Context, routePolicy *v1alpha2.RoutePolicy, opts v1.UpdateOptions) (result *v1alpha2.RoutePolicy, err error)

Update takes the representation of a routePolicy and updates it. Returns the server's representation of the routePolicy, and an error, if there is any.

func (*FakeRoutePolicies) UpdateStatus

func (c *FakeRoutePolicies) UpdateStatus(ctx context.Context, routePolicy *v1alpha2.RoutePolicy, opts v1.UpdateOptions) (*v1alpha2.RoutePolicy, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeRoutePolicies) Watch

Watch returns a watch.Interface that watches the requested routePolicies.

type FakeRoutes

type FakeRoutes struct {
	Fake *FakeTrafficV1alpha2
	// contains filtered or unexported fields
}

FakeRoutes implements RouteInterface

func (*FakeRoutes) Create

func (c *FakeRoutes) Create(ctx context.Context, route *v1alpha2.Route, opts v1.CreateOptions) (result *v1alpha2.Route, err error)

Create takes the representation of a route and creates it. Returns the server's representation of the route, and an error, if there is any.

func (*FakeRoutes) Delete

func (c *FakeRoutes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the route and deletes it. Returns an error if one occurs.

func (*FakeRoutes) DeleteCollection

func (c *FakeRoutes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeRoutes) Get

func (c *FakeRoutes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Route, err error)

Get takes name of the route, and returns the corresponding route object, and an error if there is any.

func (*FakeRoutes) List

func (c *FakeRoutes) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.RouteList, err error)

List takes label and field selectors, and returns the list of Routes that match those selectors.

func (*FakeRoutes) Patch

func (c *FakeRoutes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Route, err error)

Patch applies the patch and returns the patched route.

func (*FakeRoutes) Update

func (c *FakeRoutes) Update(ctx context.Context, route *v1alpha2.Route, opts v1.UpdateOptions) (result *v1alpha2.Route, err error)

Update takes the representation of a route and updates it. Returns the server's representation of the route, and an error, if there is any.

func (*FakeRoutes) UpdateStatus

func (c *FakeRoutes) UpdateStatus(ctx context.Context, route *v1alpha2.Route, opts v1.UpdateOptions) (*v1alpha2.Route, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeRoutes) Watch

func (c *FakeRoutes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested routes.

type FakeTrafficV1alpha2

type FakeTrafficV1alpha2 struct {
	*testing.Fake
}

func (*FakeTrafficV1alpha2) Hubs

func (c *FakeTrafficV1alpha2) Hubs(namespace string) v1alpha2.HubInterface

func (*FakeTrafficV1alpha2) RESTClient

func (c *FakeTrafficV1alpha2) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*FakeTrafficV1alpha2) RoutePolicies

func (c *FakeTrafficV1alpha2) RoutePolicies(namespace string) v1alpha2.RoutePolicyInterface

func (*FakeTrafficV1alpha2) Routes

func (c *FakeTrafficV1alpha2) Routes(namespace string) v1alpha2.RouteInterface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL