fake

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 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 FakeClusterResourceBindings

type FakeClusterResourceBindings struct {
	Fake *FakeWorkV1alpha2
}

FakeClusterResourceBindings implements ClusterResourceBindingInterface

func (*FakeClusterResourceBindings) Create

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

func (*FakeClusterResourceBindings) Delete

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

func (*FakeClusterResourceBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterResourceBindings) Get

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

func (*FakeClusterResourceBindings) List

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

func (*FakeClusterResourceBindings) Patch

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

Patch applies the patch and returns the patched clusterResourceBinding.

func (*FakeClusterResourceBindings) Update

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

func (*FakeClusterResourceBindings) UpdateStatus

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

func (*FakeClusterResourceBindings) Watch

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

type FakeResourceBindings

type FakeResourceBindings struct {
	Fake *FakeWorkV1alpha2
	// contains filtered or unexported fields
}

FakeResourceBindings implements ResourceBindingInterface

func (*FakeResourceBindings) Create

func (c *FakeResourceBindings) Create(ctx context.Context, resourceBinding *v1alpha2.ResourceBinding, opts v1.CreateOptions) (result *v1alpha2.ResourceBinding, err error)

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

func (*FakeResourceBindings) Delete

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

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

func (*FakeResourceBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResourceBindings) Get

func (c *FakeResourceBindings) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ResourceBinding, err error)

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

func (*FakeResourceBindings) List

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

func (*FakeResourceBindings) Patch

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

Patch applies the patch and returns the patched resourceBinding.

func (*FakeResourceBindings) Update

func (c *FakeResourceBindings) Update(ctx context.Context, resourceBinding *v1alpha2.ResourceBinding, opts v1.UpdateOptions) (result *v1alpha2.ResourceBinding, err error)

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

func (*FakeResourceBindings) UpdateStatus

func (c *FakeResourceBindings) UpdateStatus(ctx context.Context, resourceBinding *v1alpha2.ResourceBinding, opts v1.UpdateOptions) (*v1alpha2.ResourceBinding, error)

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

func (*FakeResourceBindings) Watch

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

type FakeWorkV1alpha2

type FakeWorkV1alpha2 struct {
	*testing.Fake
}

func (*FakeWorkV1alpha2) ClusterResourceBindings

func (c *FakeWorkV1alpha2) ClusterResourceBindings() v1alpha2.ClusterResourceBindingInterface

func (*FakeWorkV1alpha2) RESTClient

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

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

func (*FakeWorkV1alpha2) ResourceBindings

func (c *FakeWorkV1alpha2) ResourceBindings(namespace string) v1alpha2.ResourceBindingInterface

Jump to

Keyboard shortcuts

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