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 FakeAccelerators

type FakeAccelerators struct {
	Fake *FakeGlobalacceleratorV1alpha1
	// contains filtered or unexported fields
}

FakeAccelerators implements AcceleratorInterface

func (*FakeAccelerators) Create

func (c *FakeAccelerators) Create(ctx context.Context, accelerator *v1alpha1.Accelerator, opts v1.CreateOptions) (result *v1alpha1.Accelerator, err error)

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

func (*FakeAccelerators) Delete

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

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

func (*FakeAccelerators) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAccelerators) Get

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

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

func (*FakeAccelerators) List

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

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

func (*FakeAccelerators) Patch

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

Patch applies the patch and returns the patched accelerator.

func (*FakeAccelerators) Update

func (c *FakeAccelerators) Update(ctx context.Context, accelerator *v1alpha1.Accelerator, opts v1.UpdateOptions) (result *v1alpha1.Accelerator, err error)

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

func (*FakeAccelerators) UpdateStatus

func (c *FakeAccelerators) UpdateStatus(ctx context.Context, accelerator *v1alpha1.Accelerator, opts v1.UpdateOptions) (*v1alpha1.Accelerator, error)

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

func (*FakeAccelerators) Watch

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

type FakeEndpointGroups

type FakeEndpointGroups struct {
	Fake *FakeGlobalacceleratorV1alpha1
	// contains filtered or unexported fields
}

FakeEndpointGroups implements EndpointGroupInterface

func (*FakeEndpointGroups) Create

func (c *FakeEndpointGroups) Create(ctx context.Context, endpointGroup *v1alpha1.EndpointGroup, opts v1.CreateOptions) (result *v1alpha1.EndpointGroup, err error)

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

func (*FakeEndpointGroups) Delete

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

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

func (*FakeEndpointGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEndpointGroups) Get

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

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

func (*FakeEndpointGroups) List

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

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

func (*FakeEndpointGroups) Patch

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

Patch applies the patch and returns the patched endpointGroup.

func (*FakeEndpointGroups) Update

func (c *FakeEndpointGroups) Update(ctx context.Context, endpointGroup *v1alpha1.EndpointGroup, opts v1.UpdateOptions) (result *v1alpha1.EndpointGroup, err error)

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

func (*FakeEndpointGroups) UpdateStatus

func (c *FakeEndpointGroups) UpdateStatus(ctx context.Context, endpointGroup *v1alpha1.EndpointGroup, opts v1.UpdateOptions) (*v1alpha1.EndpointGroup, error)

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

func (*FakeEndpointGroups) Watch

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

type FakeGlobalacceleratorV1alpha1

type FakeGlobalacceleratorV1alpha1 struct {
	*testing.Fake
}

func (*FakeGlobalacceleratorV1alpha1) Accelerators

func (*FakeGlobalacceleratorV1alpha1) EndpointGroups

func (*FakeGlobalacceleratorV1alpha1) Listeners

func (*FakeGlobalacceleratorV1alpha1) RESTClient

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

type FakeListeners

type FakeListeners struct {
	Fake *FakeGlobalacceleratorV1alpha1
	// contains filtered or unexported fields
}

FakeListeners implements ListenerInterface

func (*FakeListeners) Create

func (c *FakeListeners) Create(ctx context.Context, listener *v1alpha1.Listener, opts v1.CreateOptions) (result *v1alpha1.Listener, err error)

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

func (*FakeListeners) Delete

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

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

func (*FakeListeners) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeListeners) Get

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

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

func (*FakeListeners) List

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

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

func (*FakeListeners) Patch

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

Patch applies the patch and returns the patched listener.

func (*FakeListeners) Update

func (c *FakeListeners) Update(ctx context.Context, listener *v1alpha1.Listener, opts v1.UpdateOptions) (result *v1alpha1.Listener, err error)

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

func (*FakeListeners) UpdateStatus

func (c *FakeListeners) UpdateStatus(ctx context.Context, listener *v1alpha1.Listener, opts v1.UpdateOptions) (*v1alpha1.Listener, error)

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

func (*FakeListeners) Watch

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

Jump to

Keyboard shortcuts

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