fake

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 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 FakeClusterObjectSyncs

type FakeClusterObjectSyncs struct {
	Fake *FakeReliablesyncsV1alpha1
}

FakeClusterObjectSyncs implements ClusterObjectSyncInterface

func (*FakeClusterObjectSyncs) Create

func (c *FakeClusterObjectSyncs) Create(ctx context.Context, clusterObjectSync *v1alpha1.ClusterObjectSync, opts v1.CreateOptions) (result *v1alpha1.ClusterObjectSync, err error)

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

func (*FakeClusterObjectSyncs) Delete

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

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

func (*FakeClusterObjectSyncs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterObjectSyncs) Get

func (c *FakeClusterObjectSyncs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ClusterObjectSync, err error)

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

func (*FakeClusterObjectSyncs) List

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

func (*FakeClusterObjectSyncs) Patch

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

Patch applies the patch and returns the patched clusterObjectSync.

func (*FakeClusterObjectSyncs) Update

func (c *FakeClusterObjectSyncs) Update(ctx context.Context, clusterObjectSync *v1alpha1.ClusterObjectSync, opts v1.UpdateOptions) (result *v1alpha1.ClusterObjectSync, err error)

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

func (*FakeClusterObjectSyncs) UpdateStatus

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

func (*FakeClusterObjectSyncs) Watch

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

type FakeObjectSyncs

type FakeObjectSyncs struct {
	Fake *FakeReliablesyncsV1alpha1
	// contains filtered or unexported fields
}

FakeObjectSyncs implements ObjectSyncInterface

func (*FakeObjectSyncs) Create

func (c *FakeObjectSyncs) Create(ctx context.Context, objectSync *v1alpha1.ObjectSync, opts v1.CreateOptions) (result *v1alpha1.ObjectSync, err error)

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

func (*FakeObjectSyncs) Delete

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

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

func (*FakeObjectSyncs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeObjectSyncs) Get

func (c *FakeObjectSyncs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ObjectSync, err error)

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

func (*FakeObjectSyncs) List

func (c *FakeObjectSyncs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ObjectSyncList, err error)

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

func (*FakeObjectSyncs) Patch

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

Patch applies the patch and returns the patched objectSync.

func (*FakeObjectSyncs) Update

func (c *FakeObjectSyncs) Update(ctx context.Context, objectSync *v1alpha1.ObjectSync, opts v1.UpdateOptions) (result *v1alpha1.ObjectSync, err error)

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

func (*FakeObjectSyncs) UpdateStatus

func (c *FakeObjectSyncs) UpdateStatus(ctx context.Context, objectSync *v1alpha1.ObjectSync, opts v1.UpdateOptions) (*v1alpha1.ObjectSync, error)

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

func (*FakeObjectSyncs) Watch

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

type FakeReliablesyncsV1alpha1

type FakeReliablesyncsV1alpha1 struct {
	*testing.Fake
}

func (*FakeReliablesyncsV1alpha1) ClusterObjectSyncs

func (*FakeReliablesyncsV1alpha1) ObjectSyncs

func (*FakeReliablesyncsV1alpha1) RESTClient

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