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 FakeDnsV1alpha1

type FakeDnsV1alpha1 struct {
	*testing.Fake
}

func (*FakeDnsV1alpha1) RESTClient

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

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

func (*FakeDnsV1alpha1) Records

func (c *FakeDnsV1alpha1) Records(namespace string) v1alpha1.RecordInterface

func (*FakeDnsV1alpha1) ResolverEndpoints

func (c *FakeDnsV1alpha1) ResolverEndpoints(namespace string) v1alpha1.ResolverEndpointInterface

func (*FakeDnsV1alpha1) Resolvers

func (c *FakeDnsV1alpha1) Resolvers(namespace string) v1alpha1.ResolverInterface

func (*FakeDnsV1alpha1) Rrsets

func (c *FakeDnsV1alpha1) Rrsets(namespace string) v1alpha1.RrsetInterface

func (*FakeDnsV1alpha1) SteeringPolicies

func (c *FakeDnsV1alpha1) SteeringPolicies(namespace string) v1alpha1.SteeringPolicyInterface

func (*FakeDnsV1alpha1) SteeringPolicyAttachments

func (c *FakeDnsV1alpha1) SteeringPolicyAttachments(namespace string) v1alpha1.SteeringPolicyAttachmentInterface

func (*FakeDnsV1alpha1) TsigKeys

func (c *FakeDnsV1alpha1) TsigKeys(namespace string) v1alpha1.TsigKeyInterface

func (*FakeDnsV1alpha1) Views

func (c *FakeDnsV1alpha1) Views(namespace string) v1alpha1.ViewInterface

func (*FakeDnsV1alpha1) Zones

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

type FakeRecords

type FakeRecords struct {
	Fake *FakeDnsV1alpha1
	// contains filtered or unexported fields
}

FakeRecords implements RecordInterface

func (*FakeRecords) Create

func (c *FakeRecords) Create(ctx context.Context, record *v1alpha1.Record, opts v1.CreateOptions) (result *v1alpha1.Record, err error)

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

func (*FakeRecords) Delete

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

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

func (*FakeRecords) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRecords) Get

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

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

func (*FakeRecords) List

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

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

func (*FakeRecords) Patch

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

Patch applies the patch and returns the patched record.

func (*FakeRecords) Update

func (c *FakeRecords) Update(ctx context.Context, record *v1alpha1.Record, opts v1.UpdateOptions) (result *v1alpha1.Record, err error)

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

func (*FakeRecords) UpdateStatus

func (c *FakeRecords) UpdateStatus(ctx context.Context, record *v1alpha1.Record, opts v1.UpdateOptions) (*v1alpha1.Record, error)

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

func (*FakeRecords) Watch

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

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

type FakeResolverEndpoints

type FakeResolverEndpoints struct {
	Fake *FakeDnsV1alpha1
	// contains filtered or unexported fields
}

FakeResolverEndpoints implements ResolverEndpointInterface

func (*FakeResolverEndpoints) Create

func (c *FakeResolverEndpoints) Create(ctx context.Context, resolverEndpoint *v1alpha1.ResolverEndpoint, opts v1.CreateOptions) (result *v1alpha1.ResolverEndpoint, err error)

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

func (*FakeResolverEndpoints) Delete

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

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

func (*FakeResolverEndpoints) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResolverEndpoints) Get

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

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

func (*FakeResolverEndpoints) List

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

func (*FakeResolverEndpoints) Patch

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

Patch applies the patch and returns the patched resolverEndpoint.

func (*FakeResolverEndpoints) Update

func (c *FakeResolverEndpoints) Update(ctx context.Context, resolverEndpoint *v1alpha1.ResolverEndpoint, opts v1.UpdateOptions) (result *v1alpha1.ResolverEndpoint, err error)

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

func (*FakeResolverEndpoints) UpdateStatus

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

func (*FakeResolverEndpoints) Watch

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

type FakeResolvers

type FakeResolvers struct {
	Fake *FakeDnsV1alpha1
	// contains filtered or unexported fields
}

FakeResolvers implements ResolverInterface

func (*FakeResolvers) Create

func (c *FakeResolvers) Create(ctx context.Context, resolver *v1alpha1.Resolver, opts v1.CreateOptions) (result *v1alpha1.Resolver, err error)

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

func (*FakeResolvers) Delete

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

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

func (*FakeResolvers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResolvers) Get

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

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

func (*FakeResolvers) List

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

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

func (*FakeResolvers) Patch

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

Patch applies the patch and returns the patched resolver.

func (*FakeResolvers) Update

func (c *FakeResolvers) Update(ctx context.Context, resolver *v1alpha1.Resolver, opts v1.UpdateOptions) (result *v1alpha1.Resolver, err error)

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

func (*FakeResolvers) UpdateStatus

func (c *FakeResolvers) UpdateStatus(ctx context.Context, resolver *v1alpha1.Resolver, opts v1.UpdateOptions) (*v1alpha1.Resolver, error)

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

func (*FakeResolvers) Watch

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

type FakeRrsets

type FakeRrsets struct {
	Fake *FakeDnsV1alpha1
	// contains filtered or unexported fields
}

FakeRrsets implements RrsetInterface

func (*FakeRrsets) Create

func (c *FakeRrsets) Create(ctx context.Context, rrset *v1alpha1.Rrset, opts v1.CreateOptions) (result *v1alpha1.Rrset, err error)

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

func (*FakeRrsets) Delete

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

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

func (*FakeRrsets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRrsets) Get

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

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

func (*FakeRrsets) List

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

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

func (*FakeRrsets) Patch

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

Patch applies the patch and returns the patched rrset.

func (*FakeRrsets) Update

func (c *FakeRrsets) Update(ctx context.Context, rrset *v1alpha1.Rrset, opts v1.UpdateOptions) (result *v1alpha1.Rrset, err error)

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

func (*FakeRrsets) UpdateStatus

func (c *FakeRrsets) UpdateStatus(ctx context.Context, rrset *v1alpha1.Rrset, opts v1.UpdateOptions) (*v1alpha1.Rrset, error)

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

func (*FakeRrsets) Watch

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

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

type FakeSteeringPolicies

type FakeSteeringPolicies struct {
	Fake *FakeDnsV1alpha1
	// contains filtered or unexported fields
}

FakeSteeringPolicies implements SteeringPolicyInterface

func (*FakeSteeringPolicies) Create

func (c *FakeSteeringPolicies) Create(ctx context.Context, steeringPolicy *v1alpha1.SteeringPolicy, opts v1.CreateOptions) (result *v1alpha1.SteeringPolicy, err error)

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

func (*FakeSteeringPolicies) Delete

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

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

func (*FakeSteeringPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSteeringPolicies) Get

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

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

func (*FakeSteeringPolicies) List

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

func (*FakeSteeringPolicies) Patch

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

Patch applies the patch and returns the patched steeringPolicy.

func (*FakeSteeringPolicies) Update

func (c *FakeSteeringPolicies) Update(ctx context.Context, steeringPolicy *v1alpha1.SteeringPolicy, opts v1.UpdateOptions) (result *v1alpha1.SteeringPolicy, err error)

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

func (*FakeSteeringPolicies) UpdateStatus

func (c *FakeSteeringPolicies) UpdateStatus(ctx context.Context, steeringPolicy *v1alpha1.SteeringPolicy, opts v1.UpdateOptions) (*v1alpha1.SteeringPolicy, error)

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

func (*FakeSteeringPolicies) Watch

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

type FakeSteeringPolicyAttachments

type FakeSteeringPolicyAttachments struct {
	Fake *FakeDnsV1alpha1
	// contains filtered or unexported fields
}

FakeSteeringPolicyAttachments implements SteeringPolicyAttachmentInterface

func (*FakeSteeringPolicyAttachments) Create

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

func (*FakeSteeringPolicyAttachments) Delete

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

func (*FakeSteeringPolicyAttachments) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSteeringPolicyAttachments) Get

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

func (*FakeSteeringPolicyAttachments) List

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

func (*FakeSteeringPolicyAttachments) Patch

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

Patch applies the patch and returns the patched steeringPolicyAttachment.

func (*FakeSteeringPolicyAttachments) Update

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

func (*FakeSteeringPolicyAttachments) UpdateStatus

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

func (*FakeSteeringPolicyAttachments) Watch

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

type FakeTsigKeys

type FakeTsigKeys struct {
	Fake *FakeDnsV1alpha1
	// contains filtered or unexported fields
}

FakeTsigKeys implements TsigKeyInterface

func (*FakeTsigKeys) Create

func (c *FakeTsigKeys) Create(ctx context.Context, tsigKey *v1alpha1.TsigKey, opts v1.CreateOptions) (result *v1alpha1.TsigKey, err error)

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

func (*FakeTsigKeys) Delete

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

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

func (*FakeTsigKeys) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTsigKeys) Get

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

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

func (*FakeTsigKeys) List

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

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

func (*FakeTsigKeys) Patch

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

Patch applies the patch and returns the patched tsigKey.

func (*FakeTsigKeys) Update

func (c *FakeTsigKeys) Update(ctx context.Context, tsigKey *v1alpha1.TsigKey, opts v1.UpdateOptions) (result *v1alpha1.TsigKey, err error)

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

func (*FakeTsigKeys) UpdateStatus

func (c *FakeTsigKeys) UpdateStatus(ctx context.Context, tsigKey *v1alpha1.TsigKey, opts v1.UpdateOptions) (*v1alpha1.TsigKey, error)

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

func (*FakeTsigKeys) Watch

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

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

type FakeViews

type FakeViews struct {
	Fake *FakeDnsV1alpha1
	// contains filtered or unexported fields
}

FakeViews implements ViewInterface

func (*FakeViews) Create

func (c *FakeViews) Create(ctx context.Context, view *v1alpha1.View, opts v1.CreateOptions) (result *v1alpha1.View, err error)

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

func (*FakeViews) Delete

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

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

func (*FakeViews) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeViews) Get

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

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

func (*FakeViews) List

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

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

func (*FakeViews) Patch

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

Patch applies the patch and returns the patched view.

func (*FakeViews) Update

func (c *FakeViews) Update(ctx context.Context, view *v1alpha1.View, opts v1.UpdateOptions) (result *v1alpha1.View, err error)

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

func (*FakeViews) UpdateStatus

func (c *FakeViews) UpdateStatus(ctx context.Context, view *v1alpha1.View, opts v1.UpdateOptions) (*v1alpha1.View, error)

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

func (*FakeViews) Watch

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

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

type FakeZones

type FakeZones struct {
	Fake *FakeDnsV1alpha1
	// 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