fake

package
v0.2.6 Latest Latest
Warning

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

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

type FakeLoadBalancers struct {
	Fake *FakeLoadbalancerV1alpha1
	// contains filtered or unexported fields
}

FakeLoadBalancers implements LoadBalancerInterface

func (*FakeLoadBalancers) Create

func (c *FakeLoadBalancers) Create(ctx context.Context, loadBalancer *v1alpha1.LoadBalancer, opts v1.CreateOptions) (result *v1alpha1.LoadBalancer, err error)

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

func (*FakeLoadBalancers) Delete

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

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

func (*FakeLoadBalancers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeLoadBalancers) Get

func (c *FakeLoadBalancers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.LoadBalancer, err error)

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

func (*FakeLoadBalancers) List

func (c *FakeLoadBalancers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.LoadBalancerList, err error)

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

func (*FakeLoadBalancers) Patch

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

Patch applies the patch and returns the patched loadBalancer.

func (*FakeLoadBalancers) Update

func (c *FakeLoadBalancers) Update(ctx context.Context, loadBalancer *v1alpha1.LoadBalancer, opts v1.UpdateOptions) (result *v1alpha1.LoadBalancer, err error)

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

func (*FakeLoadBalancers) UpdateStatus

func (c *FakeLoadBalancers) UpdateStatus(ctx context.Context, loadBalancer *v1alpha1.LoadBalancer, opts v1.UpdateOptions) (*v1alpha1.LoadBalancer, error)

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

func (*FakeLoadBalancers) Watch

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

type FakeLoadbalancerV1alpha1

type FakeLoadbalancerV1alpha1 struct {
	*testing.Fake
}

func (*FakeLoadbalancerV1alpha1) LoadBalancers

func (c *FakeLoadbalancerV1alpha1) LoadBalancers(namespace string) v1alpha1.LoadBalancerInterface

func (*FakeLoadbalancerV1alpha1) RESTClient

func (c *FakeLoadbalancerV1alpha1) 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