fake

package
v0.0.0-...-d44f63b Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT 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 FakeGPUClassParameters

type FakeGPUClassParameters struct {
	Fake *FakeGpuV1alpha1
}

FakeGPUClassParameters implements GPUClassParametersInterface

func (*FakeGPUClassParameters) Apply

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

func (*FakeGPUClassParameters) Create

func (c *FakeGPUClassParameters) Create(ctx context.Context, gPUClassParameters *v1alpha1.GPUClassParameters, opts v1.CreateOptions) (result *v1alpha1.GPUClassParameters, err error)

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

func (*FakeGPUClassParameters) Delete

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

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

func (*FakeGPUClassParameters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGPUClassParameters) Get

func (c *FakeGPUClassParameters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.GPUClassParameters, err error)

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

func (*FakeGPUClassParameters) List

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

func (*FakeGPUClassParameters) Patch

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

Patch applies the patch and returns the patched gPUClassParameters.

func (*FakeGPUClassParameters) Update

func (c *FakeGPUClassParameters) Update(ctx context.Context, gPUClassParameters *v1alpha1.GPUClassParameters, opts v1.UpdateOptions) (result *v1alpha1.GPUClassParameters, err error)

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

func (*FakeGPUClassParameters) Watch

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

type FakeGPURequirements

type FakeGPURequirements struct {
	Fake *FakeGpuV1alpha1
	// contains filtered or unexported fields
}

FakeGPURequirements implements GPURequirementsInterface

func (*FakeGPURequirements) Apply

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

func (*FakeGPURequirements) Create

func (c *FakeGPURequirements) Create(ctx context.Context, gPURequirements *v1alpha1.GPURequirements, opts v1.CreateOptions) (result *v1alpha1.GPURequirements, err error)

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

func (*FakeGPURequirements) Delete

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

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

func (*FakeGPURequirements) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGPURequirements) Get

func (c *FakeGPURequirements) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.GPURequirements, err error)

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

func (*FakeGPURequirements) List

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

func (*FakeGPURequirements) Patch

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

Patch applies the patch and returns the patched gPURequirements.

func (*FakeGPURequirements) Update

func (c *FakeGPURequirements) Update(ctx context.Context, gPURequirements *v1alpha1.GPURequirements, opts v1.UpdateOptions) (result *v1alpha1.GPURequirements, err error)

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

func (*FakeGPURequirements) Watch

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

type FakeGpuV1alpha1

type FakeGpuV1alpha1 struct {
	*testing.Fake
}

func (*FakeGpuV1alpha1) GPUClassParameters

func (c *FakeGpuV1alpha1) GPUClassParameters() v1alpha1.GPUClassParametersInterface

func (*FakeGpuV1alpha1) GPURequirements

func (c *FakeGpuV1alpha1) GPURequirements(namespace string) v1alpha1.GPURequirementsInterface

func (*FakeGpuV1alpha1) NodeGPUSlices

func (c *FakeGpuV1alpha1) NodeGPUSlices(namespace string) v1alpha1.NodeGPUSlicesInterface

func (*FakeGpuV1alpha1) RESTClient

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

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

type FakeNodeGPUSlices

type FakeNodeGPUSlices struct {
	Fake *FakeGpuV1alpha1
	// contains filtered or unexported fields
}

FakeNodeGPUSlices implements NodeGPUSlicesInterface

func (*FakeNodeGPUSlices) Apply

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

func (*FakeNodeGPUSlices) Create

func (c *FakeNodeGPUSlices) Create(ctx context.Context, nodeGPUSlices *v1alpha1.NodeGPUSlices, opts v1.CreateOptions) (result *v1alpha1.NodeGPUSlices, err error)

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

func (*FakeNodeGPUSlices) Delete

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

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

func (*FakeNodeGPUSlices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNodeGPUSlices) Get

func (c *FakeNodeGPUSlices) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.NodeGPUSlices, err error)

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

func (*FakeNodeGPUSlices) List

func (c *FakeNodeGPUSlices) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.NodeGPUSlicesList, err error)

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

func (*FakeNodeGPUSlices) Patch

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

Patch applies the patch and returns the patched nodeGPUSlices.

func (*FakeNodeGPUSlices) Update

func (c *FakeNodeGPUSlices) Update(ctx context.Context, nodeGPUSlices *v1alpha1.NodeGPUSlices, opts v1.UpdateOptions) (result *v1alpha1.NodeGPUSlices, err error)

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

func (*FakeNodeGPUSlices) Watch

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

Jump to

Keyboard shortcuts

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