fake

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 10 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

type FakeClusterOverridePolicies struct {
	Fake *FakePolicyV1alpha1
}

FakeClusterOverridePolicies implements ClusterOverridePolicyInterface

func (*FakeClusterOverridePolicies) Create

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

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

func (*FakeClusterOverridePolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterOverridePolicies) Get

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

func (*FakeClusterOverridePolicies) List

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

func (*FakeClusterOverridePolicies) Patch

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

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

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

type FakeClusterValidatePolicies added in v0.2.0

type FakeClusterValidatePolicies struct {
	Fake *FakePolicyV1alpha1
}

FakeClusterValidatePolicies implements ClusterValidatePolicyInterface

func (*FakeClusterValidatePolicies) Create added in v0.2.0

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

func (*FakeClusterValidatePolicies) Delete added in v0.2.0

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

func (*FakeClusterValidatePolicies) DeleteCollection added in v0.2.0

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterValidatePolicies) Get added in v0.2.0

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

func (*FakeClusterValidatePolicies) List added in v0.2.0

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

func (*FakeClusterValidatePolicies) Patch added in v0.2.0

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

Patch applies the patch and returns the patched clusterValidatePolicy.

func (*FakeClusterValidatePolicies) Update added in v0.2.0

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

func (*FakeClusterValidatePolicies) Watch added in v0.2.0

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

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

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

func (*FakePolicyV1alpha1) ClusterValidatePolicies added in v0.2.0

func (c *FakePolicyV1alpha1) ClusterValidatePolicies() v1alpha1.ClusterValidatePolicyInterface

func (*FakePolicyV1alpha1) OverridePolicies

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

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