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 FakeDomainTopics

type FakeDomainTopics struct {
	Fake *FakeEventgridV1alpha1
	// contains filtered or unexported fields
}

FakeDomainTopics implements DomainTopicInterface

func (*FakeDomainTopics) Create

func (c *FakeDomainTopics) Create(ctx context.Context, domainTopic *v1alpha1.DomainTopic, opts v1.CreateOptions) (result *v1alpha1.DomainTopic, err error)

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

func (*FakeDomainTopics) Delete

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

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

func (*FakeDomainTopics) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDomainTopics) Get

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

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

func (*FakeDomainTopics) List

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

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

func (*FakeDomainTopics) Patch

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

Patch applies the patch and returns the patched domainTopic.

func (*FakeDomainTopics) Update

func (c *FakeDomainTopics) Update(ctx context.Context, domainTopic *v1alpha1.DomainTopic, opts v1.UpdateOptions) (result *v1alpha1.DomainTopic, err error)

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

func (*FakeDomainTopics) UpdateStatus

func (c *FakeDomainTopics) UpdateStatus(ctx context.Context, domainTopic *v1alpha1.DomainTopic, opts v1.UpdateOptions) (*v1alpha1.DomainTopic, error)

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

func (*FakeDomainTopics) Watch

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

type FakeDomains

type FakeDomains struct {
	Fake *FakeEventgridV1alpha1
	// contains filtered or unexported fields
}

FakeDomains implements DomainInterface

func (*FakeDomains) Create

func (c *FakeDomains) Create(ctx context.Context, domain *v1alpha1.Domain, opts v1.CreateOptions) (result *v1alpha1.Domain, err error)

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

func (*FakeDomains) Delete

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

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

func (*FakeDomains) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDomains) Get

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

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

func (*FakeDomains) List

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

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

func (*FakeDomains) Patch

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

Patch applies the patch and returns the patched domain.

func (*FakeDomains) Update

func (c *FakeDomains) Update(ctx context.Context, domain *v1alpha1.Domain, opts v1.UpdateOptions) (result *v1alpha1.Domain, err error)

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

func (*FakeDomains) UpdateStatus

func (c *FakeDomains) UpdateStatus(ctx context.Context, domain *v1alpha1.Domain, opts v1.UpdateOptions) (*v1alpha1.Domain, error)

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

func (*FakeDomains) Watch

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

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

type FakeEventSubscriptions

type FakeEventSubscriptions struct {
	Fake *FakeEventgridV1alpha1
	// contains filtered or unexported fields
}

FakeEventSubscriptions implements EventSubscriptionInterface

func (*FakeEventSubscriptions) Create

func (c *FakeEventSubscriptions) Create(ctx context.Context, eventSubscription *v1alpha1.EventSubscription, opts v1.CreateOptions) (result *v1alpha1.EventSubscription, err error)

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

func (*FakeEventSubscriptions) Delete

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

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

func (*FakeEventSubscriptions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEventSubscriptions) Get

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

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

func (*FakeEventSubscriptions) List

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

func (*FakeEventSubscriptions) Patch

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

Patch applies the patch and returns the patched eventSubscription.

func (*FakeEventSubscriptions) Update

func (c *FakeEventSubscriptions) Update(ctx context.Context, eventSubscription *v1alpha1.EventSubscription, opts v1.UpdateOptions) (result *v1alpha1.EventSubscription, err error)

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

func (*FakeEventSubscriptions) UpdateStatus

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

func (*FakeEventSubscriptions) Watch

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

type FakeEventgridV1alpha1

type FakeEventgridV1alpha1 struct {
	*testing.Fake
}

func (*FakeEventgridV1alpha1) DomainTopics

func (c *FakeEventgridV1alpha1) DomainTopics(namespace string) v1alpha1.DomainTopicInterface

func (*FakeEventgridV1alpha1) Domains

func (c *FakeEventgridV1alpha1) Domains(namespace string) v1alpha1.DomainInterface

func (*FakeEventgridV1alpha1) EventSubscriptions

func (c *FakeEventgridV1alpha1) EventSubscriptions(namespace string) v1alpha1.EventSubscriptionInterface

func (*FakeEventgridV1alpha1) RESTClient

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

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

func (*FakeEventgridV1alpha1) SystemTopicEventSubscriptions

func (c *FakeEventgridV1alpha1) SystemTopicEventSubscriptions(namespace string) v1alpha1.SystemTopicEventSubscriptionInterface

func (*FakeEventgridV1alpha1) SystemTopics

func (c *FakeEventgridV1alpha1) SystemTopics(namespace string) v1alpha1.SystemTopicInterface

func (*FakeEventgridV1alpha1) Topics

func (c *FakeEventgridV1alpha1) Topics(namespace string) v1alpha1.TopicInterface

type FakeSystemTopicEventSubscriptions

type FakeSystemTopicEventSubscriptions struct {
	Fake *FakeEventgridV1alpha1
	// contains filtered or unexported fields
}

FakeSystemTopicEventSubscriptions implements SystemTopicEventSubscriptionInterface

func (*FakeSystemTopicEventSubscriptions) Create

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

func (*FakeSystemTopicEventSubscriptions) Delete

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

func (*FakeSystemTopicEventSubscriptions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSystemTopicEventSubscriptions) Get

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

func (*FakeSystemTopicEventSubscriptions) List

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

func (*FakeSystemTopicEventSubscriptions) Patch

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

Patch applies the patch and returns the patched systemTopicEventSubscription.

func (*FakeSystemTopicEventSubscriptions) Update

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

func (*FakeSystemTopicEventSubscriptions) UpdateStatus

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

func (*FakeSystemTopicEventSubscriptions) Watch

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

type FakeSystemTopics

type FakeSystemTopics struct {
	Fake *FakeEventgridV1alpha1
	// contains filtered or unexported fields
}

FakeSystemTopics implements SystemTopicInterface

func (*FakeSystemTopics) Create

func (c *FakeSystemTopics) Create(ctx context.Context, systemTopic *v1alpha1.SystemTopic, opts v1.CreateOptions) (result *v1alpha1.SystemTopic, err error)

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

func (*FakeSystemTopics) Delete

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

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

func (*FakeSystemTopics) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSystemTopics) Get

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

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

func (*FakeSystemTopics) List

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

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

func (*FakeSystemTopics) Patch

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

Patch applies the patch and returns the patched systemTopic.

func (*FakeSystemTopics) Update

func (c *FakeSystemTopics) Update(ctx context.Context, systemTopic *v1alpha1.SystemTopic, opts v1.UpdateOptions) (result *v1alpha1.SystemTopic, err error)

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

func (*FakeSystemTopics) UpdateStatus

func (c *FakeSystemTopics) UpdateStatus(ctx context.Context, systemTopic *v1alpha1.SystemTopic, opts v1.UpdateOptions) (*v1alpha1.SystemTopic, error)

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

func (*FakeSystemTopics) Watch

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

type FakeTopics

type FakeTopics struct {
	Fake *FakeEventgridV1alpha1
	// contains filtered or unexported fields
}

FakeTopics implements TopicInterface

func (*FakeTopics) Create

func (c *FakeTopics) Create(ctx context.Context, topic *v1alpha1.Topic, opts v1.CreateOptions) (result *v1alpha1.Topic, err error)

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

func (*FakeTopics) Delete

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

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

func (*FakeTopics) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTopics) Get

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

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

func (*FakeTopics) List

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

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

func (*FakeTopics) Patch

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

Patch applies the patch and returns the patched topic.

func (*FakeTopics) Update

func (c *FakeTopics) Update(ctx context.Context, topic *v1alpha1.Topic, opts v1.UpdateOptions) (result *v1alpha1.Topic, err error)

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

func (*FakeTopics) UpdateStatus

func (c *FakeTopics) UpdateStatus(ctx context.Context, topic *v1alpha1.Topic, opts v1.UpdateOptions) (*v1alpha1.Topic, error)

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

func (*FakeTopics) Watch

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

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

Jump to

Keyboard shortcuts

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