fake

package
v0.34.2 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: 12 Imported by: 1

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 FakeFrequentlyChangingAnnotationsResources

type FakeFrequentlyChangingAnnotationsResources struct {
	Fake *FakeTestingV2alpha1
	// contains filtered or unexported fields
}

FakeFrequentlyChangingAnnotationsResources implements FrequentlyChangingAnnotationsResourceInterface

func (*FakeFrequentlyChangingAnnotationsResources) Apply added in v0.31.2

Apply takes the given apply declarative configuration, applies it and returns the applied frequentlyChangingAnnotationsResource.

func (*FakeFrequentlyChangingAnnotationsResources) Create

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

func (*FakeFrequentlyChangingAnnotationsResources) Delete

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

func (*FakeFrequentlyChangingAnnotationsResources) DeleteCollection

DeleteCollection deletes a collection of objects.

func (*FakeFrequentlyChangingAnnotationsResources) Get

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

func (*FakeFrequentlyChangingAnnotationsResources) List

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

func (*FakeFrequentlyChangingAnnotationsResources) Patch

Patch applies the patch and returns the patched frequentlyChangingAnnotationsResource.

func (*FakeFrequentlyChangingAnnotationsResources) Update

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

func (*FakeFrequentlyChangingAnnotationsResources) Watch

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

type FakeMockResources

type FakeMockResources struct {
	Fake *FakeTestingV2alpha1
	// contains filtered or unexported fields
}

FakeMockResources implements MockResourceInterface

func (*FakeMockResources) Apply added in v0.31.2

Apply takes the given apply declarative configuration, applies it and returns the applied mockResource.

func (*FakeMockResources) ApplyStatus added in v0.31.2

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

func (*FakeMockResources) Create

func (c *FakeMockResources) Create(ctx context.Context, mockResource *v2alpha1.MockResource, opts v1.CreateOptions) (result *v2alpha1.MockResource, err error)

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

func (*FakeMockResources) Delete

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

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

func (*FakeMockResources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMockResources) Get

func (c *FakeMockResources) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.MockResource, err error)

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

func (*FakeMockResources) List

func (c *FakeMockResources) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.MockResourceList, err error)

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

func (*FakeMockResources) Patch

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

Patch applies the patch and returns the patched mockResource.

func (*FakeMockResources) Update

func (c *FakeMockResources) Update(ctx context.Context, mockResource *v2alpha1.MockResource, opts v1.UpdateOptions) (result *v2alpha1.MockResource, err error)

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

func (*FakeMockResources) UpdateStatus

func (c *FakeMockResources) UpdateStatus(ctx context.Context, mockResource *v2alpha1.MockResource, opts v1.UpdateOptions) (*v2alpha1.MockResource, error)

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

func (*FakeMockResources) Watch

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

type FakeTestingV2alpha1

type FakeTestingV2alpha1 struct {
	*testing.Fake
}

func (*FakeTestingV2alpha1) FrequentlyChangingAnnotationsResources

func (c *FakeTestingV2alpha1) FrequentlyChangingAnnotationsResources(namespace string) v2alpha1.FrequentlyChangingAnnotationsResourceInterface

func (*FakeTestingV2alpha1) MockResources

func (c *FakeTestingV2alpha1) MockResources(namespace string) v2alpha1.MockResourceInterface

func (*FakeTestingV2alpha1) RESTClient

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