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 FakeDomainV1alpha1

type FakeDomainV1alpha1 struct {
	*testing.Fake
}

func (*FakeDomainV1alpha1) RESTClient

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

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

func (*FakeDomainV1alpha1) ZoneRecords

func (c *FakeDomainV1alpha1) ZoneRecords(namespace string) v1alpha1.ZoneRecordInterface

func (*FakeDomainV1alpha1) ZoneRedirections

func (c *FakeDomainV1alpha1) ZoneRedirections(namespace string) v1alpha1.ZoneRedirectionInterface

func (*FakeDomainV1alpha1) Zones

func (c *FakeDomainV1alpha1) Zones(namespace string) v1alpha1.ZoneInterface

type FakeZoneRecords

type FakeZoneRecords struct {
	Fake *FakeDomainV1alpha1
	// contains filtered or unexported fields
}

FakeZoneRecords implements ZoneRecordInterface

func (*FakeZoneRecords) Create

func (c *FakeZoneRecords) Create(ctx context.Context, zoneRecord *v1alpha1.ZoneRecord, opts v1.CreateOptions) (result *v1alpha1.ZoneRecord, err error)

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

func (*FakeZoneRecords) Delete

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

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

func (*FakeZoneRecords) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeZoneRecords) Get

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

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

func (*FakeZoneRecords) List

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

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

func (*FakeZoneRecords) Patch

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

Patch applies the patch and returns the patched zoneRecord.

func (*FakeZoneRecords) Update

func (c *FakeZoneRecords) Update(ctx context.Context, zoneRecord *v1alpha1.ZoneRecord, opts v1.UpdateOptions) (result *v1alpha1.ZoneRecord, err error)

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

func (*FakeZoneRecords) UpdateStatus

func (c *FakeZoneRecords) UpdateStatus(ctx context.Context, zoneRecord *v1alpha1.ZoneRecord, opts v1.UpdateOptions) (*v1alpha1.ZoneRecord, error)

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

func (*FakeZoneRecords) Watch

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

type FakeZoneRedirections

type FakeZoneRedirections struct {
	Fake *FakeDomainV1alpha1
	// contains filtered or unexported fields
}

FakeZoneRedirections implements ZoneRedirectionInterface

func (*FakeZoneRedirections) Create

func (c *FakeZoneRedirections) Create(ctx context.Context, zoneRedirection *v1alpha1.ZoneRedirection, opts v1.CreateOptions) (result *v1alpha1.ZoneRedirection, err error)

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

func (*FakeZoneRedirections) Delete

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

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

func (*FakeZoneRedirections) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeZoneRedirections) Get

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

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

func (*FakeZoneRedirections) List

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

func (*FakeZoneRedirections) Patch

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

Patch applies the patch and returns the patched zoneRedirection.

func (*FakeZoneRedirections) Update

func (c *FakeZoneRedirections) Update(ctx context.Context, zoneRedirection *v1alpha1.ZoneRedirection, opts v1.UpdateOptions) (result *v1alpha1.ZoneRedirection, err error)

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

func (*FakeZoneRedirections) UpdateStatus

func (c *FakeZoneRedirections) UpdateStatus(ctx context.Context, zoneRedirection *v1alpha1.ZoneRedirection, opts v1.UpdateOptions) (*v1alpha1.ZoneRedirection, error)

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

func (*FakeZoneRedirections) Watch

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

type FakeZones

type FakeZones struct {
	Fake *FakeDomainV1alpha1
	// contains filtered or unexported fields
}

FakeZones implements ZoneInterface

func (*FakeZones) Create

func (c *FakeZones) Create(ctx context.Context, zone *v1alpha1.Zone, opts v1.CreateOptions) (result *v1alpha1.Zone, err error)

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

func (*FakeZones) Delete

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

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

func (*FakeZones) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeZones) Get

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

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

func (*FakeZones) List

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

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

func (*FakeZones) Patch

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

Patch applies the patch and returns the patched zone.

func (*FakeZones) Update

func (c *FakeZones) Update(ctx context.Context, zone *v1alpha1.Zone, opts v1.UpdateOptions) (result *v1alpha1.Zone, err error)

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

func (*FakeZones) UpdateStatus

func (c *FakeZones) UpdateStatus(ctx context.Context, zone *v1alpha1.Zone, opts v1.UpdateOptions) (*v1alpha1.Zone, error)

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

func (*FakeZones) Watch

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

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

Jump to

Keyboard shortcuts

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