fake

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more 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 FakeCSIOperators

type FakeCSIOperators struct {
	Fake *FakePlatformV1
}

FakeCSIOperators implements CSIOperatorInterface

func (*FakeCSIOperators) Create

func (c *FakeCSIOperators) Create(ctx context.Context, cSIOperator *platformv1.CSIOperator, opts v1.CreateOptions) (result *platformv1.CSIOperator, err error)

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

func (*FakeCSIOperators) Delete

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

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

func (*FakeCSIOperators) Get

func (c *FakeCSIOperators) Get(ctx context.Context, name string, options v1.GetOptions) (result *platformv1.CSIOperator, err error)

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

func (*FakeCSIOperators) List

func (c *FakeCSIOperators) List(ctx context.Context, opts v1.ListOptions) (result *platformv1.CSIOperatorList, err error)

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

func (*FakeCSIOperators) Patch

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

Patch applies the patch and returns the patched cSIOperator.

func (*FakeCSIOperators) Update

func (c *FakeCSIOperators) Update(ctx context.Context, cSIOperator *platformv1.CSIOperator, opts v1.UpdateOptions) (result *platformv1.CSIOperator, err error)

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

func (*FakeCSIOperators) UpdateStatus

func (c *FakeCSIOperators) UpdateStatus(ctx context.Context, cSIOperator *platformv1.CSIOperator, opts v1.UpdateOptions) (*platformv1.CSIOperator, error)

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

func (*FakeCSIOperators) Watch

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

type FakeClusterAddonTypes

type FakeClusterAddonTypes struct {
	Fake *FakePlatformV1
}

FakeClusterAddonTypes implements ClusterAddonTypeInterface

func (*FakeClusterAddonTypes) List

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

type FakeClusterAddons

type FakeClusterAddons struct {
	Fake *FakePlatformV1
}

FakeClusterAddons implements ClusterAddonInterface

func (*FakeClusterAddons) Get

func (c *FakeClusterAddons) Get(ctx context.Context, name string, options v1.GetOptions) (result *platformv1.ClusterAddon, err error)

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

func (*FakeClusterAddons) List

func (c *FakeClusterAddons) List(ctx context.Context, opts v1.ListOptions) (result *platformv1.ClusterAddonList, err error)

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

type FakeClusterCredentials

type FakeClusterCredentials struct {
	Fake *FakePlatformV1
}

FakeClusterCredentials implements ClusterCredentialInterface

func (*FakeClusterCredentials) Create

func (c *FakeClusterCredentials) Create(ctx context.Context, clusterCredential *platformv1.ClusterCredential, opts v1.CreateOptions) (result *platformv1.ClusterCredential, err error)

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

func (*FakeClusterCredentials) Delete

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

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

func (*FakeClusterCredentials) Get

func (c *FakeClusterCredentials) Get(ctx context.Context, name string, options v1.GetOptions) (result *platformv1.ClusterCredential, err error)

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

func (*FakeClusterCredentials) List

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

func (*FakeClusterCredentials) Patch

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

Patch applies the patch and returns the patched clusterCredential.

func (*FakeClusterCredentials) Update

func (c *FakeClusterCredentials) Update(ctx context.Context, clusterCredential *platformv1.ClusterCredential, opts v1.UpdateOptions) (result *platformv1.ClusterCredential, err error)

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

func (*FakeClusterCredentials) Watch

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

type FakeClusterGroupAPIResourceItemses added in v1.8.0

type FakeClusterGroupAPIResourceItemses struct {
	Fake *FakePlatformV1
}

FakeClusterGroupAPIResourceItemses implements ClusterGroupAPIResourceItemsInterface

func (*FakeClusterGroupAPIResourceItemses) Get added in v1.8.0

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

func (*FakeClusterGroupAPIResourceItemses) List added in v1.8.0

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

type FakeClusters

type FakeClusters struct {
	Fake *FakePlatformV1
}

FakeClusters implements ClusterInterface

func (*FakeClusters) Create

func (c *FakeClusters) Create(ctx context.Context, cluster *platformv1.Cluster, opts v1.CreateOptions) (result *platformv1.Cluster, err error)

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

func (*FakeClusters) Delete

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

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

func (*FakeClusters) Get

func (c *FakeClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *platformv1.Cluster, err error)

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

func (*FakeClusters) List

func (c *FakeClusters) List(ctx context.Context, opts v1.ListOptions) (result *platformv1.ClusterList, err error)

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

func (*FakeClusters) Patch

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

Patch applies the patch and returns the patched cluster.

func (*FakeClusters) Update

func (c *FakeClusters) Update(ctx context.Context, cluster *platformv1.Cluster, opts v1.UpdateOptions) (result *platformv1.Cluster, err error)

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

func (*FakeClusters) UpdateStatus

func (c *FakeClusters) UpdateStatus(ctx context.Context, cluster *platformv1.Cluster, opts v1.UpdateOptions) (*platformv1.Cluster, error)

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

func (*FakeClusters) Watch

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

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

type FakeConfigMaps

type FakeConfigMaps struct {
	Fake *FakePlatformV1
}

FakeConfigMaps implements ConfigMapInterface

func (*FakeConfigMaps) Create

func (c *FakeConfigMaps) Create(ctx context.Context, configMap *platformv1.ConfigMap, opts v1.CreateOptions) (result *platformv1.ConfigMap, err error)

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

func (*FakeConfigMaps) Delete

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

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

func (*FakeConfigMaps) Get

func (c *FakeConfigMaps) Get(ctx context.Context, name string, options v1.GetOptions) (result *platformv1.ConfigMap, err error)

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

func (*FakeConfigMaps) List

func (c *FakeConfigMaps) List(ctx context.Context, opts v1.ListOptions) (result *platformv1.ConfigMapList, err error)

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

func (*FakeConfigMaps) Patch

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

Patch applies the patch and returns the patched configMap.

func (*FakeConfigMaps) Update

func (c *FakeConfigMaps) Update(ctx context.Context, configMap *platformv1.ConfigMap, opts v1.UpdateOptions) (result *platformv1.ConfigMap, err error)

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

func (*FakeConfigMaps) Watch

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

type FakeCronHPAs

type FakeCronHPAs struct {
	Fake *FakePlatformV1
}

FakeCronHPAs implements CronHPAInterface

func (*FakeCronHPAs) Create

func (c *FakeCronHPAs) Create(ctx context.Context, cronHPA *platformv1.CronHPA, opts v1.CreateOptions) (result *platformv1.CronHPA, err error)

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

func (*FakeCronHPAs) Delete

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

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

func (*FakeCronHPAs) Get

func (c *FakeCronHPAs) Get(ctx context.Context, name string, options v1.GetOptions) (result *platformv1.CronHPA, err error)

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

func (*FakeCronHPAs) List

func (c *FakeCronHPAs) List(ctx context.Context, opts v1.ListOptions) (result *platformv1.CronHPAList, err error)

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

func (*FakeCronHPAs) Patch

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

Patch applies the patch and returns the patched cronHPA.

func (*FakeCronHPAs) Update

func (c *FakeCronHPAs) Update(ctx context.Context, cronHPA *platformv1.CronHPA, opts v1.UpdateOptions) (result *platformv1.CronHPA, err error)

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

func (*FakeCronHPAs) UpdateStatus

func (c *FakeCronHPAs) UpdateStatus(ctx context.Context, cronHPA *platformv1.CronHPA, opts v1.UpdateOptions) (*platformv1.CronHPA, error)

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

func (*FakeCronHPAs) Watch

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

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

type FakeMachines

type FakeMachines struct {
	Fake *FakePlatformV1
}

FakeMachines implements MachineInterface

func (*FakeMachines) Create

func (c *FakeMachines) Create(ctx context.Context, machine *platformv1.Machine, opts v1.CreateOptions) (result *platformv1.Machine, err error)

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

func (*FakeMachines) Delete

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

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

func (*FakeMachines) Get

func (c *FakeMachines) Get(ctx context.Context, name string, options v1.GetOptions) (result *platformv1.Machine, err error)

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

func (*FakeMachines) List

func (c *FakeMachines) List(ctx context.Context, opts v1.ListOptions) (result *platformv1.MachineList, err error)

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

func (*FakeMachines) Patch

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

Patch applies the patch and returns the patched machine.

func (*FakeMachines) Update

func (c *FakeMachines) Update(ctx context.Context, machine *platformv1.Machine, opts v1.UpdateOptions) (result *platformv1.Machine, err error)

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

func (*FakeMachines) UpdateStatus

func (c *FakeMachines) UpdateStatus(ctx context.Context, machine *platformv1.Machine, opts v1.UpdateOptions) (*platformv1.Machine, error)

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

func (*FakeMachines) Watch

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

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

type FakePersistentEvents

type FakePersistentEvents struct {
	Fake *FakePlatformV1
}

FakePersistentEvents implements PersistentEventInterface

func (*FakePersistentEvents) Create

func (c *FakePersistentEvents) Create(ctx context.Context, persistentEvent *platformv1.PersistentEvent, opts v1.CreateOptions) (result *platformv1.PersistentEvent, err error)

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

func (*FakePersistentEvents) Delete

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

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

func (*FakePersistentEvents) Get

func (c *FakePersistentEvents) Get(ctx context.Context, name string, options v1.GetOptions) (result *platformv1.PersistentEvent, err error)

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

func (*FakePersistentEvents) List

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

func (*FakePersistentEvents) Patch

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

Patch applies the patch and returns the patched persistentEvent.

func (*FakePersistentEvents) Update

func (c *FakePersistentEvents) Update(ctx context.Context, persistentEvent *platformv1.PersistentEvent, opts v1.UpdateOptions) (result *platformv1.PersistentEvent, err error)

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

func (*FakePersistentEvents) UpdateStatus

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

func (*FakePersistentEvents) Watch

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

type FakePlatformV1

type FakePlatformV1 struct {
	*testing.Fake
}

func (*FakePlatformV1) CSIOperators

func (c *FakePlatformV1) CSIOperators() v1.CSIOperatorInterface

func (*FakePlatformV1) ClusterAddonTypes

func (c *FakePlatformV1) ClusterAddonTypes() v1.ClusterAddonTypeInterface

func (*FakePlatformV1) ClusterAddons

func (c *FakePlatformV1) ClusterAddons() v1.ClusterAddonInterface

func (*FakePlatformV1) ClusterCredentials

func (c *FakePlatformV1) ClusterCredentials() v1.ClusterCredentialInterface

func (*FakePlatformV1) ClusterGroupAPIResourceItemses added in v1.8.0

func (c *FakePlatformV1) ClusterGroupAPIResourceItemses() v1.ClusterGroupAPIResourceItemsInterface

func (*FakePlatformV1) Clusters

func (c *FakePlatformV1) Clusters() v1.ClusterInterface

func (*FakePlatformV1) ConfigMaps

func (c *FakePlatformV1) ConfigMaps() v1.ConfigMapInterface

func (*FakePlatformV1) CronHPAs

func (c *FakePlatformV1) CronHPAs() v1.CronHPAInterface

func (*FakePlatformV1) Machines

func (c *FakePlatformV1) Machines() v1.MachineInterface

func (*FakePlatformV1) PersistentEvents

func (c *FakePlatformV1) PersistentEvents() v1.PersistentEventInterface

func (*FakePlatformV1) RESTClient

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

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

func (*FakePlatformV1) Registries

func (c *FakePlatformV1) Registries() v1.RegistryInterface

func (*FakePlatformV1) TappControllers

func (c *FakePlatformV1) TappControllers() v1.TappControllerInterface

type FakeRegistries

type FakeRegistries struct {
	Fake *FakePlatformV1
}

FakeRegistries implements RegistryInterface

func (*FakeRegistries) Create

func (c *FakeRegistries) Create(ctx context.Context, registry *platformv1.Registry, opts v1.CreateOptions) (result *platformv1.Registry, err error)

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

func (*FakeRegistries) Delete

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

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

func (*FakeRegistries) Get

func (c *FakeRegistries) Get(ctx context.Context, name string, options v1.GetOptions) (result *platformv1.Registry, err error)

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

func (*FakeRegistries) List

func (c *FakeRegistries) List(ctx context.Context, opts v1.ListOptions) (result *platformv1.RegistryList, err error)

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

func (*FakeRegistries) Patch

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

Patch applies the patch and returns the patched registry.

func (*FakeRegistries) Update

func (c *FakeRegistries) Update(ctx context.Context, registry *platformv1.Registry, opts v1.UpdateOptions) (result *platformv1.Registry, err error)

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

func (*FakeRegistries) Watch

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

type FakeTappControllers

type FakeTappControllers struct {
	Fake *FakePlatformV1
}

FakeTappControllers implements TappControllerInterface

func (*FakeTappControllers) Create

func (c *FakeTappControllers) Create(ctx context.Context, tappController *platformv1.TappController, opts v1.CreateOptions) (result *platformv1.TappController, err error)

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

func (*FakeTappControllers) Delete

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

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

func (*FakeTappControllers) Get

func (c *FakeTappControllers) Get(ctx context.Context, name string, options v1.GetOptions) (result *platformv1.TappController, err error)

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

func (*FakeTappControllers) List

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

func (*FakeTappControllers) Patch

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

Patch applies the patch and returns the patched tappController.

func (*FakeTappControllers) Update

func (c *FakeTappControllers) Update(ctx context.Context, tappController *platformv1.TappController, opts v1.UpdateOptions) (result *platformv1.TappController, err error)

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

func (*FakeTappControllers) UpdateStatus

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

func (*FakeTappControllers) Watch

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

Jump to

Keyboard shortcuts

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