fake

package
Version: v0.0.0-...-5516734 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 10 Imported by: 6

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 FakeScheduledSparkApplications

type FakeScheduledSparkApplications struct {
	Fake *FakeSparkoperatorV1beta1
	// contains filtered or unexported fields
}

FakeScheduledSparkApplications implements ScheduledSparkApplicationInterface

func (*FakeScheduledSparkApplications) Create

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

func (*FakeScheduledSparkApplications) Delete

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

func (*FakeScheduledSparkApplications) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeScheduledSparkApplications) Get

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

func (*FakeScheduledSparkApplications) List

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

func (*FakeScheduledSparkApplications) Patch

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

Patch applies the patch and returns the patched scheduledSparkApplication.

func (*FakeScheduledSparkApplications) Update

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

func (*FakeScheduledSparkApplications) Watch

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

type FakeSparkApplications

type FakeSparkApplications struct {
	Fake *FakeSparkoperatorV1beta1
	// contains filtered or unexported fields
}

FakeSparkApplications implements SparkApplicationInterface

func (*FakeSparkApplications) Create

func (c *FakeSparkApplications) Create(ctx context.Context, sparkApplication *v1beta1.SparkApplication, opts v1.CreateOptions) (result *v1beta1.SparkApplication, err error)

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

func (*FakeSparkApplications) Delete

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

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

func (*FakeSparkApplications) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSparkApplications) Get

func (c *FakeSparkApplications) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.SparkApplication, err error)

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

func (*FakeSparkApplications) List

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

func (*FakeSparkApplications) Patch

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

Patch applies the patch and returns the patched sparkApplication.

func (*FakeSparkApplications) Update

func (c *FakeSparkApplications) Update(ctx context.Context, sparkApplication *v1beta1.SparkApplication, opts v1.UpdateOptions) (result *v1beta1.SparkApplication, err error)

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

func (*FakeSparkApplications) Watch

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

type FakeSparkoperatorV1beta1

type FakeSparkoperatorV1beta1 struct {
	*testing.Fake
}

func (*FakeSparkoperatorV1beta1) RESTClient

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

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

func (*FakeSparkoperatorV1beta1) ScheduledSparkApplications

func (c *FakeSparkoperatorV1beta1) ScheduledSparkApplications(namespace string) v1beta1.ScheduledSparkApplicationInterface

func (*FakeSparkoperatorV1beta1) SparkApplications

func (c *FakeSparkoperatorV1beta1) SparkApplications(namespace string) v1beta1.SparkApplicationInterface

Jump to

Keyboard shortcuts

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