fake

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 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 FakeCustomizers

type FakeCustomizers struct {
	Fake *FakeEdgeV1alpha1
	// contains filtered or unexported fields
}

FakeCustomizers implements CustomizerInterface

func (*FakeCustomizers) Create

func (c *FakeCustomizers) Create(ctx context.Context, customizer *v1alpha1.Customizer, opts v1.CreateOptions) (result *v1alpha1.Customizer, err error)

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

func (*FakeCustomizers) Delete

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

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

func (*FakeCustomizers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCustomizers) Get

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

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

func (*FakeCustomizers) List

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

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

func (*FakeCustomizers) Patch

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

Patch applies the patch and returns the patched customizer.

func (*FakeCustomizers) Update

func (c *FakeCustomizers) Update(ctx context.Context, customizer *v1alpha1.Customizer, opts v1.UpdateOptions) (result *v1alpha1.Customizer, err error)

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

func (*FakeCustomizers) Watch

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

type FakeEdgePlacements

type FakeEdgePlacements struct {
	Fake *FakeEdgeV1alpha1
}

FakeEdgePlacements implements EdgePlacementInterface

func (*FakeEdgePlacements) Create

func (c *FakeEdgePlacements) Create(ctx context.Context, edgePlacement *v1alpha1.EdgePlacement, opts v1.CreateOptions) (result *v1alpha1.EdgePlacement, err error)

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

func (*FakeEdgePlacements) Delete

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

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

func (*FakeEdgePlacements) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEdgePlacements) Get

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

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

func (*FakeEdgePlacements) List

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

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

func (*FakeEdgePlacements) Patch

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

Patch applies the patch and returns the patched edgePlacement.

func (*FakeEdgePlacements) Update

func (c *FakeEdgePlacements) Update(ctx context.Context, edgePlacement *v1alpha1.EdgePlacement, opts v1.UpdateOptions) (result *v1alpha1.EdgePlacement, err error)

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

func (*FakeEdgePlacements) UpdateStatus

func (c *FakeEdgePlacements) UpdateStatus(ctx context.Context, edgePlacement *v1alpha1.EdgePlacement, opts v1.UpdateOptions) (*v1alpha1.EdgePlacement, error)

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

func (*FakeEdgePlacements) Watch

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

type FakeEdgeSyncConfigs

type FakeEdgeSyncConfigs struct {
	Fake *FakeEdgeV1alpha1
}

FakeEdgeSyncConfigs implements EdgeSyncConfigInterface

func (*FakeEdgeSyncConfigs) Create

func (c *FakeEdgeSyncConfigs) Create(ctx context.Context, edgeSyncConfig *v1alpha1.EdgeSyncConfig, opts v1.CreateOptions) (result *v1alpha1.EdgeSyncConfig, err error)

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

func (*FakeEdgeSyncConfigs) Delete

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

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

func (*FakeEdgeSyncConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEdgeSyncConfigs) Get

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

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

func (*FakeEdgeSyncConfigs) List

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

func (*FakeEdgeSyncConfigs) Patch

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

Patch applies the patch and returns the patched edgeSyncConfig.

func (*FakeEdgeSyncConfigs) Update

func (c *FakeEdgeSyncConfigs) Update(ctx context.Context, edgeSyncConfig *v1alpha1.EdgeSyncConfig, opts v1.UpdateOptions) (result *v1alpha1.EdgeSyncConfig, err error)

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

func (*FakeEdgeSyncConfigs) UpdateStatus

func (c *FakeEdgeSyncConfigs) UpdateStatus(ctx context.Context, edgeSyncConfig *v1alpha1.EdgeSyncConfig, opts v1.UpdateOptions) (*v1alpha1.EdgeSyncConfig, error)

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

func (*FakeEdgeSyncConfigs) Watch

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

type FakeEdgeV1alpha1

type FakeEdgeV1alpha1 struct {
	*testing.Fake
}

func (*FakeEdgeV1alpha1) Customizers

func (c *FakeEdgeV1alpha1) Customizers(namespace string) v1alpha1.CustomizerInterface

func (*FakeEdgeV1alpha1) EdgePlacements

func (c *FakeEdgeV1alpha1) EdgePlacements() v1alpha1.EdgePlacementInterface

func (*FakeEdgeV1alpha1) EdgeSyncConfigs

func (c *FakeEdgeV1alpha1) EdgeSyncConfigs() v1alpha1.EdgeSyncConfigInterface

func (*FakeEdgeV1alpha1) RESTClient

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

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

func (*FakeEdgeV1alpha1) SinglePlacementSlices

func (c *FakeEdgeV1alpha1) SinglePlacementSlices() v1alpha1.SinglePlacementSliceInterface

func (*FakeEdgeV1alpha1) SyncerConfigs

func (c *FakeEdgeV1alpha1) SyncerConfigs() v1alpha1.SyncerConfigInterface

type FakeSinglePlacementSlices

type FakeSinglePlacementSlices struct {
	Fake *FakeEdgeV1alpha1
}

FakeSinglePlacementSlices implements SinglePlacementSliceInterface

func (*FakeSinglePlacementSlices) Create

func (c *FakeSinglePlacementSlices) Create(ctx context.Context, singlePlacementSlice *v1alpha1.SinglePlacementSlice, opts v1.CreateOptions) (result *v1alpha1.SinglePlacementSlice, err error)

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

func (*FakeSinglePlacementSlices) Delete

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

func (*FakeSinglePlacementSlices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSinglePlacementSlices) Get

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

func (*FakeSinglePlacementSlices) List

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

func (*FakeSinglePlacementSlices) Patch

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

Patch applies the patch and returns the patched singlePlacementSlice.

func (*FakeSinglePlacementSlices) Update

func (c *FakeSinglePlacementSlices) Update(ctx context.Context, singlePlacementSlice *v1alpha1.SinglePlacementSlice, opts v1.UpdateOptions) (result *v1alpha1.SinglePlacementSlice, err error)

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

func (*FakeSinglePlacementSlices) Watch

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

type FakeSyncerConfigs

type FakeSyncerConfigs struct {
	Fake *FakeEdgeV1alpha1
}

FakeSyncerConfigs implements SyncerConfigInterface

func (*FakeSyncerConfigs) Create

func (c *FakeSyncerConfigs) Create(ctx context.Context, syncerConfig *v1alpha1.SyncerConfig, opts v1.CreateOptions) (result *v1alpha1.SyncerConfig, err error)

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

func (*FakeSyncerConfigs) Delete

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

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

func (*FakeSyncerConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSyncerConfigs) Get

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

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

func (*FakeSyncerConfigs) List

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

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

func (*FakeSyncerConfigs) Patch

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

Patch applies the patch and returns the patched syncerConfig.

func (*FakeSyncerConfigs) Update

func (c *FakeSyncerConfigs) Update(ctx context.Context, syncerConfig *v1alpha1.SyncerConfig, opts v1.UpdateOptions) (result *v1alpha1.SyncerConfig, err error)

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

func (*FakeSyncerConfigs) UpdateStatus

func (c *FakeSyncerConfigs) UpdateStatus(ctx context.Context, syncerConfig *v1alpha1.SyncerConfig, opts v1.UpdateOptions) (*v1alpha1.SyncerConfig, error)

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

func (*FakeSyncerConfigs) Watch

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

Jump to

Keyboard shortcuts

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