fake

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

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 FakeDestinationRules

type FakeDestinationRules struct {
	Fake *FakeNetworkingV1beta1
	// contains filtered or unexported fields
}

FakeDestinationRules implements DestinationRuleInterface

func (*FakeDestinationRules) Create

func (c *FakeDestinationRules) Create(ctx context.Context, destinationRule *v1beta1.DestinationRule, opts v1.CreateOptions) (result *v1beta1.DestinationRule, err error)

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

func (*FakeDestinationRules) Delete

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

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

func (*FakeDestinationRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDestinationRules) Get

func (c *FakeDestinationRules) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.DestinationRule, err error)

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

func (*FakeDestinationRules) List

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

func (*FakeDestinationRules) Patch

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

Patch applies the patch and returns the patched destinationRule.

func (*FakeDestinationRules) Update

func (c *FakeDestinationRules) Update(ctx context.Context, destinationRule *v1beta1.DestinationRule, opts v1.UpdateOptions) (result *v1beta1.DestinationRule, err error)

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

func (*FakeDestinationRules) UpdateStatus

func (c *FakeDestinationRules) UpdateStatus(ctx context.Context, destinationRule *v1beta1.DestinationRule, opts v1.UpdateOptions) (*v1beta1.DestinationRule, error)

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

func (*FakeDestinationRules) Watch

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

type FakeGateways

type FakeGateways struct {
	Fake *FakeNetworkingV1beta1
	// contains filtered or unexported fields
}

FakeGateways implements GatewayInterface

func (*FakeGateways) Create

func (c *FakeGateways) Create(ctx context.Context, gateway *v1beta1.Gateway, opts v1.CreateOptions) (result *v1beta1.Gateway, err error)

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

func (*FakeGateways) Delete

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

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

func (*FakeGateways) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGateways) Get

func (c *FakeGateways) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Gateway, err error)

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

func (*FakeGateways) List

func (c *FakeGateways) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.GatewayList, err error)

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

func (*FakeGateways) Patch

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

Patch applies the patch and returns the patched gateway.

func (*FakeGateways) Update

func (c *FakeGateways) Update(ctx context.Context, gateway *v1beta1.Gateway, opts v1.UpdateOptions) (result *v1beta1.Gateway, err error)

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

func (*FakeGateways) UpdateStatus

func (c *FakeGateways) UpdateStatus(ctx context.Context, gateway *v1beta1.Gateway, opts v1.UpdateOptions) (*v1beta1.Gateway, error)

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

func (*FakeGateways) Watch

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

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

type FakeNetworkingV1beta1

type FakeNetworkingV1beta1 struct {
	*testing.Fake
}

func (*FakeNetworkingV1beta1) DestinationRules

func (c *FakeNetworkingV1beta1) DestinationRules(namespace string) v1beta1.DestinationRuleInterface

func (*FakeNetworkingV1beta1) Gateways

func (c *FakeNetworkingV1beta1) Gateways(namespace string) v1beta1.GatewayInterface

func (*FakeNetworkingV1beta1) RESTClient

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

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

func (*FakeNetworkingV1beta1) ServiceEntries

func (c *FakeNetworkingV1beta1) ServiceEntries(namespace string) v1beta1.ServiceEntryInterface

func (*FakeNetworkingV1beta1) Sidecars

func (c *FakeNetworkingV1beta1) Sidecars(namespace string) v1beta1.SidecarInterface

func (*FakeNetworkingV1beta1) VirtualServices

func (c *FakeNetworkingV1beta1) VirtualServices(namespace string) v1beta1.VirtualServiceInterface

func (*FakeNetworkingV1beta1) WorkloadEntries

func (c *FakeNetworkingV1beta1) WorkloadEntries(namespace string) v1beta1.WorkloadEntryInterface

type FakeServiceEntries

type FakeServiceEntries struct {
	Fake *FakeNetworkingV1beta1
	// contains filtered or unexported fields
}

FakeServiceEntries implements ServiceEntryInterface

func (*FakeServiceEntries) Create

func (c *FakeServiceEntries) Create(ctx context.Context, serviceEntry *v1beta1.ServiceEntry, opts v1.CreateOptions) (result *v1beta1.ServiceEntry, err error)

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

func (*FakeServiceEntries) Delete

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

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

func (*FakeServiceEntries) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServiceEntries) Get

func (c *FakeServiceEntries) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.ServiceEntry, err error)

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

func (*FakeServiceEntries) List

func (c *FakeServiceEntries) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ServiceEntryList, err error)

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

func (*FakeServiceEntries) Patch

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

Patch applies the patch and returns the patched serviceEntry.

func (*FakeServiceEntries) Update

func (c *FakeServiceEntries) Update(ctx context.Context, serviceEntry *v1beta1.ServiceEntry, opts v1.UpdateOptions) (result *v1beta1.ServiceEntry, err error)

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

func (*FakeServiceEntries) UpdateStatus

func (c *FakeServiceEntries) UpdateStatus(ctx context.Context, serviceEntry *v1beta1.ServiceEntry, opts v1.UpdateOptions) (*v1beta1.ServiceEntry, error)

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

func (*FakeServiceEntries) Watch

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

type FakeSidecars

type FakeSidecars struct {
	Fake *FakeNetworkingV1beta1
	// contains filtered or unexported fields
}

FakeSidecars implements SidecarInterface

func (*FakeSidecars) Create

func (c *FakeSidecars) Create(ctx context.Context, sidecar *v1beta1.Sidecar, opts v1.CreateOptions) (result *v1beta1.Sidecar, err error)

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

func (*FakeSidecars) Delete

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

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

func (*FakeSidecars) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSidecars) Get

func (c *FakeSidecars) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Sidecar, err error)

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

func (*FakeSidecars) List

func (c *FakeSidecars) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.SidecarList, err error)

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

func (*FakeSidecars) Patch

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

Patch applies the patch and returns the patched sidecar.

func (*FakeSidecars) Update

func (c *FakeSidecars) Update(ctx context.Context, sidecar *v1beta1.Sidecar, opts v1.UpdateOptions) (result *v1beta1.Sidecar, err error)

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

func (*FakeSidecars) UpdateStatus

func (c *FakeSidecars) UpdateStatus(ctx context.Context, sidecar *v1beta1.Sidecar, opts v1.UpdateOptions) (*v1beta1.Sidecar, error)

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

func (*FakeSidecars) Watch

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

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

type FakeVirtualServices

type FakeVirtualServices struct {
	Fake *FakeNetworkingV1beta1
	// contains filtered or unexported fields
}

FakeVirtualServices implements VirtualServiceInterface

func (*FakeVirtualServices) Create

func (c *FakeVirtualServices) Create(ctx context.Context, virtualService *v1beta1.VirtualService, opts v1.CreateOptions) (result *v1beta1.VirtualService, err error)

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

func (*FakeVirtualServices) Delete

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

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

func (*FakeVirtualServices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualServices) Get

func (c *FakeVirtualServices) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.VirtualService, err error)

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

func (*FakeVirtualServices) List

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

func (*FakeVirtualServices) Patch

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

Patch applies the patch and returns the patched virtualService.

func (*FakeVirtualServices) Update

func (c *FakeVirtualServices) Update(ctx context.Context, virtualService *v1beta1.VirtualService, opts v1.UpdateOptions) (result *v1beta1.VirtualService, err error)

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

func (*FakeVirtualServices) UpdateStatus

func (c *FakeVirtualServices) UpdateStatus(ctx context.Context, virtualService *v1beta1.VirtualService, opts v1.UpdateOptions) (*v1beta1.VirtualService, error)

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

func (*FakeVirtualServices) Watch

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

type FakeWorkloadEntries

type FakeWorkloadEntries struct {
	Fake *FakeNetworkingV1beta1
	// contains filtered or unexported fields
}

FakeWorkloadEntries implements WorkloadEntryInterface

func (*FakeWorkloadEntries) Create

func (c *FakeWorkloadEntries) Create(ctx context.Context, workloadEntry *v1beta1.WorkloadEntry, opts v1.CreateOptions) (result *v1beta1.WorkloadEntry, err error)

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

func (*FakeWorkloadEntries) Delete

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

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

func (*FakeWorkloadEntries) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeWorkloadEntries) Get

func (c *FakeWorkloadEntries) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.WorkloadEntry, err error)

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

func (*FakeWorkloadEntries) List

func (c *FakeWorkloadEntries) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.WorkloadEntryList, err error)

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

func (*FakeWorkloadEntries) Patch

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

Patch applies the patch and returns the patched workloadEntry.

func (*FakeWorkloadEntries) Update

func (c *FakeWorkloadEntries) Update(ctx context.Context, workloadEntry *v1beta1.WorkloadEntry, opts v1.UpdateOptions) (result *v1beta1.WorkloadEntry, err error)

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

func (*FakeWorkloadEntries) UpdateStatus

func (c *FakeWorkloadEntries) UpdateStatus(ctx context.Context, workloadEntry *v1beta1.WorkloadEntry, opts v1.UpdateOptions) (*v1beta1.WorkloadEntry, error)

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

func (*FakeWorkloadEntries) Watch

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

Jump to

Keyboard shortcuts

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