fake

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 10 Imported by: 5

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 FakeAutoscalingV1alpha1

type FakeAutoscalingV1alpha1 struct {
	*testing.Fake
}

func (*FakeAutoscalingV1alpha1) Metrics added in v0.8.0

func (*FakeAutoscalingV1alpha1) PodAutoscalers

func (c *FakeAutoscalingV1alpha1) PodAutoscalers(namespace string) v1alpha1.PodAutoscalerInterface

func (*FakeAutoscalingV1alpha1) RESTClient

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

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

type FakeMetrics added in v0.8.0

type FakeMetrics struct {
	Fake *FakeAutoscalingV1alpha1
	// contains filtered or unexported fields
}

FakeMetrics implements MetricInterface

func (*FakeMetrics) Create added in v0.8.0

func (c *FakeMetrics) Create(ctx context.Context, metric *v1alpha1.Metric, opts v1.CreateOptions) (result *v1alpha1.Metric, err error)

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 added in v0.8.0

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

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

func (*FakeMetrics) DeleteCollection added in v0.8.0

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

DeleteCollection deletes a collection of objects.

func (*FakeMetrics) Get added in v0.8.0

func (c *FakeMetrics) Get(ctx context.Context, 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 added in v0.8.0

func (c *FakeMetrics) List(ctx context.Context, 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 added in v0.8.0

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

Patch applies the patch and returns the patched metric.

func (*FakeMetrics) Update added in v0.8.0

func (c *FakeMetrics) Update(ctx context.Context, metric *v1alpha1.Metric, opts v1.UpdateOptions) (result *v1alpha1.Metric, err error)

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) UpdateStatus added in v0.8.0

func (c *FakeMetrics) UpdateStatus(ctx context.Context, metric *v1alpha1.Metric, opts v1.UpdateOptions) (*v1alpha1.Metric, error)

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

func (*FakeMetrics) Watch added in v0.8.0

func (c *FakeMetrics) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakePodAutoscalers

type FakePodAutoscalers struct {
	Fake *FakeAutoscalingV1alpha1
	// contains filtered or unexported fields
}

FakePodAutoscalers implements PodAutoscalerInterface

func (*FakePodAutoscalers) Create

func (c *FakePodAutoscalers) Create(ctx context.Context, podAutoscaler *v1alpha1.PodAutoscaler, opts v1.CreateOptions) (result *v1alpha1.PodAutoscaler, err error)

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

func (*FakePodAutoscalers) Delete

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

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

func (*FakePodAutoscalers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePodAutoscalers) Get

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

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

func (*FakePodAutoscalers) List

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

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

func (*FakePodAutoscalers) Patch

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

Patch applies the patch and returns the patched podAutoscaler.

func (*FakePodAutoscalers) Update

func (c *FakePodAutoscalers) Update(ctx context.Context, podAutoscaler *v1alpha1.PodAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.PodAutoscaler, err error)

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

func (*FakePodAutoscalers) UpdateStatus

func (c *FakePodAutoscalers) UpdateStatus(ctx context.Context, podAutoscaler *v1alpha1.PodAutoscaler, opts v1.UpdateOptions) (*v1alpha1.PodAutoscaler, error)

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

func (*FakePodAutoscalers) Watch

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

Jump to

Keyboard shortcuts

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