fake

package
v0.0.0-...-4b75dde Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 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 FakeEgresses

type FakeEgresses struct {
	Fake *FakePolicyV1alpha1
	// contains filtered or unexported fields
}

FakeEgresses implements EgressInterface

func (*FakeEgresses) Create

func (c *FakeEgresses) Create(ctx context.Context, egress *v1alpha1.Egress, opts v1.CreateOptions) (result *v1alpha1.Egress, err error)

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

func (*FakeEgresses) Delete

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

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

func (*FakeEgresses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEgresses) Get

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

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

func (*FakeEgresses) List

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

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

func (*FakeEgresses) Patch

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

Patch applies the patch and returns the patched egress.

func (*FakeEgresses) Update

func (c *FakeEgresses) Update(ctx context.Context, egress *v1alpha1.Egress, opts v1.UpdateOptions) (result *v1alpha1.Egress, err error)

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

func (*FakeEgresses) Watch

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

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

type FakeIngressBackends

type FakeIngressBackends struct {
	Fake *FakePolicyV1alpha1
	// contains filtered or unexported fields
}

FakeIngressBackends implements IngressBackendInterface

func (*FakeIngressBackends) Create

func (c *FakeIngressBackends) Create(ctx context.Context, ingressBackend *v1alpha1.IngressBackend, opts v1.CreateOptions) (result *v1alpha1.IngressBackend, err error)

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

func (*FakeIngressBackends) Delete

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

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

func (*FakeIngressBackends) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIngressBackends) Get

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

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

func (*FakeIngressBackends) List

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

func (*FakeIngressBackends) Patch

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

Patch applies the patch and returns the patched ingressBackend.

func (*FakeIngressBackends) Update

func (c *FakeIngressBackends) Update(ctx context.Context, ingressBackend *v1alpha1.IngressBackend, opts v1.UpdateOptions) (result *v1alpha1.IngressBackend, err error)

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

func (*FakeIngressBackends) UpdateStatus

func (c *FakeIngressBackends) UpdateStatus(ctx context.Context, ingressBackend *v1alpha1.IngressBackend, opts v1.UpdateOptions) (*v1alpha1.IngressBackend, error)

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

func (*FakeIngressBackends) Watch

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

type FakePolicyV1alpha1

type FakePolicyV1alpha1 struct {
	*testing.Fake
}

func (*FakePolicyV1alpha1) Egresses

func (c *FakePolicyV1alpha1) Egresses(namespace string) v1alpha1.EgressInterface

func (*FakePolicyV1alpha1) IngressBackends

func (c *FakePolicyV1alpha1) IngressBackends(namespace string) v1alpha1.IngressBackendInterface

func (*FakePolicyV1alpha1) RESTClient

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

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

func (*FakePolicyV1alpha1) Retries

func (c *FakePolicyV1alpha1) Retries(namespace string) v1alpha1.RetryInterface

func (*FakePolicyV1alpha1) Telemetries

func (c *FakePolicyV1alpha1) Telemetries(namespace string) v1alpha1.TelemetryInterface

func (*FakePolicyV1alpha1) UpstreamTrafficSettings

func (c *FakePolicyV1alpha1) UpstreamTrafficSettings(namespace string) v1alpha1.UpstreamTrafficSettingInterface

type FakeRetries

type FakeRetries struct {
	Fake *FakePolicyV1alpha1
	// contains filtered or unexported fields
}

FakeRetries implements RetryInterface

func (*FakeRetries) Create

func (c *FakeRetries) Create(ctx context.Context, retry *v1alpha1.Retry, opts v1.CreateOptions) (result *v1alpha1.Retry, err error)

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

func (*FakeRetries) Delete

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

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

func (*FakeRetries) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRetries) Get

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

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

func (*FakeRetries) List

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

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

func (*FakeRetries) Patch

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

Patch applies the patch and returns the patched retry.

func (*FakeRetries) Update

func (c *FakeRetries) Update(ctx context.Context, retry *v1alpha1.Retry, opts v1.UpdateOptions) (result *v1alpha1.Retry, err error)

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

func (*FakeRetries) Watch

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

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

type FakeTelemetries

type FakeTelemetries struct {
	Fake *FakePolicyV1alpha1
	// contains filtered or unexported fields
}

FakeTelemetries implements TelemetryInterface

func (*FakeTelemetries) Create

func (c *FakeTelemetries) Create(ctx context.Context, telemetry *v1alpha1.Telemetry, opts v1.CreateOptions) (result *v1alpha1.Telemetry, err error)

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

func (*FakeTelemetries) Delete

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

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

func (*FakeTelemetries) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTelemetries) Get

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

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

func (*FakeTelemetries) List

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

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

func (*FakeTelemetries) Patch

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

Patch applies the patch and returns the patched telemetry.

func (*FakeTelemetries) Update

func (c *FakeTelemetries) Update(ctx context.Context, telemetry *v1alpha1.Telemetry, opts v1.UpdateOptions) (result *v1alpha1.Telemetry, err error)

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

func (*FakeTelemetries) UpdateStatus

func (c *FakeTelemetries) UpdateStatus(ctx context.Context, telemetry *v1alpha1.Telemetry, opts v1.UpdateOptions) (*v1alpha1.Telemetry, error)

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

func (*FakeTelemetries) Watch

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

type FakeUpstreamTrafficSettings

type FakeUpstreamTrafficSettings struct {
	Fake *FakePolicyV1alpha1
	// contains filtered or unexported fields
}

FakeUpstreamTrafficSettings implements UpstreamTrafficSettingInterface

func (*FakeUpstreamTrafficSettings) Create

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

func (*FakeUpstreamTrafficSettings) Delete

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

func (*FakeUpstreamTrafficSettings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeUpstreamTrafficSettings) Get

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

func (*FakeUpstreamTrafficSettings) List

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

func (*FakeUpstreamTrafficSettings) Patch

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

Patch applies the patch and returns the patched upstreamTrafficSetting.

func (*FakeUpstreamTrafficSettings) Update

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

func (*FakeUpstreamTrafficSettings) UpdateStatus

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

func (*FakeUpstreamTrafficSettings) Watch

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

Jump to

Keyboard shortcuts

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