fake

package
v0.3.25 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 9 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 *FakeSpecsV1alpha1
	// contains filtered or unexported fields
}

FakeHTTPRouteGroups implements HTTPRouteGroupInterface

func (*FakeHTTPRouteGroups) Create

func (c *FakeHTTPRouteGroups) Create(hTTPRouteGroup *v1alpha1.HTTPRouteGroup) (result *v1alpha1.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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeHTTPRouteGroups) Get

func (c *FakeHTTPRouteGroups) Get(name string, options v1.GetOptions) (result *v1alpha1.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

func (c *FakeHTTPRouteGroups) List(opts v1.ListOptions) (result *v1alpha1.HTTPRouteGroupList, err error)

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

func (*FakeHTTPRouteGroups) Patch

func (c *FakeHTTPRouteGroups) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.HTTPRouteGroup, err error)

Patch applies the patch and returns the patched hTTPRouteGroup.

func (*FakeHTTPRouteGroups) Update

func (c *FakeHTTPRouteGroups) Update(hTTPRouteGroup *v1alpha1.HTTPRouteGroup) (result *v1alpha1.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 FakeSpecsV1alpha1

type FakeSpecsV1alpha1 struct {
	*testing.Fake
}

func (*FakeSpecsV1alpha1) HTTPRouteGroups

func (c *FakeSpecsV1alpha1) HTTPRouteGroups(namespace string) v1alpha1.HTTPRouteGroupInterface

func (*FakeSpecsV1alpha1) RESTClient

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

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

func (*FakeSpecsV1alpha1) TCPRoutes

func (c *FakeSpecsV1alpha1) TCPRoutes(namespace string) v1alpha1.TCPRouteInterface

type FakeTCPRoutes

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

FakeTCPRoutes implements TCPRouteInterface

func (*FakeTCPRoutes) Create

func (c *FakeTCPRoutes) Create(tCPRoute *v1alpha1.TCPRoute) (result *v1alpha1.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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeTCPRoutes) Get

func (c *FakeTCPRoutes) Get(name string, options v1.GetOptions) (result *v1alpha1.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(opts v1.ListOptions) (result *v1alpha1.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(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.TCPRoute, err error)

Patch applies the patch and returns the patched tCPRoute.

func (*FakeTCPRoutes) Update

func (c *FakeTCPRoutes) Update(tCPRoute *v1alpha1.TCPRoute) (result *v1alpha1.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

func (c *FakeTCPRoutes) Watch(opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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