fake

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 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 FakeClusterOverridePolicies added in v0.4.0

type FakeClusterOverridePolicies struct {
	Fake *FakePolicyV1alpha1
}

FakeClusterOverridePolicies implements ClusterOverridePolicyInterface

func (*FakeClusterOverridePolicies) Create added in v0.4.0

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

func (*FakeClusterOverridePolicies) Delete added in v0.4.0

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

func (*FakeClusterOverridePolicies) DeleteCollection added in v0.4.0

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterOverridePolicies) Get added in v0.4.0

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

func (*FakeClusterOverridePolicies) List added in v0.4.0

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

func (*FakeClusterOverridePolicies) Patch added in v0.4.0

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

Patch applies the patch and returns the patched clusterOverridePolicy.

func (*FakeClusterOverridePolicies) Update added in v0.4.0

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

func (*FakeClusterOverridePolicies) Watch added in v0.4.0

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

type FakeClusterPropagationPolicies added in v0.4.0

type FakeClusterPropagationPolicies struct {
	Fake *FakePolicyV1alpha1
}

FakeClusterPropagationPolicies implements ClusterPropagationPolicyInterface

func (*FakeClusterPropagationPolicies) Create added in v0.4.0

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

func (*FakeClusterPropagationPolicies) Delete added in v0.4.0

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

func (*FakeClusterPropagationPolicies) DeleteCollection added in v0.4.0

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterPropagationPolicies) Get added in v0.4.0

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

func (*FakeClusterPropagationPolicies) List added in v0.4.0

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

func (*FakeClusterPropagationPolicies) Patch added in v0.4.0

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

Patch applies the patch and returns the patched clusterPropagationPolicy.

func (*FakeClusterPropagationPolicies) Update added in v0.4.0

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

func (*FakeClusterPropagationPolicies) Watch added in v0.4.0

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

type FakeFederatedResourceQuotas added in v1.1.0

type FakeFederatedResourceQuotas struct {
	Fake *FakePolicyV1alpha1
	// contains filtered or unexported fields
}

FakeFederatedResourceQuotas implements FederatedResourceQuotaInterface

func (*FakeFederatedResourceQuotas) Create added in v1.1.0

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

func (*FakeFederatedResourceQuotas) Delete added in v1.1.0

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

func (*FakeFederatedResourceQuotas) DeleteCollection added in v1.1.0

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

DeleteCollection deletes a collection of objects.

func (*FakeFederatedResourceQuotas) Get added in v1.1.0

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

func (*FakeFederatedResourceQuotas) List added in v1.1.0

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

func (*FakeFederatedResourceQuotas) Patch added in v1.1.0

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

Patch applies the patch and returns the patched federatedResourceQuota.

func (*FakeFederatedResourceQuotas) Update added in v1.1.0

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

func (*FakeFederatedResourceQuotas) UpdateStatus added in v1.1.0

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

func (*FakeFederatedResourceQuotas) Watch added in v1.1.0

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

type FakeOverridePolicies

type FakeOverridePolicies struct {
	Fake *FakePolicyV1alpha1
	// contains filtered or unexported fields
}

FakeOverridePolicies implements OverridePolicyInterface

func (*FakeOverridePolicies) Create

func (c *FakeOverridePolicies) Create(ctx context.Context, overridePolicy *v1alpha1.OverridePolicy, opts v1.CreateOptions) (result *v1alpha1.OverridePolicy, err error)

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

func (*FakeOverridePolicies) Delete

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

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

func (*FakeOverridePolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeOverridePolicies) Get

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

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

func (*FakeOverridePolicies) List

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

func (*FakeOverridePolicies) Patch

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

Patch applies the patch and returns the patched overridePolicy.

func (*FakeOverridePolicies) Update

func (c *FakeOverridePolicies) Update(ctx context.Context, overridePolicy *v1alpha1.OverridePolicy, opts v1.UpdateOptions) (result *v1alpha1.OverridePolicy, err error)

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

func (*FakeOverridePolicies) Watch

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

type FakePolicyV1alpha1

type FakePolicyV1alpha1 struct {
	*testing.Fake
}

func (*FakePolicyV1alpha1) ClusterOverridePolicies added in v0.4.0

func (c *FakePolicyV1alpha1) ClusterOverridePolicies() v1alpha1.ClusterOverridePolicyInterface

func (*FakePolicyV1alpha1) ClusterPropagationPolicies added in v0.4.0

func (c *FakePolicyV1alpha1) ClusterPropagationPolicies() v1alpha1.ClusterPropagationPolicyInterface

func (*FakePolicyV1alpha1) FederatedResourceQuotas added in v1.1.0

func (c *FakePolicyV1alpha1) FederatedResourceQuotas(namespace string) v1alpha1.FederatedResourceQuotaInterface

func (*FakePolicyV1alpha1) OverridePolicies

func (c *FakePolicyV1alpha1) OverridePolicies(namespace string) v1alpha1.OverridePolicyInterface

func (*FakePolicyV1alpha1) PropagationPolicies

func (c *FakePolicyV1alpha1) PropagationPolicies(namespace string) v1alpha1.PropagationPolicyInterface

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.

type FakePropagationPolicies

type FakePropagationPolicies struct {
	Fake *FakePolicyV1alpha1
	// contains filtered or unexported fields
}

FakePropagationPolicies implements PropagationPolicyInterface

func (*FakePropagationPolicies) Create

func (c *FakePropagationPolicies) Create(ctx context.Context, propagationPolicy *v1alpha1.PropagationPolicy, opts v1.CreateOptions) (result *v1alpha1.PropagationPolicy, err error)

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

func (*FakePropagationPolicies) Delete

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

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

func (*FakePropagationPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePropagationPolicies) Get

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

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

func (*FakePropagationPolicies) List

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

func (*FakePropagationPolicies) Patch

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

Patch applies the patch and returns the patched propagationPolicy.

func (*FakePropagationPolicies) Update

func (c *FakePropagationPolicies) Update(ctx context.Context, propagationPolicy *v1alpha1.PropagationPolicy, opts v1.UpdateOptions) (result *v1alpha1.PropagationPolicy, err error)

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

func (*FakePropagationPolicies) Watch

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

Jump to

Keyboard shortcuts

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