Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeCustomMetrics
- func (c *FakeCustomMetrics) Create(customMetric *metricsv1.CustomMetric) (result *metricsv1.CustomMetric, err error)
- func (c *FakeCustomMetrics) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeCustomMetrics) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeCustomMetrics) Get(name string, options v1.GetOptions) (result *metricsv1.CustomMetric, err error)
- func (c *FakeCustomMetrics) List(opts v1.ListOptions) (result *metricsv1.CustomMetricList, err error)
- func (c *FakeCustomMetrics) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *metricsv1.CustomMetric, err error)
- func (c *FakeCustomMetrics) Update(customMetric *metricsv1.CustomMetric) (result *metricsv1.CustomMetric, err error)
- func (c *FakeCustomMetrics) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeMetricsV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCustomMetrics ¶
type FakeCustomMetrics struct {
Fake *FakeMetricsV1
}
FakeCustomMetrics implements CustomMetricInterface
func (*FakeCustomMetrics) Create ¶
func (c *FakeCustomMetrics) Create(customMetric *metricsv1.CustomMetric) (result *metricsv1.CustomMetric, err error)
Create takes the representation of a customMetric and creates it. Returns the server's representation of the customMetric, and an error, if there is any.
func (*FakeCustomMetrics) Delete ¶
func (c *FakeCustomMetrics) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the customMetric and deletes it. Returns an error if one occurs.
func (*FakeCustomMetrics) DeleteCollection ¶
func (c *FakeCustomMetrics) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeCustomMetrics) Get ¶
func (c *FakeCustomMetrics) Get(name string, options v1.GetOptions) (result *metricsv1.CustomMetric, err error)
Get takes name of the customMetric, and returns the corresponding customMetric object, and an error if there is any.
func (*FakeCustomMetrics) List ¶
func (c *FakeCustomMetrics) List(opts v1.ListOptions) (result *metricsv1.CustomMetricList, err error)
List takes label and field selectors, and returns the list of CustomMetrics that match those selectors.
func (*FakeCustomMetrics) Patch ¶
func (c *FakeCustomMetrics) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *metricsv1.CustomMetric, err error)
Patch applies the patch and returns the patched customMetric.
func (*FakeCustomMetrics) Update ¶
func (c *FakeCustomMetrics) Update(customMetric *metricsv1.CustomMetric) (result *metricsv1.CustomMetric, err error)
Update takes the representation of a customMetric and updates it. Returns the server's representation of the customMetric, and an error, if there is any.
func (*FakeCustomMetrics) Watch ¶
func (c *FakeCustomMetrics) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested customMetrics.
type FakeMetricsV1 ¶
func (*FakeMetricsV1) CustomMetrics ¶
func (c *FakeMetricsV1) CustomMetrics() v1.CustomMetricInterface
func (*FakeMetricsV1) RESTClient ¶
func (c *FakeMetricsV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.