fake

package
v0.0.0-...-07282d1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 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 FakeSamplecontrollerV1alpha1

type FakeSamplecontrollerV1alpha1 struct {
	*testing.Fake
}

func (*FakeSamplecontrollerV1alpha1) RESTClient

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

func (*FakeSamplecontrollerV1alpha1) ServiceRoutes

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

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

Jump to

Keyboard shortcuts

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