fake

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 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 added in v0.10.0

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

FakeIngressBackends implements IngressBackendInterface

func (*FakeIngressBackends) Create added in v0.10.0

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 added in v0.10.0

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 added in v0.10.0

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

DeleteCollection deletes a collection of objects.

func (*FakeIngressBackends) Get added in v0.10.0

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 added in v0.10.0

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

func (*FakeIngressBackends) Patch added in v0.10.0

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 added in v0.10.0

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 added in v0.10.0

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 added in v0.10.0

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 added in v0.10.0

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 added in v1.1.0

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

func (*FakePolicyV1alpha1) UpstreamTrafficSettings added in v1.1.0

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

type FakeRetries added in v1.1.0

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

FakeRetries implements RetryInterface

func (*FakeRetries) Create added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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

DeleteCollection deletes a collection of objects.

func (*FakeRetries) Get added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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

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

type FakeUpstreamTrafficSettings added in v1.1.0

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

FakeUpstreamTrafficSettings implements UpstreamTrafficSettingInterface

func (*FakeUpstreamTrafficSettings) Create added in v1.1.0

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 added in v1.1.0

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

func (*FakeUpstreamTrafficSettings) DeleteCollection added in v1.1.0

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

DeleteCollection deletes a collection of objects.

func (*FakeUpstreamTrafficSettings) Get added in v1.1.0

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

func (*FakeUpstreamTrafficSettings) List added in v1.1.0

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

func (*FakeUpstreamTrafficSettings) Patch added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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