fake

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 13 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 FakeComputeV1alpha1

type FakeComputeV1alpha1 struct {
	*testing.Fake
}

func (*FakeComputeV1alpha1) MachineClasses

func (*FakeComputeV1alpha1) MachinePools

func (*FakeComputeV1alpha1) Machines

func (c *FakeComputeV1alpha1) Machines(namespace string) v1alpha1.MachineInterface

func (*FakeComputeV1alpha1) RESTClient

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

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

type FakeMachineClasses

type FakeMachineClasses struct {
	Fake *FakeComputeV1alpha1
}

FakeMachineClasses implements MachineClassInterface

func (*FakeMachineClasses) Apply

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

func (*FakeMachineClasses) Create

func (c *FakeMachineClasses) Create(ctx context.Context, machineClass *v1alpha1.MachineClass, opts v1.CreateOptions) (result *v1alpha1.MachineClass, err error)

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

func (*FakeMachineClasses) Delete

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

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

func (*FakeMachineClasses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMachineClasses) Get

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

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

func (*FakeMachineClasses) List

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

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

func (*FakeMachineClasses) Patch

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

Patch applies the patch and returns the patched machineClass.

func (*FakeMachineClasses) Update

func (c *FakeMachineClasses) Update(ctx context.Context, machineClass *v1alpha1.MachineClass, opts v1.UpdateOptions) (result *v1alpha1.MachineClass, err error)

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

func (*FakeMachineClasses) Watch

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

type FakeMachinePools

type FakeMachinePools struct {
	Fake *FakeComputeV1alpha1
}

FakeMachinePools implements MachinePoolInterface

func (*FakeMachinePools) Apply

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

func (*FakeMachinePools) ApplyStatus

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

func (*FakeMachinePools) Create

func (c *FakeMachinePools) Create(ctx context.Context, machinePool *v1alpha1.MachinePool, opts v1.CreateOptions) (result *v1alpha1.MachinePool, err error)

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

func (*FakeMachinePools) Delete

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

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

func (*FakeMachinePools) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMachinePools) Get

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

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

func (*FakeMachinePools) List

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

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

func (*FakeMachinePools) Patch

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

Patch applies the patch and returns the patched machinePool.

func (*FakeMachinePools) Update

func (c *FakeMachinePools) Update(ctx context.Context, machinePool *v1alpha1.MachinePool, opts v1.UpdateOptions) (result *v1alpha1.MachinePool, err error)

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

func (*FakeMachinePools) UpdateStatus

func (c *FakeMachinePools) UpdateStatus(ctx context.Context, machinePool *v1alpha1.MachinePool, opts v1.UpdateOptions) (*v1alpha1.MachinePool, error)

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

func (*FakeMachinePools) Watch

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

type FakeMachines

type FakeMachines struct {
	Fake *FakeComputeV1alpha1
	// contains filtered or unexported fields
}

FakeMachines implements MachineInterface

func (*FakeMachines) Apply

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

func (*FakeMachines) ApplyStatus

func (c *FakeMachines) ApplyStatus(ctx context.Context, machine *computev1alpha1.MachineApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Machine, err error)

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

func (*FakeMachines) Create

func (c *FakeMachines) Create(ctx context.Context, machine *v1alpha1.Machine, opts v1.CreateOptions) (result *v1alpha1.Machine, err error)

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

func (*FakeMachines) Delete

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

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

func (*FakeMachines) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMachines) Get

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

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

func (*FakeMachines) List

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

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

func (*FakeMachines) Patch

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

Patch applies the patch and returns the patched machine.

func (*FakeMachines) Update

func (c *FakeMachines) Update(ctx context.Context, machine *v1alpha1.Machine, opts v1.UpdateOptions) (result *v1alpha1.Machine, err error)

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

func (*FakeMachines) UpdateStatus

func (c *FakeMachines) UpdateStatus(ctx context.Context, machine *v1alpha1.Machine, opts v1.UpdateOptions) (*v1alpha1.Machine, error)

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

func (*FakeMachines) Watch

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

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

Jump to

Keyboard shortcuts

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