fake

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 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 FakeClusterV1beta2

type FakeClusterV1beta2 struct {
	*testing.Fake
}

func (*FakeClusterV1beta2) ManagedClusterSetBindings

func (c *FakeClusterV1beta2) ManagedClusterSetBindings(namespace string) v1beta2.ManagedClusterSetBindingInterface

func (*FakeClusterV1beta2) ManagedClusterSets

func (c *FakeClusterV1beta2) ManagedClusterSets() v1beta2.ManagedClusterSetInterface

func (*FakeClusterV1beta2) RESTClient

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

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

type FakeManagedClusterSetBindings

type FakeManagedClusterSetBindings struct {
	Fake *FakeClusterV1beta2
	// contains filtered or unexported fields
}

FakeManagedClusterSetBindings implements ManagedClusterSetBindingInterface

func (*FakeManagedClusterSetBindings) Create

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

func (*FakeManagedClusterSetBindings) Delete

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

func (*FakeManagedClusterSetBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeManagedClusterSetBindings) Get

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

func (*FakeManagedClusterSetBindings) List

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

func (*FakeManagedClusterSetBindings) Patch

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

Patch applies the patch and returns the patched managedClusterSetBinding.

func (*FakeManagedClusterSetBindings) Update

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

func (*FakeManagedClusterSetBindings) UpdateStatus

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

func (*FakeManagedClusterSetBindings) Watch

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

type FakeManagedClusterSets

type FakeManagedClusterSets struct {
	Fake *FakeClusterV1beta2
}

FakeManagedClusterSets implements ManagedClusterSetInterface

func (*FakeManagedClusterSets) Create

func (c *FakeManagedClusterSets) Create(ctx context.Context, managedClusterSet *v1beta2.ManagedClusterSet, opts v1.CreateOptions) (result *v1beta2.ManagedClusterSet, err error)

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

func (*FakeManagedClusterSets) Delete

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

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

func (*FakeManagedClusterSets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeManagedClusterSets) Get

func (c *FakeManagedClusterSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.ManagedClusterSet, err error)

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

func (*FakeManagedClusterSets) List

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

func (*FakeManagedClusterSets) Patch

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

Patch applies the patch and returns the patched managedClusterSet.

func (*FakeManagedClusterSets) Update

func (c *FakeManagedClusterSets) Update(ctx context.Context, managedClusterSet *v1beta2.ManagedClusterSet, opts v1.UpdateOptions) (result *v1beta2.ManagedClusterSet, err error)

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

func (*FakeManagedClusterSets) UpdateStatus

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

func (*FakeManagedClusterSets) Watch

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

Jump to

Keyboard shortcuts

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