fake

package
v0.2.2 Latest Latest
Warning

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

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

type FakeJsPolicies struct {
	Fake *FakePolicyV1beta1
}

FakeJsPolicies implements JsPolicyInterface

func (*FakeJsPolicies) Create

func (c *FakeJsPolicies) Create(ctx context.Context, jsPolicy *v1beta1.JsPolicy, opts v1.CreateOptions) (result *v1beta1.JsPolicy, err error)

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

func (*FakeJsPolicies) Delete

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

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

func (*FakeJsPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeJsPolicies) Get

func (c *FakeJsPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.JsPolicy, err error)

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

func (*FakeJsPolicies) List

func (c *FakeJsPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.JsPolicyList, err error)

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

func (*FakeJsPolicies) Patch

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

Patch applies the patch and returns the patched jsPolicy.

func (*FakeJsPolicies) Update

func (c *FakeJsPolicies) Update(ctx context.Context, jsPolicy *v1beta1.JsPolicy, opts v1.UpdateOptions) (result *v1beta1.JsPolicy, err error)

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

func (*FakeJsPolicies) UpdateStatus

func (c *FakeJsPolicies) UpdateStatus(ctx context.Context, jsPolicy *v1beta1.JsPolicy, opts v1.UpdateOptions) (*v1beta1.JsPolicy, error)

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

func (*FakeJsPolicies) Watch

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

type FakeJsPolicyBundles

type FakeJsPolicyBundles struct {
	Fake *FakePolicyV1beta1
}

FakeJsPolicyBundles implements JsPolicyBundleInterface

func (*FakeJsPolicyBundles) Create

func (c *FakeJsPolicyBundles) Create(ctx context.Context, jsPolicyBundle *v1beta1.JsPolicyBundle, opts v1.CreateOptions) (result *v1beta1.JsPolicyBundle, err error)

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

func (*FakeJsPolicyBundles) Delete

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

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

func (*FakeJsPolicyBundles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeJsPolicyBundles) Get

func (c *FakeJsPolicyBundles) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.JsPolicyBundle, err error)

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

func (*FakeJsPolicyBundles) List

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

func (*FakeJsPolicyBundles) Patch

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

Patch applies the patch and returns the patched jsPolicyBundle.

func (*FakeJsPolicyBundles) Update

func (c *FakeJsPolicyBundles) Update(ctx context.Context, jsPolicyBundle *v1beta1.JsPolicyBundle, opts v1.UpdateOptions) (result *v1beta1.JsPolicyBundle, err error)

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

func (*FakeJsPolicyBundles) UpdateStatus

func (c *FakeJsPolicyBundles) UpdateStatus(ctx context.Context, jsPolicyBundle *v1beta1.JsPolicyBundle, opts v1.UpdateOptions) (*v1beta1.JsPolicyBundle, error)

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

func (*FakeJsPolicyBundles) Watch

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

type FakeJsPolicyViolationses

type FakeJsPolicyViolationses struct {
	Fake *FakePolicyV1beta1
}

FakeJsPolicyViolationses implements JsPolicyViolationsInterface

func (*FakeJsPolicyViolationses) Create

func (c *FakeJsPolicyViolationses) Create(ctx context.Context, jsPolicyViolations *v1beta1.JsPolicyViolations, opts v1.CreateOptions) (result *v1beta1.JsPolicyViolations, err error)

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

func (*FakeJsPolicyViolationses) Delete

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

func (*FakeJsPolicyViolationses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeJsPolicyViolationses) Get

func (c *FakeJsPolicyViolationses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.JsPolicyViolations, err error)

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

func (*FakeJsPolicyViolationses) List

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

func (*FakeJsPolicyViolationses) Patch

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

Patch applies the patch and returns the patched jsPolicyViolations.

func (*FakeJsPolicyViolationses) Update

func (c *FakeJsPolicyViolationses) Update(ctx context.Context, jsPolicyViolations *v1beta1.JsPolicyViolations, opts v1.UpdateOptions) (result *v1beta1.JsPolicyViolations, err error)

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

func (*FakeJsPolicyViolationses) UpdateStatus

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

func (*FakeJsPolicyViolationses) Watch

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

type FakePolicyV1beta1

type FakePolicyV1beta1 struct {
	*testing.Fake
}

func (*FakePolicyV1beta1) JsPolicies

func (*FakePolicyV1beta1) JsPolicyBundles

func (c *FakePolicyV1beta1) JsPolicyBundles() v1beta1.JsPolicyBundleInterface

func (*FakePolicyV1beta1) JsPolicyViolationses

func (c *FakePolicyV1beta1) JsPolicyViolationses() v1beta1.JsPolicyViolationsInterface

func (*FakePolicyV1beta1) RESTClient

func (c *FakePolicyV1beta1) 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