fake

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 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 FakeClusterImportPolicies

type FakeClusterImportPolicies struct {
	Fake *FakePolicyV1alpha1
}

FakeClusterImportPolicies implements ClusterImportPolicyInterface

func (*FakeClusterImportPolicies) Create

func (c *FakeClusterImportPolicies) Create(ctx context.Context, clusterImportPolicy *v1alpha1.ClusterImportPolicy, opts v1.CreateOptions) (result *v1alpha1.ClusterImportPolicy, err error)

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

func (*FakeClusterImportPolicies) Delete

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

func (*FakeClusterImportPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterImportPolicies) Get

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

func (*FakeClusterImportPolicies) List

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

func (*FakeClusterImportPolicies) Patch

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

Patch applies the patch and returns the patched clusterImportPolicy.

func (*FakeClusterImportPolicies) Update

func (c *FakeClusterImportPolicies) Update(ctx context.Context, clusterImportPolicy *v1alpha1.ClusterImportPolicy, opts v1.UpdateOptions) (result *v1alpha1.ClusterImportPolicy, err error)

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

func (*FakeClusterImportPolicies) UpdateStatus

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

func (*FakeClusterImportPolicies) Watch

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

type FakePediaClusterLifecycles

type FakePediaClusterLifecycles struct {
	Fake *FakePolicyV1alpha1
}

FakePediaClusterLifecycles implements PediaClusterLifecycleInterface

func (*FakePediaClusterLifecycles) Create

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

func (*FakePediaClusterLifecycles) Delete

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

func (*FakePediaClusterLifecycles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePediaClusterLifecycles) Get

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

func (*FakePediaClusterLifecycles) List

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

func (*FakePediaClusterLifecycles) Patch

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

Patch applies the patch and returns the patched pediaClusterLifecycle.

func (*FakePediaClusterLifecycles) Update

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

func (*FakePediaClusterLifecycles) UpdateStatus

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

func (*FakePediaClusterLifecycles) Watch

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

type FakePolicyV1alpha1

type FakePolicyV1alpha1 struct {
	*testing.Fake
}

func (*FakePolicyV1alpha1) ClusterImportPolicies

func (c *FakePolicyV1alpha1) ClusterImportPolicies() v1alpha1.ClusterImportPolicyInterface

func (*FakePolicyV1alpha1) PediaClusterLifecycles

func (c *FakePolicyV1alpha1) PediaClusterLifecycles() v1alpha1.PediaClusterLifecycleInterface

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.

Jump to

Keyboard shortcuts

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