fake

package
v0.0.0-...-6f909bf Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 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 FakeFrrcontrollerV1alpha1

type FakeFrrcontrollerV1alpha1 struct {
	*testing.Fake
}

func (*FakeFrrcontrollerV1alpha1) Frrs

func (*FakeFrrcontrollerV1alpha1) RESTClient

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

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

type FakeFrrs

type FakeFrrs struct {
	Fake *FakeFrrcontrollerV1alpha1
	// contains filtered or unexported fields
}

FakeFrrs implements FrrInterface

func (*FakeFrrs) Create

func (c *FakeFrrs) Create(ctx context.Context, frr *v1alpha1.Frr, opts v1.CreateOptions) (result *v1alpha1.Frr, err error)

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

func (*FakeFrrs) Delete

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

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

func (*FakeFrrs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFrrs) Get

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

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

func (*FakeFrrs) List

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

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

func (*FakeFrrs) Patch

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

Patch applies the patch and returns the patched frr.

func (*FakeFrrs) Update

func (c *FakeFrrs) Update(ctx context.Context, frr *v1alpha1.Frr, opts v1.UpdateOptions) (result *v1alpha1.Frr, err error)

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

func (*FakeFrrs) UpdateStatus

func (c *FakeFrrs) UpdateStatus(ctx context.Context, frr *v1alpha1.Frr, opts v1.UpdateOptions) (*v1alpha1.Frr, error)

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

func (*FakeFrrs) Watch

func (c *FakeFrrs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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