Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeAdmissionReports
- func (c *FakeAdmissionReports) Create(ctx context.Context, admissionReport *v2.AdmissionReport, ...) (result *v2.AdmissionReport, err error)
- func (c *FakeAdmissionReports) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeAdmissionReports) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeAdmissionReports) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.AdmissionReport, err error)
- func (c *FakeAdmissionReports) List(ctx context.Context, opts v1.ListOptions) (result *v2.AdmissionReportList, err error)
- func (c *FakeAdmissionReports) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v2.AdmissionReport, err error)
- func (c *FakeAdmissionReports) Update(ctx context.Context, admissionReport *v2.AdmissionReport, ...) (result *v2.AdmissionReport, err error)
- func (c *FakeAdmissionReports) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeBackgroundScanReports
- func (c *FakeBackgroundScanReports) Create(ctx context.Context, backgroundScanReport *v2.BackgroundScanReport, ...) (result *v2.BackgroundScanReport, err error)
- func (c *FakeBackgroundScanReports) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeBackgroundScanReports) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeBackgroundScanReports) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.BackgroundScanReport, err error)
- func (c *FakeBackgroundScanReports) List(ctx context.Context, opts v1.ListOptions) (result *v2.BackgroundScanReportList, err error)
- func (c *FakeBackgroundScanReports) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v2.BackgroundScanReport, err error)
- func (c *FakeBackgroundScanReports) Update(ctx context.Context, backgroundScanReport *v2.BackgroundScanReport, ...) (result *v2.BackgroundScanReport, err error)
- func (c *FakeBackgroundScanReports) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeCleanupPolicies
- func (c *FakeCleanupPolicies) Create(ctx context.Context, cleanupPolicy *v2.CleanupPolicy, opts v1.CreateOptions) (result *v2.CleanupPolicy, err error)
- func (c *FakeCleanupPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeCleanupPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeCleanupPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.CleanupPolicy, err error)
- func (c *FakeCleanupPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v2.CleanupPolicyList, err error)
- func (c *FakeCleanupPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v2.CleanupPolicy, err error)
- func (c *FakeCleanupPolicies) Update(ctx context.Context, cleanupPolicy *v2.CleanupPolicy, opts v1.UpdateOptions) (result *v2.CleanupPolicy, err error)
- func (c *FakeCleanupPolicies) UpdateStatus(ctx context.Context, cleanupPolicy *v2.CleanupPolicy, opts v1.UpdateOptions) (*v2.CleanupPolicy, error)
- func (c *FakeCleanupPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeClusterAdmissionReports
- func (c *FakeClusterAdmissionReports) Create(ctx context.Context, clusterAdmissionReport *v2.ClusterAdmissionReport, ...) (result *v2.ClusterAdmissionReport, err error)
- func (c *FakeClusterAdmissionReports) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeClusterAdmissionReports) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeClusterAdmissionReports) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.ClusterAdmissionReport, err error)
- func (c *FakeClusterAdmissionReports) List(ctx context.Context, opts v1.ListOptions) (result *v2.ClusterAdmissionReportList, err error)
- func (c *FakeClusterAdmissionReports) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v2.ClusterAdmissionReport, err error)
- func (c *FakeClusterAdmissionReports) Update(ctx context.Context, clusterAdmissionReport *v2.ClusterAdmissionReport, ...) (result *v2.ClusterAdmissionReport, err error)
- func (c *FakeClusterAdmissionReports) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeClusterBackgroundScanReports
- func (c *FakeClusterBackgroundScanReports) Create(ctx context.Context, ...) (result *v2.ClusterBackgroundScanReport, err error)
- func (c *FakeClusterBackgroundScanReports) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeClusterBackgroundScanReports) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeClusterBackgroundScanReports) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.ClusterBackgroundScanReport, err error)
- func (c *FakeClusterBackgroundScanReports) List(ctx context.Context, opts v1.ListOptions) (result *v2.ClusterBackgroundScanReportList, err error)
- func (c *FakeClusterBackgroundScanReports) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v2.ClusterBackgroundScanReport, err error)
- func (c *FakeClusterBackgroundScanReports) Update(ctx context.Context, ...) (result *v2.ClusterBackgroundScanReport, err error)
- func (c *FakeClusterBackgroundScanReports) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeClusterCleanupPolicies
- func (c *FakeClusterCleanupPolicies) Create(ctx context.Context, clusterCleanupPolicy *v2.ClusterCleanupPolicy, ...) (result *v2.ClusterCleanupPolicy, err error)
- func (c *FakeClusterCleanupPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeClusterCleanupPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeClusterCleanupPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.ClusterCleanupPolicy, err error)
- func (c *FakeClusterCleanupPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v2.ClusterCleanupPolicyList, err error)
- func (c *FakeClusterCleanupPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v2.ClusterCleanupPolicy, err error)
- func (c *FakeClusterCleanupPolicies) Update(ctx context.Context, clusterCleanupPolicy *v2.ClusterCleanupPolicy, ...) (result *v2.ClusterCleanupPolicy, err error)
- func (c *FakeClusterCleanupPolicies) UpdateStatus(ctx context.Context, clusterCleanupPolicy *v2.ClusterCleanupPolicy, ...) (*v2.ClusterCleanupPolicy, error)
- func (c *FakeClusterCleanupPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeKyvernoV2
- func (c *FakeKyvernoV2) AdmissionReports(namespace string) v2.AdmissionReportInterface
- func (c *FakeKyvernoV2) BackgroundScanReports(namespace string) v2.BackgroundScanReportInterface
- func (c *FakeKyvernoV2) CleanupPolicies(namespace string) v2.CleanupPolicyInterface
- func (c *FakeKyvernoV2) ClusterAdmissionReports() v2.ClusterAdmissionReportInterface
- func (c *FakeKyvernoV2) ClusterBackgroundScanReports() v2.ClusterBackgroundScanReportInterface
- func (c *FakeKyvernoV2) ClusterCleanupPolicies() v2.ClusterCleanupPolicyInterface
- func (c *FakeKyvernoV2) PolicyExceptions(namespace string) v2.PolicyExceptionInterface
- func (c *FakeKyvernoV2) RESTClient() rest.Interface
- func (c *FakeKyvernoV2) UpdateRequests(namespace string) v2.UpdateRequestInterface
- type FakePolicyExceptions
- func (c *FakePolicyExceptions) Create(ctx context.Context, policyException *v2.PolicyException, ...) (result *v2.PolicyException, err error)
- func (c *FakePolicyExceptions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePolicyExceptions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePolicyExceptions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.PolicyException, err error)
- func (c *FakePolicyExceptions) List(ctx context.Context, opts v1.ListOptions) (result *v2.PolicyExceptionList, err error)
- func (c *FakePolicyExceptions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v2.PolicyException, err error)
- func (c *FakePolicyExceptions) Update(ctx context.Context, policyException *v2.PolicyException, ...) (result *v2.PolicyException, err error)
- func (c *FakePolicyExceptions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeUpdateRequests
- func (c *FakeUpdateRequests) Create(ctx context.Context, updateRequest *v2.UpdateRequest, opts v1.CreateOptions) (result *v2.UpdateRequest, err error)
- func (c *FakeUpdateRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeUpdateRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeUpdateRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.UpdateRequest, err error)
- func (c *FakeUpdateRequests) List(ctx context.Context, opts v1.ListOptions) (result *v2.UpdateRequestList, err error)
- func (c *FakeUpdateRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v2.UpdateRequest, err error)
- func (c *FakeUpdateRequests) Update(ctx context.Context, updateRequest *v2.UpdateRequest, opts v1.UpdateOptions) (result *v2.UpdateRequest, err error)
- func (c *FakeUpdateRequests) UpdateStatus(ctx context.Context, updateRequest *v2.UpdateRequest, opts v1.UpdateOptions) (*v2.UpdateRequest, error)
- func (c *FakeUpdateRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
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 ¶
func (c *FakeAdmissionReports) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
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 ¶
func (c *FakeBackgroundScanReports) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
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 ¶
func (c *FakeBackgroundScanReports) List(ctx context.Context, opts v1.ListOptions) (result *v2.BackgroundScanReportList, err error)
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 ¶
func (c *FakeBackgroundScanReports) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
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 ¶
func (c *FakeCleanupPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
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 ¶
func (c *FakeClusterAdmissionReports) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
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 ¶
func (c *FakeClusterAdmissionReports) List(ctx context.Context, opts v1.ListOptions) (result *v2.ClusterAdmissionReportList, err error)
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 ¶
func (c *FakeClusterAdmissionReports) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
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 ¶
func (c *FakeClusterBackgroundScanReports) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
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 ¶
func (c *FakeClusterBackgroundScanReports) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.ClusterBackgroundScanReport, err error)
Get takes name of the clusterBackgroundScanReport, and returns the corresponding clusterBackgroundScanReport object, and an error if there is any.
func (*FakeClusterBackgroundScanReports) List ¶
func (c *FakeClusterBackgroundScanReports) List(ctx context.Context, opts v1.ListOptions) (result *v2.ClusterBackgroundScanReportList, err error)
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 ¶
func (c *FakeClusterBackgroundScanReports) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
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 ¶
func (c *FakeClusterCleanupPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
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 ¶
func (c *FakeClusterCleanupPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v2.ClusterCleanupPolicyList, err error)
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 ¶
func (c *FakeClusterCleanupPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusterCleanupPolicies.
type FakeKyvernoV2 ¶
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 ¶
func (c *FakePolicyExceptions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
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 ¶
func (c *FakeUpdateRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested updateRequests.