fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 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 FakeHadoopClusters

type FakeHadoopClusters struct {
	Fake *FakeHdinsightV1alpha1
	// contains filtered or unexported fields
}

FakeHadoopClusters implements HadoopClusterInterface

func (*FakeHadoopClusters) Create

func (c *FakeHadoopClusters) Create(ctx context.Context, hadoopCluster *v1alpha1.HadoopCluster, opts v1.CreateOptions) (result *v1alpha1.HadoopCluster, err error)

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

func (*FakeHadoopClusters) Delete

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

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

func (*FakeHadoopClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHadoopClusters) Get

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

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

func (*FakeHadoopClusters) List

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

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

func (*FakeHadoopClusters) Patch

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

Patch applies the patch and returns the patched hadoopCluster.

func (*FakeHadoopClusters) Update

func (c *FakeHadoopClusters) Update(ctx context.Context, hadoopCluster *v1alpha1.HadoopCluster, opts v1.UpdateOptions) (result *v1alpha1.HadoopCluster, err error)

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

func (*FakeHadoopClusters) UpdateStatus

func (c *FakeHadoopClusters) UpdateStatus(ctx context.Context, hadoopCluster *v1alpha1.HadoopCluster, opts v1.UpdateOptions) (*v1alpha1.HadoopCluster, error)

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

func (*FakeHadoopClusters) Watch

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

type FakeHbaseClusters

type FakeHbaseClusters struct {
	Fake *FakeHdinsightV1alpha1
	// contains filtered or unexported fields
}

FakeHbaseClusters implements HbaseClusterInterface

func (*FakeHbaseClusters) Create

func (c *FakeHbaseClusters) Create(ctx context.Context, hbaseCluster *v1alpha1.HbaseCluster, opts v1.CreateOptions) (result *v1alpha1.HbaseCluster, err error)

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

func (*FakeHbaseClusters) Delete

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

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

func (*FakeHbaseClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHbaseClusters) Get

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

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

func (*FakeHbaseClusters) List

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

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

func (*FakeHbaseClusters) Patch

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

Patch applies the patch and returns the patched hbaseCluster.

func (*FakeHbaseClusters) Update

func (c *FakeHbaseClusters) Update(ctx context.Context, hbaseCluster *v1alpha1.HbaseCluster, opts v1.UpdateOptions) (result *v1alpha1.HbaseCluster, err error)

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

func (*FakeHbaseClusters) UpdateStatus

func (c *FakeHbaseClusters) UpdateStatus(ctx context.Context, hbaseCluster *v1alpha1.HbaseCluster, opts v1.UpdateOptions) (*v1alpha1.HbaseCluster, error)

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

func (*FakeHbaseClusters) Watch

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

type FakeHdinsightV1alpha1

type FakeHdinsightV1alpha1 struct {
	*testing.Fake
}

func (*FakeHdinsightV1alpha1) HadoopClusters

func (c *FakeHdinsightV1alpha1) HadoopClusters(namespace string) v1alpha1.HadoopClusterInterface

func (*FakeHdinsightV1alpha1) HbaseClusters

func (c *FakeHdinsightV1alpha1) HbaseClusters(namespace string) v1alpha1.HbaseClusterInterface

func (*FakeHdinsightV1alpha1) InteractiveQueryClusters

func (c *FakeHdinsightV1alpha1) InteractiveQueryClusters(namespace string) v1alpha1.InteractiveQueryClusterInterface

func (*FakeHdinsightV1alpha1) KafkaClusters

func (c *FakeHdinsightV1alpha1) KafkaClusters(namespace string) v1alpha1.KafkaClusterInterface

func (*FakeHdinsightV1alpha1) MlServicesClusters

func (c *FakeHdinsightV1alpha1) MlServicesClusters(namespace string) v1alpha1.MlServicesClusterInterface

func (*FakeHdinsightV1alpha1) RESTClient

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

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

func (*FakeHdinsightV1alpha1) RserverClusters

func (c *FakeHdinsightV1alpha1) RserverClusters(namespace string) v1alpha1.RserverClusterInterface

func (*FakeHdinsightV1alpha1) SparkClusters

func (c *FakeHdinsightV1alpha1) SparkClusters(namespace string) v1alpha1.SparkClusterInterface

func (*FakeHdinsightV1alpha1) StormClusters

func (c *FakeHdinsightV1alpha1) StormClusters(namespace string) v1alpha1.StormClusterInterface

type FakeInteractiveQueryClusters

type FakeInteractiveQueryClusters struct {
	Fake *FakeHdinsightV1alpha1
	// contains filtered or unexported fields
}

FakeInteractiveQueryClusters implements InteractiveQueryClusterInterface

func (*FakeInteractiveQueryClusters) Create

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

func (*FakeInteractiveQueryClusters) Delete

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

func (*FakeInteractiveQueryClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeInteractiveQueryClusters) Get

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

func (*FakeInteractiveQueryClusters) List

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

func (*FakeInteractiveQueryClusters) Patch

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

Patch applies the patch and returns the patched interactiveQueryCluster.

func (*FakeInteractiveQueryClusters) Update

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

func (*FakeInteractiveQueryClusters) UpdateStatus

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

func (*FakeInteractiveQueryClusters) Watch

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

type FakeKafkaClusters

type FakeKafkaClusters struct {
	Fake *FakeHdinsightV1alpha1
	// contains filtered or unexported fields
}

FakeKafkaClusters implements KafkaClusterInterface

func (*FakeKafkaClusters) Create

func (c *FakeKafkaClusters) Create(ctx context.Context, kafkaCluster *v1alpha1.KafkaCluster, opts v1.CreateOptions) (result *v1alpha1.KafkaCluster, err error)

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

func (*FakeKafkaClusters) Delete

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

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

func (*FakeKafkaClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKafkaClusters) Get

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

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

func (*FakeKafkaClusters) List

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

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

func (*FakeKafkaClusters) Patch

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

Patch applies the patch and returns the patched kafkaCluster.

func (*FakeKafkaClusters) Update

func (c *FakeKafkaClusters) Update(ctx context.Context, kafkaCluster *v1alpha1.KafkaCluster, opts v1.UpdateOptions) (result *v1alpha1.KafkaCluster, err error)

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

func (*FakeKafkaClusters) UpdateStatus

func (c *FakeKafkaClusters) UpdateStatus(ctx context.Context, kafkaCluster *v1alpha1.KafkaCluster, opts v1.UpdateOptions) (*v1alpha1.KafkaCluster, error)

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

func (*FakeKafkaClusters) Watch

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

type FakeMlServicesClusters

type FakeMlServicesClusters struct {
	Fake *FakeHdinsightV1alpha1
	// contains filtered or unexported fields
}

FakeMlServicesClusters implements MlServicesClusterInterface

func (*FakeMlServicesClusters) Create

func (c *FakeMlServicesClusters) Create(ctx context.Context, mlServicesCluster *v1alpha1.MlServicesCluster, opts v1.CreateOptions) (result *v1alpha1.MlServicesCluster, err error)

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

func (*FakeMlServicesClusters) Delete

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

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

func (*FakeMlServicesClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMlServicesClusters) Get

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

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

func (*FakeMlServicesClusters) List

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

func (*FakeMlServicesClusters) Patch

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

Patch applies the patch and returns the patched mlServicesCluster.

func (*FakeMlServicesClusters) Update

func (c *FakeMlServicesClusters) Update(ctx context.Context, mlServicesCluster *v1alpha1.MlServicesCluster, opts v1.UpdateOptions) (result *v1alpha1.MlServicesCluster, err error)

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

func (*FakeMlServicesClusters) UpdateStatus

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

func (*FakeMlServicesClusters) Watch

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

type FakeRserverClusters

type FakeRserverClusters struct {
	Fake *FakeHdinsightV1alpha1
	// contains filtered or unexported fields
}

FakeRserverClusters implements RserverClusterInterface

func (*FakeRserverClusters) Create

func (c *FakeRserverClusters) Create(ctx context.Context, rserverCluster *v1alpha1.RserverCluster, opts v1.CreateOptions) (result *v1alpha1.RserverCluster, err error)

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

func (*FakeRserverClusters) Delete

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

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

func (*FakeRserverClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRserverClusters) Get

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

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

func (*FakeRserverClusters) List

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

func (*FakeRserverClusters) Patch

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

Patch applies the patch and returns the patched rserverCluster.

func (*FakeRserverClusters) Update

func (c *FakeRserverClusters) Update(ctx context.Context, rserverCluster *v1alpha1.RserverCluster, opts v1.UpdateOptions) (result *v1alpha1.RserverCluster, err error)

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

func (*FakeRserverClusters) UpdateStatus

func (c *FakeRserverClusters) UpdateStatus(ctx context.Context, rserverCluster *v1alpha1.RserverCluster, opts v1.UpdateOptions) (*v1alpha1.RserverCluster, error)

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

func (*FakeRserverClusters) Watch

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

type FakeSparkClusters

type FakeSparkClusters struct {
	Fake *FakeHdinsightV1alpha1
	// contains filtered or unexported fields
}

FakeSparkClusters implements SparkClusterInterface

func (*FakeSparkClusters) Create

func (c *FakeSparkClusters) Create(ctx context.Context, sparkCluster *v1alpha1.SparkCluster, opts v1.CreateOptions) (result *v1alpha1.SparkCluster, err error)

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

func (*FakeSparkClusters) Delete

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

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

func (*FakeSparkClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSparkClusters) Get

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

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

func (*FakeSparkClusters) List

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

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

func (*FakeSparkClusters) Patch

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

Patch applies the patch and returns the patched sparkCluster.

func (*FakeSparkClusters) Update

func (c *FakeSparkClusters) Update(ctx context.Context, sparkCluster *v1alpha1.SparkCluster, opts v1.UpdateOptions) (result *v1alpha1.SparkCluster, err error)

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

func (*FakeSparkClusters) UpdateStatus

func (c *FakeSparkClusters) UpdateStatus(ctx context.Context, sparkCluster *v1alpha1.SparkCluster, opts v1.UpdateOptions) (*v1alpha1.SparkCluster, error)

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

func (*FakeSparkClusters) Watch

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

type FakeStormClusters

type FakeStormClusters struct {
	Fake *FakeHdinsightV1alpha1
	// contains filtered or unexported fields
}

FakeStormClusters implements StormClusterInterface

func (*FakeStormClusters) Create

func (c *FakeStormClusters) Create(ctx context.Context, stormCluster *v1alpha1.StormCluster, opts v1.CreateOptions) (result *v1alpha1.StormCluster, err error)

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

func (*FakeStormClusters) Delete

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

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

func (*FakeStormClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeStormClusters) Get

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

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

func (*FakeStormClusters) List

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

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

func (*FakeStormClusters) Patch

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

Patch applies the patch and returns the patched stormCluster.

func (*FakeStormClusters) Update

func (c *FakeStormClusters) Update(ctx context.Context, stormCluster *v1alpha1.StormCluster, opts v1.UpdateOptions) (result *v1alpha1.StormCluster, err error)

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

func (*FakeStormClusters) UpdateStatus

func (c *FakeStormClusters) UpdateStatus(ctx context.Context, stormCluster *v1alpha1.StormCluster, opts v1.UpdateOptions) (*v1alpha1.StormCluster, error)

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

func (*FakeStormClusters) Watch

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

Jump to

Keyboard shortcuts

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