fake

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT 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 FakeCoreV1beta1

type FakeCoreV1beta1 struct {
	*testing.Fake
}

func (*FakeCoreV1beta1) FederatedTypeConfigs

func (c *FakeCoreV1beta1) FederatedTypeConfigs(namespace string) v1beta1.FederatedTypeConfigInterface

func (*FakeCoreV1beta1) KubeFedClusters

func (c *FakeCoreV1beta1) KubeFedClusters(namespace string) v1beta1.KubeFedClusterInterface

func (*FakeCoreV1beta1) KubeFedConfigs

func (c *FakeCoreV1beta1) KubeFedConfigs(namespace string) v1beta1.KubeFedConfigInterface

func (*FakeCoreV1beta1) RESTClient

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

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

type FakeFederatedTypeConfigs

type FakeFederatedTypeConfigs struct {
	Fake *FakeCoreV1beta1
	// contains filtered or unexported fields
}

FakeFederatedTypeConfigs implements FederatedTypeConfigInterface

func (*FakeFederatedTypeConfigs) Create

func (c *FakeFederatedTypeConfigs) Create(federatedTypeConfig *v1beta1.FederatedTypeConfig) (result *v1beta1.FederatedTypeConfig, err error)

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

func (*FakeFederatedTypeConfigs) Delete

func (c *FakeFederatedTypeConfigs) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeFederatedTypeConfigs) DeleteCollection

func (c *FakeFederatedTypeConfigs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeFederatedTypeConfigs) Get

func (c *FakeFederatedTypeConfigs) Get(name string, options v1.GetOptions) (result *v1beta1.FederatedTypeConfig, err error)

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

func (*FakeFederatedTypeConfigs) List

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

func (*FakeFederatedTypeConfigs) Patch

func (c *FakeFederatedTypeConfigs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.FederatedTypeConfig, err error)

Patch applies the patch and returns the patched federatedTypeConfig.

func (*FakeFederatedTypeConfigs) Update

func (c *FakeFederatedTypeConfigs) Update(federatedTypeConfig *v1beta1.FederatedTypeConfig) (result *v1beta1.FederatedTypeConfig, err error)

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

func (*FakeFederatedTypeConfigs) UpdateStatus

func (c *FakeFederatedTypeConfigs) UpdateStatus(federatedTypeConfig *v1beta1.FederatedTypeConfig) (*v1beta1.FederatedTypeConfig, error)

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

func (*FakeFederatedTypeConfigs) Watch

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

type FakeKubeFedClusters

type FakeKubeFedClusters struct {
	Fake *FakeCoreV1beta1
	// contains filtered or unexported fields
}

FakeKubeFedClusters implements KubeFedClusterInterface

func (*FakeKubeFedClusters) Create

func (c *FakeKubeFedClusters) Create(kubeFedCluster *v1beta1.KubeFedCluster) (result *v1beta1.KubeFedCluster, err error)

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

func (*FakeKubeFedClusters) Delete

func (c *FakeKubeFedClusters) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeKubeFedClusters) DeleteCollection

func (c *FakeKubeFedClusters) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeKubeFedClusters) Get

func (c *FakeKubeFedClusters) Get(name string, options v1.GetOptions) (result *v1beta1.KubeFedCluster, err error)

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

func (*FakeKubeFedClusters) List

func (c *FakeKubeFedClusters) List(opts v1.ListOptions) (result *v1beta1.KubeFedClusterList, err error)

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

func (*FakeKubeFedClusters) Patch

func (c *FakeKubeFedClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.KubeFedCluster, err error)

Patch applies the patch and returns the patched kubeFedCluster.

func (*FakeKubeFedClusters) Update

func (c *FakeKubeFedClusters) Update(kubeFedCluster *v1beta1.KubeFedCluster) (result *v1beta1.KubeFedCluster, err error)

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

func (*FakeKubeFedClusters) UpdateStatus

func (c *FakeKubeFedClusters) UpdateStatus(kubeFedCluster *v1beta1.KubeFedCluster) (*v1beta1.KubeFedCluster, error)

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

func (*FakeKubeFedClusters) Watch

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

type FakeKubeFedConfigs

type FakeKubeFedConfigs struct {
	Fake *FakeCoreV1beta1
	// contains filtered or unexported fields
}

FakeKubeFedConfigs implements KubeFedConfigInterface

func (*FakeKubeFedConfigs) Create

func (c *FakeKubeFedConfigs) Create(kubeFedConfig *v1beta1.KubeFedConfig) (result *v1beta1.KubeFedConfig, err error)

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

func (*FakeKubeFedConfigs) Delete

func (c *FakeKubeFedConfigs) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeKubeFedConfigs) DeleteCollection

func (c *FakeKubeFedConfigs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeKubeFedConfigs) Get

func (c *FakeKubeFedConfigs) Get(name string, options v1.GetOptions) (result *v1beta1.KubeFedConfig, err error)

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

func (*FakeKubeFedConfigs) List

func (c *FakeKubeFedConfigs) List(opts v1.ListOptions) (result *v1beta1.KubeFedConfigList, err error)

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

func (*FakeKubeFedConfigs) Patch

func (c *FakeKubeFedConfigs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.KubeFedConfig, err error)

Patch applies the patch and returns the patched kubeFedConfig.

func (*FakeKubeFedConfigs) Update

func (c *FakeKubeFedConfigs) Update(kubeFedConfig *v1beta1.KubeFedConfig) (result *v1beta1.KubeFedConfig, err error)

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

func (*FakeKubeFedConfigs) Watch

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

Jump to

Keyboard shortcuts

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