fake

package
v0.2.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 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 FakeEtcdClusters

type FakeEtcdClusters struct {
	Fake *FakeKstoneV1alpha1
	// contains filtered or unexported fields
}

FakeEtcdClusters implements EtcdClusterInterface

func (*FakeEtcdClusters) Create

func (c *FakeEtcdClusters) Create(ctx context.Context, etcdCluster *v1alpha1.EtcdCluster, opts v1.CreateOptions) (result *v1alpha1.EtcdCluster, err error)

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

func (*FakeEtcdClusters) Delete

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

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

func (*FakeEtcdClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEtcdClusters) Get

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

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

func (*FakeEtcdClusters) List

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

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

func (*FakeEtcdClusters) Patch

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

Patch applies the patch and returns the patched etcdCluster.

func (*FakeEtcdClusters) Update

func (c *FakeEtcdClusters) Update(ctx context.Context, etcdCluster *v1alpha1.EtcdCluster, opts v1.UpdateOptions) (result *v1alpha1.EtcdCluster, err error)

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

func (*FakeEtcdClusters) UpdateStatus

func (c *FakeEtcdClusters) UpdateStatus(ctx context.Context, etcdCluster *v1alpha1.EtcdCluster, opts v1.UpdateOptions) (*v1alpha1.EtcdCluster, error)

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

func (*FakeEtcdClusters) Watch

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

type FakeEtcdInspections

type FakeEtcdInspections struct {
	Fake *FakeKstoneV1alpha1
	// contains filtered or unexported fields
}

FakeEtcdInspections implements EtcdInspectionInterface

func (*FakeEtcdInspections) Create

func (c *FakeEtcdInspections) Create(ctx context.Context, etcdInspection *v1alpha1.EtcdInspection, opts v1.CreateOptions) (result *v1alpha1.EtcdInspection, err error)

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

func (*FakeEtcdInspections) Delete

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

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

func (*FakeEtcdInspections) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEtcdInspections) Get

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

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

func (*FakeEtcdInspections) List

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

func (*FakeEtcdInspections) Patch

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

Patch applies the patch and returns the patched etcdInspection.

func (*FakeEtcdInspections) Update

func (c *FakeEtcdInspections) Update(ctx context.Context, etcdInspection *v1alpha1.EtcdInspection, opts v1.UpdateOptions) (result *v1alpha1.EtcdInspection, err error)

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

func (*FakeEtcdInspections) UpdateStatus

func (c *FakeEtcdInspections) UpdateStatus(ctx context.Context, etcdInspection *v1alpha1.EtcdInspection, opts v1.UpdateOptions) (*v1alpha1.EtcdInspection, error)

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

func (*FakeEtcdInspections) Watch

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

type FakeKstoneV1alpha1

type FakeKstoneV1alpha1 struct {
	*testing.Fake
}

func (*FakeKstoneV1alpha1) EtcdClusters

func (c *FakeKstoneV1alpha1) EtcdClusters(namespace string) v1alpha1.EtcdClusterInterface

func (*FakeKstoneV1alpha1) EtcdInspections

func (c *FakeKstoneV1alpha1) EtcdInspections(namespace string) v1alpha1.EtcdInspectionInterface

func (*FakeKstoneV1alpha1) RESTClient

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