fake

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 9 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 FakeClusters

type FakeClusters struct {
	Fake *FakePortworxV1beta1
	// contains filtered or unexported fields
}

FakeClusters implements ClusterInterface

func (*FakeClusters) Create

func (c *FakeClusters) Create(cluster *v1beta1.Cluster) (result *v1beta1.Cluster, err error)

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

func (*FakeClusters) Delete

func (c *FakeClusters) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeClusters) DeleteCollection

func (c *FakeClusters) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeClusters) Get

func (c *FakeClusters) Get(name string, options v1.GetOptions) (result *v1beta1.Cluster, err error)

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

func (*FakeClusters) List

func (c *FakeClusters) List(opts v1.ListOptions) (result *v1beta1.ClusterList, err error)

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

func (*FakeClusters) Patch

func (c *FakeClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.Cluster, err error)

Patch applies the patch and returns the patched cluster.

func (*FakeClusters) Update

func (c *FakeClusters) Update(cluster *v1beta1.Cluster) (result *v1beta1.Cluster, err error)

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

func (*FakeClusters) Watch

func (c *FakeClusters) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakePortworxV1beta1

type FakePortworxV1beta1 struct {
	*testing.Fake
}

func (*FakePortworxV1beta1) Clusters

func (c *FakePortworxV1beta1) Clusters(namespace string) v1beta1.ClusterInterface

func (*FakePortworxV1beta1) RESTClient

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

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

func (*FakePortworxV1beta1) VolumePlacementStrategies

func (c *FakePortworxV1beta1) VolumePlacementStrategies() v1beta1.VolumePlacementStrategyInterface

type FakeVolumePlacementStrategies

type FakeVolumePlacementStrategies struct {
	Fake *FakePortworxV1beta1
}

FakeVolumePlacementStrategies implements VolumePlacementStrategyInterface

func (*FakeVolumePlacementStrategies) Create

func (c *FakeVolumePlacementStrategies) Create(volumePlacementStrategy *v1beta1.VolumePlacementStrategy) (result *v1beta1.VolumePlacementStrategy, err error)

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

func (*FakeVolumePlacementStrategies) Delete

func (c *FakeVolumePlacementStrategies) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeVolumePlacementStrategies) DeleteCollection

func (c *FakeVolumePlacementStrategies) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeVolumePlacementStrategies) Get

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

func (*FakeVolumePlacementStrategies) List

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

func (*FakeVolumePlacementStrategies) Patch

func (c *FakeVolumePlacementStrategies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.VolumePlacementStrategy, err error)

Patch applies the patch and returns the patched volumePlacementStrategy.

func (*FakeVolumePlacementStrategies) Update

func (c *FakeVolumePlacementStrategies) Update(volumePlacementStrategy *v1beta1.VolumePlacementStrategy) (result *v1beta1.VolumePlacementStrategy, err error)

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

func (*FakeVolumePlacementStrategies) Watch

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

Jump to

Keyboard shortcuts

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