fake

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 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 FakeAppsV1alpha1

type FakeAppsV1alpha1 struct {
	*testing.Fake
}

func (*FakeAppsV1alpha1) NodePools

func (*FakeAppsV1alpha1) RESTClient

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

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

func (*FakeAppsV1alpha1) UnitedDeployments

func (c *FakeAppsV1alpha1) UnitedDeployments(namespace string) v1alpha1.UnitedDeploymentInterface

type FakeNodePools

type FakeNodePools struct {
	Fake *FakeAppsV1alpha1
}

FakeNodePools implements NodePoolInterface

func (*FakeNodePools) Create

func (c *FakeNodePools) Create(nodePool *v1alpha1.NodePool) (result *v1alpha1.NodePool, err error)

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

func (*FakeNodePools) Delete

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

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

func (*FakeNodePools) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNodePools) Get

func (c *FakeNodePools) Get(name string, options v1.GetOptions) (result *v1alpha1.NodePool, err error)

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

func (*FakeNodePools) List

func (c *FakeNodePools) List(opts v1.ListOptions) (result *v1alpha1.NodePoolList, err error)

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

func (*FakeNodePools) Patch

func (c *FakeNodePools) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.NodePool, err error)

Patch applies the patch and returns the patched nodePool.

func (*FakeNodePools) Update

func (c *FakeNodePools) Update(nodePool *v1alpha1.NodePool) (result *v1alpha1.NodePool, err error)

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

func (*FakeNodePools) UpdateStatus

func (c *FakeNodePools) UpdateStatus(nodePool *v1alpha1.NodePool) (*v1alpha1.NodePool, error)

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

func (*FakeNodePools) Watch

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

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

type FakeUnitedDeployments

type FakeUnitedDeployments struct {
	Fake *FakeAppsV1alpha1
	// contains filtered or unexported fields
}

FakeUnitedDeployments implements UnitedDeploymentInterface

func (*FakeUnitedDeployments) Create

func (c *FakeUnitedDeployments) Create(unitedDeployment *v1alpha1.UnitedDeployment) (result *v1alpha1.UnitedDeployment, err error)

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

func (*FakeUnitedDeployments) Delete

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

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

func (*FakeUnitedDeployments) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeUnitedDeployments) Get

func (c *FakeUnitedDeployments) Get(name string, options v1.GetOptions) (result *v1alpha1.UnitedDeployment, err error)

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

func (*FakeUnitedDeployments) List

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

func (*FakeUnitedDeployments) Patch

func (c *FakeUnitedDeployments) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.UnitedDeployment, err error)

Patch applies the patch and returns the patched unitedDeployment.

func (*FakeUnitedDeployments) Update

func (c *FakeUnitedDeployments) Update(unitedDeployment *v1alpha1.UnitedDeployment) (result *v1alpha1.UnitedDeployment, err error)

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

func (*FakeUnitedDeployments) UpdateStatus

func (c *FakeUnitedDeployments) UpdateStatus(unitedDeployment *v1alpha1.UnitedDeployment) (*v1alpha1.UnitedDeployment, error)

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

func (*FakeUnitedDeployments) Watch

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

Jump to

Keyboard shortcuts

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