fake

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 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 FakeClusterRegistrationRequests

type FakeClusterRegistrationRequests struct {
	Fake *FakeClustersV1beta1
}

FakeClusterRegistrationRequests implements ClusterRegistrationRequestInterface

func (*FakeClusterRegistrationRequests) Create

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

func (*FakeClusterRegistrationRequests) Delete

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

func (*FakeClusterRegistrationRequests) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterRegistrationRequests) Get

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

func (*FakeClusterRegistrationRequests) List

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

func (*FakeClusterRegistrationRequests) Patch

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

Patch applies the patch and returns the patched clusterRegistrationRequest.

func (*FakeClusterRegistrationRequests) Update

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

func (*FakeClusterRegistrationRequests) UpdateStatus

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

func (*FakeClusterRegistrationRequests) Watch

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

type FakeClustersV1beta1

type FakeClustersV1beta1 struct {
	*testing.Fake
}

func (*FakeClustersV1beta1) ClusterRegistrationRequests

func (c *FakeClustersV1beta1) ClusterRegistrationRequests() v1beta1.ClusterRegistrationRequestInterface

func (*FakeClustersV1beta1) ManagedClusters

func (c *FakeClustersV1beta1) ManagedClusters(namespace string) v1beta1.ManagedClusterInterface

func (*FakeClustersV1beta1) RESTClient

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

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

type FakeManagedClusters

type FakeManagedClusters struct {
	Fake *FakeClustersV1beta1
	// contains filtered or unexported fields
}

FakeManagedClusters implements ManagedClusterInterface

func (*FakeManagedClusters) Create

func (c *FakeManagedClusters) Create(ctx context.Context, managedCluster *v1beta1.ManagedCluster, opts v1.CreateOptions) (result *v1beta1.ManagedCluster, err error)

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

func (*FakeManagedClusters) Delete

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

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

func (*FakeManagedClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeManagedClusters) Get

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

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

func (*FakeManagedClusters) List

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

func (*FakeManagedClusters) Patch

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

Patch applies the patch and returns the patched managedCluster.

func (*FakeManagedClusters) Update

func (c *FakeManagedClusters) Update(ctx context.Context, managedCluster *v1beta1.ManagedCluster, opts v1.UpdateOptions) (result *v1beta1.ManagedCluster, err error)

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

func (*FakeManagedClusters) UpdateStatus

func (c *FakeManagedClusters) UpdateStatus(ctx context.Context, managedCluster *v1beta1.ManagedCluster, opts v1.UpdateOptions) (*v1beta1.ManagedCluster, error)

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

func (*FakeManagedClusters) Watch

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

Jump to

Keyboard shortcuts

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