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 FakeAddonV1alpha1

type FakeAddonV1alpha1 struct {
	*testing.Fake
}

func (*FakeAddonV1alpha1) ClusterManagementAddOns

func (c *FakeAddonV1alpha1) ClusterManagementAddOns() v1alpha1.ClusterManagementAddOnInterface

func (*FakeAddonV1alpha1) ManagedClusterAddOns

func (c *FakeAddonV1alpha1) ManagedClusterAddOns(namespace string) v1alpha1.ManagedClusterAddOnInterface

func (*FakeAddonV1alpha1) RESTClient

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

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

type FakeClusterManagementAddOns

type FakeClusterManagementAddOns struct {
	Fake *FakeAddonV1alpha1
}

FakeClusterManagementAddOns implements ClusterManagementAddOnInterface

func (*FakeClusterManagementAddOns) Create

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

func (*FakeClusterManagementAddOns) Delete

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

func (*FakeClusterManagementAddOns) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterManagementAddOns) Get

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

func (*FakeClusterManagementAddOns) List

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

func (*FakeClusterManagementAddOns) Patch

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

Patch applies the patch and returns the patched clusterManagementAddOn.

func (*FakeClusterManagementAddOns) Update

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

func (*FakeClusterManagementAddOns) UpdateStatus

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

func (*FakeClusterManagementAddOns) Watch

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

type FakeManagedClusterAddOns

type FakeManagedClusterAddOns struct {
	Fake *FakeAddonV1alpha1
	// contains filtered or unexported fields
}

FakeManagedClusterAddOns implements ManagedClusterAddOnInterface

func (*FakeManagedClusterAddOns) Create

func (c *FakeManagedClusterAddOns) Create(ctx context.Context, managedClusterAddOn *v1alpha1.ManagedClusterAddOn, opts v1.CreateOptions) (result *v1alpha1.ManagedClusterAddOn, err error)

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

func (*FakeManagedClusterAddOns) Delete

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

func (*FakeManagedClusterAddOns) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeManagedClusterAddOns) Get

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

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

func (*FakeManagedClusterAddOns) List

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

func (*FakeManagedClusterAddOns) Patch

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

Patch applies the patch and returns the patched managedClusterAddOn.

func (*FakeManagedClusterAddOns) Update

func (c *FakeManagedClusterAddOns) Update(ctx context.Context, managedClusterAddOn *v1alpha1.ManagedClusterAddOn, opts v1.UpdateOptions) (result *v1alpha1.ManagedClusterAddOn, err error)

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

func (*FakeManagedClusterAddOns) UpdateStatus

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

func (*FakeManagedClusterAddOns) Watch

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

Jump to

Keyboard shortcuts

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