fake

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 12 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 FakePartitionSets

type FakePartitionSets struct {
	Fake *FakeTopologyV1alpha1
}

FakePartitionSets implements PartitionSetInterface

func (*FakePartitionSets) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied partitionSet.

func (*FakePartitionSets) ApplyStatus

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

func (*FakePartitionSets) Create

func (c *FakePartitionSets) Create(ctx context.Context, partitionSet *v1alpha1.PartitionSet, opts v1.CreateOptions) (result *v1alpha1.PartitionSet, err error)

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

func (*FakePartitionSets) Delete

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

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

func (*FakePartitionSets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePartitionSets) Get

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

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

func (*FakePartitionSets) List

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

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

func (*FakePartitionSets) Patch

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

Patch applies the patch and returns the patched partitionSet.

func (*FakePartitionSets) Update

func (c *FakePartitionSets) Update(ctx context.Context, partitionSet *v1alpha1.PartitionSet, opts v1.UpdateOptions) (result *v1alpha1.PartitionSet, err error)

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

func (*FakePartitionSets) UpdateStatus

func (c *FakePartitionSets) UpdateStatus(ctx context.Context, partitionSet *v1alpha1.PartitionSet, opts v1.UpdateOptions) (*v1alpha1.PartitionSet, error)

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

func (*FakePartitionSets) Watch

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

type FakePartitions

type FakePartitions struct {
	Fake *FakeTopologyV1alpha1
}

FakePartitions implements PartitionInterface

func (*FakePartitions) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied partition.

func (*FakePartitions) Create

func (c *FakePartitions) Create(ctx context.Context, partition *v1alpha1.Partition, opts v1.CreateOptions) (result *v1alpha1.Partition, err error)

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

func (*FakePartitions) Delete

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

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

func (*FakePartitions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePartitions) Get

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

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

func (*FakePartitions) List

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

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

func (*FakePartitions) Patch

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

Patch applies the patch and returns the patched partition.

func (*FakePartitions) Update

func (c *FakePartitions) Update(ctx context.Context, partition *v1alpha1.Partition, opts v1.UpdateOptions) (result *v1alpha1.Partition, err error)

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

func (*FakePartitions) Watch

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

type FakeTopologyV1alpha1

type FakeTopologyV1alpha1 struct {
	*testing.Fake
}

func (*FakeTopologyV1alpha1) PartitionSets

func (*FakeTopologyV1alpha1) Partitions

func (*FakeTopologyV1alpha1) RESTClient

func (c *FakeTopologyV1alpha1) 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