fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 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 FakeAuthorizationRules

type FakeAuthorizationRules struct {
	Fake *FakeEventhubV1alpha1
	// contains filtered or unexported fields
}

FakeAuthorizationRules implements AuthorizationRuleInterface

func (*FakeAuthorizationRules) Create

func (c *FakeAuthorizationRules) Create(ctx context.Context, authorizationRule *v1alpha1.AuthorizationRule, opts v1.CreateOptions) (result *v1alpha1.AuthorizationRule, err error)

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

func (*FakeAuthorizationRules) Delete

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

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

func (*FakeAuthorizationRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAuthorizationRules) Get

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

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

func (*FakeAuthorizationRules) List

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

func (*FakeAuthorizationRules) Patch

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

Patch applies the patch and returns the patched authorizationRule.

func (*FakeAuthorizationRules) Update

func (c *FakeAuthorizationRules) Update(ctx context.Context, authorizationRule *v1alpha1.AuthorizationRule, opts v1.UpdateOptions) (result *v1alpha1.AuthorizationRule, err error)

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

func (*FakeAuthorizationRules) UpdateStatus

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

func (*FakeAuthorizationRules) Watch

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

type FakeClusters

type FakeClusters struct {
	Fake *FakeEventhubV1alpha1
	// 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 FakeConsumerGroups

type FakeConsumerGroups struct {
	Fake *FakeEventhubV1alpha1
	// contains filtered or unexported fields
}

FakeConsumerGroups implements ConsumerGroupInterface

func (*FakeConsumerGroups) Create

func (c *FakeConsumerGroups) Create(ctx context.Context, consumerGroup *v1alpha1.ConsumerGroup, opts v1.CreateOptions) (result *v1alpha1.ConsumerGroup, err error)

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

func (*FakeConsumerGroups) Delete

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

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

func (*FakeConsumerGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeConsumerGroups) Get

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

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

func (*FakeConsumerGroups) List

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

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

func (*FakeConsumerGroups) Patch

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

Patch applies the patch and returns the patched consumerGroup.

func (*FakeConsumerGroups) Update

func (c *FakeConsumerGroups) Update(ctx context.Context, consumerGroup *v1alpha1.ConsumerGroup, opts v1.UpdateOptions) (result *v1alpha1.ConsumerGroup, err error)

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

func (*FakeConsumerGroups) UpdateStatus

func (c *FakeConsumerGroups) UpdateStatus(ctx context.Context, consumerGroup *v1alpha1.ConsumerGroup, opts v1.UpdateOptions) (*v1alpha1.ConsumerGroup, error)

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

func (*FakeConsumerGroups) Watch

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

type FakeEventhubV1alpha1

type FakeEventhubV1alpha1 struct {
	*testing.Fake
}

func (*FakeEventhubV1alpha1) AuthorizationRules

func (c *FakeEventhubV1alpha1) AuthorizationRules(namespace string) v1alpha1.AuthorizationRuleInterface

func (*FakeEventhubV1alpha1) Clusters

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

func (*FakeEventhubV1alpha1) ConsumerGroups

func (c *FakeEventhubV1alpha1) ConsumerGroups(namespace string) v1alpha1.ConsumerGroupInterface

func (*FakeEventhubV1alpha1) Eventhubs

func (c *FakeEventhubV1alpha1) Eventhubs(namespace string) v1alpha1.EventhubInterface

func (*FakeEventhubV1alpha1) NamespaceAuthorizationRules

func (c *FakeEventhubV1alpha1) NamespaceAuthorizationRules(namespace string) v1alpha1.NamespaceAuthorizationRuleInterface

func (*FakeEventhubV1alpha1) NamespaceCustomerManagedKeys

func (c *FakeEventhubV1alpha1) NamespaceCustomerManagedKeys(namespace string) v1alpha1.NamespaceCustomerManagedKeyInterface

func (*FakeEventhubV1alpha1) NamespaceDisasterRecoveryConfigs

func (c *FakeEventhubV1alpha1) NamespaceDisasterRecoveryConfigs(namespace string) v1alpha1.NamespaceDisasterRecoveryConfigInterface

func (*FakeEventhubV1alpha1) Namespaces added in v0.1.1

func (c *FakeEventhubV1alpha1) Namespaces(namespace string) v1alpha1.NamespaceInterface

func (*FakeEventhubV1alpha1) RESTClient

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

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

type FakeEventhubs

type FakeEventhubs struct {
	Fake *FakeEventhubV1alpha1
	// contains filtered or unexported fields
}

FakeEventhubs implements EventhubInterface

func (*FakeEventhubs) Create

func (c *FakeEventhubs) Create(ctx context.Context, eventhub *v1alpha1.Eventhub, opts v1.CreateOptions) (result *v1alpha1.Eventhub, err error)

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

func (*FakeEventhubs) Delete

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

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

func (*FakeEventhubs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEventhubs) Get

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

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

func (*FakeEventhubs) List

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

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

func (*FakeEventhubs) Patch

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

Patch applies the patch and returns the patched eventhub.

func (*FakeEventhubs) Update

func (c *FakeEventhubs) Update(ctx context.Context, eventhub *v1alpha1.Eventhub, opts v1.UpdateOptions) (result *v1alpha1.Eventhub, err error)

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

func (*FakeEventhubs) UpdateStatus

func (c *FakeEventhubs) UpdateStatus(ctx context.Context, eventhub *v1alpha1.Eventhub, opts v1.UpdateOptions) (*v1alpha1.Eventhub, error)

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

func (*FakeEventhubs) Watch

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

type FakeNamespaceAuthorizationRules

type FakeNamespaceAuthorizationRules struct {
	Fake *FakeEventhubV1alpha1
	// contains filtered or unexported fields
}

FakeNamespaceAuthorizationRules implements NamespaceAuthorizationRuleInterface

func (*FakeNamespaceAuthorizationRules) Create

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

func (*FakeNamespaceAuthorizationRules) Delete

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

func (*FakeNamespaceAuthorizationRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNamespaceAuthorizationRules) Get

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

func (*FakeNamespaceAuthorizationRules) List

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

func (*FakeNamespaceAuthorizationRules) Patch

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

Patch applies the patch and returns the patched namespaceAuthorizationRule.

func (*FakeNamespaceAuthorizationRules) Update

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

func (*FakeNamespaceAuthorizationRules) UpdateStatus

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

func (*FakeNamespaceAuthorizationRules) Watch

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

type FakeNamespaceCustomerManagedKeys

type FakeNamespaceCustomerManagedKeys struct {
	Fake *FakeEventhubV1alpha1
	// contains filtered or unexported fields
}

FakeNamespaceCustomerManagedKeys implements NamespaceCustomerManagedKeyInterface

func (*FakeNamespaceCustomerManagedKeys) Create

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

func (*FakeNamespaceCustomerManagedKeys) Delete

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

func (*FakeNamespaceCustomerManagedKeys) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNamespaceCustomerManagedKeys) Get

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

func (*FakeNamespaceCustomerManagedKeys) List

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

func (*FakeNamespaceCustomerManagedKeys) Patch

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

Patch applies the patch and returns the patched namespaceCustomerManagedKey.

func (*FakeNamespaceCustomerManagedKeys) Update

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

func (*FakeNamespaceCustomerManagedKeys) UpdateStatus

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

func (*FakeNamespaceCustomerManagedKeys) Watch

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

type FakeNamespaceDisasterRecoveryConfigs

type FakeNamespaceDisasterRecoveryConfigs struct {
	Fake *FakeEventhubV1alpha1
	// contains filtered or unexported fields
}

FakeNamespaceDisasterRecoveryConfigs implements NamespaceDisasterRecoveryConfigInterface

func (*FakeNamespaceDisasterRecoveryConfigs) Create

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

func (*FakeNamespaceDisasterRecoveryConfigs) Delete

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

func (*FakeNamespaceDisasterRecoveryConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNamespaceDisasterRecoveryConfigs) Get

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

func (*FakeNamespaceDisasterRecoveryConfigs) List

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

func (*FakeNamespaceDisasterRecoveryConfigs) Patch

Patch applies the patch and returns the patched namespaceDisasterRecoveryConfig.

func (*FakeNamespaceDisasterRecoveryConfigs) Update

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

func (*FakeNamespaceDisasterRecoveryConfigs) UpdateStatus

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

func (*FakeNamespaceDisasterRecoveryConfigs) Watch

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

type FakeNamespaces added in v0.1.1

type FakeNamespaces struct {
	Fake *FakeEventhubV1alpha1
	// contains filtered or unexported fields
}

FakeNamespaces implements NamespaceInterface

func (*FakeNamespaces) Create added in v0.1.1

func (c *FakeNamespaces) Create(ctx context.Context, namespace *v1alpha1.Namespace, opts v1.CreateOptions) (result *v1alpha1.Namespace, err error)

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

func (*FakeNamespaces) Delete added in v0.1.1

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

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

func (*FakeNamespaces) DeleteCollection added in v0.1.1

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

DeleteCollection deletes a collection of objects.

func (*FakeNamespaces) Get added in v0.1.1

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

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

func (*FakeNamespaces) List added in v0.1.1

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

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

func (*FakeNamespaces) Patch added in v0.1.1

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

Patch applies the patch and returns the patched namespace.

func (*FakeNamespaces) Update added in v0.1.1

func (c *FakeNamespaces) Update(ctx context.Context, namespace *v1alpha1.Namespace, opts v1.UpdateOptions) (result *v1alpha1.Namespace, err error)

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

func (*FakeNamespaces) UpdateStatus added in v0.1.1

func (c *FakeNamespaces) UpdateStatus(ctx context.Context, namespace *v1alpha1.Namespace, opts v1.UpdateOptions) (*v1alpha1.Namespace, error)

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

func (*FakeNamespaces) Watch added in v0.1.1

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

Jump to

Keyboard shortcuts

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