fake

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 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 FakeCustomClusters

type FakeCustomClusters struct {
	Fake *FakeInfrastructureV1alpha1
	// contains filtered or unexported fields
}

FakeCustomClusters implements CustomClusterInterface

func (*FakeCustomClusters) Create

func (c *FakeCustomClusters) Create(ctx context.Context, customCluster *v1alpha1.CustomCluster, opts v1.CreateOptions) (result *v1alpha1.CustomCluster, err error)

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

func (*FakeCustomClusters) Delete

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

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

func (*FakeCustomClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCustomClusters) Get

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

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

func (*FakeCustomClusters) List

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

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

func (*FakeCustomClusters) Patch

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

Patch applies the patch and returns the patched customCluster.

func (*FakeCustomClusters) Update

func (c *FakeCustomClusters) Update(ctx context.Context, customCluster *v1alpha1.CustomCluster, opts v1.UpdateOptions) (result *v1alpha1.CustomCluster, err error)

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

func (*FakeCustomClusters) UpdateStatus

func (c *FakeCustomClusters) UpdateStatus(ctx context.Context, customCluster *v1alpha1.CustomCluster, opts v1.UpdateOptions) (*v1alpha1.CustomCluster, error)

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

func (*FakeCustomClusters) Watch

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

type FakeCustomMachines

type FakeCustomMachines struct {
	Fake *FakeInfrastructureV1alpha1
	// contains filtered or unexported fields
}

FakeCustomMachines implements CustomMachineInterface

func (*FakeCustomMachines) Create

func (c *FakeCustomMachines) Create(ctx context.Context, customMachine *v1alpha1.CustomMachine, opts v1.CreateOptions) (result *v1alpha1.CustomMachine, err error)

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

func (*FakeCustomMachines) Delete

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

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

func (*FakeCustomMachines) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCustomMachines) Get

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

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

func (*FakeCustomMachines) List

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

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

func (*FakeCustomMachines) Patch

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

Patch applies the patch and returns the patched customMachine.

func (*FakeCustomMachines) Update

func (c *FakeCustomMachines) Update(ctx context.Context, customMachine *v1alpha1.CustomMachine, opts v1.UpdateOptions) (result *v1alpha1.CustomMachine, err error)

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

func (*FakeCustomMachines) UpdateStatus

func (c *FakeCustomMachines) UpdateStatus(ctx context.Context, customMachine *v1alpha1.CustomMachine, opts v1.UpdateOptions) (*v1alpha1.CustomMachine, error)

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

func (*FakeCustomMachines) Watch

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

type FakeInfrastructureV1alpha1

type FakeInfrastructureV1alpha1 struct {
	*testing.Fake
}

func (*FakeInfrastructureV1alpha1) CustomClusters

func (*FakeInfrastructureV1alpha1) CustomMachines

func (*FakeInfrastructureV1alpha1) RESTClient

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

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

Jump to

Keyboard shortcuts

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