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

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

FakeAdmissionReports implements AdmissionReportInterface

func (*FakeAdmissionReports) Create

func (c *FakeAdmissionReports) Create(ctx context.Context, admissionReport *v2.AdmissionReport, opts v1.CreateOptions) (result *v2.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

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

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

DeleteCollection deletes a collection of objects.

func (*FakeAdmissionReports) Get

func (c *FakeAdmissionReports) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.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

func (c *FakeAdmissionReports) List(ctx context.Context, opts v1.ListOptions) (result *v2.AdmissionReportList, err error)

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

func (*FakeAdmissionReports) Patch

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

Patch applies the patch and returns the patched admissionReport.

func (*FakeAdmissionReports) Update

func (c *FakeAdmissionReports) Update(ctx context.Context, admissionReport *v2.AdmissionReport, opts v1.UpdateOptions) (result *v2.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

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

type FakeBackgroundScanReports

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

FakeBackgroundScanReports implements BackgroundScanReportInterface

func (*FakeBackgroundScanReports) Create

func (c *FakeBackgroundScanReports) Create(ctx context.Context, backgroundScanReport *v2.BackgroundScanReport, opts v1.CreateOptions) (result *v2.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

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

func (*FakeBackgroundScanReports) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBackgroundScanReports) Get

func (c *FakeBackgroundScanReports) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.BackgroundScanReport, err error)

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

func (*FakeBackgroundScanReports) List

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

func (*FakeBackgroundScanReports) Patch

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

Patch applies the patch and returns the patched backgroundScanReport.

func (*FakeBackgroundScanReports) Update

func (c *FakeBackgroundScanReports) Update(ctx context.Context, backgroundScanReport *v2.BackgroundScanReport, opts v1.UpdateOptions) (result *v2.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

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

type FakeCleanupPolicies

type FakeCleanupPolicies struct {
	Fake *FakeKyvernoV2
	// contains filtered or unexported fields
}

FakeCleanupPolicies implements CleanupPolicyInterface

func (*FakeCleanupPolicies) Create

func (c *FakeCleanupPolicies) Create(ctx context.Context, cleanupPolicy *v2.CleanupPolicy, opts v1.CreateOptions) (result *v2.CleanupPolicy, err error)

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

func (*FakeCleanupPolicies) Delete

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

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

func (*FakeCleanupPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCleanupPolicies) Get

func (c *FakeCleanupPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.CleanupPolicy, err error)

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

func (*FakeCleanupPolicies) List

func (c *FakeCleanupPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v2.CleanupPolicyList, err error)

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

func (*FakeCleanupPolicies) Patch

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

Patch applies the patch and returns the patched cleanupPolicy.

func (*FakeCleanupPolicies) Update

func (c *FakeCleanupPolicies) Update(ctx context.Context, cleanupPolicy *v2.CleanupPolicy, opts v1.UpdateOptions) (result *v2.CleanupPolicy, err error)

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

func (*FakeCleanupPolicies) UpdateStatus

func (c *FakeCleanupPolicies) UpdateStatus(ctx context.Context, cleanupPolicy *v2.CleanupPolicy, opts v1.UpdateOptions) (*v2.CleanupPolicy, error)

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

func (*FakeCleanupPolicies) Watch

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

type FakeClusterAdmissionReports

type FakeClusterAdmissionReports struct {
	Fake *FakeKyvernoV2
}

FakeClusterAdmissionReports implements ClusterAdmissionReportInterface

func (*FakeClusterAdmissionReports) Create

func (c *FakeClusterAdmissionReports) Create(ctx context.Context, clusterAdmissionReport *v2.ClusterAdmissionReport, opts v1.CreateOptions) (result *v2.ClusterAdmissionReport, err error)

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

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

func (*FakeClusterAdmissionReports) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterAdmissionReports) Get

func (c *FakeClusterAdmissionReports) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.ClusterAdmissionReport, err error)

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

func (*FakeClusterAdmissionReports) List

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

func (*FakeClusterAdmissionReports) Patch

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

Patch applies the patch and returns the patched clusterAdmissionReport.

func (*FakeClusterAdmissionReports) Update

func (c *FakeClusterAdmissionReports) Update(ctx context.Context, clusterAdmissionReport *v2.ClusterAdmissionReport, opts v1.UpdateOptions) (result *v2.ClusterAdmissionReport, err error)

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

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

type FakeClusterBackgroundScanReports

type FakeClusterBackgroundScanReports struct {
	Fake *FakeKyvernoV2
}

FakeClusterBackgroundScanReports implements ClusterBackgroundScanReportInterface

func (*FakeClusterBackgroundScanReports) Create

func (c *FakeClusterBackgroundScanReports) Create(ctx context.Context, clusterBackgroundScanReport *v2.ClusterBackgroundScanReport, opts v1.CreateOptions) (result *v2.ClusterBackgroundScanReport, err error)

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

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

func (*FakeClusterBackgroundScanReports) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterBackgroundScanReports) Get

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

func (*FakeClusterBackgroundScanReports) List

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

func (*FakeClusterBackgroundScanReports) Patch

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

Patch applies the patch and returns the patched clusterBackgroundScanReport.

func (*FakeClusterBackgroundScanReports) Update

func (c *FakeClusterBackgroundScanReports) Update(ctx context.Context, clusterBackgroundScanReport *v2.ClusterBackgroundScanReport, opts v1.UpdateOptions) (result *v2.ClusterBackgroundScanReport, err error)

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

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

type FakeClusterCleanupPolicies

type FakeClusterCleanupPolicies struct {
	Fake *FakeKyvernoV2
}

FakeClusterCleanupPolicies implements ClusterCleanupPolicyInterface

func (*FakeClusterCleanupPolicies) Create

func (c *FakeClusterCleanupPolicies) Create(ctx context.Context, clusterCleanupPolicy *v2.ClusterCleanupPolicy, opts v1.CreateOptions) (result *v2.ClusterCleanupPolicy, err error)

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

func (*FakeClusterCleanupPolicies) Delete

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

func (*FakeClusterCleanupPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterCleanupPolicies) Get

func (c *FakeClusterCleanupPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.ClusterCleanupPolicy, err error)

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

func (*FakeClusterCleanupPolicies) List

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

func (*FakeClusterCleanupPolicies) Patch

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

Patch applies the patch and returns the patched clusterCleanupPolicy.

func (*FakeClusterCleanupPolicies) Update

func (c *FakeClusterCleanupPolicies) Update(ctx context.Context, clusterCleanupPolicy *v2.ClusterCleanupPolicy, opts v1.UpdateOptions) (result *v2.ClusterCleanupPolicy, err error)

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

func (*FakeClusterCleanupPolicies) UpdateStatus

func (c *FakeClusterCleanupPolicies) UpdateStatus(ctx context.Context, clusterCleanupPolicy *v2.ClusterCleanupPolicy, opts v1.UpdateOptions) (*v2.ClusterCleanupPolicy, error)

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

func (*FakeClusterCleanupPolicies) Watch

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

type FakeKyvernoV2

type FakeKyvernoV2 struct {
	*testing.Fake
}

func (*FakeKyvernoV2) AdmissionReports

func (c *FakeKyvernoV2) AdmissionReports(namespace string) v2.AdmissionReportInterface

func (*FakeKyvernoV2) BackgroundScanReports

func (c *FakeKyvernoV2) BackgroundScanReports(namespace string) v2.BackgroundScanReportInterface

func (*FakeKyvernoV2) CleanupPolicies

func (c *FakeKyvernoV2) CleanupPolicies(namespace string) v2.CleanupPolicyInterface

func (*FakeKyvernoV2) ClusterAdmissionReports

func (c *FakeKyvernoV2) ClusterAdmissionReports() v2.ClusterAdmissionReportInterface

func (*FakeKyvernoV2) ClusterBackgroundScanReports

func (c *FakeKyvernoV2) ClusterBackgroundScanReports() v2.ClusterBackgroundScanReportInterface

func (*FakeKyvernoV2) ClusterCleanupPolicies

func (c *FakeKyvernoV2) ClusterCleanupPolicies() v2.ClusterCleanupPolicyInterface

func (*FakeKyvernoV2) PolicyExceptions

func (c *FakeKyvernoV2) PolicyExceptions(namespace string) v2.PolicyExceptionInterface

func (*FakeKyvernoV2) RESTClient

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

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

func (*FakeKyvernoV2) UpdateRequests

func (c *FakeKyvernoV2) UpdateRequests(namespace string) v2.UpdateRequestInterface

type FakePolicyExceptions

type FakePolicyExceptions struct {
	Fake *FakeKyvernoV2
	// contains filtered or unexported fields
}

FakePolicyExceptions implements PolicyExceptionInterface

func (*FakePolicyExceptions) Create

func (c *FakePolicyExceptions) Create(ctx context.Context, policyException *v2.PolicyException, opts v1.CreateOptions) (result *v2.PolicyException, err error)

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

func (*FakePolicyExceptions) Delete

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

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

func (*FakePolicyExceptions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePolicyExceptions) Get

func (c *FakePolicyExceptions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.PolicyException, err error)

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

func (*FakePolicyExceptions) List

func (c *FakePolicyExceptions) List(ctx context.Context, opts v1.ListOptions) (result *v2.PolicyExceptionList, err error)

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

func (*FakePolicyExceptions) Patch

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

Patch applies the patch and returns the patched policyException.

func (*FakePolicyExceptions) Update

func (c *FakePolicyExceptions) Update(ctx context.Context, policyException *v2.PolicyException, opts v1.UpdateOptions) (result *v2.PolicyException, err error)

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

func (*FakePolicyExceptions) Watch

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

type FakeUpdateRequests

type FakeUpdateRequests struct {
	Fake *FakeKyvernoV2
	// contains filtered or unexported fields
}

FakeUpdateRequests implements UpdateRequestInterface

func (*FakeUpdateRequests) Create

func (c *FakeUpdateRequests) Create(ctx context.Context, updateRequest *v2.UpdateRequest, opts v1.CreateOptions) (result *v2.UpdateRequest, err error)

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

func (*FakeUpdateRequests) Delete

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

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

func (*FakeUpdateRequests) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeUpdateRequests) Get

func (c *FakeUpdateRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.UpdateRequest, err error)

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

func (*FakeUpdateRequests) List

func (c *FakeUpdateRequests) List(ctx context.Context, opts v1.ListOptions) (result *v2.UpdateRequestList, err error)

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

func (*FakeUpdateRequests) Patch

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

Patch applies the patch and returns the patched updateRequest.

func (*FakeUpdateRequests) Update

func (c *FakeUpdateRequests) Update(ctx context.Context, updateRequest *v2.UpdateRequest, opts v1.UpdateOptions) (result *v2.UpdateRequest, err error)

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

func (*FakeUpdateRequests) UpdateStatus

func (c *FakeUpdateRequests) UpdateStatus(ctx context.Context, updateRequest *v2.UpdateRequest, opts v1.UpdateOptions) (*v2.UpdateRequest, error)

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

func (*FakeUpdateRequests) Watch

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

Jump to

Keyboard shortcuts

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