fake

package
v0.0.0-...-6c851f4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 12 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 FakeContainerRuntimeConfigs

type FakeContainerRuntimeConfigs struct {
	Fake *FakeMachineconfigurationV1
}

FakeContainerRuntimeConfigs implements ContainerRuntimeConfigInterface

func (*FakeContainerRuntimeConfigs) Apply

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

func (*FakeContainerRuntimeConfigs) ApplyStatus

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

func (*FakeContainerRuntimeConfigs) Create

func (c *FakeContainerRuntimeConfigs) Create(ctx context.Context, containerRuntimeConfig *v1.ContainerRuntimeConfig, opts metav1.CreateOptions) (result *v1.ContainerRuntimeConfig, err error)

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

func (*FakeContainerRuntimeConfigs) Delete

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

func (*FakeContainerRuntimeConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeContainerRuntimeConfigs) Get

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

func (*FakeContainerRuntimeConfigs) List

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

func (*FakeContainerRuntimeConfigs) Patch

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

Patch applies the patch and returns the patched containerRuntimeConfig.

func (*FakeContainerRuntimeConfigs) Update

func (c *FakeContainerRuntimeConfigs) Update(ctx context.Context, containerRuntimeConfig *v1.ContainerRuntimeConfig, opts metav1.UpdateOptions) (result *v1.ContainerRuntimeConfig, err error)

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

func (*FakeContainerRuntimeConfigs) UpdateStatus

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

func (*FakeContainerRuntimeConfigs) Watch

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

type FakeControllerConfigs

type FakeControllerConfigs struct {
	Fake *FakeMachineconfigurationV1
}

FakeControllerConfigs implements ControllerConfigInterface

func (*FakeControllerConfigs) Apply

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

func (*FakeControllerConfigs) ApplyStatus

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

func (*FakeControllerConfigs) Create

func (c *FakeControllerConfigs) Create(ctx context.Context, controllerConfig *v1.ControllerConfig, opts metav1.CreateOptions) (result *v1.ControllerConfig, err error)

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

func (*FakeControllerConfigs) Delete

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

func (*FakeControllerConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeControllerConfigs) Get

func (c *FakeControllerConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ControllerConfig, err error)

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

func (*FakeControllerConfigs) List

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

func (*FakeControllerConfigs) Patch

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

Patch applies the patch and returns the patched controllerConfig.

func (*FakeControllerConfigs) Update

func (c *FakeControllerConfigs) Update(ctx context.Context, controllerConfig *v1.ControllerConfig, opts metav1.UpdateOptions) (result *v1.ControllerConfig, err error)

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

func (*FakeControllerConfigs) UpdateStatus

func (c *FakeControllerConfigs) UpdateStatus(ctx context.Context, controllerConfig *v1.ControllerConfig, opts metav1.UpdateOptions) (*v1.ControllerConfig, error)

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

func (*FakeControllerConfigs) Watch

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

type FakeKubeletConfigs

type FakeKubeletConfigs struct {
	Fake *FakeMachineconfigurationV1
}

FakeKubeletConfigs implements KubeletConfigInterface

func (*FakeKubeletConfigs) Apply

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

func (*FakeKubeletConfigs) ApplyStatus

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

func (*FakeKubeletConfigs) Create

func (c *FakeKubeletConfigs) Create(ctx context.Context, kubeletConfig *v1.KubeletConfig, opts metav1.CreateOptions) (result *v1.KubeletConfig, err error)

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

func (*FakeKubeletConfigs) Delete

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

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

func (*FakeKubeletConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKubeletConfigs) Get

func (c *FakeKubeletConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.KubeletConfig, err error)

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

func (*FakeKubeletConfigs) List

func (c *FakeKubeletConfigs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.KubeletConfigList, err error)

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

func (*FakeKubeletConfigs) Patch

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

Patch applies the patch and returns the patched kubeletConfig.

func (*FakeKubeletConfigs) Update

func (c *FakeKubeletConfigs) Update(ctx context.Context, kubeletConfig *v1.KubeletConfig, opts metav1.UpdateOptions) (result *v1.KubeletConfig, err error)

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

func (*FakeKubeletConfigs) UpdateStatus

func (c *FakeKubeletConfigs) UpdateStatus(ctx context.Context, kubeletConfig *v1.KubeletConfig, opts metav1.UpdateOptions) (*v1.KubeletConfig, error)

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

func (*FakeKubeletConfigs) Watch

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

type FakeMachineConfigPools

type FakeMachineConfigPools struct {
	Fake *FakeMachineconfigurationV1
}

FakeMachineConfigPools implements MachineConfigPoolInterface

func (*FakeMachineConfigPools) Apply

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

func (*FakeMachineConfigPools) ApplyStatus

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

func (*FakeMachineConfigPools) Create

func (c *FakeMachineConfigPools) Create(ctx context.Context, machineConfigPool *v1.MachineConfigPool, opts metav1.CreateOptions) (result *v1.MachineConfigPool, err error)

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

func (*FakeMachineConfigPools) Delete

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

func (*FakeMachineConfigPools) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMachineConfigPools) Get

func (c *FakeMachineConfigPools) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.MachineConfigPool, err error)

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

func (*FakeMachineConfigPools) List

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

func (*FakeMachineConfigPools) Patch

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

Patch applies the patch and returns the patched machineConfigPool.

func (*FakeMachineConfigPools) Update

func (c *FakeMachineConfigPools) Update(ctx context.Context, machineConfigPool *v1.MachineConfigPool, opts metav1.UpdateOptions) (result *v1.MachineConfigPool, err error)

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

func (*FakeMachineConfigPools) UpdateStatus

func (c *FakeMachineConfigPools) UpdateStatus(ctx context.Context, machineConfigPool *v1.MachineConfigPool, opts metav1.UpdateOptions) (*v1.MachineConfigPool, error)

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

func (*FakeMachineConfigPools) Watch

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

type FakeMachineConfigs

type FakeMachineConfigs struct {
	Fake *FakeMachineconfigurationV1
}

FakeMachineConfigs implements MachineConfigInterface

func (*FakeMachineConfigs) Apply

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

func (*FakeMachineConfigs) Create

func (c *FakeMachineConfigs) Create(ctx context.Context, machineConfig *v1.MachineConfig, opts metav1.CreateOptions) (result *v1.MachineConfig, err error)

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

func (*FakeMachineConfigs) Delete

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

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

func (*FakeMachineConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMachineConfigs) Get

func (c *FakeMachineConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.MachineConfig, err error)

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

func (*FakeMachineConfigs) List

func (c *FakeMachineConfigs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.MachineConfigList, err error)

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

func (*FakeMachineConfigs) Patch

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

Patch applies the patch and returns the patched machineConfig.

func (*FakeMachineConfigs) Update

func (c *FakeMachineConfigs) Update(ctx context.Context, machineConfig *v1.MachineConfig, opts metav1.UpdateOptions) (result *v1.MachineConfig, err error)

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

func (*FakeMachineConfigs) Watch

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

type FakeMachineconfigurationV1

type FakeMachineconfigurationV1 struct {
	*testing.Fake
}

func (*FakeMachineconfigurationV1) ContainerRuntimeConfigs

func (c *FakeMachineconfigurationV1) ContainerRuntimeConfigs() v1.ContainerRuntimeConfigInterface

func (*FakeMachineconfigurationV1) ControllerConfigs

func (*FakeMachineconfigurationV1) KubeletConfigs

func (*FakeMachineconfigurationV1) MachineConfigPools

func (*FakeMachineconfigurationV1) MachineConfigs

func (*FakeMachineconfigurationV1) RESTClient

func (c *FakeMachineconfigurationV1) 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