fake

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 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 FakeNetworkV1beta1

type FakeNetworkV1beta1 struct {
	*testing.Fake
}

func (*FakeNetworkV1beta1) PodENIs

func (c *FakeNetworkV1beta1) PodENIs(namespace string) v1beta1.PodENIInterface

func (*FakeNetworkV1beta1) PodNetworkings

func (*FakeNetworkV1beta1) RESTClient

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

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

type FakePodENIs

type FakePodENIs struct {
	Fake *FakeNetworkV1beta1
	// contains filtered or unexported fields
}

FakePodENIs implements PodENIInterface

func (*FakePodENIs) Create

func (c *FakePodENIs) Create(ctx context.Context, podENI *v1beta1.PodENI, opts v1.CreateOptions) (result *v1beta1.PodENI, err error)

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

func (*FakePodENIs) Delete

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

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

func (*FakePodENIs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePodENIs) Get

func (c *FakePodENIs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.PodENI, err error)

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

func (*FakePodENIs) List

func (c *FakePodENIs) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.PodENIList, err error)

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

func (*FakePodENIs) Patch

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

Patch applies the patch and returns the patched podENI.

func (*FakePodENIs) Update

func (c *FakePodENIs) Update(ctx context.Context, podENI *v1beta1.PodENI, opts v1.UpdateOptions) (result *v1beta1.PodENI, err error)

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

func (*FakePodENIs) UpdateStatus

func (c *FakePodENIs) UpdateStatus(ctx context.Context, podENI *v1beta1.PodENI, opts v1.UpdateOptions) (*v1beta1.PodENI, error)

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

func (*FakePodENIs) Watch

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

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

type FakePodNetworkings

type FakePodNetworkings struct {
	Fake *FakeNetworkV1beta1
}

FakePodNetworkings implements PodNetworkingInterface

func (*FakePodNetworkings) Create

func (c *FakePodNetworkings) Create(ctx context.Context, podNetworking *v1beta1.PodNetworking, opts v1.CreateOptions) (result *v1beta1.PodNetworking, err error)

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

func (*FakePodNetworkings) Delete

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

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

func (*FakePodNetworkings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePodNetworkings) Get

func (c *FakePodNetworkings) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.PodNetworking, err error)

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

func (*FakePodNetworkings) List

func (c *FakePodNetworkings) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.PodNetworkingList, err error)

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

func (*FakePodNetworkings) Patch

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

Patch applies the patch and returns the patched podNetworking.

func (*FakePodNetworkings) Update

func (c *FakePodNetworkings) Update(ctx context.Context, podNetworking *v1beta1.PodNetworking, opts v1.UpdateOptions) (result *v1beta1.PodNetworking, err error)

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

func (*FakePodNetworkings) UpdateStatus

func (c *FakePodNetworkings) UpdateStatus(ctx context.Context, podNetworking *v1beta1.PodNetworking, opts v1.UpdateOptions) (*v1beta1.PodNetworking, error)

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

func (*FakePodNetworkings) Watch

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

Jump to

Keyboard shortcuts

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