fake

package
v0.5.0-devel Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 12 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 FakeJobSets

type FakeJobSets struct {
	Fake *FakeJobsetV1alpha2
	// contains filtered or unexported fields
}

FakeJobSets implements JobSetInterface

func (*FakeJobSets) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied jobSet.

func (*FakeJobSets) ApplyStatus

func (c *FakeJobSets) ApplyStatus(ctx context.Context, jobSet *jobsetv1alpha2.JobSetApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha2.JobSet, err error)

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

func (*FakeJobSets) Create

func (c *FakeJobSets) Create(ctx context.Context, jobSet *v1alpha2.JobSet, opts v1.CreateOptions) (result *v1alpha2.JobSet, err error)

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

func (*FakeJobSets) Delete

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

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

func (*FakeJobSets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeJobSets) Get

func (c *FakeJobSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.JobSet, err error)

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

func (*FakeJobSets) List

func (c *FakeJobSets) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.JobSetList, err error)

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

func (*FakeJobSets) Patch

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

Patch applies the patch and returns the patched jobSet.

func (*FakeJobSets) Update

func (c *FakeJobSets) Update(ctx context.Context, jobSet *v1alpha2.JobSet, opts v1.UpdateOptions) (result *v1alpha2.JobSet, err error)

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

func (*FakeJobSets) UpdateStatus

func (c *FakeJobSets) UpdateStatus(ctx context.Context, jobSet *v1alpha2.JobSet, opts v1.UpdateOptions) (*v1alpha2.JobSet, error)

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

func (*FakeJobSets) Watch

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

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

type FakeJobsetV1alpha2

type FakeJobsetV1alpha2 struct {
	*testing.Fake
}

func (*FakeJobsetV1alpha2) JobSets

func (c *FakeJobsetV1alpha2) JobSets(namespace string) v1alpha2.JobSetInterface

func (*FakeJobsetV1alpha2) RESTClient

func (c *FakeJobsetV1alpha2) 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