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

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

FakeAdmissionReports implements AdmissionReportInterface

func (*FakeAdmissionReports) Create added in v1.8.0

func (c *FakeAdmissionReports) Create(ctx context.Context, admissionReport *v1alpha2.AdmissionReport, opts v1.CreateOptions) (result *v1alpha2.AdmissionReport, err error)

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

func (*FakeAdmissionReports) Delete added in v1.8.0

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

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

func (*FakeAdmissionReports) DeleteCollection added in v1.8.0

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

DeleteCollection deletes a collection of objects.

func (*FakeAdmissionReports) Get added in v1.8.0

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

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

func (*FakeAdmissionReports) List added in v1.8.0

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

func (*FakeAdmissionReports) Patch added in v1.8.0

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

Patch applies the patch and returns the patched admissionReport.

func (*FakeAdmissionReports) Update added in v1.8.0

func (c *FakeAdmissionReports) Update(ctx context.Context, admissionReport *v1alpha2.AdmissionReport, opts v1.UpdateOptions) (result *v1alpha2.AdmissionReport, err error)

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

func (*FakeAdmissionReports) Watch added in v1.8.0

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

type FakeBackgroundScanReports added in v1.8.0

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

FakeBackgroundScanReports implements BackgroundScanReportInterface

func (*FakeBackgroundScanReports) Create added in v1.8.0

func (c *FakeBackgroundScanReports) Create(ctx context.Context, backgroundScanReport *v1alpha2.BackgroundScanReport, opts v1.CreateOptions) (result *v1alpha2.BackgroundScanReport, err error)

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

func (*FakeBackgroundScanReports) Delete added in v1.8.0

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

func (*FakeBackgroundScanReports) DeleteCollection added in v1.8.0

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

DeleteCollection deletes a collection of objects.

func (*FakeBackgroundScanReports) Get added in v1.8.0

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

func (*FakeBackgroundScanReports) List added in v1.8.0

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

func (*FakeBackgroundScanReports) Patch added in v1.8.0

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

Patch applies the patch and returns the patched backgroundScanReport.

func (*FakeBackgroundScanReports) Update added in v1.8.0

func (c *FakeBackgroundScanReports) Update(ctx context.Context, backgroundScanReport *v1alpha2.BackgroundScanReport, opts v1.UpdateOptions) (result *v1alpha2.BackgroundScanReport, err error)

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

func (*FakeBackgroundScanReports) Watch added in v1.8.0

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

type FakeClusterAdmissionReports added in v1.8.0

type FakeClusterAdmissionReports struct {
	Fake *FakeKyvernoV1alpha2
}

FakeClusterAdmissionReports implements ClusterAdmissionReportInterface

func (*FakeClusterAdmissionReports) Create added in v1.8.0

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

func (*FakeClusterAdmissionReports) Delete added in v1.8.0

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

func (*FakeClusterAdmissionReports) DeleteCollection added in v1.8.0

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterAdmissionReports) Get added in v1.8.0

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

func (*FakeClusterAdmissionReports) List added in v1.8.0

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

func (*FakeClusterAdmissionReports) Patch added in v1.8.0

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

Patch applies the patch and returns the patched clusterAdmissionReport.

func (*FakeClusterAdmissionReports) Update added in v1.8.0

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

func (*FakeClusterAdmissionReports) Watch added in v1.8.0

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

type FakeClusterBackgroundScanReports added in v1.8.0

type FakeClusterBackgroundScanReports struct {
	Fake *FakeKyvernoV1alpha2
}

FakeClusterBackgroundScanReports implements ClusterBackgroundScanReportInterface

func (*FakeClusterBackgroundScanReports) Create added in v1.8.0

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

func (*FakeClusterBackgroundScanReports) Delete added in v1.8.0

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

func (*FakeClusterBackgroundScanReports) DeleteCollection added in v1.8.0

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterBackgroundScanReports) Get added in v1.8.0

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

func (*FakeClusterBackgroundScanReports) List added in v1.8.0

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

func (*FakeClusterBackgroundScanReports) Patch added in v1.8.0

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

Patch applies the patch and returns the patched clusterBackgroundScanReport.

func (*FakeClusterBackgroundScanReports) Update added in v1.8.0

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

func (*FakeClusterBackgroundScanReports) Watch added in v1.8.0

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

type FakeKyvernoV1alpha2

type FakeKyvernoV1alpha2 struct {
	*testing.Fake
}

func (*FakeKyvernoV1alpha2) AdmissionReports added in v1.8.0

func (c *FakeKyvernoV1alpha2) AdmissionReports(namespace string) v1alpha2.AdmissionReportInterface

func (*FakeKyvernoV1alpha2) BackgroundScanReports added in v1.8.0

func (c *FakeKyvernoV1alpha2) BackgroundScanReports(namespace string) v1alpha2.BackgroundScanReportInterface

func (*FakeKyvernoV1alpha2) ClusterAdmissionReports added in v1.8.0

func (c *FakeKyvernoV1alpha2) ClusterAdmissionReports() v1alpha2.ClusterAdmissionReportInterface

func (*FakeKyvernoV1alpha2) ClusterBackgroundScanReports added in v1.8.0

func (c *FakeKyvernoV1alpha2) ClusterBackgroundScanReports() v1alpha2.ClusterBackgroundScanReportInterface

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.

Jump to

Keyboard shortcuts

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