Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeCleanupPolicies
- func (c *FakeCleanupPolicies) Create(ctx context.Context, cleanupPolicy *v2alpha1.CleanupPolicy, ...) (result *v2alpha1.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 *v2alpha1.CleanupPolicy, err error)
- func (c *FakeCleanupPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.CleanupPolicyList, err error)
- func (c *FakeCleanupPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v2alpha1.CleanupPolicy, err error)
- func (c *FakeCleanupPolicies) Update(ctx context.Context, cleanupPolicy *v2alpha1.CleanupPolicy, ...) (result *v2alpha1.CleanupPolicy, err error)
- func (c *FakeCleanupPolicies) UpdateStatus(ctx context.Context, cleanupPolicy *v2alpha1.CleanupPolicy, ...) (*v2alpha1.CleanupPolicy, error)
- func (c *FakeCleanupPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeClusterCleanupPolicies
- func (c *FakeClusterCleanupPolicies) Create(ctx context.Context, clusterCleanupPolicy *v2alpha1.ClusterCleanupPolicy, ...) (result *v2alpha1.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 *v2alpha1.ClusterCleanupPolicy, err error)
- func (c *FakeClusterCleanupPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.ClusterCleanupPolicyList, err error)
- func (c *FakeClusterCleanupPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v2alpha1.ClusterCleanupPolicy, err error)
- func (c *FakeClusterCleanupPolicies) Update(ctx context.Context, clusterCleanupPolicy *v2alpha1.ClusterCleanupPolicy, ...) (result *v2alpha1.ClusterCleanupPolicy, err error)
- func (c *FakeClusterCleanupPolicies) UpdateStatus(ctx context.Context, clusterCleanupPolicy *v2alpha1.ClusterCleanupPolicy, ...) (*v2alpha1.ClusterCleanupPolicy, error)
- func (c *FakeClusterCleanupPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeGlobalContextEntries
- func (c *FakeGlobalContextEntries) Create(ctx context.Context, globalContextEntry *v2alpha1.GlobalContextEntry, ...) (result *v2alpha1.GlobalContextEntry, err error)
- func (c *FakeGlobalContextEntries) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeGlobalContextEntries) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeGlobalContextEntries) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.GlobalContextEntry, err error)
- func (c *FakeGlobalContextEntries) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.GlobalContextEntryList, err error)
- func (c *FakeGlobalContextEntries) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v2alpha1.GlobalContextEntry, err error)
- func (c *FakeGlobalContextEntries) Update(ctx context.Context, globalContextEntry *v2alpha1.GlobalContextEntry, ...) (result *v2alpha1.GlobalContextEntry, err error)
- func (c *FakeGlobalContextEntries) UpdateStatus(ctx context.Context, globalContextEntry *v2alpha1.GlobalContextEntry, ...) (*v2alpha1.GlobalContextEntry, error)
- func (c *FakeGlobalContextEntries) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeKyvernoV2alpha1
- func (c *FakeKyvernoV2alpha1) CleanupPolicies(namespace string) v2alpha1.CleanupPolicyInterface
- func (c *FakeKyvernoV2alpha1) ClusterCleanupPolicies() v2alpha1.ClusterCleanupPolicyInterface
- func (c *FakeKyvernoV2alpha1) GlobalContextEntries() v2alpha1.GlobalContextEntryInterface
- func (c *FakeKyvernoV2alpha1) PolicyExceptions(namespace string) v2alpha1.PolicyExceptionInterface
- func (c *FakeKyvernoV2alpha1) RESTClient() rest.Interface
- type FakePolicyExceptions
- func (c *FakePolicyExceptions) Create(ctx context.Context, policyException *v2alpha1.PolicyException, ...) (result *v2alpha1.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 *v2alpha1.PolicyException, err error)
- func (c *FakePolicyExceptions) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.PolicyExceptionList, err error)
- func (c *FakePolicyExceptions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v2alpha1.PolicyException, err error)
- func (c *FakePolicyExceptions) Update(ctx context.Context, policyException *v2alpha1.PolicyException, ...) (result *v2alpha1.PolicyException, err error)
- func (c *FakePolicyExceptions) 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 FakeCleanupPolicies ¶
type FakeCleanupPolicies struct { Fake *FakeKyvernoV2alpha1 // contains filtered or unexported fields }
FakeCleanupPolicies implements CleanupPolicyInterface
func (*FakeCleanupPolicies) Create ¶
func (c *FakeCleanupPolicies) Create(ctx context.Context, cleanupPolicy *v2alpha1.CleanupPolicy, opts v1.CreateOptions) (result *v2alpha1.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 *v2alpha1.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 *v2alpha1.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 *v2alpha1.CleanupPolicy, err error)
Patch applies the patch and returns the patched cleanupPolicy.
func (*FakeCleanupPolicies) Update ¶
func (c *FakeCleanupPolicies) Update(ctx context.Context, cleanupPolicy *v2alpha1.CleanupPolicy, opts v1.UpdateOptions) (result *v2alpha1.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 *v2alpha1.CleanupPolicy, opts v1.UpdateOptions) (*v2alpha1.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 FakeClusterCleanupPolicies ¶
type FakeClusterCleanupPolicies struct {
Fake *FakeKyvernoV2alpha1
}
FakeClusterCleanupPolicies implements ClusterCleanupPolicyInterface
func (*FakeClusterCleanupPolicies) Create ¶
func (c *FakeClusterCleanupPolicies) Create(ctx context.Context, clusterCleanupPolicy *v2alpha1.ClusterCleanupPolicy, opts v1.CreateOptions) (result *v2alpha1.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 *v2alpha1.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 *v2alpha1.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 *v2alpha1.ClusterCleanupPolicy, err error)
Patch applies the patch and returns the patched clusterCleanupPolicy.
func (*FakeClusterCleanupPolicies) Update ¶
func (c *FakeClusterCleanupPolicies) Update(ctx context.Context, clusterCleanupPolicy *v2alpha1.ClusterCleanupPolicy, opts v1.UpdateOptions) (result *v2alpha1.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 *v2alpha1.ClusterCleanupPolicy, opts v1.UpdateOptions) (*v2alpha1.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 FakeGlobalContextEntries ¶ added in v1.12.0
type FakeGlobalContextEntries struct {
Fake *FakeKyvernoV2alpha1
}
FakeGlobalContextEntries implements GlobalContextEntryInterface
func (*FakeGlobalContextEntries) Create ¶ added in v1.12.0
func (c *FakeGlobalContextEntries) Create(ctx context.Context, globalContextEntry *v2alpha1.GlobalContextEntry, opts v1.CreateOptions) (result *v2alpha1.GlobalContextEntry, err error)
Create takes the representation of a globalContextEntry and creates it. Returns the server's representation of the globalContextEntry, and an error, if there is any.
func (*FakeGlobalContextEntries) Delete ¶ added in v1.12.0
func (c *FakeGlobalContextEntries) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the globalContextEntry and deletes it. Returns an error if one occurs.
func (*FakeGlobalContextEntries) DeleteCollection ¶ added in v1.12.0
func (c *FakeGlobalContextEntries) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeGlobalContextEntries) Get ¶ added in v1.12.0
func (c *FakeGlobalContextEntries) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.GlobalContextEntry, err error)
Get takes name of the globalContextEntry, and returns the corresponding globalContextEntry object, and an error if there is any.
func (*FakeGlobalContextEntries) List ¶ added in v1.12.0
func (c *FakeGlobalContextEntries) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.GlobalContextEntryList, err error)
List takes label and field selectors, and returns the list of GlobalContextEntries that match those selectors.
func (*FakeGlobalContextEntries) Patch ¶ added in v1.12.0
func (c *FakeGlobalContextEntries) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.GlobalContextEntry, err error)
Patch applies the patch and returns the patched globalContextEntry.
func (*FakeGlobalContextEntries) Update ¶ added in v1.12.0
func (c *FakeGlobalContextEntries) Update(ctx context.Context, globalContextEntry *v2alpha1.GlobalContextEntry, opts v1.UpdateOptions) (result *v2alpha1.GlobalContextEntry, err error)
Update takes the representation of a globalContextEntry and updates it. Returns the server's representation of the globalContextEntry, and an error, if there is any.
func (*FakeGlobalContextEntries) UpdateStatus ¶ added in v1.12.0
func (c *FakeGlobalContextEntries) UpdateStatus(ctx context.Context, globalContextEntry *v2alpha1.GlobalContextEntry, opts v1.UpdateOptions) (*v2alpha1.GlobalContextEntry, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeGlobalContextEntries) Watch ¶ added in v1.12.0
func (c *FakeGlobalContextEntries) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested globalContextEntries.
type FakeKyvernoV2alpha1 ¶
func (*FakeKyvernoV2alpha1) CleanupPolicies ¶
func (c *FakeKyvernoV2alpha1) CleanupPolicies(namespace string) v2alpha1.CleanupPolicyInterface
func (*FakeKyvernoV2alpha1) ClusterCleanupPolicies ¶
func (c *FakeKyvernoV2alpha1) ClusterCleanupPolicies() v2alpha1.ClusterCleanupPolicyInterface
func (*FakeKyvernoV2alpha1) GlobalContextEntries ¶ added in v1.12.0
func (c *FakeKyvernoV2alpha1) GlobalContextEntries() v2alpha1.GlobalContextEntryInterface
func (*FakeKyvernoV2alpha1) PolicyExceptions ¶
func (c *FakeKyvernoV2alpha1) PolicyExceptions(namespace string) v2alpha1.PolicyExceptionInterface
func (*FakeKyvernoV2alpha1) RESTClient ¶
func (c *FakeKyvernoV2alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakePolicyExceptions ¶
type FakePolicyExceptions struct { Fake *FakeKyvernoV2alpha1 // contains filtered or unexported fields }
FakePolicyExceptions implements PolicyExceptionInterface
func (*FakePolicyExceptions) Create ¶
func (c *FakePolicyExceptions) Create(ctx context.Context, policyException *v2alpha1.PolicyException, opts v1.CreateOptions) (result *v2alpha1.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 *v2alpha1.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 *v2alpha1.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 *v2alpha1.PolicyException, err error)
Patch applies the patch and returns the patched policyException.
func (*FakePolicyExceptions) Update ¶
func (c *FakePolicyExceptions) Update(ctx context.Context, policyException *v2alpha1.PolicyException, opts v1.UpdateOptions) (result *v2alpha1.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.