fake

package
v1.12.0-alpha.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 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 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

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

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

type FakeClusterCleanupPolicies

type FakeClusterCleanupPolicies struct {
	Fake *FakeKyvernoV2alpha1
}

FakeClusterCleanupPolicies implements ClusterCleanupPolicyInterface

func (*FakeClusterCleanupPolicies) Create

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

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 *v2alpha1.ClusterCleanupPolicy, err error)

Patch applies the patch and returns the patched clusterCleanupPolicy.

func (*FakeClusterCleanupPolicies) Update

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

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 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

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

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

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

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

type FakeKyvernoV2alpha1

type FakeKyvernoV2alpha1 struct {
	*testing.Fake
}

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

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

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

Jump to

Keyboard shortcuts

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