fake

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 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 FakeClusterEphemeralReports

type FakeClusterEphemeralReports struct {
	Fake *FakeReportsV1
}

FakeClusterEphemeralReports implements ClusterEphemeralReportInterface

func (*FakeClusterEphemeralReports) Create

func (c *FakeClusterEphemeralReports) Create(ctx context.Context, clusterEphemeralReport *v1.ClusterEphemeralReport, opts metav1.CreateOptions) (result *v1.ClusterEphemeralReport, err error)

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

func (*FakeClusterEphemeralReports) Delete

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

func (*FakeClusterEphemeralReports) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterEphemeralReports) Get

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

func (*FakeClusterEphemeralReports) List

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

func (*FakeClusterEphemeralReports) Patch

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

Patch applies the patch and returns the patched clusterEphemeralReport.

func (*FakeClusterEphemeralReports) Update

func (c *FakeClusterEphemeralReports) Update(ctx context.Context, clusterEphemeralReport *v1.ClusterEphemeralReport, opts metav1.UpdateOptions) (result *v1.ClusterEphemeralReport, err error)

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

func (*FakeClusterEphemeralReports) Watch

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

type FakeEphemeralReports

type FakeEphemeralReports struct {
	Fake *FakeReportsV1
	// contains filtered or unexported fields
}

FakeEphemeralReports implements EphemeralReportInterface

func (*FakeEphemeralReports) Create

func (c *FakeEphemeralReports) Create(ctx context.Context, ephemeralReport *v1.EphemeralReport, opts metav1.CreateOptions) (result *v1.EphemeralReport, err error)

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

func (*FakeEphemeralReports) Delete

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

func (*FakeEphemeralReports) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEphemeralReports) Get

func (c *FakeEphemeralReports) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.EphemeralReport, err error)

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

func (*FakeEphemeralReports) List

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

func (*FakeEphemeralReports) Patch

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

Patch applies the patch and returns the patched ephemeralReport.

func (*FakeEphemeralReports) Update

func (c *FakeEphemeralReports) Update(ctx context.Context, ephemeralReport *v1.EphemeralReport, opts metav1.UpdateOptions) (result *v1.EphemeralReport, err error)

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

func (*FakeEphemeralReports) Watch

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

type FakeReportsV1

type FakeReportsV1 struct {
	*testing.Fake
}

func (*FakeReportsV1) ClusterEphemeralReports

func (c *FakeReportsV1) ClusterEphemeralReports() v1.ClusterEphemeralReportInterface

func (*FakeReportsV1) EphemeralReports

func (c *FakeReportsV1) EphemeralReports(namespace string) v1.EphemeralReportInterface

func (*FakeReportsV1) RESTClient

func (c *FakeReportsV1) 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