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 FakeDkims

type FakeDkims struct {
	Fake *FakeEmailV1alpha1
	// contains filtered or unexported fields
}

FakeDkims implements DkimInterface

func (*FakeDkims) Create

func (c *FakeDkims) Create(ctx context.Context, dkim *v1alpha1.Dkim, opts v1.CreateOptions) (result *v1alpha1.Dkim, err error)

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

func (*FakeDkims) Delete

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

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

func (*FakeDkims) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDkims) Get

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

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

func (*FakeDkims) List

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

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

func (*FakeDkims) Patch

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

Patch applies the patch and returns the patched dkim.

func (*FakeDkims) Update

func (c *FakeDkims) Update(ctx context.Context, dkim *v1alpha1.Dkim, opts v1.UpdateOptions) (result *v1alpha1.Dkim, err error)

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

func (*FakeDkims) UpdateStatus

func (c *FakeDkims) UpdateStatus(ctx context.Context, dkim *v1alpha1.Dkim, opts v1.UpdateOptions) (*v1alpha1.Dkim, error)

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

func (*FakeDkims) Watch

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

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

type FakeEmailDomains

type FakeEmailDomains struct {
	Fake *FakeEmailV1alpha1
	// contains filtered or unexported fields
}

FakeEmailDomains implements EmailDomainInterface

func (*FakeEmailDomains) Create

func (c *FakeEmailDomains) Create(ctx context.Context, emailDomain *v1alpha1.EmailDomain, opts v1.CreateOptions) (result *v1alpha1.EmailDomain, err error)

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

func (*FakeEmailDomains) Delete

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

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

func (*FakeEmailDomains) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEmailDomains) Get

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

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

func (*FakeEmailDomains) List

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

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

func (*FakeEmailDomains) Patch

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

Patch applies the patch and returns the patched emailDomain.

func (*FakeEmailDomains) Update

func (c *FakeEmailDomains) Update(ctx context.Context, emailDomain *v1alpha1.EmailDomain, opts v1.UpdateOptions) (result *v1alpha1.EmailDomain, err error)

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

func (*FakeEmailDomains) UpdateStatus

func (c *FakeEmailDomains) UpdateStatus(ctx context.Context, emailDomain *v1alpha1.EmailDomain, opts v1.UpdateOptions) (*v1alpha1.EmailDomain, error)

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

func (*FakeEmailDomains) Watch

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

type FakeEmailV1alpha1

type FakeEmailV1alpha1 struct {
	*testing.Fake
}

func (*FakeEmailV1alpha1) Dkims

func (c *FakeEmailV1alpha1) Dkims(namespace string) v1alpha1.DkimInterface

func (*FakeEmailV1alpha1) EmailDomains

func (c *FakeEmailV1alpha1) EmailDomains(namespace string) v1alpha1.EmailDomainInterface

func (*FakeEmailV1alpha1) RESTClient

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

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

func (*FakeEmailV1alpha1) Senders

func (c *FakeEmailV1alpha1) Senders(namespace string) v1alpha1.SenderInterface

func (*FakeEmailV1alpha1) Suppressions

func (c *FakeEmailV1alpha1) Suppressions(namespace string) v1alpha1.SuppressionInterface

type FakeSenders

type FakeSenders struct {
	Fake *FakeEmailV1alpha1
	// contains filtered or unexported fields
}

FakeSenders implements SenderInterface

func (*FakeSenders) Create

func (c *FakeSenders) Create(ctx context.Context, sender *v1alpha1.Sender, opts v1.CreateOptions) (result *v1alpha1.Sender, err error)

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

func (*FakeSenders) Delete

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

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

func (*FakeSenders) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSenders) Get

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

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

func (*FakeSenders) List

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

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

func (*FakeSenders) Patch

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

Patch applies the patch and returns the patched sender.

func (*FakeSenders) Update

func (c *FakeSenders) Update(ctx context.Context, sender *v1alpha1.Sender, opts v1.UpdateOptions) (result *v1alpha1.Sender, err error)

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

func (*FakeSenders) UpdateStatus

func (c *FakeSenders) UpdateStatus(ctx context.Context, sender *v1alpha1.Sender, opts v1.UpdateOptions) (*v1alpha1.Sender, error)

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

func (*FakeSenders) Watch

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

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

type FakeSuppressions

type FakeSuppressions struct {
	Fake *FakeEmailV1alpha1
	// contains filtered or unexported fields
}

FakeSuppressions implements SuppressionInterface

func (*FakeSuppressions) Create

func (c *FakeSuppressions) Create(ctx context.Context, suppression *v1alpha1.Suppression, opts v1.CreateOptions) (result *v1alpha1.Suppression, err error)

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

func (*FakeSuppressions) Delete

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

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

func (*FakeSuppressions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSuppressions) Get

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

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

func (*FakeSuppressions) List

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

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

func (*FakeSuppressions) Patch

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

Patch applies the patch and returns the patched suppression.

func (*FakeSuppressions) Update

func (c *FakeSuppressions) Update(ctx context.Context, suppression *v1alpha1.Suppression, opts v1.UpdateOptions) (result *v1alpha1.Suppression, err error)

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

func (*FakeSuppressions) UpdateStatus

func (c *FakeSuppressions) UpdateStatus(ctx context.Context, suppression *v1alpha1.Suppression, opts v1.UpdateOptions) (*v1alpha1.Suppression, error)

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

func (*FakeSuppressions) Watch

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

Jump to

Keyboard shortcuts

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