fake

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: AGPL-3.0 Imports: 9 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) ComponentDefinitions added in v0.8.0

func (c *FakeAppsV1alpha1) ComponentDefinitions() v1alpha1.ComponentDefinitionInterface

func (*FakeAppsV1alpha1) ComponentResourceConstraints

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

func (*FakeAppsV1alpha1) Components added in v0.8.0

func (c *FakeAppsV1alpha1) Components(namespace string) v1alpha1.ComponentInterface

func (*FakeAppsV1alpha1) ConfigConstraints

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

func (*FakeAppsV1alpha1) OpsDefinitions added in v0.8.0

func (c *FakeAppsV1alpha1) OpsDefinitions() v1alpha1.OpsDefinitionInterface

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.

func (*FakeAppsV1alpha1) ServiceDescriptors added in v0.7.0

func (c *FakeAppsV1alpha1) ServiceDescriptors(namespace string) v1alpha1.ServiceDescriptorInterface

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 FakeComponentDefinitions added in v0.8.0

type FakeComponentDefinitions struct {
	Fake *FakeAppsV1alpha1
}

FakeComponentDefinitions implements ComponentDefinitionInterface

func (*FakeComponentDefinitions) Create added in v0.8.0

func (c *FakeComponentDefinitions) Create(ctx context.Context, componentDefinition *v1alpha1.ComponentDefinition, opts v1.CreateOptions) (result *v1alpha1.ComponentDefinition, err error)

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

func (*FakeComponentDefinitions) Delete added in v0.8.0

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

func (*FakeComponentDefinitions) DeleteCollection added in v0.8.0

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

DeleteCollection deletes a collection of objects.

func (*FakeComponentDefinitions) Get added in v0.8.0

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

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

func (*FakeComponentDefinitions) List added in v0.8.0

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

func (*FakeComponentDefinitions) Patch added in v0.8.0

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

Patch applies the patch and returns the patched componentDefinition.

func (*FakeComponentDefinitions) Update added in v0.8.0

func (c *FakeComponentDefinitions) Update(ctx context.Context, componentDefinition *v1alpha1.ComponentDefinition, opts v1.UpdateOptions) (result *v1alpha1.ComponentDefinition, err error)

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

func (*FakeComponentDefinitions) UpdateStatus added in v0.8.0

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

func (*FakeComponentDefinitions) Watch added in v0.8.0

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

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 FakeComponents added in v0.8.0

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

FakeComponents implements ComponentInterface

func (*FakeComponents) Create added in v0.8.0

func (c *FakeComponents) Create(ctx context.Context, component *v1alpha1.Component, opts v1.CreateOptions) (result *v1alpha1.Component, err error)

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

func (*FakeComponents) Delete added in v0.8.0

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

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

func (*FakeComponents) DeleteCollection added in v0.8.0

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

DeleteCollection deletes a collection of objects.

func (*FakeComponents) Get added in v0.8.0

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

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

func (*FakeComponents) List added in v0.8.0

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

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

func (*FakeComponents) Patch added in v0.8.0

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

Patch applies the patch and returns the patched component.

func (*FakeComponents) Update added in v0.8.0

func (c *FakeComponents) Update(ctx context.Context, component *v1alpha1.Component, opts v1.UpdateOptions) (result *v1alpha1.Component, err error)

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

func (*FakeComponents) UpdateStatus added in v0.8.0

func (c *FakeComponents) UpdateStatus(ctx context.Context, component *v1alpha1.Component, opts v1.UpdateOptions) (*v1alpha1.Component, error)

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

func (*FakeComponents) Watch added in v0.8.0

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

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 FakeOpsDefinitions added in v0.8.0

type FakeOpsDefinitions struct {
	Fake *FakeAppsV1alpha1
}

FakeOpsDefinitions implements OpsDefinitionInterface

func (*FakeOpsDefinitions) Create added in v0.8.0

func (c *FakeOpsDefinitions) Create(ctx context.Context, opsDefinition *v1alpha1.OpsDefinition, opts v1.CreateOptions) (result *v1alpha1.OpsDefinition, err error)

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

func (*FakeOpsDefinitions) Delete added in v0.8.0

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

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

func (*FakeOpsDefinitions) DeleteCollection added in v0.8.0

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

DeleteCollection deletes a collection of objects.

func (*FakeOpsDefinitions) Get added in v0.8.0

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

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

func (*FakeOpsDefinitions) List added in v0.8.0

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

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

func (*FakeOpsDefinitions) Patch added in v0.8.0

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

Patch applies the patch and returns the patched opsDefinition.

func (*FakeOpsDefinitions) Update added in v0.8.0

func (c *FakeOpsDefinitions) Update(ctx context.Context, opsDefinition *v1alpha1.OpsDefinition, opts v1.UpdateOptions) (result *v1alpha1.OpsDefinition, err error)

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

func (*FakeOpsDefinitions) UpdateStatus added in v0.8.0

func (c *FakeOpsDefinitions) UpdateStatus(ctx context.Context, opsDefinition *v1alpha1.OpsDefinition, opts v1.UpdateOptions) (*v1alpha1.OpsDefinition, error)

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

func (*FakeOpsDefinitions) Watch added in v0.8.0

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

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.

type FakeServiceDescriptors added in v0.7.0

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

FakeServiceDescriptors implements ServiceDescriptorInterface

func (*FakeServiceDescriptors) Create added in v0.7.0

func (c *FakeServiceDescriptors) Create(ctx context.Context, serviceDescriptor *v1alpha1.ServiceDescriptor, opts v1.CreateOptions) (result *v1alpha1.ServiceDescriptor, err error)

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

func (*FakeServiceDescriptors) Delete added in v0.7.0

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

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

func (*FakeServiceDescriptors) DeleteCollection added in v0.7.0

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

DeleteCollection deletes a collection of objects.

func (*FakeServiceDescriptors) Get added in v0.7.0

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

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

func (*FakeServiceDescriptors) List added in v0.7.0

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

func (*FakeServiceDescriptors) Patch added in v0.7.0

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

Patch applies the patch and returns the patched serviceDescriptor.

func (*FakeServiceDescriptors) Update added in v0.7.0

func (c *FakeServiceDescriptors) Update(ctx context.Context, serviceDescriptor *v1alpha1.ServiceDescriptor, opts v1.UpdateOptions) (result *v1alpha1.ServiceDescriptor, err error)

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

func (*FakeServiceDescriptors) UpdateStatus added in v0.7.0

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

func (*FakeServiceDescriptors) Watch added in v0.7.0

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

Jump to

Keyboard shortcuts

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