fake

package
v0.0.0-...-a6845f2 Latest Latest
Warning

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

Go to latest
Published: May 27, 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 FakeClusterManagers

type FakeClusterManagers struct {
	Fake *FakeOperatorV1
}

FakeClusterManagers implements ClusterManagerInterface

func (*FakeClusterManagers) Create

func (c *FakeClusterManagers) Create(ctx context.Context, clusterManager *operatorv1.ClusterManager, opts v1.CreateOptions) (result *operatorv1.ClusterManager, err error)

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

func (*FakeClusterManagers) Delete

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

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

func (*FakeClusterManagers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterManagers) Get

func (c *FakeClusterManagers) Get(ctx context.Context, name string, options v1.GetOptions) (result *operatorv1.ClusterManager, err error)

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

func (*FakeClusterManagers) List

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

func (*FakeClusterManagers) Patch

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

Patch applies the patch and returns the patched clusterManager.

func (*FakeClusterManagers) Update

func (c *FakeClusterManagers) Update(ctx context.Context, clusterManager *operatorv1.ClusterManager, opts v1.UpdateOptions) (result *operatorv1.ClusterManager, err error)

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

func (*FakeClusterManagers) UpdateStatus

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

func (*FakeClusterManagers) Watch

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

type FakeKlusterlets

type FakeKlusterlets struct {
	Fake *FakeOperatorV1
}

FakeKlusterlets implements KlusterletInterface

func (*FakeKlusterlets) Create

func (c *FakeKlusterlets) Create(ctx context.Context, klusterlet *operatorv1.Klusterlet, opts v1.CreateOptions) (result *operatorv1.Klusterlet, err error)

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

func (*FakeKlusterlets) Delete

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

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

func (*FakeKlusterlets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKlusterlets) Get

func (c *FakeKlusterlets) Get(ctx context.Context, name string, options v1.GetOptions) (result *operatorv1.Klusterlet, err error)

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

func (*FakeKlusterlets) List

func (c *FakeKlusterlets) List(ctx context.Context, opts v1.ListOptions) (result *operatorv1.KlusterletList, err error)

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

func (*FakeKlusterlets) Patch

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

Patch applies the patch and returns the patched klusterlet.

func (*FakeKlusterlets) Update

func (c *FakeKlusterlets) Update(ctx context.Context, klusterlet *operatorv1.Klusterlet, opts v1.UpdateOptions) (result *operatorv1.Klusterlet, err error)

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

func (*FakeKlusterlets) UpdateStatus

func (c *FakeKlusterlets) UpdateStatus(ctx context.Context, klusterlet *operatorv1.Klusterlet, opts v1.UpdateOptions) (*operatorv1.Klusterlet, error)

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

func (*FakeKlusterlets) Watch

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

type FakeOperatorV1

type FakeOperatorV1 struct {
	*testing.Fake
}

func (*FakeOperatorV1) ClusterManagers

func (c *FakeOperatorV1) ClusterManagers() v1.ClusterManagerInterface

func (*FakeOperatorV1) Klusterlets

func (c *FakeOperatorV1) Klusterlets() v1.KlusterletInterface

func (*FakeOperatorV1) RESTClient

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