fake

package
v1.20.11 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT 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 FakeClbIngresses

type FakeClbIngresses struct {
	Fake *FakeClbV1
	// contains filtered or unexported fields
}

FakeClbIngresses implements ClbIngressInterface

func (*FakeClbIngresses) Create

func (c *FakeClbIngresses) Create(clbIngress *clb_v1.ClbIngress) (result *clb_v1.ClbIngress, err error)

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

func (*FakeClbIngresses) Delete

func (c *FakeClbIngresses) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeClbIngresses) DeleteCollection

func (c *FakeClbIngresses) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeClbIngresses) Get

func (c *FakeClbIngresses) Get(name string, options v1.GetOptions) (result *clb_v1.ClbIngress, err error)

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

func (*FakeClbIngresses) List

func (c *FakeClbIngresses) List(opts v1.ListOptions) (result *clb_v1.ClbIngressList, err error)

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

func (*FakeClbIngresses) Patch

func (c *FakeClbIngresses) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *clb_v1.ClbIngress, err error)

Patch applies the patch and returns the patched clbIngress.

func (*FakeClbIngresses) Update

func (c *FakeClbIngresses) Update(clbIngress *clb_v1.ClbIngress) (result *clb_v1.ClbIngress, err error)

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

func (*FakeClbIngresses) UpdateStatus

func (c *FakeClbIngresses) UpdateStatus(clbIngress *clb_v1.ClbIngress) (*clb_v1.ClbIngress, error)

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

func (*FakeClbIngresses) Watch

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

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

type FakeClbV1

type FakeClbV1 struct {
	*testing.Fake
}

func (*FakeClbV1) ClbIngresses

func (c *FakeClbV1) ClbIngresses(namespace string) v1.ClbIngressInterface

func (*FakeClbV1) RESTClient

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

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

Jump to

Keyboard shortcuts

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