fake

package
v0.0.0-...-41d4ab8 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 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 FakeAciV1

type FakeAciV1 struct {
	*testing.Fake
}

func (*FakeAciV1) NodePodIFs

func (c *FakeAciV1) NodePodIFs(namespace string) v1.NodePodIFInterface

func (*FakeAciV1) RESTClient

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

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

type FakeNodePodIFs

type FakeNodePodIFs struct {
	Fake *FakeAciV1
	// contains filtered or unexported fields
}

FakeNodePodIFs implements NodePodIFInterface

func (*FakeNodePodIFs) Create

func (c *FakeNodePodIFs) Create(ctx context.Context, nodePodIF *acipolicyv1.NodePodIF, opts v1.CreateOptions) (result *acipolicyv1.NodePodIF, err error)

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

func (*FakeNodePodIFs) Delete

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

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

func (*FakeNodePodIFs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNodePodIFs) Get

func (c *FakeNodePodIFs) Get(ctx context.Context, name string, options v1.GetOptions) (result *acipolicyv1.NodePodIF, err error)

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

func (*FakeNodePodIFs) List

func (c *FakeNodePodIFs) List(ctx context.Context, opts v1.ListOptions) (result *acipolicyv1.NodePodIFList, err error)

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

func (*FakeNodePodIFs) Patch

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

Patch applies the patch and returns the patched nodePodIF.

func (*FakeNodePodIFs) Update

func (c *FakeNodePodIFs) Update(ctx context.Context, nodePodIF *acipolicyv1.NodePodIF, opts v1.UpdateOptions) (result *acipolicyv1.NodePodIF, err error)

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

func (*FakeNodePodIFs) Watch

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

Jump to

Keyboard shortcuts

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