fake

package
Version: v3.11.1-0...-4446e78 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2019 License: Apache-2.0 Imports: 9 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 FakeControllerConfigs

type FakeControllerConfigs struct {
	Fake *FakeMachineconfigurationV1
}

FakeControllerConfigs implements ControllerConfigInterface

func (*FakeControllerConfigs) Create

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

func (c *FakeControllerConfigs) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeControllerConfigs) DeleteCollection

func (c *FakeControllerConfigs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeControllerConfigs) Get

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(name string, pt types.PatchType, data []byte, subresources ...string) (result *machineconfigurationopenshiftiov1.ControllerConfig, err error)

Patch applies the patch and returns the patched controllerConfig.

func (*FakeControllerConfigs) Update

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

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) Create

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(name string, options *v1.DeleteOptions) error

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

func (*FakeKubeletConfigs) DeleteCollection

func (c *FakeKubeletConfigs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeKubeletConfigs) Get

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

func (*FakeKubeletConfigs) List

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

func (*FakeKubeletConfigs) Patch

func (c *FakeKubeletConfigs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *machineconfigurationopenshiftiov1.KubeletConfig, err error)

Patch applies the patch and returns the patched kubeletConfig.

func (*FakeKubeletConfigs) Update

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

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 FakeMCOConfigs

type FakeMCOConfigs struct {
	Fake *FakeMachineconfigurationV1
	// contains filtered or unexported fields
}

FakeMCOConfigs implements MCOConfigInterface

func (*FakeMCOConfigs) Create

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

func (*FakeMCOConfigs) Delete

func (c *FakeMCOConfigs) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeMCOConfigs) DeleteCollection

func (c *FakeMCOConfigs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeMCOConfigs) Get

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

func (*FakeMCOConfigs) List

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

func (*FakeMCOConfigs) Patch

func (c *FakeMCOConfigs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *machineconfigurationopenshiftiov1.MCOConfig, err error)

Patch applies the patch and returns the patched mCOConfig.

func (*FakeMCOConfigs) Update

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

func (*FakeMCOConfigs) Watch

func (c *FakeMCOConfigs) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeMachineConfigPools

type FakeMachineConfigPools struct {
	Fake *FakeMachineconfigurationV1
}

FakeMachineConfigPools implements MachineConfigPoolInterface

func (*FakeMachineConfigPools) Create

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

func (c *FakeMachineConfigPools) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeMachineConfigPools) DeleteCollection

func (c *FakeMachineConfigPools) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeMachineConfigPools) Get

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(name string, pt types.PatchType, data []byte, subresources ...string) (result *machineconfigurationopenshiftiov1.MachineConfigPool, err error)

Patch applies the patch and returns the patched machineConfigPool.

func (*FakeMachineConfigPools) Update

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

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) Create

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(name string, options *v1.DeleteOptions) error

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

func (*FakeMachineConfigs) DeleteCollection

func (c *FakeMachineConfigs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeMachineConfigs) Get

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

func (*FakeMachineConfigs) List

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

func (*FakeMachineConfigs) Patch

func (c *FakeMachineConfigs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *machineconfigurationopenshiftiov1.MachineConfig, err error)

Patch applies the patch and returns the patched machineConfig.

func (*FakeMachineConfigs) Update

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) ControllerConfigs

func (*FakeMachineconfigurationV1) KubeletConfigs

func (*FakeMachineconfigurationV1) MCOConfigs

func (c *FakeMachineconfigurationV1) MCOConfigs(namespace string) v1.MCOConfigInterface

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