fake

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 10 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 FakeNodeMetrics

type FakeNodeMetrics struct {
	Fake *FakeSloV1alpha1
}

FakeNodeMetrics implements NodeMetricInterface

func (*FakeNodeMetrics) Create

func (c *FakeNodeMetrics) Create(ctx context.Context, nodeMetric *v1alpha1.NodeMetric, opts v1.CreateOptions) (result *v1alpha1.NodeMetric, err error)

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

func (*FakeNodeMetrics) Delete

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

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

func (*FakeNodeMetrics) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNodeMetrics) Get

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

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

func (*FakeNodeMetrics) List

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

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

func (*FakeNodeMetrics) Patch

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

Patch applies the patch and returns the patched nodeMetric.

func (*FakeNodeMetrics) Update

func (c *FakeNodeMetrics) Update(ctx context.Context, nodeMetric *v1alpha1.NodeMetric, opts v1.UpdateOptions) (result *v1alpha1.NodeMetric, err error)

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

func (*FakeNodeMetrics) UpdateStatus

func (c *FakeNodeMetrics) UpdateStatus(ctx context.Context, nodeMetric *v1alpha1.NodeMetric, opts v1.UpdateOptions) (*v1alpha1.NodeMetric, error)

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

func (*FakeNodeMetrics) Watch

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

type FakeNodeSLOs

type FakeNodeSLOs struct {
	Fake *FakeSloV1alpha1
}

FakeNodeSLOs implements NodeSLOInterface

func (*FakeNodeSLOs) Create

func (c *FakeNodeSLOs) Create(ctx context.Context, nodeSLO *v1alpha1.NodeSLO, opts v1.CreateOptions) (result *v1alpha1.NodeSLO, err error)

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

func (*FakeNodeSLOs) Delete

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

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

func (*FakeNodeSLOs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNodeSLOs) Get

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

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

func (*FakeNodeSLOs) List

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

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

func (*FakeNodeSLOs) Patch

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

Patch applies the patch and returns the patched nodeSLO.

func (*FakeNodeSLOs) Update

func (c *FakeNodeSLOs) Update(ctx context.Context, nodeSLO *v1alpha1.NodeSLO, opts v1.UpdateOptions) (result *v1alpha1.NodeSLO, err error)

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

func (*FakeNodeSLOs) UpdateStatus

func (c *FakeNodeSLOs) UpdateStatus(ctx context.Context, nodeSLO *v1alpha1.NodeSLO, opts v1.UpdateOptions) (*v1alpha1.NodeSLO, error)

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

func (*FakeNodeSLOs) Watch

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

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

type FakeSloV1alpha1

type FakeSloV1alpha1 struct {
	*testing.Fake
}

func (*FakeSloV1alpha1) NodeMetrics

func (c *FakeSloV1alpha1) NodeMetrics() v1alpha1.NodeMetricInterface

func (*FakeSloV1alpha1) NodeSLOs

func (*FakeSloV1alpha1) RESTClient

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

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

Jump to

Keyboard shortcuts

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