fake

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 9 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 FakeDiskioV1alpha1

type FakeDiskioV1alpha1 struct {
	*testing.Fake
}

func (*FakeDiskioV1alpha1) NodeDiskDevices

func (c *FakeDiskioV1alpha1) NodeDiskDevices(namespace string) v1alpha1.NodeDiskDeviceInterface

func (*FakeDiskioV1alpha1) NodeDiskIOStatses

func (c *FakeDiskioV1alpha1) NodeDiskIOStatses(namespace string) v1alpha1.NodeDiskIOStatsInterface

func (*FakeDiskioV1alpha1) RESTClient

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

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

type FakeNodeDiskDevices

type FakeNodeDiskDevices struct {
	Fake *FakeDiskioV1alpha1
	// contains filtered or unexported fields
}

FakeNodeDiskDevices implements NodeDiskDeviceInterface

func (*FakeNodeDiskDevices) Create

func (c *FakeNodeDiskDevices) Create(ctx context.Context, nodeDiskDevice *v1alpha1.NodeDiskDevice, opts v1.CreateOptions) (result *v1alpha1.NodeDiskDevice, err error)

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

func (*FakeNodeDiskDevices) Delete

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

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

func (*FakeNodeDiskDevices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNodeDiskDevices) Get

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

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

func (*FakeNodeDiskDevices) List

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

func (*FakeNodeDiskDevices) Patch

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

Patch applies the patch and returns the patched nodeDiskDevice.

func (*FakeNodeDiskDevices) Update

func (c *FakeNodeDiskDevices) Update(ctx context.Context, nodeDiskDevice *v1alpha1.NodeDiskDevice, opts v1.UpdateOptions) (result *v1alpha1.NodeDiskDevice, err error)

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

func (*FakeNodeDiskDevices) UpdateStatus

func (c *FakeNodeDiskDevices) UpdateStatus(ctx context.Context, nodeDiskDevice *v1alpha1.NodeDiskDevice, opts v1.UpdateOptions) (*v1alpha1.NodeDiskDevice, error)

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

func (*FakeNodeDiskDevices) Watch

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

type FakeNodeDiskIOStatses

type FakeNodeDiskIOStatses struct {
	Fake *FakeDiskioV1alpha1
	// contains filtered or unexported fields
}

FakeNodeDiskIOStatses implements NodeDiskIOStatsInterface

func (*FakeNodeDiskIOStatses) Create

func (c *FakeNodeDiskIOStatses) Create(ctx context.Context, nodeDiskIOStats *v1alpha1.NodeDiskIOStats, opts v1.CreateOptions) (result *v1alpha1.NodeDiskIOStats, err error)

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

func (*FakeNodeDiskIOStatses) Delete

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

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

func (*FakeNodeDiskIOStatses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNodeDiskIOStatses) Get

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

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

func (*FakeNodeDiskIOStatses) List

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

func (*FakeNodeDiskIOStatses) Patch

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

Patch applies the patch and returns the patched nodeDiskIOStats.

func (*FakeNodeDiskIOStatses) Update

func (c *FakeNodeDiskIOStatses) Update(ctx context.Context, nodeDiskIOStats *v1alpha1.NodeDiskIOStats, opts v1.UpdateOptions) (result *v1alpha1.NodeDiskIOStats, err error)

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

func (*FakeNodeDiskIOStatses) UpdateStatus

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

func (*FakeNodeDiskIOStatses) Watch

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

Jump to

Keyboard shortcuts

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