fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 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 FakeHTTPRouteGroups

type FakeHTTPRouteGroups struct {
	Fake *FakeSpecsV1alpha4
	// contains filtered or unexported fields
}

FakeHTTPRouteGroups implements HTTPRouteGroupInterface

func (*FakeHTTPRouteGroups) Create

func (c *FakeHTTPRouteGroups) Create(ctx context.Context, hTTPRouteGroup *v1alpha4.HTTPRouteGroup, opts v1.CreateOptions) (result *v1alpha4.HTTPRouteGroup, err error)

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

func (*FakeHTTPRouteGroups) Delete

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

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

func (*FakeHTTPRouteGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHTTPRouteGroups) Get

func (c *FakeHTTPRouteGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha4.HTTPRouteGroup, err error)

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

func (*FakeHTTPRouteGroups) List

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

func (*FakeHTTPRouteGroups) Patch

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

Patch applies the patch and returns the patched hTTPRouteGroup.

func (*FakeHTTPRouteGroups) Update

func (c *FakeHTTPRouteGroups) Update(ctx context.Context, hTTPRouteGroup *v1alpha4.HTTPRouteGroup, opts v1.UpdateOptions) (result *v1alpha4.HTTPRouteGroup, err error)

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

func (*FakeHTTPRouteGroups) Watch

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

type FakeSpecsV1alpha4

type FakeSpecsV1alpha4 struct {
	*testing.Fake
}

func (*FakeSpecsV1alpha4) HTTPRouteGroups

func (c *FakeSpecsV1alpha4) HTTPRouteGroups(namespace string) v1alpha4.HTTPRouteGroupInterface

func (*FakeSpecsV1alpha4) RESTClient

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

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

func (*FakeSpecsV1alpha4) TCPRoutes

func (c *FakeSpecsV1alpha4) TCPRoutes(namespace string) v1alpha4.TCPRouteInterface

func (*FakeSpecsV1alpha4) UDPRoutes

func (c *FakeSpecsV1alpha4) UDPRoutes(namespace string) v1alpha4.UDPRouteInterface

type FakeTCPRoutes

type FakeTCPRoutes struct {
	Fake *FakeSpecsV1alpha4
	// contains filtered or unexported fields
}

FakeTCPRoutes implements TCPRouteInterface

func (*FakeTCPRoutes) Create

func (c *FakeTCPRoutes) Create(ctx context.Context, tCPRoute *v1alpha4.TCPRoute, opts v1.CreateOptions) (result *v1alpha4.TCPRoute, err error)

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

func (*FakeTCPRoutes) Delete

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

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

func (*FakeTCPRoutes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTCPRoutes) Get

func (c *FakeTCPRoutes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha4.TCPRoute, err error)

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

func (*FakeTCPRoutes) List

func (c *FakeTCPRoutes) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha4.TCPRouteList, err error)

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

func (*FakeTCPRoutes) Patch

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

Patch applies the patch and returns the patched tCPRoute.

func (*FakeTCPRoutes) Update

func (c *FakeTCPRoutes) Update(ctx context.Context, tCPRoute *v1alpha4.TCPRoute, opts v1.UpdateOptions) (result *v1alpha4.TCPRoute, err error)

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

func (*FakeTCPRoutes) Watch

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

type FakeUDPRoutes

type FakeUDPRoutes struct {
	Fake *FakeSpecsV1alpha4
	// contains filtered or unexported fields
}

FakeUDPRoutes implements UDPRouteInterface

func (*FakeUDPRoutes) Create

func (c *FakeUDPRoutes) Create(ctx context.Context, uDPRoute *v1alpha4.UDPRoute, opts v1.CreateOptions) (result *v1alpha4.UDPRoute, err error)

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

func (*FakeUDPRoutes) Delete

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

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

func (*FakeUDPRoutes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeUDPRoutes) Get

func (c *FakeUDPRoutes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha4.UDPRoute, err error)

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

func (*FakeUDPRoutes) List

func (c *FakeUDPRoutes) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha4.UDPRouteList, err error)

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

func (*FakeUDPRoutes) Patch

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

Patch applies the patch and returns the patched uDPRoute.

func (*FakeUDPRoutes) Update

func (c *FakeUDPRoutes) Update(ctx context.Context, uDPRoute *v1alpha4.UDPRoute, opts v1.UpdateOptions) (result *v1alpha4.UDPRoute, err error)

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

func (*FakeUDPRoutes) Watch

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

Jump to

Keyboard shortcuts

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