fake

package
v0.0.0-...-686bfca Latest Latest
Warning

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

Go to latest
Published: Feb 18, 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 FakeCCEEndpoints

type FakeCCEEndpoints struct {
	Fake *FakeCceV2
	// contains filtered or unexported fields
}

FakeCCEEndpoints implements CCEEndpointInterface

func (*FakeCCEEndpoints) Create

func (c *FakeCCEEndpoints) Create(ctx context.Context, cCEEndpoint *v2.CCEEndpoint, opts v1.CreateOptions) (result *v2.CCEEndpoint, err error)

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

func (*FakeCCEEndpoints) Delete

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

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

func (*FakeCCEEndpoints) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCCEEndpoints) Get

func (c *FakeCCEEndpoints) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.CCEEndpoint, err error)

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

func (*FakeCCEEndpoints) List

func (c *FakeCCEEndpoints) List(ctx context.Context, opts v1.ListOptions) (result *v2.CCEEndpointList, err error)

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

func (*FakeCCEEndpoints) Patch

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

Patch applies the patch and returns the patched cCEEndpoint.

func (*FakeCCEEndpoints) Update

func (c *FakeCCEEndpoints) Update(ctx context.Context, cCEEndpoint *v2.CCEEndpoint, opts v1.UpdateOptions) (result *v2.CCEEndpoint, err error)

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

func (*FakeCCEEndpoints) UpdateStatus

func (c *FakeCCEEndpoints) UpdateStatus(ctx context.Context, cCEEndpoint *v2.CCEEndpoint, opts v1.UpdateOptions) (*v2.CCEEndpoint, error)

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

func (*FakeCCEEndpoints) Watch

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

type FakeCCEV2

type FakeCCEV2 struct {
	*testing.Fake
}

func (*FakeCCEV2) RESTClient

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

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

type FakeCceV2

type FakeCceV2 struct {
	*testing.Fake
}

func (*FakeCceV2) CCEEndpoints

func (c *FakeCceV2) CCEEndpoints(namespace string) v2.CCEEndpointInterface

func (*FakeCceV2) ENIs

func (c *FakeCceV2) ENIs() v2.ENIInterface

func (*FakeCceV2) NetResourceSets

func (c *FakeCceV2) NetResourceSets() v2.NetResourceSetInterface

func (*FakeCceV2) PodSubnetTopologySpreads

func (c *FakeCceV2) PodSubnetTopologySpreads(namespace string) v2.PodSubnetTopologySpreadInterface

func (*FakeCceV2) RESTClient

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

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

type FakeENIs

type FakeENIs struct {
	Fake *FakeCceV2
}

FakeENIs implements ENIInterface

func (*FakeENIs) Create

func (c *FakeENIs) Create(ctx context.Context, eNI *v2.ENI, opts v1.CreateOptions) (result *v2.ENI, err error)

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

func (*FakeENIs) Delete

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

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

func (*FakeENIs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeENIs) Get

func (c *FakeENIs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.ENI, err error)

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

func (*FakeENIs) List

func (c *FakeENIs) List(ctx context.Context, opts v1.ListOptions) (result *v2.ENIList, err error)

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

func (*FakeENIs) Patch

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

Patch applies the patch and returns the patched eNI.

func (*FakeENIs) Update

func (c *FakeENIs) Update(ctx context.Context, eNI *v2.ENI, opts v1.UpdateOptions) (result *v2.ENI, err error)

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

func (*FakeENIs) UpdateStatus

func (c *FakeENIs) UpdateStatus(ctx context.Context, eNI *v2.ENI, opts v1.UpdateOptions) (*v2.ENI, error)

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

func (*FakeENIs) Watch

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

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

type FakeNetResourceSets

type FakeNetResourceSets struct {
	Fake *FakeCceV2
}

FakeNetResourceSets implements NetResourceSetInterface

func (*FakeNetResourceSets) Create

func (c *FakeNetResourceSets) Create(ctx context.Context, netResourceSet *v2.NetResourceSet, opts v1.CreateOptions) (result *v2.NetResourceSet, err error)

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

func (*FakeNetResourceSets) Delete

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

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

func (*FakeNetResourceSets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNetResourceSets) Get

func (c *FakeNetResourceSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.NetResourceSet, err error)

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

func (*FakeNetResourceSets) List

func (c *FakeNetResourceSets) List(ctx context.Context, opts v1.ListOptions) (result *v2.NetResourceSetList, err error)

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

func (*FakeNetResourceSets) Patch

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

Patch applies the patch and returns the patched netResourceSet.

func (*FakeNetResourceSets) Update

func (c *FakeNetResourceSets) Update(ctx context.Context, netResourceSet *v2.NetResourceSet, opts v1.UpdateOptions) (result *v2.NetResourceSet, err error)

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

func (*FakeNetResourceSets) UpdateStatus

func (c *FakeNetResourceSets) UpdateStatus(ctx context.Context, netResourceSet *v2.NetResourceSet, opts v1.UpdateOptions) (*v2.NetResourceSet, error)

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

func (*FakeNetResourceSets) Watch

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

type FakePodSubnetTopologySpreads

type FakePodSubnetTopologySpreads struct {
	Fake *FakeCceV2
	// contains filtered or unexported fields
}

FakePodSubnetTopologySpreads implements PodSubnetTopologySpreadInterface

func (*FakePodSubnetTopologySpreads) Create

func (c *FakePodSubnetTopologySpreads) Create(ctx context.Context, podSubnetTopologySpread *v2.PodSubnetTopologySpread, opts v1.CreateOptions) (result *v2.PodSubnetTopologySpread, err error)

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

func (*FakePodSubnetTopologySpreads) Delete

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

func (*FakePodSubnetTopologySpreads) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePodSubnetTopologySpreads) Get

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

func (*FakePodSubnetTopologySpreads) List

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

func (*FakePodSubnetTopologySpreads) Patch

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

Patch applies the patch and returns the patched podSubnetTopologySpread.

func (*FakePodSubnetTopologySpreads) Update

func (c *FakePodSubnetTopologySpreads) Update(ctx context.Context, podSubnetTopologySpread *v2.PodSubnetTopologySpread, opts v1.UpdateOptions) (result *v2.PodSubnetTopologySpread, err error)

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

func (*FakePodSubnetTopologySpreads) UpdateStatus

func (c *FakePodSubnetTopologySpreads) UpdateStatus(ctx context.Context, podSubnetTopologySpread *v2.PodSubnetTopologySpread, opts v1.UpdateOptions) (*v2.PodSubnetTopologySpread, error)

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

func (*FakePodSubnetTopologySpreads) Watch

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

Jump to

Keyboard shortcuts

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