fake

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: MIT 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 FakeDaskAutoscalers

type FakeDaskAutoscalers struct {
	Fake *FakeKubernetesV1
	// contains filtered or unexported fields
}

FakeDaskAutoscalers implements DaskAutoscalerInterface

func (*FakeDaskAutoscalers) Create

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

func (*FakeDaskAutoscalers) Delete

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

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

func (*FakeDaskAutoscalers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDaskAutoscalers) Get

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

func (*FakeDaskAutoscalers) List

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

func (*FakeDaskAutoscalers) Patch

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

Patch applies the patch and returns the patched daskAutoscaler.

func (*FakeDaskAutoscalers) Update

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

func (*FakeDaskAutoscalers) Watch

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

type FakeDaskClusters

type FakeDaskClusters struct {
	Fake *FakeKubernetesV1
	// contains filtered or unexported fields
}

FakeDaskClusters implements DaskClusterInterface

func (*FakeDaskClusters) Create

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

func (*FakeDaskClusters) Delete

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

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

func (*FakeDaskClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDaskClusters) Get

func (c *FakeDaskClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *kubernetesdaskorgv1.DaskCluster, err error)

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

func (*FakeDaskClusters) List

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

func (*FakeDaskClusters) Patch

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

Patch applies the patch and returns the patched daskCluster.

func (*FakeDaskClusters) Update

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

func (*FakeDaskClusters) UpdateStatus

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

func (*FakeDaskClusters) Watch

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

type FakeDaskJobs

type FakeDaskJobs struct {
	Fake *FakeKubernetesV1
	// contains filtered or unexported fields
}

FakeDaskJobs implements DaskJobInterface

func (*FakeDaskJobs) Create

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

func (*FakeDaskJobs) Delete

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

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

func (*FakeDaskJobs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDaskJobs) Get

func (c *FakeDaskJobs) Get(ctx context.Context, name string, options v1.GetOptions) (result *kubernetesdaskorgv1.DaskJob, err error)

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

func (*FakeDaskJobs) List

func (c *FakeDaskJobs) List(ctx context.Context, opts v1.ListOptions) (result *kubernetesdaskorgv1.DaskJobList, err error)

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

func (*FakeDaskJobs) Patch

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

Patch applies the patch and returns the patched daskJob.

func (*FakeDaskJobs) Update

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

func (*FakeDaskJobs) UpdateStatus

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

func (*FakeDaskJobs) Watch

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

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

type FakeDaskWorkerGroups

type FakeDaskWorkerGroups struct {
	Fake *FakeKubernetesV1
	// contains filtered or unexported fields
}

FakeDaskWorkerGroups implements DaskWorkerGroupInterface

func (*FakeDaskWorkerGroups) Create

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

func (*FakeDaskWorkerGroups) Delete

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

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

func (*FakeDaskWorkerGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDaskWorkerGroups) Get

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

func (*FakeDaskWorkerGroups) List

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

func (*FakeDaskWorkerGroups) Patch

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

Patch applies the patch and returns the patched daskWorkerGroup.

func (*FakeDaskWorkerGroups) Update

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

func (*FakeDaskWorkerGroups) Watch

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

type FakeKubernetesV1

type FakeKubernetesV1 struct {
	*testing.Fake
}

func (*FakeKubernetesV1) DaskAutoscalers

func (c *FakeKubernetesV1) DaskAutoscalers(namespace string) v1.DaskAutoscalerInterface

func (*FakeKubernetesV1) DaskClusters

func (c *FakeKubernetesV1) DaskClusters(namespace string) v1.DaskClusterInterface

func (*FakeKubernetesV1) DaskJobs

func (c *FakeKubernetesV1) DaskJobs(namespace string) v1.DaskJobInterface

func (*FakeKubernetesV1) DaskWorkerGroups

func (c *FakeKubernetesV1) DaskWorkerGroups(namespace string) v1.DaskWorkerGroupInterface

func (*FakeKubernetesV1) RESTClient

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

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

Jump to

Keyboard shortcuts

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