Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeClusterPolicies
- func (c *FakeClusterPolicies) Create(clusterPolicy *kyvernov1.ClusterPolicy) (result *kyvernov1.ClusterPolicy, err error)
- func (c *FakeClusterPolicies) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeClusterPolicies) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeClusterPolicies) Get(name string, options v1.GetOptions) (result *kyvernov1.ClusterPolicy, err error)
- func (c *FakeClusterPolicies) List(opts v1.ListOptions) (result *kyvernov1.ClusterPolicyList, err error)
- func (c *FakeClusterPolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *kyvernov1.ClusterPolicy, err error)
- func (c *FakeClusterPolicies) Update(clusterPolicy *kyvernov1.ClusterPolicy) (result *kyvernov1.ClusterPolicy, err error)
- func (c *FakeClusterPolicies) UpdateStatus(clusterPolicy *kyvernov1.ClusterPolicy) (*kyvernov1.ClusterPolicy, error)
- func (c *FakeClusterPolicies) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeClusterPolicyViolations
- func (c *FakeClusterPolicyViolations) Create(clusterPolicyViolation *kyvernov1.ClusterPolicyViolation) (result *kyvernov1.ClusterPolicyViolation, err error)
- func (c *FakeClusterPolicyViolations) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeClusterPolicyViolations) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeClusterPolicyViolations) Get(name string, options v1.GetOptions) (result *kyvernov1.ClusterPolicyViolation, err error)
- func (c *FakeClusterPolicyViolations) List(opts v1.ListOptions) (result *kyvernov1.ClusterPolicyViolationList, err error)
- func (c *FakeClusterPolicyViolations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *kyvernov1.ClusterPolicyViolation, err error)
- func (c *FakeClusterPolicyViolations) Update(clusterPolicyViolation *kyvernov1.ClusterPolicyViolation) (result *kyvernov1.ClusterPolicyViolation, err error)
- func (c *FakeClusterPolicyViolations) UpdateStatus(clusterPolicyViolation *kyvernov1.ClusterPolicyViolation) (*kyvernov1.ClusterPolicyViolation, error)
- func (c *FakeClusterPolicyViolations) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeGenerateRequests
- func (c *FakeGenerateRequests) Create(generateRequest *kyvernov1.GenerateRequest) (result *kyvernov1.GenerateRequest, err error)
- func (c *FakeGenerateRequests) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeGenerateRequests) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeGenerateRequests) Get(name string, options v1.GetOptions) (result *kyvernov1.GenerateRequest, err error)
- func (c *FakeGenerateRequests) List(opts v1.ListOptions) (result *kyvernov1.GenerateRequestList, err error)
- func (c *FakeGenerateRequests) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *kyvernov1.GenerateRequest, err error)
- func (c *FakeGenerateRequests) Update(generateRequest *kyvernov1.GenerateRequest) (result *kyvernov1.GenerateRequest, err error)
- func (c *FakeGenerateRequests) UpdateStatus(generateRequest *kyvernov1.GenerateRequest) (*kyvernov1.GenerateRequest, error)
- func (c *FakeGenerateRequests) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeKyvernoV1
- func (c *FakeKyvernoV1) ClusterPolicies() v1.ClusterPolicyInterface
- func (c *FakeKyvernoV1) ClusterPolicyViolations() v1.ClusterPolicyViolationInterface
- func (c *FakeKyvernoV1) GenerateRequests(namespace string) v1.GenerateRequestInterface
- func (c *FakeKyvernoV1) PolicyViolations(namespace string) v1.PolicyViolationInterface
- func (c *FakeKyvernoV1) RESTClient() rest.Interface
- type FakePolicyViolations
- func (c *FakePolicyViolations) Create(policyViolation *kyvernov1.PolicyViolation) (result *kyvernov1.PolicyViolation, err error)
- func (c *FakePolicyViolations) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakePolicyViolations) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakePolicyViolations) Get(name string, options v1.GetOptions) (result *kyvernov1.PolicyViolation, err error)
- func (c *FakePolicyViolations) List(opts v1.ListOptions) (result *kyvernov1.PolicyViolationList, err error)
- func (c *FakePolicyViolations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *kyvernov1.PolicyViolation, err error)
- func (c *FakePolicyViolations) Update(policyViolation *kyvernov1.PolicyViolation) (result *kyvernov1.PolicyViolation, err error)
- func (c *FakePolicyViolations) UpdateStatus(policyViolation *kyvernov1.PolicyViolation) (*kyvernov1.PolicyViolation, error)
- func (c *FakePolicyViolations) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClusterPolicies ¶
type FakeClusterPolicies struct {
Fake *FakeKyvernoV1
}
FakeClusterPolicies implements ClusterPolicyInterface
func (*FakeClusterPolicies) Create ¶
func (c *FakeClusterPolicies) Create(clusterPolicy *kyvernov1.ClusterPolicy) (result *kyvernov1.ClusterPolicy, err error)
Create takes the representation of a clusterPolicy and creates it. Returns the server's representation of the clusterPolicy, and an error, if there is any.
func (*FakeClusterPolicies) Delete ¶
func (c *FakeClusterPolicies) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the clusterPolicy and deletes it. Returns an error if one occurs.
func (*FakeClusterPolicies) DeleteCollection ¶
func (c *FakeClusterPolicies) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeClusterPolicies) Get ¶
func (c *FakeClusterPolicies) Get(name string, options v1.GetOptions) (result *kyvernov1.ClusterPolicy, err error)
Get takes name of the clusterPolicy, and returns the corresponding clusterPolicy object, and an error if there is any.
func (*FakeClusterPolicies) List ¶
func (c *FakeClusterPolicies) List(opts v1.ListOptions) (result *kyvernov1.ClusterPolicyList, err error)
List takes label and field selectors, and returns the list of ClusterPolicies that match those selectors.
func (*FakeClusterPolicies) Patch ¶
func (c *FakeClusterPolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *kyvernov1.ClusterPolicy, err error)
Patch applies the patch and returns the patched clusterPolicy.
func (*FakeClusterPolicies) Update ¶
func (c *FakeClusterPolicies) Update(clusterPolicy *kyvernov1.ClusterPolicy) (result *kyvernov1.ClusterPolicy, err error)
Update takes the representation of a clusterPolicy and updates it. Returns the server's representation of the clusterPolicy, and an error, if there is any.
func (*FakeClusterPolicies) UpdateStatus ¶
func (c *FakeClusterPolicies) UpdateStatus(clusterPolicy *kyvernov1.ClusterPolicy) (*kyvernov1.ClusterPolicy, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeClusterPolicies) Watch ¶
func (c *FakeClusterPolicies) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusterPolicies.
type FakeClusterPolicyViolations ¶
type FakeClusterPolicyViolations struct {
Fake *FakeKyvernoV1
}
FakeClusterPolicyViolations implements ClusterPolicyViolationInterface
func (*FakeClusterPolicyViolations) Create ¶
func (c *FakeClusterPolicyViolations) Create(clusterPolicyViolation *kyvernov1.ClusterPolicyViolation) (result *kyvernov1.ClusterPolicyViolation, err error)
Create takes the representation of a clusterPolicyViolation and creates it. Returns the server's representation of the clusterPolicyViolation, and an error, if there is any.
func (*FakeClusterPolicyViolations) Delete ¶
func (c *FakeClusterPolicyViolations) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the clusterPolicyViolation and deletes it. Returns an error if one occurs.
func (*FakeClusterPolicyViolations) DeleteCollection ¶
func (c *FakeClusterPolicyViolations) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeClusterPolicyViolations) Get ¶
func (c *FakeClusterPolicyViolations) Get(name string, options v1.GetOptions) (result *kyvernov1.ClusterPolicyViolation, err error)
Get takes name of the clusterPolicyViolation, and returns the corresponding clusterPolicyViolation object, and an error if there is any.
func (*FakeClusterPolicyViolations) List ¶
func (c *FakeClusterPolicyViolations) List(opts v1.ListOptions) (result *kyvernov1.ClusterPolicyViolationList, err error)
List takes label and field selectors, and returns the list of ClusterPolicyViolations that match those selectors.
func (*FakeClusterPolicyViolations) Patch ¶
func (c *FakeClusterPolicyViolations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *kyvernov1.ClusterPolicyViolation, err error)
Patch applies the patch and returns the patched clusterPolicyViolation.
func (*FakeClusterPolicyViolations) Update ¶
func (c *FakeClusterPolicyViolations) Update(clusterPolicyViolation *kyvernov1.ClusterPolicyViolation) (result *kyvernov1.ClusterPolicyViolation, err error)
Update takes the representation of a clusterPolicyViolation and updates it. Returns the server's representation of the clusterPolicyViolation, and an error, if there is any.
func (*FakeClusterPolicyViolations) UpdateStatus ¶
func (c *FakeClusterPolicyViolations) UpdateStatus(clusterPolicyViolation *kyvernov1.ClusterPolicyViolation) (*kyvernov1.ClusterPolicyViolation, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeClusterPolicyViolations) Watch ¶
func (c *FakeClusterPolicyViolations) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusterPolicyViolations.
type FakeGenerateRequests ¶ added in v1.1.0
type FakeGenerateRequests struct { Fake *FakeKyvernoV1 // contains filtered or unexported fields }
FakeGenerateRequests implements GenerateRequestInterface
func (*FakeGenerateRequests) Create ¶ added in v1.1.0
func (c *FakeGenerateRequests) Create(generateRequest *kyvernov1.GenerateRequest) (result *kyvernov1.GenerateRequest, err error)
Create takes the representation of a generateRequest and creates it. Returns the server's representation of the generateRequest, and an error, if there is any.
func (*FakeGenerateRequests) Delete ¶ added in v1.1.0
func (c *FakeGenerateRequests) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the generateRequest and deletes it. Returns an error if one occurs.
func (*FakeGenerateRequests) DeleteCollection ¶ added in v1.1.0
func (c *FakeGenerateRequests) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeGenerateRequests) Get ¶ added in v1.1.0
func (c *FakeGenerateRequests) Get(name string, options v1.GetOptions) (result *kyvernov1.GenerateRequest, err error)
Get takes name of the generateRequest, and returns the corresponding generateRequest object, and an error if there is any.
func (*FakeGenerateRequests) List ¶ added in v1.1.0
func (c *FakeGenerateRequests) List(opts v1.ListOptions) (result *kyvernov1.GenerateRequestList, err error)
List takes label and field selectors, and returns the list of GenerateRequests that match those selectors.
func (*FakeGenerateRequests) Patch ¶ added in v1.1.0
func (c *FakeGenerateRequests) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *kyvernov1.GenerateRequest, err error)
Patch applies the patch and returns the patched generateRequest.
func (*FakeGenerateRequests) Update ¶ added in v1.1.0
func (c *FakeGenerateRequests) Update(generateRequest *kyvernov1.GenerateRequest) (result *kyvernov1.GenerateRequest, err error)
Update takes the representation of a generateRequest and updates it. Returns the server's representation of the generateRequest, and an error, if there is any.
func (*FakeGenerateRequests) UpdateStatus ¶ added in v1.1.0
func (c *FakeGenerateRequests) UpdateStatus(generateRequest *kyvernov1.GenerateRequest) (*kyvernov1.GenerateRequest, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeGenerateRequests) Watch ¶ added in v1.1.0
func (c *FakeGenerateRequests) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested generateRequests.
type FakeKyvernoV1 ¶
func (*FakeKyvernoV1) ClusterPolicies ¶
func (c *FakeKyvernoV1) ClusterPolicies() v1.ClusterPolicyInterface
func (*FakeKyvernoV1) ClusterPolicyViolations ¶
func (c *FakeKyvernoV1) ClusterPolicyViolations() v1.ClusterPolicyViolationInterface
func (*FakeKyvernoV1) GenerateRequests ¶ added in v1.1.0
func (c *FakeKyvernoV1) GenerateRequests(namespace string) v1.GenerateRequestInterface
func (*FakeKyvernoV1) PolicyViolations ¶ added in v1.1.0
func (c *FakeKyvernoV1) PolicyViolations(namespace string) v1.PolicyViolationInterface
func (*FakeKyvernoV1) RESTClient ¶
func (c *FakeKyvernoV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakePolicyViolations ¶ added in v1.1.0
type FakePolicyViolations struct { Fake *FakeKyvernoV1 // contains filtered or unexported fields }
FakePolicyViolations implements PolicyViolationInterface
func (*FakePolicyViolations) Create ¶ added in v1.1.0
func (c *FakePolicyViolations) Create(policyViolation *kyvernov1.PolicyViolation) (result *kyvernov1.PolicyViolation, err error)
Create takes the representation of a policyViolation and creates it. Returns the server's representation of the policyViolation, and an error, if there is any.
func (*FakePolicyViolations) Delete ¶ added in v1.1.0
func (c *FakePolicyViolations) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the policyViolation and deletes it. Returns an error if one occurs.
func (*FakePolicyViolations) DeleteCollection ¶ added in v1.1.0
func (c *FakePolicyViolations) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePolicyViolations) Get ¶ added in v1.1.0
func (c *FakePolicyViolations) Get(name string, options v1.GetOptions) (result *kyvernov1.PolicyViolation, err error)
Get takes name of the policyViolation, and returns the corresponding policyViolation object, and an error if there is any.
func (*FakePolicyViolations) List ¶ added in v1.1.0
func (c *FakePolicyViolations) List(opts v1.ListOptions) (result *kyvernov1.PolicyViolationList, err error)
List takes label and field selectors, and returns the list of PolicyViolations that match those selectors.
func (*FakePolicyViolations) Patch ¶ added in v1.1.0
func (c *FakePolicyViolations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *kyvernov1.PolicyViolation, err error)
Patch applies the patch and returns the patched policyViolation.
func (*FakePolicyViolations) Update ¶ added in v1.1.0
func (c *FakePolicyViolations) Update(policyViolation *kyvernov1.PolicyViolation) (result *kyvernov1.PolicyViolation, err error)
Update takes the representation of a policyViolation and updates it. Returns the server's representation of the policyViolation, and an error, if there is any.
func (*FakePolicyViolations) UpdateStatus ¶ added in v1.1.0
func (c *FakePolicyViolations) UpdateStatus(policyViolation *kyvernov1.PolicyViolation) (*kyvernov1.PolicyViolation, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakePolicyViolations) Watch ¶ added in v1.1.0
func (c *FakePolicyViolations) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested policyViolations.