fake

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 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 FakeEdgeDeviceSets

type FakeEdgeDeviceSets struct {
	Fake *FakeManagementV1alpha1
	// contains filtered or unexported fields
}

FakeEdgeDeviceSets implements EdgeDeviceSetInterface

func (*FakeEdgeDeviceSets) Create

func (c *FakeEdgeDeviceSets) Create(ctx context.Context, edgeDeviceSet *v1alpha1.EdgeDeviceSet, opts v1.CreateOptions) (result *v1alpha1.EdgeDeviceSet, err error)

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

func (*FakeEdgeDeviceSets) Delete

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

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

func (*FakeEdgeDeviceSets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEdgeDeviceSets) Get

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

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

func (*FakeEdgeDeviceSets) List

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

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

func (*FakeEdgeDeviceSets) Patch

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

Patch applies the patch and returns the patched edgeDeviceSet.

func (*FakeEdgeDeviceSets) Update

func (c *FakeEdgeDeviceSets) Update(ctx context.Context, edgeDeviceSet *v1alpha1.EdgeDeviceSet, opts v1.UpdateOptions) (result *v1alpha1.EdgeDeviceSet, err error)

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

func (*FakeEdgeDeviceSets) UpdateStatus

func (c *FakeEdgeDeviceSets) UpdateStatus(ctx context.Context, edgeDeviceSet *v1alpha1.EdgeDeviceSet, opts v1.UpdateOptions) (*v1alpha1.EdgeDeviceSet, error)

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

func (*FakeEdgeDeviceSets) Watch

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

type FakeEdgeDeviceSignedRequests

type FakeEdgeDeviceSignedRequests struct {
	Fake *FakeManagementV1alpha1
	// contains filtered or unexported fields
}

FakeEdgeDeviceSignedRequests implements EdgeDeviceSignedRequestInterface

func (*FakeEdgeDeviceSignedRequests) Create

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

func (*FakeEdgeDeviceSignedRequests) Delete

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

func (*FakeEdgeDeviceSignedRequests) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEdgeDeviceSignedRequests) Get

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

func (*FakeEdgeDeviceSignedRequests) List

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

func (*FakeEdgeDeviceSignedRequests) Patch

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

Patch applies the patch and returns the patched edgeDeviceSignedRequest.

func (*FakeEdgeDeviceSignedRequests) Update

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

func (*FakeEdgeDeviceSignedRequests) UpdateStatus

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

func (*FakeEdgeDeviceSignedRequests) Watch

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

type FakeEdgeDevices

type FakeEdgeDevices struct {
	Fake *FakeManagementV1alpha1
	// contains filtered or unexported fields
}

FakeEdgeDevices implements EdgeDeviceInterface

func (*FakeEdgeDevices) Create

func (c *FakeEdgeDevices) Create(ctx context.Context, edgeDevice *v1alpha1.EdgeDevice, opts v1.CreateOptions) (result *v1alpha1.EdgeDevice, err error)

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

func (*FakeEdgeDevices) Delete

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

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

func (*FakeEdgeDevices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEdgeDevices) Get

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

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

func (*FakeEdgeDevices) List

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

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

func (*FakeEdgeDevices) Patch

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

Patch applies the patch and returns the patched edgeDevice.

func (*FakeEdgeDevices) Update

func (c *FakeEdgeDevices) Update(ctx context.Context, edgeDevice *v1alpha1.EdgeDevice, opts v1.UpdateOptions) (result *v1alpha1.EdgeDevice, err error)

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

func (*FakeEdgeDevices) UpdateStatus

func (c *FakeEdgeDevices) UpdateStatus(ctx context.Context, edgeDevice *v1alpha1.EdgeDevice, opts v1.UpdateOptions) (*v1alpha1.EdgeDevice, error)

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

func (*FakeEdgeDevices) Watch

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

type FakeEdgeWorkloads

type FakeEdgeWorkloads struct {
	Fake *FakeManagementV1alpha1
	// contains filtered or unexported fields
}

FakeEdgeWorkloads implements EdgeWorkloadInterface

func (*FakeEdgeWorkloads) Create

func (c *FakeEdgeWorkloads) Create(ctx context.Context, edgeWorkload *v1alpha1.EdgeWorkload, opts v1.CreateOptions) (result *v1alpha1.EdgeWorkload, err error)

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

func (*FakeEdgeWorkloads) Delete

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

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

func (*FakeEdgeWorkloads) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEdgeWorkloads) Get

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

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

func (*FakeEdgeWorkloads) List

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

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

func (*FakeEdgeWorkloads) Patch

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

Patch applies the patch and returns the patched edgeWorkload.

func (*FakeEdgeWorkloads) Update

func (c *FakeEdgeWorkloads) Update(ctx context.Context, edgeWorkload *v1alpha1.EdgeWorkload, opts v1.UpdateOptions) (result *v1alpha1.EdgeWorkload, err error)

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

func (*FakeEdgeWorkloads) UpdateStatus

func (c *FakeEdgeWorkloads) UpdateStatus(ctx context.Context, edgeWorkload *v1alpha1.EdgeWorkload, opts v1.UpdateOptions) (*v1alpha1.EdgeWorkload, error)

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

func (*FakeEdgeWorkloads) Watch

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

type FakeManagementV1alpha1

type FakeManagementV1alpha1 struct {
	*testing.Fake
}

func (*FakeManagementV1alpha1) EdgeDeviceSets

func (c *FakeManagementV1alpha1) EdgeDeviceSets(namespace string) v1alpha1.EdgeDeviceSetInterface

func (*FakeManagementV1alpha1) EdgeDeviceSignedRequests

func (c *FakeManagementV1alpha1) EdgeDeviceSignedRequests(namespace string) v1alpha1.EdgeDeviceSignedRequestInterface

func (*FakeManagementV1alpha1) EdgeDevices

func (c *FakeManagementV1alpha1) EdgeDevices(namespace string) v1alpha1.EdgeDeviceInterface

func (*FakeManagementV1alpha1) EdgeWorkloads

func (c *FakeManagementV1alpha1) EdgeWorkloads(namespace string) v1alpha1.EdgeWorkloadInterface

func (*FakeManagementV1alpha1) RESTClient

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

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

Jump to

Keyboard shortcuts

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