fake

package
v1.72.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: Apache-2.0 Imports: 10 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 FakeContainerClusters

type FakeContainerClusters struct {
	Fake *FakeContainerV1beta1
	// contains filtered or unexported fields
}

FakeContainerClusters implements ContainerClusterInterface

func (*FakeContainerClusters) Create

func (c *FakeContainerClusters) Create(ctx context.Context, containerCluster *v1beta1.ContainerCluster, opts v1.CreateOptions) (result *v1beta1.ContainerCluster, err error)

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

func (*FakeContainerClusters) Delete

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

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

func (*FakeContainerClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeContainerClusters) Get

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

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

func (*FakeContainerClusters) List

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

func (*FakeContainerClusters) Patch

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

Patch applies the patch and returns the patched containerCluster.

func (*FakeContainerClusters) Update

func (c *FakeContainerClusters) Update(ctx context.Context, containerCluster *v1beta1.ContainerCluster, opts v1.UpdateOptions) (result *v1beta1.ContainerCluster, err error)

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

func (*FakeContainerClusters) UpdateStatus

func (c *FakeContainerClusters) UpdateStatus(ctx context.Context, containerCluster *v1beta1.ContainerCluster, opts v1.UpdateOptions) (*v1beta1.ContainerCluster, error)

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

func (*FakeContainerClusters) Watch

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

type FakeContainerNodePools

type FakeContainerNodePools struct {
	Fake *FakeContainerV1beta1
	// contains filtered or unexported fields
}

FakeContainerNodePools implements ContainerNodePoolInterface

func (*FakeContainerNodePools) Create

func (c *FakeContainerNodePools) Create(ctx context.Context, containerNodePool *v1beta1.ContainerNodePool, opts v1.CreateOptions) (result *v1beta1.ContainerNodePool, err error)

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

func (*FakeContainerNodePools) Delete

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

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

func (*FakeContainerNodePools) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeContainerNodePools) Get

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

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

func (*FakeContainerNodePools) List

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

func (*FakeContainerNodePools) Patch

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

Patch applies the patch and returns the patched containerNodePool.

func (*FakeContainerNodePools) Update

func (c *FakeContainerNodePools) Update(ctx context.Context, containerNodePool *v1beta1.ContainerNodePool, opts v1.UpdateOptions) (result *v1beta1.ContainerNodePool, err error)

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

func (*FakeContainerNodePools) UpdateStatus

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

func (*FakeContainerNodePools) Watch

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

type FakeContainerV1beta1

type FakeContainerV1beta1 struct {
	*testing.Fake
}

func (*FakeContainerV1beta1) ContainerClusters

func (c *FakeContainerV1beta1) ContainerClusters(namespace string) v1beta1.ContainerClusterInterface

func (*FakeContainerV1beta1) ContainerNodePools

func (c *FakeContainerV1beta1) ContainerNodePools(namespace string) v1beta1.ContainerNodePoolInterface

func (*FakeContainerV1beta1) RESTClient

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