fake

package
Version: v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 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 FakeClusterGroups

type FakeClusterGroups struct {
	Fake *FakeCrdV1alpha2
}

FakeClusterGroups implements ClusterGroupInterface

func (*FakeClusterGroups) Create

func (c *FakeClusterGroups) Create(ctx context.Context, clusterGroup *v1alpha2.ClusterGroup, opts v1.CreateOptions) (result *v1alpha2.ClusterGroup, err error)

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

func (*FakeClusterGroups) Delete

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

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

func (*FakeClusterGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterGroups) Get

func (c *FakeClusterGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ClusterGroup, err error)

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

func (*FakeClusterGroups) List

func (c *FakeClusterGroups) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ClusterGroupList, err error)

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

func (*FakeClusterGroups) Patch

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

Patch applies the patch and returns the patched clusterGroup.

func (*FakeClusterGroups) Update

func (c *FakeClusterGroups) Update(ctx context.Context, clusterGroup *v1alpha2.ClusterGroup, opts v1.UpdateOptions) (result *v1alpha2.ClusterGroup, err error)

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

func (*FakeClusterGroups) UpdateStatus

func (c *FakeClusterGroups) UpdateStatus(ctx context.Context, clusterGroup *v1alpha2.ClusterGroup, opts v1.UpdateOptions) (*v1alpha2.ClusterGroup, error)

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

func (*FakeClusterGroups) Watch

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

type FakeCrdV1alpha2

type FakeCrdV1alpha2 struct {
	*testing.Fake
}

func (*FakeCrdV1alpha2) ClusterGroups

func (c *FakeCrdV1alpha2) ClusterGroups() v1alpha2.ClusterGroupInterface

func (*FakeCrdV1alpha2) Egresses

func (*FakeCrdV1alpha2) ExternalEntities

func (c *FakeCrdV1alpha2) ExternalEntities(namespace string) v1alpha2.ExternalEntityInterface

func (*FakeCrdV1alpha2) ExternalIPPools added in v1.2.0

func (c *FakeCrdV1alpha2) ExternalIPPools() v1alpha2.ExternalIPPoolInterface

func (*FakeCrdV1alpha2) IPPools added in v1.4.0

func (*FakeCrdV1alpha2) RESTClient

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

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

func (*FakeCrdV1alpha2) TrafficControls added in v1.7.0

func (c *FakeCrdV1alpha2) TrafficControls() v1alpha2.TrafficControlInterface

type FakeEgresses

type FakeEgresses struct {
	Fake *FakeCrdV1alpha2
}

FakeEgresses implements EgressInterface

func (*FakeEgresses) Create

func (c *FakeEgresses) Create(ctx context.Context, egress *v1alpha2.Egress, opts v1.CreateOptions) (result *v1alpha2.Egress, err error)

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

func (*FakeEgresses) Delete

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

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

func (*FakeEgresses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEgresses) Get

func (c *FakeEgresses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Egress, err error)

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

func (*FakeEgresses) List

func (c *FakeEgresses) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.EgressList, err error)

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

func (*FakeEgresses) Patch

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

Patch applies the patch and returns the patched egress.

func (*FakeEgresses) Update

func (c *FakeEgresses) Update(ctx context.Context, egress *v1alpha2.Egress, opts v1.UpdateOptions) (result *v1alpha2.Egress, err error)

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

func (*FakeEgresses) UpdateStatus added in v1.2.0

func (c *FakeEgresses) UpdateStatus(ctx context.Context, egress *v1alpha2.Egress, opts v1.UpdateOptions) (*v1alpha2.Egress, error)

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

func (*FakeEgresses) Watch

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

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

type FakeExternalEntities

type FakeExternalEntities struct {
	Fake *FakeCrdV1alpha2
	// contains filtered or unexported fields
}

FakeExternalEntities implements ExternalEntityInterface

func (*FakeExternalEntities) Create

func (c *FakeExternalEntities) Create(ctx context.Context, externalEntity *v1alpha2.ExternalEntity, opts v1.CreateOptions) (result *v1alpha2.ExternalEntity, err error)

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

func (*FakeExternalEntities) Delete

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

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

func (*FakeExternalEntities) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeExternalEntities) Get

func (c *FakeExternalEntities) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ExternalEntity, err error)

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

func (*FakeExternalEntities) List

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

func (*FakeExternalEntities) Patch

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

Patch applies the patch and returns the patched externalEntity.

func (*FakeExternalEntities) Update

func (c *FakeExternalEntities) Update(ctx context.Context, externalEntity *v1alpha2.ExternalEntity, opts v1.UpdateOptions) (result *v1alpha2.ExternalEntity, err error)

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

func (*FakeExternalEntities) Watch

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

type FakeExternalIPPools added in v1.2.0

type FakeExternalIPPools struct {
	Fake *FakeCrdV1alpha2
}

FakeExternalIPPools implements ExternalIPPoolInterface

func (*FakeExternalIPPools) Create added in v1.2.0

func (c *FakeExternalIPPools) Create(ctx context.Context, externalIPPool *v1alpha2.ExternalIPPool, opts v1.CreateOptions) (result *v1alpha2.ExternalIPPool, err error)

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

func (*FakeExternalIPPools) Delete added in v1.2.0

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

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

func (*FakeExternalIPPools) DeleteCollection added in v1.2.0

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

DeleteCollection deletes a collection of objects.

func (*FakeExternalIPPools) Get added in v1.2.0

func (c *FakeExternalIPPools) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ExternalIPPool, err error)

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

func (*FakeExternalIPPools) List added in v1.2.0

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

func (*FakeExternalIPPools) Patch added in v1.2.0

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

Patch applies the patch and returns the patched externalIPPool.

func (*FakeExternalIPPools) Update added in v1.2.0

func (c *FakeExternalIPPools) Update(ctx context.Context, externalIPPool *v1alpha2.ExternalIPPool, opts v1.UpdateOptions) (result *v1alpha2.ExternalIPPool, err error)

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

func (*FakeExternalIPPools) UpdateStatus added in v1.3.0

func (c *FakeExternalIPPools) UpdateStatus(ctx context.Context, externalIPPool *v1alpha2.ExternalIPPool, opts v1.UpdateOptions) (*v1alpha2.ExternalIPPool, error)

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

func (*FakeExternalIPPools) Watch added in v1.2.0

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

type FakeIPPools added in v1.4.0

type FakeIPPools struct {
	Fake *FakeCrdV1alpha2
}

FakeIPPools implements IPPoolInterface

func (*FakeIPPools) Create added in v1.4.0

func (c *FakeIPPools) Create(ctx context.Context, iPPool *v1alpha2.IPPool, opts v1.CreateOptions) (result *v1alpha2.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 added in v1.4.0

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 added in v1.4.0

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

DeleteCollection deletes a collection of objects.

func (*FakeIPPools) Get added in v1.4.0

func (c *FakeIPPools) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.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 added in v1.4.0

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

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

func (*FakeIPPools) Patch added in v1.4.0

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

Patch applies the patch and returns the patched iPPool.

func (*FakeIPPools) Update added in v1.4.0

func (c *FakeIPPools) Update(ctx context.Context, iPPool *v1alpha2.IPPool, opts v1.UpdateOptions) (result *v1alpha2.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 added in v1.4.0

func (c *FakeIPPools) UpdateStatus(ctx context.Context, iPPool *v1alpha2.IPPool, opts v1.UpdateOptions) (*v1alpha2.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 added in v1.4.0

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

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

type FakeTrafficControls added in v1.7.0

type FakeTrafficControls struct {
	Fake *FakeCrdV1alpha2
}

FakeTrafficControls implements TrafficControlInterface

func (*FakeTrafficControls) Create added in v1.7.0

func (c *FakeTrafficControls) Create(ctx context.Context, trafficControl *v1alpha2.TrafficControl, opts v1.CreateOptions) (result *v1alpha2.TrafficControl, err error)

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

func (*FakeTrafficControls) Delete added in v1.7.0

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

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

func (*FakeTrafficControls) DeleteCollection added in v1.7.0

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

DeleteCollection deletes a collection of objects.

func (*FakeTrafficControls) Get added in v1.7.0

func (c *FakeTrafficControls) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.TrafficControl, err error)

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

func (*FakeTrafficControls) List added in v1.7.0

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

func (*FakeTrafficControls) Patch added in v1.7.0

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

Patch applies the patch and returns the patched trafficControl.

func (*FakeTrafficControls) Update added in v1.7.0

func (c *FakeTrafficControls) Update(ctx context.Context, trafficControl *v1alpha2.TrafficControl, opts v1.UpdateOptions) (result *v1alpha2.TrafficControl, err error)

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

func (*FakeTrafficControls) Watch added in v1.7.0

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

Jump to

Keyboard shortcuts

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