fake

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 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 *FakePlatform
}

FakeCSIOperators implements CSIOperatorInterface

func (*FakeCSIOperators) Create

func (c *FakeCSIOperators) Create(ctx context.Context, cSIOperator *platform.CSIOperator, opts v1.CreateOptions) (result *platform.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 *platform.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 *platform.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 *platform.CSIOperator, err error)

Patch applies the patch and returns the patched cSIOperator.

func (*FakeCSIOperators) Update

func (c *FakeCSIOperators) Update(ctx context.Context, cSIOperator *platform.CSIOperator, opts v1.UpdateOptions) (result *platform.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 *platform.CSIOperator, opts v1.UpdateOptions) (*platform.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 *FakePlatform
}

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 *FakePlatform
}

FakeClusterAddons implements ClusterAddonInterface

func (*FakeClusterAddons) Get

func (c *FakeClusterAddons) Get(ctx context.Context, name string, options v1.GetOptions) (result *platform.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 *platform.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 *FakePlatform
}

FakeClusterCredentials implements ClusterCredentialInterface

func (*FakeClusterCredentials) Create

func (c *FakeClusterCredentials) Create(ctx context.Context, clusterCredential *platform.ClusterCredential, opts v1.CreateOptions) (result *platform.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 *platform.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 *platform.ClusterCredential, err error)

Patch applies the patch and returns the patched clusterCredential.

func (*FakeClusterCredentials) Update

func (c *FakeClusterCredentials) Update(ctx context.Context, clusterCredential *platform.ClusterCredential, opts v1.UpdateOptions) (result *platform.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 FakeClusters

type FakeClusters struct {
	Fake *FakePlatform
}

FakeClusters implements ClusterInterface

func (*FakeClusters) Create

func (c *FakeClusters) Create(ctx context.Context, cluster *platform.Cluster, opts v1.CreateOptions) (result *platform.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 *platform.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 *platform.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 *platform.Cluster, err error)

Patch applies the patch and returns the patched cluster.

func (*FakeClusters) Update

func (c *FakeClusters) Update(ctx context.Context, cluster *platform.Cluster, opts v1.UpdateOptions) (result *platform.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 *platform.Cluster, opts v1.UpdateOptions) (*platform.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 *FakePlatform
}

FakeConfigMaps implements ConfigMapInterface

func (*FakeConfigMaps) Create

func (c *FakeConfigMaps) Create(ctx context.Context, configMap *platform.ConfigMap, opts v1.CreateOptions) (result *platform.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) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeConfigMaps) Get

func (c *FakeConfigMaps) Get(ctx context.Context, name string, options v1.GetOptions) (result *platform.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 *platform.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 *platform.ConfigMap, err error)

Patch applies the patch and returns the patched configMap.

func (*FakeConfigMaps) Update

func (c *FakeConfigMaps) Update(ctx context.Context, configMap *platform.ConfigMap, opts v1.UpdateOptions) (result *platform.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 *FakePlatform
}

FakeCronHPAs implements CronHPAInterface

func (*FakeCronHPAs) Create

func (c *FakeCronHPAs) Create(ctx context.Context, cronHPA *platform.CronHPA, opts v1.CreateOptions) (result *platform.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 *platform.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 *platform.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 *platform.CronHPA, err error)

Patch applies the patch and returns the patched cronHPA.

func (*FakeCronHPAs) Update

func (c *FakeCronHPAs) Update(ctx context.Context, cronHPA *platform.CronHPA, opts v1.UpdateOptions) (result *platform.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 *platform.CronHPA, opts v1.UpdateOptions) (*platform.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 FakeHelms

type FakeHelms struct {
	Fake *FakePlatform
}

FakeHelms implements HelmInterface

func (*FakeHelms) Create

func (c *FakeHelms) Create(ctx context.Context, helm *platform.Helm, opts v1.CreateOptions) (result *platform.Helm, err error)

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

func (*FakeHelms) Delete

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

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

func (*FakeHelms) Get

func (c *FakeHelms) Get(ctx context.Context, name string, options v1.GetOptions) (result *platform.Helm, err error)

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

func (*FakeHelms) List

func (c *FakeHelms) List(ctx context.Context, opts v1.ListOptions) (result *platform.HelmList, err error)

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

func (*FakeHelms) Patch

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

Patch applies the patch and returns the patched helm.

func (*FakeHelms) Update

func (c *FakeHelms) Update(ctx context.Context, helm *platform.Helm, opts v1.UpdateOptions) (result *platform.Helm, err error)

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

func (*FakeHelms) UpdateStatus

func (c *FakeHelms) UpdateStatus(ctx context.Context, helm *platform.Helm, opts v1.UpdateOptions) (*platform.Helm, error)

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

func (*FakeHelms) Watch

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

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

type FakeIPAMs

type FakeIPAMs struct {
	Fake *FakePlatform
}

FakeIPAMs implements IPAMInterface

func (*FakeIPAMs) Create

func (c *FakeIPAMs) Create(ctx context.Context, iPAM *platform.IPAM, opts v1.CreateOptions) (result *platform.IPAM, err error)

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

func (*FakeIPAMs) Delete

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

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

func (*FakeIPAMs) Get

func (c *FakeIPAMs) Get(ctx context.Context, name string, options v1.GetOptions) (result *platform.IPAM, err error)

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

func (*FakeIPAMs) List

func (c *FakeIPAMs) List(ctx context.Context, opts v1.ListOptions) (result *platform.IPAMList, err error)

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

func (*FakeIPAMs) Patch

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

Patch applies the patch and returns the patched iPAM.

func (*FakeIPAMs) Update

func (c *FakeIPAMs) Update(ctx context.Context, iPAM *platform.IPAM, opts v1.UpdateOptions) (result *platform.IPAM, err error)

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

func (*FakeIPAMs) UpdateStatus

func (c *FakeIPAMs) UpdateStatus(ctx context.Context, iPAM *platform.IPAM, opts v1.UpdateOptions) (*platform.IPAM, error)

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

func (*FakeIPAMs) Watch

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

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

type FakeLBCFs

type FakeLBCFs struct {
	Fake *FakePlatform
}

FakeLBCFs implements LBCFInterface

func (*FakeLBCFs) Create

func (c *FakeLBCFs) Create(ctx context.Context, lBCF *platform.LBCF, opts v1.CreateOptions) (result *platform.LBCF, err error)

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

func (*FakeLBCFs) Delete

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

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

func (*FakeLBCFs) Get

func (c *FakeLBCFs) Get(ctx context.Context, name string, options v1.GetOptions) (result *platform.LBCF, err error)

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

func (*FakeLBCFs) List

func (c *FakeLBCFs) List(ctx context.Context, opts v1.ListOptions) (result *platform.LBCFList, err error)

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

func (*FakeLBCFs) Patch

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

Patch applies the patch and returns the patched lBCF.

func (*FakeLBCFs) Update

func (c *FakeLBCFs) Update(ctx context.Context, lBCF *platform.LBCF, opts v1.UpdateOptions) (result *platform.LBCF, err error)

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

func (*FakeLBCFs) UpdateStatus

func (c *FakeLBCFs) UpdateStatus(ctx context.Context, lBCF *platform.LBCF, opts v1.UpdateOptions) (*platform.LBCF, error)

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

func (*FakeLBCFs) Watch

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

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

type FakeLogCollectors

type FakeLogCollectors struct {
	Fake *FakePlatform
}

FakeLogCollectors implements LogCollectorInterface

func (*FakeLogCollectors) Create

func (c *FakeLogCollectors) Create(ctx context.Context, logCollector *platform.LogCollector, opts v1.CreateOptions) (result *platform.LogCollector, err error)

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

func (*FakeLogCollectors) Delete

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

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

func (*FakeLogCollectors) Get

func (c *FakeLogCollectors) Get(ctx context.Context, name string, options v1.GetOptions) (result *platform.LogCollector, err error)

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

func (*FakeLogCollectors) List

func (c *FakeLogCollectors) List(ctx context.Context, opts v1.ListOptions) (result *platform.LogCollectorList, err error)

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

func (*FakeLogCollectors) Patch

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

Patch applies the patch and returns the patched logCollector.

func (*FakeLogCollectors) Update

func (c *FakeLogCollectors) Update(ctx context.Context, logCollector *platform.LogCollector, opts v1.UpdateOptions) (result *platform.LogCollector, err error)

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

func (*FakeLogCollectors) UpdateStatus

func (c *FakeLogCollectors) UpdateStatus(ctx context.Context, logCollector *platform.LogCollector, opts v1.UpdateOptions) (*platform.LogCollector, error)

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

func (*FakeLogCollectors) Watch

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

type FakeMachines

type FakeMachines struct {
	Fake *FakePlatform
}

FakeMachines implements MachineInterface

func (*FakeMachines) Create

func (c *FakeMachines) Create(ctx context.Context, machine *platform.Machine, opts v1.CreateOptions) (result *platform.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 *platform.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 *platform.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 *platform.Machine, err error)

Patch applies the patch and returns the patched machine.

func (*FakeMachines) Update

func (c *FakeMachines) Update(ctx context.Context, machine *platform.Machine, opts v1.UpdateOptions) (result *platform.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 *platform.Machine, opts v1.UpdateOptions) (*platform.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 *FakePlatform
}

FakePersistentEvents implements PersistentEventInterface

func (*FakePersistentEvents) Create

func (c *FakePersistentEvents) Create(ctx context.Context, persistentEvent *platform.PersistentEvent, opts v1.CreateOptions) (result *platform.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 *platform.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 *platform.PersistentEvent, err error)

Patch applies the patch and returns the patched persistentEvent.

func (*FakePersistentEvents) Update

func (c *FakePersistentEvents) Update(ctx context.Context, persistentEvent *platform.PersistentEvent, opts v1.UpdateOptions) (result *platform.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

func (c *FakePersistentEvents) UpdateStatus(ctx context.Context, persistentEvent *platform.PersistentEvent, opts v1.UpdateOptions) (*platform.PersistentEvent, error)

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 FakePlatform

type FakePlatform struct {
	*testing.Fake
}

func (*FakePlatform) CSIOperators

func (*FakePlatform) ClusterAddonTypes

func (*FakePlatform) ClusterAddons

func (*FakePlatform) ClusterCredentials

func (*FakePlatform) Clusters

func (*FakePlatform) ConfigMaps

func (*FakePlatform) CronHPAs

func (*FakePlatform) Helms

func (*FakePlatform) IPAMs

func (*FakePlatform) LBCFs

func (*FakePlatform) LogCollectors

func (*FakePlatform) Machines

func (*FakePlatform) PersistentEvents

func (*FakePlatform) Prometheuses

func (*FakePlatform) RESTClient

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

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

func (*FakePlatform) Registries

func (*FakePlatform) TappControllers

func (*FakePlatform) VolumeDecorators

type FakePrometheuses

type FakePrometheuses struct {
	Fake *FakePlatform
}

FakePrometheuses implements PrometheusInterface

func (*FakePrometheuses) Create

func (c *FakePrometheuses) Create(ctx context.Context, prometheus *platform.Prometheus, opts v1.CreateOptions) (result *platform.Prometheus, err error)

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

func (*FakePrometheuses) Delete

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

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

func (*FakePrometheuses) Get

func (c *FakePrometheuses) Get(ctx context.Context, name string, options v1.GetOptions) (result *platform.Prometheus, err error)

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

func (*FakePrometheuses) List

func (c *FakePrometheuses) List(ctx context.Context, opts v1.ListOptions) (result *platform.PrometheusList, err error)

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

func (*FakePrometheuses) Patch

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

Patch applies the patch and returns the patched prometheus.

func (*FakePrometheuses) Update

func (c *FakePrometheuses) Update(ctx context.Context, prometheus *platform.Prometheus, opts v1.UpdateOptions) (result *platform.Prometheus, err error)

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

func (*FakePrometheuses) UpdateStatus

func (c *FakePrometheuses) UpdateStatus(ctx context.Context, prometheus *platform.Prometheus, opts v1.UpdateOptions) (*platform.Prometheus, error)

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

func (*FakePrometheuses) Watch

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

type FakeRegistries

type FakeRegistries struct {
	Fake *FakePlatform
}

FakeRegistries implements RegistryInterface

func (*FakeRegistries) Create

func (c *FakeRegistries) Create(ctx context.Context, registry *platform.Registry, opts v1.CreateOptions) (result *platform.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 *platform.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 *platform.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 *platform.Registry, err error)

Patch applies the patch and returns the patched registry.

func (*FakeRegistries) Update

func (c *FakeRegistries) Update(ctx context.Context, registry *platform.Registry, opts v1.UpdateOptions) (result *platform.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 *FakePlatform
}

FakeTappControllers implements TappControllerInterface

func (*FakeTappControllers) Create

func (c *FakeTappControllers) Create(ctx context.Context, tappController *platform.TappController, opts v1.CreateOptions) (result *platform.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 *platform.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 *platform.TappController, err error)

Patch applies the patch and returns the patched tappController.

func (*FakeTappControllers) Update

func (c *FakeTappControllers) Update(ctx context.Context, tappController *platform.TappController, opts v1.UpdateOptions) (result *platform.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

func (c *FakeTappControllers) UpdateStatus(ctx context.Context, tappController *platform.TappController, opts v1.UpdateOptions) (*platform.TappController, error)

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.

type FakeVolumeDecorators

type FakeVolumeDecorators struct {
	Fake *FakePlatform
}

FakeVolumeDecorators implements VolumeDecoratorInterface

func (*FakeVolumeDecorators) Create

func (c *FakeVolumeDecorators) Create(ctx context.Context, volumeDecorator *platform.VolumeDecorator, opts v1.CreateOptions) (result *platform.VolumeDecorator, err error)

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

func (*FakeVolumeDecorators) Delete

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

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

func (*FakeVolumeDecorators) Get

func (c *FakeVolumeDecorators) Get(ctx context.Context, name string, options v1.GetOptions) (result *platform.VolumeDecorator, err error)

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

func (*FakeVolumeDecorators) List

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

func (*FakeVolumeDecorators) Patch

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

Patch applies the patch and returns the patched volumeDecorator.

func (*FakeVolumeDecorators) Update

func (c *FakeVolumeDecorators) Update(ctx context.Context, volumeDecorator *platform.VolumeDecorator, opts v1.UpdateOptions) (result *platform.VolumeDecorator, err error)

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

func (*FakeVolumeDecorators) UpdateStatus

func (c *FakeVolumeDecorators) UpdateStatus(ctx context.Context, volumeDecorator *platform.VolumeDecorator, opts v1.UpdateOptions) (*platform.VolumeDecorator, error)

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

func (*FakeVolumeDecorators) Watch

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

Jump to

Keyboard shortcuts

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