fake

package
v3.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: Apache-2.0 Imports: 9 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 FakeDNSEndpoints

type FakeDNSEndpoints struct {
	Fake *FakeExternaldnsV1
	// contains filtered or unexported fields
}

FakeDNSEndpoints implements DNSEndpointInterface

func (*FakeDNSEndpoints) Create

func (c *FakeDNSEndpoints) Create(ctx context.Context, dNSEndpoint *v1.DNSEndpoint, opts metav1.CreateOptions) (result *v1.DNSEndpoint, err error)

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

func (*FakeDNSEndpoints) Delete

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

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

func (*FakeDNSEndpoints) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDNSEndpoints) Get

func (c *FakeDNSEndpoints) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DNSEndpoint, err error)

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

func (*FakeDNSEndpoints) List

func (c *FakeDNSEndpoints) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DNSEndpointList, err error)

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

func (*FakeDNSEndpoints) Patch

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

Patch applies the patch and returns the patched dNSEndpoint.

func (*FakeDNSEndpoints) Update

func (c *FakeDNSEndpoints) Update(ctx context.Context, dNSEndpoint *v1.DNSEndpoint, opts metav1.UpdateOptions) (result *v1.DNSEndpoint, err error)

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

func (*FakeDNSEndpoints) UpdateStatus

func (c *FakeDNSEndpoints) UpdateStatus(ctx context.Context, dNSEndpoint *v1.DNSEndpoint, opts metav1.UpdateOptions) (*v1.DNSEndpoint, error)

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

func (*FakeDNSEndpoints) Watch

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

type FakeExternaldnsV1

type FakeExternaldnsV1 struct {
	*testing.Fake
}

func (*FakeExternaldnsV1) DNSEndpoints

func (c *FakeExternaldnsV1) DNSEndpoints(namespace string) v1.DNSEndpointInterface

func (*FakeExternaldnsV1) RESTClient

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

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

Jump to

Keyboard shortcuts

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