fake

package
v3.4.9 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MPL-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 FakeChartInfos

type FakeChartInfos struct {
	Fake *FakeClusterV1
}

FakeChartInfos implements ChartInfoInterface

func (*FakeChartInfos) Create

func (c *FakeChartInfos) Create(ctx context.Context, chartInfo *v1.ChartInfo, opts metav1.CreateOptions) (result *v1.ChartInfo, err error)

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

func (*FakeChartInfos) Delete

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

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

func (*FakeChartInfos) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeChartInfos) Get

func (c *FakeChartInfos) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ChartInfo, err error)

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

func (*FakeChartInfos) List

func (c *FakeChartInfos) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ChartInfoList, err error)

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

func (*FakeChartInfos) Patch

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

Patch applies the patch and returns the patched chartInfo.

func (*FakeChartInfos) Update

func (c *FakeChartInfos) Update(ctx context.Context, chartInfo *v1.ChartInfo, opts metav1.UpdateOptions) (result *v1.ChartInfo, err error)

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

func (*FakeChartInfos) UpdateStatus

func (c *FakeChartInfos) UpdateStatus(ctx context.Context, chartInfo *v1.ChartInfo, opts metav1.UpdateOptions) (*v1.ChartInfo, error)

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

func (*FakeChartInfos) Watch

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

type FakeClusterQuotas

type FakeClusterQuotas struct {
	Fake *FakeClusterV1
}

FakeClusterQuotas implements ClusterQuotaInterface

func (*FakeClusterQuotas) Create

func (c *FakeClusterQuotas) Create(ctx context.Context, clusterQuota *v1.ClusterQuota, opts metav1.CreateOptions) (result *v1.ClusterQuota, err error)

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

func (*FakeClusterQuotas) Delete

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

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

func (*FakeClusterQuotas) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterQuotas) Get

func (c *FakeClusterQuotas) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterQuota, err error)

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

func (*FakeClusterQuotas) List

func (c *FakeClusterQuotas) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterQuotaList, err error)

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

func (*FakeClusterQuotas) Patch

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

Patch applies the patch and returns the patched clusterQuota.

func (*FakeClusterQuotas) Update

func (c *FakeClusterQuotas) Update(ctx context.Context, clusterQuota *v1.ClusterQuota, opts metav1.UpdateOptions) (result *v1.ClusterQuota, err error)

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

func (*FakeClusterQuotas) UpdateStatus

func (c *FakeClusterQuotas) UpdateStatus(ctx context.Context, clusterQuota *v1.ClusterQuota, opts metav1.UpdateOptions) (*v1.ClusterQuota, error)

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

func (*FakeClusterQuotas) Watch

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

type FakeClusterV1

type FakeClusterV1 struct {
	*testing.Fake
}

func (*FakeClusterV1) ChartInfos

func (c *FakeClusterV1) ChartInfos() v1.ChartInfoInterface

func (*FakeClusterV1) ClusterQuotas

func (c *FakeClusterV1) ClusterQuotas() v1.ClusterQuotaInterface

func (*FakeClusterV1) Features

func (c *FakeClusterV1) Features() v1.FeatureInterface

func (*FakeClusterV1) HelmReleases

func (c *FakeClusterV1) HelmReleases(namespace string) v1.HelmReleaseInterface

func (*FakeClusterV1) LocalClusterAccesses

func (c *FakeClusterV1) LocalClusterAccesses() v1.LocalClusterAccessInterface

func (*FakeClusterV1) RESTClient

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

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

func (*FakeClusterV1) SleepModeConfigs

func (c *FakeClusterV1) SleepModeConfigs(namespace string) v1.SleepModeConfigInterface

func (*FakeClusterV1) Spaces

func (c *FakeClusterV1) Spaces() v1.SpaceInterface

func (*FakeClusterV1) VirtualClusters

func (c *FakeClusterV1) VirtualClusters(namespace string) v1.VirtualClusterInterface

type FakeFeatures

type FakeFeatures struct {
	Fake *FakeClusterV1
}

FakeFeatures implements FeatureInterface

func (*FakeFeatures) Create

func (c *FakeFeatures) Create(ctx context.Context, feature *v1.Feature, opts metav1.CreateOptions) (result *v1.Feature, err error)

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

func (*FakeFeatures) Delete

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

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

func (*FakeFeatures) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFeatures) Get

func (c *FakeFeatures) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Feature, err error)

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

func (*FakeFeatures) List

func (c *FakeFeatures) List(ctx context.Context, opts metav1.ListOptions) (result *v1.FeatureList, err error)

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

func (*FakeFeatures) Patch

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

Patch applies the patch and returns the patched feature.

func (*FakeFeatures) Update

func (c *FakeFeatures) Update(ctx context.Context, feature *v1.Feature, opts metav1.UpdateOptions) (result *v1.Feature, err error)

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

func (*FakeFeatures) UpdateStatus

func (c *FakeFeatures) UpdateStatus(ctx context.Context, feature *v1.Feature, opts metav1.UpdateOptions) (*v1.Feature, error)

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

func (*FakeFeatures) Watch

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

type FakeHelmReleases

type FakeHelmReleases struct {
	Fake *FakeClusterV1
	// contains filtered or unexported fields
}

FakeHelmReleases implements HelmReleaseInterface

func (*FakeHelmReleases) Create

func (c *FakeHelmReleases) Create(ctx context.Context, helmRelease *v1.HelmRelease, opts metav1.CreateOptions) (result *v1.HelmRelease, err error)

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

func (*FakeHelmReleases) Delete

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

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

func (*FakeHelmReleases) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHelmReleases) Get

func (c *FakeHelmReleases) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.HelmRelease, err error)

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

func (*FakeHelmReleases) List

func (c *FakeHelmReleases) List(ctx context.Context, opts metav1.ListOptions) (result *v1.HelmReleaseList, err error)

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

func (*FakeHelmReleases) Patch

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

Patch applies the patch and returns the patched helmRelease.

func (*FakeHelmReleases) Update

func (c *FakeHelmReleases) Update(ctx context.Context, helmRelease *v1.HelmRelease, opts metav1.UpdateOptions) (result *v1.HelmRelease, err error)

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

func (*FakeHelmReleases) UpdateStatus

func (c *FakeHelmReleases) UpdateStatus(ctx context.Context, helmRelease *v1.HelmRelease, opts metav1.UpdateOptions) (*v1.HelmRelease, error)

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

func (*FakeHelmReleases) Watch

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

type FakeLocalClusterAccesses

type FakeLocalClusterAccesses struct {
	Fake *FakeClusterV1
}

FakeLocalClusterAccesses implements LocalClusterAccessInterface

func (*FakeLocalClusterAccesses) Create

func (c *FakeLocalClusterAccesses) Create(ctx context.Context, localClusterAccess *v1.LocalClusterAccess, opts metav1.CreateOptions) (result *v1.LocalClusterAccess, err error)

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

func (*FakeLocalClusterAccesses) Delete

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

func (*FakeLocalClusterAccesses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeLocalClusterAccesses) Get

func (c *FakeLocalClusterAccesses) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.LocalClusterAccess, err error)

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

func (*FakeLocalClusterAccesses) List

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

func (*FakeLocalClusterAccesses) Patch

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

Patch applies the patch and returns the patched localClusterAccess.

func (*FakeLocalClusterAccesses) Update

func (c *FakeLocalClusterAccesses) Update(ctx context.Context, localClusterAccess *v1.LocalClusterAccess, opts metav1.UpdateOptions) (result *v1.LocalClusterAccess, err error)

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

func (*FakeLocalClusterAccesses) UpdateStatus

func (c *FakeLocalClusterAccesses) UpdateStatus(ctx context.Context, localClusterAccess *v1.LocalClusterAccess, opts metav1.UpdateOptions) (*v1.LocalClusterAccess, error)

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

func (*FakeLocalClusterAccesses) Watch

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

type FakeSleepModeConfigs

type FakeSleepModeConfigs struct {
	Fake *FakeClusterV1
	// contains filtered or unexported fields
}

FakeSleepModeConfigs implements SleepModeConfigInterface

func (*FakeSleepModeConfigs) Create

func (c *FakeSleepModeConfigs) Create(ctx context.Context, sleepModeConfig *v1.SleepModeConfig, opts metav1.CreateOptions) (result *v1.SleepModeConfig, err error)

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

func (*FakeSleepModeConfigs) Delete

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

func (*FakeSleepModeConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSleepModeConfigs) Get

func (c *FakeSleepModeConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SleepModeConfig, err error)

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

func (*FakeSleepModeConfigs) List

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

func (*FakeSleepModeConfigs) Patch

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

Patch applies the patch and returns the patched sleepModeConfig.

func (*FakeSleepModeConfigs) Update

func (c *FakeSleepModeConfigs) Update(ctx context.Context, sleepModeConfig *v1.SleepModeConfig, opts metav1.UpdateOptions) (result *v1.SleepModeConfig, err error)

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

func (*FakeSleepModeConfigs) UpdateStatus

func (c *FakeSleepModeConfigs) UpdateStatus(ctx context.Context, sleepModeConfig *v1.SleepModeConfig, opts metav1.UpdateOptions) (*v1.SleepModeConfig, error)

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

func (*FakeSleepModeConfigs) Watch

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

type FakeSpaces

type FakeSpaces struct {
	Fake *FakeClusterV1
}

FakeSpaces implements SpaceInterface

func (*FakeSpaces) Create

func (c *FakeSpaces) Create(ctx context.Context, space *v1.Space, opts metav1.CreateOptions) (result *v1.Space, err error)

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

func (*FakeSpaces) Delete

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

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

func (*FakeSpaces) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSpaces) Get

func (c *FakeSpaces) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Space, err error)

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

func (*FakeSpaces) List

func (c *FakeSpaces) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SpaceList, err error)

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

func (*FakeSpaces) Patch

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

Patch applies the patch and returns the patched space.

func (*FakeSpaces) Update

func (c *FakeSpaces) Update(ctx context.Context, space *v1.Space, opts metav1.UpdateOptions) (result *v1.Space, err error)

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

func (*FakeSpaces) UpdateStatus

func (c *FakeSpaces) UpdateStatus(ctx context.Context, space *v1.Space, opts metav1.UpdateOptions) (*v1.Space, error)

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

func (*FakeSpaces) Watch

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

type FakeVirtualClusters

type FakeVirtualClusters struct {
	Fake *FakeClusterV1
	// contains filtered or unexported fields
}

FakeVirtualClusters implements VirtualClusterInterface

func (*FakeVirtualClusters) Create

func (c *FakeVirtualClusters) Create(ctx context.Context, virtualCluster *v1.VirtualCluster, opts metav1.CreateOptions) (result *v1.VirtualCluster, err error)

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

func (*FakeVirtualClusters) Delete

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

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

func (*FakeVirtualClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualClusters) Get

func (c *FakeVirtualClusters) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.VirtualCluster, err error)

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

func (*FakeVirtualClusters) List

func (c *FakeVirtualClusters) List(ctx context.Context, opts metav1.ListOptions) (result *v1.VirtualClusterList, err error)

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

func (*FakeVirtualClusters) Patch

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

Patch applies the patch and returns the patched virtualCluster.

func (*FakeVirtualClusters) Update

func (c *FakeVirtualClusters) Update(ctx context.Context, virtualCluster *v1.VirtualCluster, opts metav1.UpdateOptions) (result *v1.VirtualCluster, err error)

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

func (*FakeVirtualClusters) UpdateStatus

func (c *FakeVirtualClusters) UpdateStatus(ctx context.Context, virtualCluster *v1.VirtualCluster, opts metav1.UpdateOptions) (*v1.VirtualCluster, error)

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

func (*FakeVirtualClusters) Watch

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

Jump to

Keyboard shortcuts

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