Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeClusterPolicies
- func (c *FakeClusterPolicies) Create(ctx context.Context, clusterPolicy *kyvernov1.ClusterPolicy, ...) (result *kyvernov1.ClusterPolicy, err error)
- func (c *FakeClusterPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeClusterPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeClusterPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *kyvernov1.ClusterPolicy, err error)
- func (c *FakeClusterPolicies) List(ctx context.Context, opts v1.ListOptions) (result *kyvernov1.ClusterPolicyList, err error)
- func (c *FakeClusterPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *kyvernov1.ClusterPolicy, err error)
- func (c *FakeClusterPolicies) Update(ctx context.Context, clusterPolicy *kyvernov1.ClusterPolicy, ...) (result *kyvernov1.ClusterPolicy, err error)
- func (c *FakeClusterPolicies) UpdateStatus(ctx context.Context, clusterPolicy *kyvernov1.ClusterPolicy, ...) (*kyvernov1.ClusterPolicy, error)
- func (c *FakeClusterPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeGenerateRequests
- func (c *FakeGenerateRequests) Create(ctx context.Context, generateRequest *kyvernov1.GenerateRequest, ...) (result *kyvernov1.GenerateRequest, err error)
- func (c *FakeGenerateRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeGenerateRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeGenerateRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *kyvernov1.GenerateRequest, err error)
- func (c *FakeGenerateRequests) List(ctx context.Context, opts v1.ListOptions) (result *kyvernov1.GenerateRequestList, err error)
- func (c *FakeGenerateRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *kyvernov1.GenerateRequest, err error)
- func (c *FakeGenerateRequests) Update(ctx context.Context, generateRequest *kyvernov1.GenerateRequest, ...) (result *kyvernov1.GenerateRequest, err error)
- func (c *FakeGenerateRequests) UpdateStatus(ctx context.Context, generateRequest *kyvernov1.GenerateRequest, ...) (*kyvernov1.GenerateRequest, error)
- func (c *FakeGenerateRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeKyvernoV1
- type FakePolicies
- func (c *FakePolicies) Create(ctx context.Context, policy *kyvernov1.Policy, opts v1.CreateOptions) (result *kyvernov1.Policy, err error)
- func (c *FakePolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *kyvernov1.Policy, err error)
- func (c *FakePolicies) List(ctx context.Context, opts v1.ListOptions) (result *kyvernov1.PolicyList, err error)
- func (c *FakePolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *kyvernov1.Policy, err error)
- func (c *FakePolicies) Update(ctx context.Context, policy *kyvernov1.Policy, opts v1.UpdateOptions) (result *kyvernov1.Policy, err error)
- func (c *FakePolicies) UpdateStatus(ctx context.Context, policy *kyvernov1.Policy, opts v1.UpdateOptions) (*kyvernov1.Policy, error)
- func (c *FakePolicies) 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 FakeClusterPolicies ¶
type FakeClusterPolicies struct {
Fake *FakeKyvernoV1
}
FakeClusterPolicies implements ClusterPolicyInterface
func (*FakeClusterPolicies) Create ¶
func (c *FakeClusterPolicies) Create(ctx context.Context, clusterPolicy *kyvernov1.ClusterPolicy, opts v1.CreateOptions) (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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeClusterPolicies) Get ¶
func (c *FakeClusterPolicies) Get(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *kyvernov1.ClusterPolicy, err error)
Patch applies the patch and returns the patched clusterPolicy.
func (*FakeClusterPolicies) Update ¶
func (c *FakeClusterPolicies) Update(ctx context.Context, clusterPolicy *kyvernov1.ClusterPolicy, opts v1.UpdateOptions) (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(ctx context.Context, clusterPolicy *kyvernov1.ClusterPolicy, opts v1.UpdateOptions) (*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(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusterPolicies.
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(ctx context.Context, generateRequest *kyvernov1.GenerateRequest, opts v1.CreateOptions) (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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeGenerateRequests) Get ¶ added in v1.1.0
func (c *FakeGenerateRequests) Get(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, 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(ctx context.Context, generateRequest *kyvernov1.GenerateRequest, opts v1.UpdateOptions) (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(ctx context.Context, generateRequest *kyvernov1.GenerateRequest, opts v1.UpdateOptions) (*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(ctx context.Context, 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) GenerateRequests ¶ added in v1.1.0
func (c *FakeKyvernoV1) GenerateRequests(namespace string) v1.GenerateRequestInterface
func (*FakeKyvernoV1) Policies ¶ added in v1.2.0
func (c *FakeKyvernoV1) Policies(namespace string) v1.PolicyInterface
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 FakePolicies ¶ added in v1.2.0
type FakePolicies struct { Fake *FakeKyvernoV1 // contains filtered or unexported fields }
FakePolicies implements PolicyInterface
func (*FakePolicies) Create ¶ added in v1.2.0
func (c *FakePolicies) Create(ctx context.Context, policy *kyvernov1.Policy, opts v1.CreateOptions) (result *kyvernov1.Policy, err error)
Create takes the representation of a policy and creates it. Returns the server's representation of the policy, and an error, if there is any.
func (*FakePolicies) Delete ¶ added in v1.2.0
func (c *FakePolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the policy and deletes it. Returns an error if one occurs.
func (*FakePolicies) DeleteCollection ¶ added in v1.2.0
func (c *FakePolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePolicies) Get ¶ added in v1.2.0
func (c *FakePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *kyvernov1.Policy, err error)
Get takes name of the policy, and returns the corresponding policy object, and an error if there is any.
func (*FakePolicies) List ¶ added in v1.2.0
func (c *FakePolicies) List(ctx context.Context, opts v1.ListOptions) (result *kyvernov1.PolicyList, err error)
List takes label and field selectors, and returns the list of Policies that match those selectors.
func (*FakePolicies) Patch ¶ added in v1.2.0
func (c *FakePolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *kyvernov1.Policy, err error)
Patch applies the patch and returns the patched policy.
func (*FakePolicies) Update ¶ added in v1.2.0
func (c *FakePolicies) Update(ctx context.Context, policy *kyvernov1.Policy, opts v1.UpdateOptions) (result *kyvernov1.Policy, err error)
Update takes the representation of a policy and updates it. Returns the server's representation of the policy, and an error, if there is any.
func (*FakePolicies) UpdateStatus ¶ added in v1.2.0
func (c *FakePolicies) UpdateStatus(ctx context.Context, policy *kyvernov1.Policy, opts v1.UpdateOptions) (*kyvernov1.Policy, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakePolicies) Watch ¶ added in v1.2.0
func (c *FakePolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested policies.