fake

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 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 FakeCceV1alpha1

type FakeCceV1alpha1 struct {
	*testing.Fake
}

func (*FakeCceV1alpha1) CrossVPCEnis

func (c *FakeCceV1alpha1) CrossVPCEnis() v1alpha1.CrossVPCEniInterface

func (*FakeCceV1alpha1) IPPools

func (c *FakeCceV1alpha1) IPPools(namespace string) v1alpha1.IPPoolInterface

func (*FakeCceV1alpha1) MultiIPWorkloadEndpoints added in v1.5.4

func (c *FakeCceV1alpha1) MultiIPWorkloadEndpoints(namespace string) v1alpha1.MultiIPWorkloadEndpointInterface

func (*FakeCceV1alpha1) PodSubnetTopologySpreadTables

func (c *FakeCceV1alpha1) PodSubnetTopologySpreadTables(namespace string) v1alpha1.PodSubnetTopologySpreadTableInterface

func (*FakeCceV1alpha1) PodSubnetTopologySpreads

func (c *FakeCceV1alpha1) PodSubnetTopologySpreads(namespace string) v1alpha1.PodSubnetTopologySpreadInterface

func (*FakeCceV1alpha1) RESTClient

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

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

func (*FakeCceV1alpha1) Subnets

func (c *FakeCceV1alpha1) Subnets(namespace string) v1alpha1.SubnetInterface

func (*FakeCceV1alpha1) WorkloadEndpoints

func (c *FakeCceV1alpha1) WorkloadEndpoints(namespace string) v1alpha1.WorkloadEndpointInterface

type FakeCrossVPCEnis

type FakeCrossVPCEnis struct {
	Fake *FakeCceV1alpha1
}

FakeCrossVPCEnis implements CrossVPCEniInterface

func (*FakeCrossVPCEnis) Create

func (c *FakeCrossVPCEnis) Create(ctx context.Context, crossVPCEni *v1alpha1.CrossVPCEni, opts v1.CreateOptions) (result *v1alpha1.CrossVPCEni, err error)

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

func (*FakeCrossVPCEnis) Delete

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

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

func (*FakeCrossVPCEnis) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCrossVPCEnis) Get

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

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

func (*FakeCrossVPCEnis) List

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

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

func (*FakeCrossVPCEnis) Patch

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

Patch applies the patch and returns the patched crossVPCEni.

func (*FakeCrossVPCEnis) Update

func (c *FakeCrossVPCEnis) Update(ctx context.Context, crossVPCEni *v1alpha1.CrossVPCEni, opts v1.UpdateOptions) (result *v1alpha1.CrossVPCEni, err error)

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

func (*FakeCrossVPCEnis) UpdateStatus

func (c *FakeCrossVPCEnis) UpdateStatus(ctx context.Context, crossVPCEni *v1alpha1.CrossVPCEni, opts v1.UpdateOptions) (*v1alpha1.CrossVPCEni, error)

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

func (*FakeCrossVPCEnis) Watch

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

type FakeIPPools

type FakeIPPools struct {
	Fake *FakeCceV1alpha1
	// contains filtered or unexported fields
}

FakeIPPools implements IPPoolInterface

func (*FakeIPPools) Create

func (c *FakeIPPools) Create(ctx context.Context, iPPool *v1alpha1.IPPool, opts v1.CreateOptions) (result *v1alpha1.IPPool, err error)

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

func (*FakeIPPools) Delete

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

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

func (*FakeIPPools) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIPPools) Get

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

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

func (*FakeIPPools) List

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

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

func (*FakeIPPools) Patch

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

Patch applies the patch and returns the patched iPPool.

func (*FakeIPPools) Update

func (c *FakeIPPools) Update(ctx context.Context, iPPool *v1alpha1.IPPool, opts v1.UpdateOptions) (result *v1alpha1.IPPool, err error)

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

func (*FakeIPPools) UpdateStatus

func (c *FakeIPPools) UpdateStatus(ctx context.Context, iPPool *v1alpha1.IPPool, opts v1.UpdateOptions) (*v1alpha1.IPPool, error)

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

func (*FakeIPPools) Watch

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

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

type FakeMultiIPWorkloadEndpoints added in v1.5.4

type FakeMultiIPWorkloadEndpoints struct {
	Fake *FakeCceV1alpha1
	// contains filtered or unexported fields
}

FakeMultiIPWorkloadEndpoints implements MultiIPWorkloadEndpointInterface

func (*FakeMultiIPWorkloadEndpoints) Create added in v1.5.4

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

func (*FakeMultiIPWorkloadEndpoints) Delete added in v1.5.4

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

func (*FakeMultiIPWorkloadEndpoints) DeleteCollection added in v1.5.4

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

DeleteCollection deletes a collection of objects.

func (*FakeMultiIPWorkloadEndpoints) Get added in v1.5.4

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

func (*FakeMultiIPWorkloadEndpoints) List added in v1.5.4

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

func (*FakeMultiIPWorkloadEndpoints) Patch added in v1.5.4

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

Patch applies the patch and returns the patched multiIPWorkloadEndpoint.

func (*FakeMultiIPWorkloadEndpoints) Update added in v1.5.4

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

func (*FakeMultiIPWorkloadEndpoints) Watch added in v1.5.4

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

type FakePodSubnetTopologySpreadTables

type FakePodSubnetTopologySpreadTables struct {
	Fake *FakeCceV1alpha1
	// contains filtered or unexported fields
}

FakePodSubnetTopologySpreadTables implements PodSubnetTopologySpreadTableInterface

func (*FakePodSubnetTopologySpreadTables) Create

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

func (*FakePodSubnetTopologySpreadTables) Delete

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

func (*FakePodSubnetTopologySpreadTables) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePodSubnetTopologySpreadTables) Get

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

func (*FakePodSubnetTopologySpreadTables) List

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

func (*FakePodSubnetTopologySpreadTables) Patch

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

Patch applies the patch and returns the patched podSubnetTopologySpreadTable.

func (*FakePodSubnetTopologySpreadTables) Update

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

func (*FakePodSubnetTopologySpreadTables) UpdateStatus

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

func (*FakePodSubnetTopologySpreadTables) Watch

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

type FakePodSubnetTopologySpreads

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

FakePodSubnetTopologySpreads implements PodSubnetTopologySpreadInterface

func (*FakePodSubnetTopologySpreads) Create

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 *v1alpha1.PodSubnetTopologySpread, err error)

Patch applies the patch and returns the patched podSubnetTopologySpread.

func (*FakePodSubnetTopologySpreads) Update

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

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.

type FakeSubnets

type FakeSubnets struct {
	Fake *FakeCceV1alpha1
	// contains filtered or unexported fields
}

FakeSubnets implements SubnetInterface

func (*FakeSubnets) Create

func (c *FakeSubnets) Create(ctx context.Context, subnet *v1alpha1.Subnet, opts v1.CreateOptions) (result *v1alpha1.Subnet, err error)

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

func (*FakeSubnets) Delete

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

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

func (*FakeSubnets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSubnets) Get

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

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

func (*FakeSubnets) List

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

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

func (*FakeSubnets) Patch

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

Patch applies the patch and returns the patched subnet.

func (*FakeSubnets) Update

func (c *FakeSubnets) Update(ctx context.Context, subnet *v1alpha1.Subnet, opts v1.UpdateOptions) (result *v1alpha1.Subnet, err error)

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

func (*FakeSubnets) UpdateStatus

func (c *FakeSubnets) UpdateStatus(ctx context.Context, subnet *v1alpha1.Subnet, opts v1.UpdateOptions) (*v1alpha1.Subnet, error)

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

func (*FakeSubnets) Watch

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

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

type FakeWorkloadEndpoints

type FakeWorkloadEndpoints struct {
	Fake *FakeCceV1alpha1
	// contains filtered or unexported fields
}

FakeWorkloadEndpoints implements WorkloadEndpointInterface

func (*FakeWorkloadEndpoints) Create

func (c *FakeWorkloadEndpoints) Create(ctx context.Context, workloadEndpoint *v1alpha1.WorkloadEndpoint, opts v1.CreateOptions) (result *v1alpha1.WorkloadEndpoint, err error)

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

func (*FakeWorkloadEndpoints) Delete

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

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

func (*FakeWorkloadEndpoints) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeWorkloadEndpoints) Get

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

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

func (*FakeWorkloadEndpoints) List

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

func (*FakeWorkloadEndpoints) Patch

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

Patch applies the patch and returns the patched workloadEndpoint.

func (*FakeWorkloadEndpoints) Update

func (c *FakeWorkloadEndpoints) Update(ctx context.Context, workloadEndpoint *v1alpha1.WorkloadEndpoint, opts v1.UpdateOptions) (result *v1alpha1.WorkloadEndpoint, err error)

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

func (*FakeWorkloadEndpoints) Watch

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

Jump to

Keyboard shortcuts

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