fake

package
v0.3.30 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 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 FakeSearchV1beta1

type FakeSearchV1beta1 struct {
	*testing.Fake
}

func (*FakeSearchV1beta1) RESTClient

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

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

func (*FakeSearchV1beta1) SyncRegistries

func (c *FakeSearchV1beta1) SyncRegistries() v1beta1.SyncRegistryInterface

func (*FakeSearchV1beta1) SyncResourceses

func (c *FakeSearchV1beta1) SyncResourceses() v1beta1.SyncResourcesInterface

func (*FakeSearchV1beta1) TransformRules

func (c *FakeSearchV1beta1) TransformRules() v1beta1.TransformRuleInterface

type FakeSyncRegistries

type FakeSyncRegistries struct {
	Fake *FakeSearchV1beta1
}

FakeSyncRegistries implements SyncRegistryInterface

func (*FakeSyncRegistries) Create

func (c *FakeSyncRegistries) Create(ctx context.Context, syncRegistry *v1beta1.SyncRegistry, opts v1.CreateOptions) (result *v1beta1.SyncRegistry, err error)

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

func (*FakeSyncRegistries) Delete

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

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

func (*FakeSyncRegistries) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSyncRegistries) Get

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

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

func (*FakeSyncRegistries) List

func (c *FakeSyncRegistries) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.SyncRegistryList, err error)

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

func (*FakeSyncRegistries) Patch

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

Patch applies the patch and returns the patched syncRegistry.

func (*FakeSyncRegistries) Update

func (c *FakeSyncRegistries) Update(ctx context.Context, syncRegistry *v1beta1.SyncRegistry, opts v1.UpdateOptions) (result *v1beta1.SyncRegistry, err error)

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

func (*FakeSyncRegistries) UpdateStatus

func (c *FakeSyncRegistries) UpdateStatus(ctx context.Context, syncRegistry *v1beta1.SyncRegistry, opts v1.UpdateOptions) (*v1beta1.SyncRegistry, error)

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

func (*FakeSyncRegistries) Watch

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

type FakeSyncResourceses

type FakeSyncResourceses struct {
	Fake *FakeSearchV1beta1
}

FakeSyncResourceses implements SyncResourcesInterface

func (*FakeSyncResourceses) Create

func (c *FakeSyncResourceses) Create(ctx context.Context, syncResources *v1beta1.SyncResources, opts v1.CreateOptions) (result *v1beta1.SyncResources, err error)

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

func (*FakeSyncResourceses) Delete

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

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

func (*FakeSyncResourceses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSyncResourceses) Get

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

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

func (*FakeSyncResourceses) List

func (c *FakeSyncResourceses) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.SyncResourcesList, err error)

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

func (*FakeSyncResourceses) Patch

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

Patch applies the patch and returns the patched syncResources.

func (*FakeSyncResourceses) Update

func (c *FakeSyncResourceses) Update(ctx context.Context, syncResources *v1beta1.SyncResources, opts v1.UpdateOptions) (result *v1beta1.SyncResources, err error)

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

func (*FakeSyncResourceses) Watch

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

type FakeTransformRules

type FakeTransformRules struct {
	Fake *FakeSearchV1beta1
}

FakeTransformRules implements TransformRuleInterface

func (*FakeTransformRules) Create

func (c *FakeTransformRules) Create(ctx context.Context, transformRule *v1beta1.TransformRule, opts v1.CreateOptions) (result *v1beta1.TransformRule, err error)

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

func (*FakeTransformRules) Delete

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

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

func (*FakeTransformRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTransformRules) Get

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

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

func (*FakeTransformRules) List

func (c *FakeTransformRules) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.TransformRuleList, err error)

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

func (*FakeTransformRules) Patch

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

Patch applies the patch and returns the patched transformRule.

func (*FakeTransformRules) Update

func (c *FakeTransformRules) Update(ctx context.Context, transformRule *v1beta1.TransformRule, opts v1.UpdateOptions) (result *v1beta1.TransformRule, err error)

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

func (*FakeTransformRules) Watch

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

Jump to

Keyboard shortcuts

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