fake

package
v0.0.0-...-ccbd80b Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 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 FakeAppV1alpha1

type FakeAppV1alpha1 struct {
	*testing.Fake
}

func (*FakeAppV1alpha1) KubeSerials

func (c *FakeAppV1alpha1) KubeSerials(namespace string) v1alpha1.KubeSerialInterface

func (*FakeAppV1alpha1) ManagerScheduleRequests

func (c *FakeAppV1alpha1) ManagerScheduleRequests() v1alpha1.ManagerScheduleRequestInterface

func (*FakeAppV1alpha1) Managers

func (*FakeAppV1alpha1) RESTClient

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

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

func (*FakeAppV1alpha1) SerialDevices

func (c *FakeAppV1alpha1) SerialDevices() v1alpha1.SerialDeviceInterface

type FakeKubeSerials

type FakeKubeSerials struct {
	Fake *FakeAppV1alpha1
	// contains filtered or unexported fields
}

FakeKubeSerials implements KubeSerialInterface

func (*FakeKubeSerials) Create

func (c *FakeKubeSerials) Create(ctx context.Context, kubeSerial *v1alpha1.KubeSerial, opts v1.CreateOptions) (result *v1alpha1.KubeSerial, err error)

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

func (*FakeKubeSerials) Delete

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

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

func (*FakeKubeSerials) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKubeSerials) Get

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

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

func (*FakeKubeSerials) List

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

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

func (*FakeKubeSerials) Patch

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

Patch applies the patch and returns the patched kubeSerial.

func (*FakeKubeSerials) Update

func (c *FakeKubeSerials) Update(ctx context.Context, kubeSerial *v1alpha1.KubeSerial, opts v1.UpdateOptions) (result *v1alpha1.KubeSerial, err error)

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

func (*FakeKubeSerials) UpdateStatus

func (c *FakeKubeSerials) UpdateStatus(ctx context.Context, kubeSerial *v1alpha1.KubeSerial, opts v1.UpdateOptions) (*v1alpha1.KubeSerial, error)

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

func (*FakeKubeSerials) Watch

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

type FakeManagerScheduleRequests

type FakeManagerScheduleRequests struct {
	Fake *FakeAppV1alpha1
}

FakeManagerScheduleRequests implements ManagerScheduleRequestInterface

func (*FakeManagerScheduleRequests) Create

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

func (*FakeManagerScheduleRequests) Delete

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

func (*FakeManagerScheduleRequests) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeManagerScheduleRequests) Get

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

func (*FakeManagerScheduleRequests) List

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

func (*FakeManagerScheduleRequests) Patch

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

Patch applies the patch and returns the patched managerScheduleRequest.

func (*FakeManagerScheduleRequests) Update

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

func (*FakeManagerScheduleRequests) UpdateStatus

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

func (*FakeManagerScheduleRequests) Watch

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

type FakeManagers

type FakeManagers struct {
	Fake *FakeAppV1alpha1
}

FakeManagers implements ManagerInterface

func (*FakeManagers) Create

func (c *FakeManagers) Create(ctx context.Context, manager *v1alpha1.Manager, opts v1.CreateOptions) (result *v1alpha1.Manager, err error)

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

func (*FakeManagers) Delete

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

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

func (*FakeManagers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeManagers) Get

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

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

func (*FakeManagers) List

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

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

func (*FakeManagers) Patch

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

Patch applies the patch and returns the patched manager.

func (*FakeManagers) Update

func (c *FakeManagers) Update(ctx context.Context, manager *v1alpha1.Manager, opts v1.UpdateOptions) (result *v1alpha1.Manager, err error)

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

func (*FakeManagers) UpdateStatus

func (c *FakeManagers) UpdateStatus(ctx context.Context, manager *v1alpha1.Manager, opts v1.UpdateOptions) (*v1alpha1.Manager, error)

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

func (*FakeManagers) Watch

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

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

type FakeSerialDevices

type FakeSerialDevices struct {
	Fake *FakeAppV1alpha1
}

FakeSerialDevices implements SerialDeviceInterface

func (*FakeSerialDevices) Create

func (c *FakeSerialDevices) Create(ctx context.Context, serialDevice *v1alpha1.SerialDevice, opts v1.CreateOptions) (result *v1alpha1.SerialDevice, err error)

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

func (*FakeSerialDevices) Delete

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

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

func (*FakeSerialDevices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSerialDevices) Get

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

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

func (*FakeSerialDevices) List

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

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

func (*FakeSerialDevices) Patch

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

Patch applies the patch and returns the patched serialDevice.

func (*FakeSerialDevices) Update

func (c *FakeSerialDevices) Update(ctx context.Context, serialDevice *v1alpha1.SerialDevice, opts v1.UpdateOptions) (result *v1alpha1.SerialDevice, err error)

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

func (*FakeSerialDevices) UpdateStatus

func (c *FakeSerialDevices) UpdateStatus(ctx context.Context, serialDevice *v1alpha1.SerialDevice, opts v1.UpdateOptions) (*v1alpha1.SerialDevice, error)

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

func (*FakeSerialDevices) Watch

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

Jump to

Keyboard shortcuts

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