fake

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 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 FakeAppWrappers

type FakeAppWrappers struct {
	Fake *FakeWorkloadV1beta1
	// contains filtered or unexported fields
}

FakeAppWrappers implements AppWrapperInterface

func (*FakeAppWrappers) Create

func (c *FakeAppWrappers) Create(ctx context.Context, appWrapper *v1beta1.AppWrapper, opts v1.CreateOptions) (result *v1beta1.AppWrapper, err error)

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

func (*FakeAppWrappers) Delete

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

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

func (*FakeAppWrappers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAppWrappers) Get

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

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

func (*FakeAppWrappers) List

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

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

func (*FakeAppWrappers) Patch

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

Patch applies the patch and returns the patched appWrapper.

func (*FakeAppWrappers) Update

func (c *FakeAppWrappers) Update(ctx context.Context, appWrapper *v1beta1.AppWrapper, opts v1.UpdateOptions) (result *v1beta1.AppWrapper, err error)

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

func (*FakeAppWrappers) UpdateStatus

func (c *FakeAppWrappers) UpdateStatus(ctx context.Context, appWrapper *v1beta1.AppWrapper, opts v1.UpdateOptions) (*v1beta1.AppWrapper, error)

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

func (*FakeAppWrappers) Watch

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

type FakeWorkloadV1beta1 added in v1.34.1

type FakeWorkloadV1beta1 struct {
	*testing.Fake
}

func (*FakeWorkloadV1beta1) AppWrappers added in v1.34.1

func (c *FakeWorkloadV1beta1) AppWrappers(namespace string) v1beta1.AppWrapperInterface

func (*FakeWorkloadV1beta1) RESTClient added in v1.34.1

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