fake

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 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 FakeGlooV1

type FakeGlooV1 struct {
	*testing.Fake
}

func (*FakeGlooV1) RESTClient

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

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

func (*FakeGlooV1) Upstreams added in v1.9.0

func (c *FakeGlooV1) Upstreams(namespace string) v1.UpstreamInterface

type FakeUpstreams added in v1.9.0

type FakeUpstreams struct {
	Fake *FakeGlooV1
	// contains filtered or unexported fields
}

FakeUpstreams implements UpstreamInterface

func (*FakeUpstreams) Create added in v1.9.0

func (c *FakeUpstreams) Create(ctx context.Context, upstream *v1.Upstream, opts metav1.CreateOptions) (result *v1.Upstream, err error)

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

func (*FakeUpstreams) Delete added in v1.9.0

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

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

func (*FakeUpstreams) DeleteCollection added in v1.9.0

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

DeleteCollection deletes a collection of objects.

func (*FakeUpstreams) Get added in v1.9.0

func (c *FakeUpstreams) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Upstream, err error)

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

func (*FakeUpstreams) List added in v1.9.0

func (c *FakeUpstreams) List(ctx context.Context, opts metav1.ListOptions) (result *v1.UpstreamList, err error)

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

func (*FakeUpstreams) Patch added in v1.9.0

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

Patch applies the patch and returns the patched upstream.

func (*FakeUpstreams) Update added in v1.9.0

func (c *FakeUpstreams) Update(ctx context.Context, upstream *v1.Upstream, opts metav1.UpdateOptions) (result *v1.Upstream, err error)

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

func (*FakeUpstreams) Watch added in v1.9.0

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

Jump to

Keyboard shortcuts

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