Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakePartitionSets
- func (c *FakePartitionSets) Create(ctx context.Context, partitionSet *v1alpha1.PartitionSet, ...) (result *v1alpha1.PartitionSet, err error)
- func (c *FakePartitionSets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePartitionSets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePartitionSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PartitionSet, err error)
- func (c *FakePartitionSets) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PartitionSetList, err error)
- func (c *FakePartitionSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.PartitionSet, err error)
- func (c *FakePartitionSets) Update(ctx context.Context, partitionSet *v1alpha1.PartitionSet, ...) (result *v1alpha1.PartitionSet, err error)
- func (c *FakePartitionSets) UpdateStatus(ctx context.Context, partitionSet *v1alpha1.PartitionSet, ...) (*v1alpha1.PartitionSet, error)
- func (c *FakePartitionSets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakePartitions
- func (c *FakePartitions) Create(ctx context.Context, partition *v1alpha1.Partition, opts v1.CreateOptions) (result *v1alpha1.Partition, err error)
- func (c *FakePartitions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePartitions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePartitions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Partition, err error)
- func (c *FakePartitions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PartitionList, err error)
- func (c *FakePartitions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Partition, err error)
- func (c *FakePartitions) Update(ctx context.Context, partition *v1alpha1.Partition, opts v1.UpdateOptions) (result *v1alpha1.Partition, err error)
- func (c *FakePartitions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeTopologyV1alpha1
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) 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 ¶
func (c *FakePartitionSets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested partitionSets.
type FakePartitions ¶
type FakePartitions struct {
Fake *FakeTopologyV1alpha1
}
FakePartitions implements PartitionInterface
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 ¶
func (c *FakePartitions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested partitions.
type FakeTopologyV1alpha1 ¶
func (*FakeTopologyV1alpha1) PartitionSets ¶
func (c *FakeTopologyV1alpha1) PartitionSets() v1alpha1.PartitionSetInterface
func (*FakeTopologyV1alpha1) Partitions ¶
func (c *FakeTopologyV1alpha1) Partitions() v1alpha1.PartitionInterface
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.