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