fake

package
v0.6.0-beta.38 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: AGPL-3.0 Imports: 10 Imported by: 1

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 FakeAppsV1alpha1

type FakeAppsV1alpha1 struct {
	*testing.Fake
}

func (*FakeAppsV1alpha1) BackupPolicyTemplates

func (c *FakeAppsV1alpha1) BackupPolicyTemplates() v1alpha1.BackupPolicyTemplateInterface

func (*FakeAppsV1alpha1) ClusterDefinitions

func (c *FakeAppsV1alpha1) ClusterDefinitions() v1alpha1.ClusterDefinitionInterface

func (*FakeAppsV1alpha1) ClusterVersions

func (c *FakeAppsV1alpha1) ClusterVersions() v1alpha1.ClusterVersionInterface

func (*FakeAppsV1alpha1) Clusters

func (c *FakeAppsV1alpha1) Clusters(namespace string) v1alpha1.ClusterInterface

func (*FakeAppsV1alpha1) ComponentClassDefinitions

func (c *FakeAppsV1alpha1) ComponentClassDefinitions() v1alpha1.ComponentClassDefinitionInterface

func (*FakeAppsV1alpha1) ComponentResourceConstraints

func (c *FakeAppsV1alpha1) ComponentResourceConstraints() v1alpha1.ComponentResourceConstraintInterface

func (*FakeAppsV1alpha1) ConfigConstraints

func (c *FakeAppsV1alpha1) ConfigConstraints() v1alpha1.ConfigConstraintInterface

func (*FakeAppsV1alpha1) OpsRequests

func (c *FakeAppsV1alpha1) OpsRequests(namespace string) v1alpha1.OpsRequestInterface

func (*FakeAppsV1alpha1) RESTClient

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

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

type FakeBackupPolicyTemplates

type FakeBackupPolicyTemplates struct {
	Fake *FakeAppsV1alpha1
}

FakeBackupPolicyTemplates implements BackupPolicyTemplateInterface

func (*FakeBackupPolicyTemplates) Create

func (c *FakeBackupPolicyTemplates) Create(ctx context.Context, backupPolicyTemplate *v1alpha1.BackupPolicyTemplate, opts v1.CreateOptions) (result *v1alpha1.BackupPolicyTemplate, err error)

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

func (*FakeBackupPolicyTemplates) Delete

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

func (*FakeBackupPolicyTemplates) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBackupPolicyTemplates) Get

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

func (*FakeBackupPolicyTemplates) List

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

func (*FakeBackupPolicyTemplates) Patch

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

Patch applies the patch and returns the patched backupPolicyTemplate.

func (*FakeBackupPolicyTemplates) Update

func (c *FakeBackupPolicyTemplates) Update(ctx context.Context, backupPolicyTemplate *v1alpha1.BackupPolicyTemplate, opts v1.UpdateOptions) (result *v1alpha1.BackupPolicyTemplate, err error)

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

func (*FakeBackupPolicyTemplates) UpdateStatus

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

func (*FakeBackupPolicyTemplates) Watch

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

type FakeClusterDefinitions

type FakeClusterDefinitions struct {
	Fake *FakeAppsV1alpha1
}

FakeClusterDefinitions implements ClusterDefinitionInterface

func (*FakeClusterDefinitions) Create

func (c *FakeClusterDefinitions) Create(ctx context.Context, clusterDefinition *v1alpha1.ClusterDefinition, opts v1.CreateOptions) (result *v1alpha1.ClusterDefinition, err error)

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

func (*FakeClusterDefinitions) Delete

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

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

func (*FakeClusterDefinitions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterDefinitions) Get

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

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

func (*FakeClusterDefinitions) List

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

func (*FakeClusterDefinitions) Patch

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

Patch applies the patch and returns the patched clusterDefinition.

func (*FakeClusterDefinitions) Update

func (c *FakeClusterDefinitions) Update(ctx context.Context, clusterDefinition *v1alpha1.ClusterDefinition, opts v1.UpdateOptions) (result *v1alpha1.ClusterDefinition, err error)

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

func (*FakeClusterDefinitions) UpdateStatus

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

func (*FakeClusterDefinitions) Watch

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

type FakeClusterVersions

type FakeClusterVersions struct {
	Fake *FakeAppsV1alpha1
}

FakeClusterVersions implements ClusterVersionInterface

func (*FakeClusterVersions) Create

func (c *FakeClusterVersions) Create(ctx context.Context, clusterVersion *v1alpha1.ClusterVersion, opts v1.CreateOptions) (result *v1alpha1.ClusterVersion, err error)

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

func (*FakeClusterVersions) Delete

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

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

func (*FakeClusterVersions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterVersions) Get

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

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

func (*FakeClusterVersions) List

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

func (*FakeClusterVersions) Patch

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

Patch applies the patch and returns the patched clusterVersion.

func (*FakeClusterVersions) Update

func (c *FakeClusterVersions) Update(ctx context.Context, clusterVersion *v1alpha1.ClusterVersion, opts v1.UpdateOptions) (result *v1alpha1.ClusterVersion, err error)

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

func (*FakeClusterVersions) UpdateStatus

func (c *FakeClusterVersions) UpdateStatus(ctx context.Context, clusterVersion *v1alpha1.ClusterVersion, opts v1.UpdateOptions) (*v1alpha1.ClusterVersion, error)

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

func (*FakeClusterVersions) Watch

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

type FakeClusters

type FakeClusters struct {
	Fake *FakeAppsV1alpha1
	// contains filtered or unexported fields
}

FakeClusters implements ClusterInterface

func (*FakeClusters) Create

func (c *FakeClusters) Create(ctx context.Context, cluster *v1alpha1.Cluster, opts v1.CreateOptions) (result *v1alpha1.Cluster, err error)

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

func (*FakeClusters) Delete

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

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

func (*FakeClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusters) Get

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

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

func (*FakeClusters) List

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

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

func (*FakeClusters) Patch

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

Patch applies the patch and returns the patched cluster.

func (*FakeClusters) Update

func (c *FakeClusters) Update(ctx context.Context, cluster *v1alpha1.Cluster, opts v1.UpdateOptions) (result *v1alpha1.Cluster, err error)

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

func (*FakeClusters) UpdateStatus

func (c *FakeClusters) UpdateStatus(ctx context.Context, cluster *v1alpha1.Cluster, opts v1.UpdateOptions) (*v1alpha1.Cluster, error)

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

func (*FakeClusters) Watch

func (c *FakeClusters) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeComponentClassDefinitions

type FakeComponentClassDefinitions struct {
	Fake *FakeAppsV1alpha1
}

FakeComponentClassDefinitions implements ComponentClassDefinitionInterface

func (*FakeComponentClassDefinitions) Create

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

func (*FakeComponentClassDefinitions) Delete

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

func (*FakeComponentClassDefinitions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeComponentClassDefinitions) Get

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

func (*FakeComponentClassDefinitions) List

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

func (*FakeComponentClassDefinitions) Patch

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

Patch applies the patch and returns the patched componentClassDefinition.

func (*FakeComponentClassDefinitions) Update

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

func (*FakeComponentClassDefinitions) UpdateStatus

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

func (*FakeComponentClassDefinitions) Watch

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

type FakeComponentResourceConstraints

type FakeComponentResourceConstraints struct {
	Fake *FakeAppsV1alpha1
}

FakeComponentResourceConstraints implements ComponentResourceConstraintInterface

func (*FakeComponentResourceConstraints) Create

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

func (*FakeComponentResourceConstraints) Delete

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

func (*FakeComponentResourceConstraints) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeComponentResourceConstraints) Get

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

func (*FakeComponentResourceConstraints) List

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

func (*FakeComponentResourceConstraints) Patch

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

Patch applies the patch and returns the patched componentResourceConstraint.

func (*FakeComponentResourceConstraints) Update

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

func (*FakeComponentResourceConstraints) Watch

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

type FakeConfigConstraints

type FakeConfigConstraints struct {
	Fake *FakeAppsV1alpha1
}

FakeConfigConstraints implements ConfigConstraintInterface

func (*FakeConfigConstraints) Create

func (c *FakeConfigConstraints) Create(ctx context.Context, configConstraint *v1alpha1.ConfigConstraint, opts v1.CreateOptions) (result *v1alpha1.ConfigConstraint, err error)

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

func (*FakeConfigConstraints) Delete

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

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

func (*FakeConfigConstraints) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeConfigConstraints) Get

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

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

func (*FakeConfigConstraints) List

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

func (*FakeConfigConstraints) Patch

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

Patch applies the patch and returns the patched configConstraint.

func (*FakeConfigConstraints) Update

func (c *FakeConfigConstraints) Update(ctx context.Context, configConstraint *v1alpha1.ConfigConstraint, opts v1.UpdateOptions) (result *v1alpha1.ConfigConstraint, err error)

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

func (*FakeConfigConstraints) UpdateStatus

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

func (*FakeConfigConstraints) Watch

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

type FakeOpsRequests

type FakeOpsRequests struct {
	Fake *FakeAppsV1alpha1
	// contains filtered or unexported fields
}

FakeOpsRequests implements OpsRequestInterface

func (*FakeOpsRequests) Create

func (c *FakeOpsRequests) Create(ctx context.Context, opsRequest *v1alpha1.OpsRequest, opts v1.CreateOptions) (result *v1alpha1.OpsRequest, err error)

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

func (*FakeOpsRequests) Delete

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

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

func (*FakeOpsRequests) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeOpsRequests) Get

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

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

func (*FakeOpsRequests) List

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

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

func (*FakeOpsRequests) Patch

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

Patch applies the patch and returns the patched opsRequest.

func (*FakeOpsRequests) Update

func (c *FakeOpsRequests) Update(ctx context.Context, opsRequest *v1alpha1.OpsRequest, opts v1.UpdateOptions) (result *v1alpha1.OpsRequest, err error)

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

func (*FakeOpsRequests) UpdateStatus

func (c *FakeOpsRequests) UpdateStatus(ctx context.Context, opsRequest *v1alpha1.OpsRequest, opts v1.UpdateOptions) (*v1alpha1.OpsRequest, error)

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

func (*FakeOpsRequests) Watch

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

Jump to

Keyboard shortcuts

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