fake

package
v0.0.0-...-d24fd3e Latest Latest
Warning

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

Go to latest
Published: Jun 30, 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 FakeMachineHealthChecks

type FakeMachineHealthChecks struct {
	Fake *FakeMachineV1beta1
	// contains filtered or unexported fields
}

FakeMachineHealthChecks implements MachineHealthCheckInterface

func (*FakeMachineHealthChecks) Apply

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

func (*FakeMachineHealthChecks) ApplyStatus

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

func (*FakeMachineHealthChecks) Create

func (c *FakeMachineHealthChecks) Create(ctx context.Context, machineHealthCheck *v1beta1.MachineHealthCheck, opts v1.CreateOptions) (result *v1beta1.MachineHealthCheck, err error)

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

func (*FakeMachineHealthChecks) Delete

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

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

func (*FakeMachineHealthChecks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMachineHealthChecks) Get

func (c *FakeMachineHealthChecks) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.MachineHealthCheck, err error)

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

func (*FakeMachineHealthChecks) List

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

func (*FakeMachineHealthChecks) Patch

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

Patch applies the patch and returns the patched machineHealthCheck.

func (*FakeMachineHealthChecks) Update

func (c *FakeMachineHealthChecks) Update(ctx context.Context, machineHealthCheck *v1beta1.MachineHealthCheck, opts v1.UpdateOptions) (result *v1beta1.MachineHealthCheck, err error)

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

func (*FakeMachineHealthChecks) UpdateStatus

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

func (*FakeMachineHealthChecks) Watch

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

type FakeMachineSets

type FakeMachineSets struct {
	Fake *FakeMachineV1beta1
	// contains filtered or unexported fields
}

FakeMachineSets implements MachineSetInterface

func (*FakeMachineSets) Apply

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

func (*FakeMachineSets) ApplyStatus

func (c *FakeMachineSets) ApplyStatus(ctx context.Context, machineSet *machinev1beta1.MachineSetApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.MachineSet, 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 (*FakeMachineSets) Create

func (c *FakeMachineSets) Create(ctx context.Context, machineSet *v1beta1.MachineSet, opts v1.CreateOptions) (result *v1beta1.MachineSet, err error)

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

func (*FakeMachineSets) Delete

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

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

func (*FakeMachineSets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMachineSets) Get

func (c *FakeMachineSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.MachineSet, err error)

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

func (*FakeMachineSets) List

func (c *FakeMachineSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.MachineSetList, err error)

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

func (*FakeMachineSets) Patch

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

Patch applies the patch and returns the patched machineSet.

func (*FakeMachineSets) Update

func (c *FakeMachineSets) Update(ctx context.Context, machineSet *v1beta1.MachineSet, opts v1.UpdateOptions) (result *v1beta1.MachineSet, err error)

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

func (*FakeMachineSets) UpdateStatus

func (c *FakeMachineSets) UpdateStatus(ctx context.Context, machineSet *v1beta1.MachineSet, opts v1.UpdateOptions) (*v1beta1.MachineSet, error)

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

func (*FakeMachineSets) Watch

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

type FakeMachineV1beta1

type FakeMachineV1beta1 struct {
	*testing.Fake
}

func (*FakeMachineV1beta1) MachineHealthChecks

func (c *FakeMachineV1beta1) MachineHealthChecks(namespace string) v1beta1.MachineHealthCheckInterface

func (*FakeMachineV1beta1) MachineSets

func (c *FakeMachineV1beta1) MachineSets(namespace string) v1beta1.MachineSetInterface

func (*FakeMachineV1beta1) Machines

func (c *FakeMachineV1beta1) Machines(namespace string) v1beta1.MachineInterface

func (*FakeMachineV1beta1) RESTClient

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

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

type FakeMachines

type FakeMachines struct {
	Fake *FakeMachineV1beta1
	// 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 *machinev1beta1.MachineApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.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 *v1beta1.Machine, opts v1.CreateOptions) (result *v1beta1.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 *v1beta1.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 *v1beta1.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 *v1beta1.Machine, err error)

Patch applies the patch and returns the patched machine.

func (*FakeMachines) Update

func (c *FakeMachines) Update(ctx context.Context, machine *v1beta1.Machine, opts v1.UpdateOptions) (result *v1beta1.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 *v1beta1.Machine, opts v1.UpdateOptions) (*v1beta1.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