fake

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 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 FakeClusterSyncResources added in v0.4.0

type FakeClusterSyncResources struct {
	Fake *FakeClusterV1alpha2
}

FakeClusterSyncResources implements ClusterSyncResourcesInterface

func (*FakeClusterSyncResources) Create added in v0.4.0

func (c *FakeClusterSyncResources) Create(ctx context.Context, clusterSyncResources *v1alpha2.ClusterSyncResources, opts v1.CreateOptions) (result *v1alpha2.ClusterSyncResources, err error)

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

func (*FakeClusterSyncResources) Delete added in v0.4.0

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

func (*FakeClusterSyncResources) DeleteCollection added in v0.4.0

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterSyncResources) Get added in v0.4.0

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

func (*FakeClusterSyncResources) List added in v0.4.0

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

func (*FakeClusterSyncResources) Patch added in v0.4.0

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

Patch applies the patch and returns the patched clusterSyncResources.

func (*FakeClusterSyncResources) Update added in v0.4.0

func (c *FakeClusterSyncResources) Update(ctx context.Context, clusterSyncResources *v1alpha2.ClusterSyncResources, opts v1.UpdateOptions) (result *v1alpha2.ClusterSyncResources, err error)

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

func (*FakeClusterSyncResources) Watch added in v0.4.0

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

type FakeClusterV1alpha2

type FakeClusterV1alpha2 struct {
	*testing.Fake
}

func (*FakeClusterV1alpha2) ClusterSyncResources added in v0.4.0

func (*FakeClusterV1alpha2) PediaClusters

func (*FakeClusterV1alpha2) RESTClient

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

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

type FakePediaClusters

type FakePediaClusters struct {
	Fake *FakeClusterV1alpha2
}

FakePediaClusters implements PediaClusterInterface

func (*FakePediaClusters) Create

func (c *FakePediaClusters) Create(ctx context.Context, pediaCluster *v1alpha2.PediaCluster, opts v1.CreateOptions) (result *v1alpha2.PediaCluster, err error)

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

func (*FakePediaClusters) Delete

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

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

func (*FakePediaClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePediaClusters) Get

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

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

func (*FakePediaClusters) List

func (c *FakePediaClusters) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.PediaClusterList, err error)

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

func (*FakePediaClusters) Patch

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

Patch applies the patch and returns the patched pediaCluster.

func (*FakePediaClusters) Update

func (c *FakePediaClusters) Update(ctx context.Context, pediaCluster *v1alpha2.PediaCluster, opts v1.UpdateOptions) (result *v1alpha2.PediaCluster, err error)

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

func (*FakePediaClusters) UpdateStatus

func (c *FakePediaClusters) UpdateStatus(ctx context.Context, pediaCluster *v1alpha2.PediaCluster, opts v1.UpdateOptions) (*v1alpha2.PediaCluster, error)

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

func (*FakePediaClusters) Watch

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

Jump to

Keyboard shortcuts

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