fake

package
v1.5.2-rc4 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 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 FakeClusterReportChangeRequests

type FakeClusterReportChangeRequests struct {
	Fake *FakeKyvernoV1alpha2
}

FakeClusterReportChangeRequests implements ClusterReportChangeRequestInterface

func (*FakeClusterReportChangeRequests) Create

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

func (*FakeClusterReportChangeRequests) Delete

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

func (*FakeClusterReportChangeRequests) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterReportChangeRequests) Get

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

func (*FakeClusterReportChangeRequests) List

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

func (*FakeClusterReportChangeRequests) Patch

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

Patch applies the patch and returns the patched clusterReportChangeRequest.

func (*FakeClusterReportChangeRequests) Update

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

func (*FakeClusterReportChangeRequests) Watch

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

type FakeKyvernoV1alpha2

type FakeKyvernoV1alpha2 struct {
	*testing.Fake
}

func (*FakeKyvernoV1alpha2) ClusterReportChangeRequests

func (c *FakeKyvernoV1alpha2) ClusterReportChangeRequests() v1alpha2.ClusterReportChangeRequestInterface

func (*FakeKyvernoV1alpha2) RESTClient

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

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

func (*FakeKyvernoV1alpha2) ReportChangeRequests

func (c *FakeKyvernoV1alpha2) ReportChangeRequests(namespace string) v1alpha2.ReportChangeRequestInterface

type FakeReportChangeRequests

type FakeReportChangeRequests struct {
	Fake *FakeKyvernoV1alpha2
	// contains filtered or unexported fields
}

FakeReportChangeRequests implements ReportChangeRequestInterface

func (*FakeReportChangeRequests) Create

func (c *FakeReportChangeRequests) Create(ctx context.Context, reportChangeRequest *v1alpha2.ReportChangeRequest, opts v1.CreateOptions) (result *v1alpha2.ReportChangeRequest, err error)

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

func (*FakeReportChangeRequests) Delete

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

func (*FakeReportChangeRequests) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeReportChangeRequests) Get

func (c *FakeReportChangeRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ReportChangeRequest, err error)

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

func (*FakeReportChangeRequests) List

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

func (*FakeReportChangeRequests) Patch

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

Patch applies the patch and returns the patched reportChangeRequest.

func (*FakeReportChangeRequests) Update

func (c *FakeReportChangeRequests) Update(ctx context.Context, reportChangeRequest *v1alpha2.ReportChangeRequest, opts v1.UpdateOptions) (result *v1alpha2.ReportChangeRequest, err error)

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

func (*FakeReportChangeRequests) Watch

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

Jump to

Keyboard shortcuts

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