fake

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 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 FakeKubeflowV1

type FakeKubeflowV1 struct {
	*testing.Fake
}

func (*FakeKubeflowV1) RESTClient

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

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

func (*FakeKubeflowV1) TestJobs

func (c *FakeKubeflowV1) TestJobs(namespace string) v1.TestJobInterface

type FakeTestJobs

type FakeTestJobs struct {
	Fake *FakeKubeflowV1
	// contains filtered or unexported fields
}

FakeTestJobs implements TestJobInterface

func (*FakeTestJobs) Create

func (c *FakeTestJobs) Create(ctx context.Context, testJob *testjobv1.TestJob, opts v1.CreateOptions) (result *testjobv1.TestJob, err error)

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

func (*FakeTestJobs) Delete

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

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

func (*FakeTestJobs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTestJobs) Get

func (c *FakeTestJobs) Get(ctx context.Context, name string, options v1.GetOptions) (result *testjobv1.TestJob, err error)

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

func (*FakeTestJobs) List

func (c *FakeTestJobs) List(ctx context.Context, opts v1.ListOptions) (result *testjobv1.TestJobList, err error)

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

func (*FakeTestJobs) Patch

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

Patch applies the patch and returns the patched testJob.

func (*FakeTestJobs) Update

func (c *FakeTestJobs) Update(ctx context.Context, testJob *testjobv1.TestJob, opts v1.UpdateOptions) (result *testjobv1.TestJob, err error)

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

func (*FakeTestJobs) UpdateStatus

func (c *FakeTestJobs) UpdateStatus(ctx context.Context, testJob *testjobv1.TestJob, opts v1.UpdateOptions) (*testjobv1.TestJob, error)

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

func (*FakeTestJobs) Watch

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

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

Jump to

Keyboard shortcuts

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