fake

package
Version: v0.14.0 Latest Latest
Warning

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

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

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

FakeEventPolicies implements EventPolicyInterface

func (*FakeEventPolicies) Create

func (c *FakeEventPolicies) Create(eventPolicy *v1alpha1.EventPolicy) (result *v1alpha1.EventPolicy, err error)

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

func (*FakeEventPolicies) Delete

func (c *FakeEventPolicies) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeEventPolicies) DeleteCollection

func (c *FakeEventPolicies) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeEventPolicies) Get

func (c *FakeEventPolicies) Get(name string, options v1.GetOptions) (result *v1alpha1.EventPolicy, err error)

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

func (*FakeEventPolicies) List

func (c *FakeEventPolicies) List(opts v1.ListOptions) (result *v1alpha1.EventPolicyList, err error)

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

func (*FakeEventPolicies) Patch

func (c *FakeEventPolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.EventPolicy, err error)

Patch applies the patch and returns the patched eventPolicy.

func (*FakeEventPolicies) Update

func (c *FakeEventPolicies) Update(eventPolicy *v1alpha1.EventPolicy) (result *v1alpha1.EventPolicy, err error)

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

func (*FakeEventPolicies) Watch

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

type FakeEventPolicyBindings

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

FakeEventPolicyBindings implements EventPolicyBindingInterface

func (*FakeEventPolicyBindings) Create

func (c *FakeEventPolicyBindings) Create(eventPolicyBinding *v1alpha1.EventPolicyBinding) (result *v1alpha1.EventPolicyBinding, err error)

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

func (*FakeEventPolicyBindings) Delete

func (c *FakeEventPolicyBindings) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeEventPolicyBindings) DeleteCollection

func (c *FakeEventPolicyBindings) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeEventPolicyBindings) Get

func (c *FakeEventPolicyBindings) Get(name string, options v1.GetOptions) (result *v1alpha1.EventPolicyBinding, err error)

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

func (*FakeEventPolicyBindings) List

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

func (*FakeEventPolicyBindings) Patch

func (c *FakeEventPolicyBindings) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.EventPolicyBinding, err error)

Patch applies the patch and returns the patched eventPolicyBinding.

func (*FakeEventPolicyBindings) Update

func (c *FakeEventPolicyBindings) Update(eventPolicyBinding *v1alpha1.EventPolicyBinding) (result *v1alpha1.EventPolicyBinding, err error)

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

func (*FakeEventPolicyBindings) UpdateStatus

func (c *FakeEventPolicyBindings) UpdateStatus(eventPolicyBinding *v1alpha1.EventPolicyBinding) (*v1alpha1.EventPolicyBinding, error)

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

func (*FakeEventPolicyBindings) Watch

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

type FakeHTTPPolicies

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

FakeHTTPPolicies implements HTTPPolicyInterface

func (*FakeHTTPPolicies) Create

func (c *FakeHTTPPolicies) Create(hTTPPolicy *v1alpha1.HTTPPolicy) (result *v1alpha1.HTTPPolicy, err error)

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

func (*FakeHTTPPolicies) Delete

func (c *FakeHTTPPolicies) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeHTTPPolicies) DeleteCollection

func (c *FakeHTTPPolicies) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeHTTPPolicies) Get

func (c *FakeHTTPPolicies) Get(name string, options v1.GetOptions) (result *v1alpha1.HTTPPolicy, err error)

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

func (*FakeHTTPPolicies) List

func (c *FakeHTTPPolicies) List(opts v1.ListOptions) (result *v1alpha1.HTTPPolicyList, err error)

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

func (*FakeHTTPPolicies) Patch

func (c *FakeHTTPPolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.HTTPPolicy, err error)

Patch applies the patch and returns the patched hTTPPolicy.

func (*FakeHTTPPolicies) Update

func (c *FakeHTTPPolicies) Update(hTTPPolicy *v1alpha1.HTTPPolicy) (result *v1alpha1.HTTPPolicy, err error)

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

func (*FakeHTTPPolicies) Watch

func (c *FakeHTTPPolicies) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeHTTPPolicyBindings

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

FakeHTTPPolicyBindings implements HTTPPolicyBindingInterface

func (*FakeHTTPPolicyBindings) Create

func (c *FakeHTTPPolicyBindings) Create(hTTPPolicyBinding *v1alpha1.HTTPPolicyBinding) (result *v1alpha1.HTTPPolicyBinding, err error)

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

func (*FakeHTTPPolicyBindings) Delete

func (c *FakeHTTPPolicyBindings) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeHTTPPolicyBindings) DeleteCollection

func (c *FakeHTTPPolicyBindings) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeHTTPPolicyBindings) Get

func (c *FakeHTTPPolicyBindings) Get(name string, options v1.GetOptions) (result *v1alpha1.HTTPPolicyBinding, err error)

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

func (*FakeHTTPPolicyBindings) List

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

func (*FakeHTTPPolicyBindings) Patch

func (c *FakeHTTPPolicyBindings) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.HTTPPolicyBinding, err error)

Patch applies the patch and returns the patched hTTPPolicyBinding.

func (*FakeHTTPPolicyBindings) Update

func (c *FakeHTTPPolicyBindings) Update(hTTPPolicyBinding *v1alpha1.HTTPPolicyBinding) (result *v1alpha1.HTTPPolicyBinding, err error)

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

func (*FakeHTTPPolicyBindings) UpdateStatus

func (c *FakeHTTPPolicyBindings) UpdateStatus(hTTPPolicyBinding *v1alpha1.HTTPPolicyBinding) (*v1alpha1.HTTPPolicyBinding, error)

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

func (*FakeHTTPPolicyBindings) Watch

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

type FakePolicyV1alpha1

type FakePolicyV1alpha1 struct {
	*testing.Fake
}

func (*FakePolicyV1alpha1) EventPolicies

func (c *FakePolicyV1alpha1) EventPolicies(namespace string) v1alpha1.EventPolicyInterface

func (*FakePolicyV1alpha1) EventPolicyBindings

func (c *FakePolicyV1alpha1) EventPolicyBindings(namespace string) v1alpha1.EventPolicyBindingInterface

func (*FakePolicyV1alpha1) HTTPPolicies

func (c *FakePolicyV1alpha1) HTTPPolicies(namespace string) v1alpha1.HTTPPolicyInterface

func (*FakePolicyV1alpha1) HTTPPolicyBindings

func (c *FakePolicyV1alpha1) HTTPPolicyBindings(namespace string) v1alpha1.HTTPPolicyBindingInterface

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