fake

package
v0.0.0-...-907faa4 Latest Latest
Warning

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

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

type FakeKubeflowV1 struct {
	*testing.Fake
}

func (*FakeKubeflowV1) Notebooks

func (c *FakeKubeflowV1) Notebooks(namespace string) v1.NotebookInterface

func (*FakeKubeflowV1) Profiles

func (c *FakeKubeflowV1) Profiles() v1.ProfileInterface

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.

type FakeNotebooks

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

FakeNotebooks implements NotebookInterface

func (*FakeNotebooks) Create

func (c *FakeNotebooks) Create(ctx context.Context, notebook *kubeflowv1.Notebook, opts v1.CreateOptions) (result *kubeflowv1.Notebook, err error)

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

func (*FakeNotebooks) Delete

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

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

func (*FakeNotebooks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNotebooks) Get

func (c *FakeNotebooks) Get(ctx context.Context, name string, options v1.GetOptions) (result *kubeflowv1.Notebook, err error)

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

func (*FakeNotebooks) List

func (c *FakeNotebooks) List(ctx context.Context, opts v1.ListOptions) (result *kubeflowv1.NotebookList, err error)

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

func (*FakeNotebooks) Patch

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

Patch applies the patch and returns the patched notebook.

func (*FakeNotebooks) Update

func (c *FakeNotebooks) Update(ctx context.Context, notebook *kubeflowv1.Notebook, opts v1.UpdateOptions) (result *kubeflowv1.Notebook, err error)

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

func (*FakeNotebooks) UpdateStatus

func (c *FakeNotebooks) UpdateStatus(ctx context.Context, notebook *kubeflowv1.Notebook, opts v1.UpdateOptions) (*kubeflowv1.Notebook, error)

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

func (*FakeNotebooks) Watch

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

type FakeProfiles

type FakeProfiles struct {
	Fake *FakeKubeflowV1
}

FakeProfiles implements ProfileInterface

func (*FakeProfiles) Create

func (c *FakeProfiles) Create(ctx context.Context, profile *kubeflowv1.Profile, opts v1.CreateOptions) (result *kubeflowv1.Profile, err error)

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

func (*FakeProfiles) Delete

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

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

func (*FakeProfiles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProfiles) Get

func (c *FakeProfiles) Get(ctx context.Context, name string, options v1.GetOptions) (result *kubeflowv1.Profile, err error)

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

func (*FakeProfiles) List

func (c *FakeProfiles) List(ctx context.Context, opts v1.ListOptions) (result *kubeflowv1.ProfileList, err error)

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

func (*FakeProfiles) Patch

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

Patch applies the patch and returns the patched profile.

func (*FakeProfiles) Update

func (c *FakeProfiles) Update(ctx context.Context, profile *kubeflowv1.Profile, opts v1.UpdateOptions) (result *kubeflowv1.Profile, err error)

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

func (*FakeProfiles) UpdateStatus

func (c *FakeProfiles) UpdateStatus(ctx context.Context, profile *kubeflowv1.Profile, opts v1.UpdateOptions) (*kubeflowv1.Profile, error)

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

func (*FakeProfiles) Watch

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

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

Jump to

Keyboard shortcuts

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