fake

package
v0.4.20 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 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 FakeAWSClusters

type FakeAWSClusters struct {
	Fake *FakeInfrastructureV1alpha2
	// contains filtered or unexported fields
}

FakeAWSClusters implements AWSClusterInterface

func (*FakeAWSClusters) Create

func (c *FakeAWSClusters) Create(aWSCluster *v1alpha2.AWSCluster) (result *v1alpha2.AWSCluster, err error)

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

func (*FakeAWSClusters) Delete

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

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

func (*FakeAWSClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAWSClusters) Get

func (c *FakeAWSClusters) Get(name string, options v1.GetOptions) (result *v1alpha2.AWSCluster, err error)

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

func (*FakeAWSClusters) List

func (c *FakeAWSClusters) List(opts v1.ListOptions) (result *v1alpha2.AWSClusterList, err error)

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

func (*FakeAWSClusters) Patch

func (c *FakeAWSClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha2.AWSCluster, err error)

Patch applies the patch and returns the patched aWSCluster.

func (*FakeAWSClusters) Update

func (c *FakeAWSClusters) Update(aWSCluster *v1alpha2.AWSCluster) (result *v1alpha2.AWSCluster, err error)

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

func (*FakeAWSClusters) UpdateStatus

func (c *FakeAWSClusters) UpdateStatus(aWSCluster *v1alpha2.AWSCluster) (*v1alpha2.AWSCluster, error)

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

func (*FakeAWSClusters) Watch

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

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

type FakeAWSControlPlanes

type FakeAWSControlPlanes struct {
	Fake *FakeInfrastructureV1alpha2
	// contains filtered or unexported fields
}

FakeAWSControlPlanes implements AWSControlPlaneInterface

func (*FakeAWSControlPlanes) Create

func (c *FakeAWSControlPlanes) Create(aWSControlPlane *v1alpha2.AWSControlPlane) (result *v1alpha2.AWSControlPlane, err error)

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

func (*FakeAWSControlPlanes) Delete

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

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

func (*FakeAWSControlPlanes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAWSControlPlanes) Get

func (c *FakeAWSControlPlanes) Get(name string, options v1.GetOptions) (result *v1alpha2.AWSControlPlane, err error)

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

func (*FakeAWSControlPlanes) List

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

func (*FakeAWSControlPlanes) Patch

func (c *FakeAWSControlPlanes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha2.AWSControlPlane, err error)

Patch applies the patch and returns the patched aWSControlPlane.

func (*FakeAWSControlPlanes) Update

func (c *FakeAWSControlPlanes) Update(aWSControlPlane *v1alpha2.AWSControlPlane) (result *v1alpha2.AWSControlPlane, err error)

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

func (*FakeAWSControlPlanes) Watch

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

type FakeAWSMachineDeployments

type FakeAWSMachineDeployments struct {
	Fake *FakeInfrastructureV1alpha2
	// contains filtered or unexported fields
}

FakeAWSMachineDeployments implements AWSMachineDeploymentInterface

func (*FakeAWSMachineDeployments) Create

func (c *FakeAWSMachineDeployments) Create(aWSMachineDeployment *v1alpha2.AWSMachineDeployment) (result *v1alpha2.AWSMachineDeployment, err error)

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

func (*FakeAWSMachineDeployments) Delete

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

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

func (*FakeAWSMachineDeployments) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAWSMachineDeployments) Get

func (c *FakeAWSMachineDeployments) Get(name string, options v1.GetOptions) (result *v1alpha2.AWSMachineDeployment, err error)

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

func (*FakeAWSMachineDeployments) List

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

func (*FakeAWSMachineDeployments) Patch

func (c *FakeAWSMachineDeployments) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha2.AWSMachineDeployment, err error)

Patch applies the patch and returns the patched aWSMachineDeployment.

func (*FakeAWSMachineDeployments) Update

func (c *FakeAWSMachineDeployments) Update(aWSMachineDeployment *v1alpha2.AWSMachineDeployment) (result *v1alpha2.AWSMachineDeployment, err error)

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

func (*FakeAWSMachineDeployments) UpdateStatus added in v0.2.1

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

func (*FakeAWSMachineDeployments) Watch

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

type FakeG8sControlPlanes

type FakeG8sControlPlanes struct {
	Fake *FakeInfrastructureV1alpha2
	// contains filtered or unexported fields
}

FakeG8sControlPlanes implements G8sControlPlaneInterface

func (*FakeG8sControlPlanes) Create

func (c *FakeG8sControlPlanes) Create(g8sControlPlane *v1alpha2.G8sControlPlane) (result *v1alpha2.G8sControlPlane, err error)

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

func (*FakeG8sControlPlanes) Delete

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

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

func (*FakeG8sControlPlanes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeG8sControlPlanes) Get

func (c *FakeG8sControlPlanes) Get(name string, options v1.GetOptions) (result *v1alpha2.G8sControlPlane, err error)

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

func (*FakeG8sControlPlanes) List

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

func (*FakeG8sControlPlanes) Patch

func (c *FakeG8sControlPlanes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha2.G8sControlPlane, err error)

Patch applies the patch and returns the patched g8sControlPlane.

func (*FakeG8sControlPlanes) Update

func (c *FakeG8sControlPlanes) Update(g8sControlPlane *v1alpha2.G8sControlPlane) (result *v1alpha2.G8sControlPlane, err error)

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

func (*FakeG8sControlPlanes) UpdateStatus

func (c *FakeG8sControlPlanes) UpdateStatus(g8sControlPlane *v1alpha2.G8sControlPlane) (*v1alpha2.G8sControlPlane, error)

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

func (*FakeG8sControlPlanes) Watch

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

type FakeInfrastructureV1alpha2

type FakeInfrastructureV1alpha2 struct {
	*testing.Fake
}

func (*FakeInfrastructureV1alpha2) AWSClusters

func (*FakeInfrastructureV1alpha2) AWSControlPlanes

func (c *FakeInfrastructureV1alpha2) AWSControlPlanes(namespace string) v1alpha2.AWSControlPlaneInterface

func (*FakeInfrastructureV1alpha2) AWSMachineDeployments

func (c *FakeInfrastructureV1alpha2) AWSMachineDeployments(namespace string) v1alpha2.AWSMachineDeploymentInterface

func (*FakeInfrastructureV1alpha2) G8sControlPlanes

func (c *FakeInfrastructureV1alpha2) G8sControlPlanes(namespace string) v1alpha2.G8sControlPlaneInterface

func (*FakeInfrastructureV1alpha2) RESTClient

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