fake

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 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 FakeClusterImagePolicies

type FakeClusterImagePolicies struct {
	Fake *FakePolicyV1alpha1
}

FakeClusterImagePolicies implements ClusterImagePolicyInterface

func (*FakeClusterImagePolicies) Create

func (c *FakeClusterImagePolicies) Create(ctx context.Context, clusterImagePolicy *v1alpha1.ClusterImagePolicy, opts v1.CreateOptions) (result *v1alpha1.ClusterImagePolicy, err error)

Create takes the representation of a clusterImagePolicy and creates it. Returns the server's representation of the clusterImagePolicy, and an error, if there is any.

func (*FakeClusterImagePolicies) Delete

Delete takes name of the clusterImagePolicy and deletes it. Returns an error if one occurs.

func (*FakeClusterImagePolicies) DeleteCollection

func (c *FakeClusterImagePolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeClusterImagePolicies) Get

func (c *FakeClusterImagePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ClusterImagePolicy, err error)

Get takes name of the clusterImagePolicy, and returns the corresponding clusterImagePolicy object, and an error if there is any.

func (*FakeClusterImagePolicies) List

List takes label and field selectors, and returns the list of ClusterImagePolicies that match those selectors.

func (*FakeClusterImagePolicies) Patch

func (c *FakeClusterImagePolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ClusterImagePolicy, err error)

Patch applies the patch and returns the patched clusterImagePolicy.

func (*FakeClusterImagePolicies) Update

func (c *FakeClusterImagePolicies) Update(ctx context.Context, clusterImagePolicy *v1alpha1.ClusterImagePolicy, opts v1.UpdateOptions) (result *v1alpha1.ClusterImagePolicy, err error)

Update takes the representation of a clusterImagePolicy and updates it. Returns the server's representation of the clusterImagePolicy, and an error, if there is any.

func (*FakeClusterImagePolicies) UpdateStatus added in v0.7.0

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeClusterImagePolicies) Watch

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

type FakePolicyV1alpha1

type FakePolicyV1alpha1 struct {
	*testing.Fake
}

func (*FakePolicyV1alpha1) ClusterImagePolicies

func (c *FakePolicyV1alpha1) ClusterImagePolicies() v1alpha1.ClusterImagePolicyInterface

func (*FakePolicyV1alpha1) RESTClient

func (c *FakePolicyV1alpha1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*FakePolicyV1alpha1) TrustRoots added in v0.6.0

type FakeTrustRoots added in v0.6.0

type FakeTrustRoots struct {
	Fake *FakePolicyV1alpha1
}

FakeTrustRoots implements TrustRootInterface

func (*FakeTrustRoots) Create added in v0.6.0

func (c *FakeTrustRoots) Create(ctx context.Context, trustRoot *v1alpha1.TrustRoot, opts v1.CreateOptions) (result *v1alpha1.TrustRoot, err error)

Create takes the representation of a trustRoot and creates it. Returns the server's representation of the trustRoot, and an error, if there is any.

func (*FakeTrustRoots) Delete added in v0.6.0

func (c *FakeTrustRoots) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the trustRoot and deletes it. Returns an error if one occurs.

func (*FakeTrustRoots) DeleteCollection added in v0.6.0

func (c *FakeTrustRoots) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeTrustRoots) Get added in v0.6.0

func (c *FakeTrustRoots) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.TrustRoot, err error)

Get takes name of the trustRoot, and returns the corresponding trustRoot object, and an error if there is any.

func (*FakeTrustRoots) List added in v0.6.0

func (c *FakeTrustRoots) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.TrustRootList, err error)

List takes label and field selectors, and returns the list of TrustRoots that match those selectors.

func (*FakeTrustRoots) Patch added in v0.6.0

func (c *FakeTrustRoots) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.TrustRoot, err error)

Patch applies the patch and returns the patched trustRoot.

func (*FakeTrustRoots) Update added in v0.6.0

func (c *FakeTrustRoots) Update(ctx context.Context, trustRoot *v1alpha1.TrustRoot, opts v1.UpdateOptions) (result *v1alpha1.TrustRoot, err error)

Update takes the representation of a trustRoot and updates it. Returns the server's representation of the trustRoot, and an error, if there is any.

func (*FakeTrustRoots) UpdateStatus added in v0.7.0

func (c *FakeTrustRoots) UpdateStatus(ctx context.Context, trustRoot *v1alpha1.TrustRoot, opts v1.UpdateOptions) (*v1alpha1.TrustRoot, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeTrustRoots) Watch added in v0.6.0

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

Jump to

Keyboard shortcuts

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