fake

package
v0.0.0-...-c7c462f Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: MIT 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 FakeCommonNetworkPolicies

type FakeCommonNetworkPolicies struct {
	Fake *FakeCommonnetworkpoliciesV1alpha1
}

FakeCommonNetworkPolicies implements CommonNetworkPolicyInterface

func (*FakeCommonNetworkPolicies) Create

func (c *FakeCommonNetworkPolicies) Create(commonNetworkPolicy *v1alpha1.CommonNetworkPolicy) (result *v1alpha1.CommonNetworkPolicy, err error)

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

func (*FakeCommonNetworkPolicies) Delete

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

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

func (*FakeCommonNetworkPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCommonNetworkPolicies) Get

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

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

func (*FakeCommonNetworkPolicies) List

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

func (*FakeCommonNetworkPolicies) Patch

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

Patch applies the patch and returns the patched commonNetworkPolicy.

func (*FakeCommonNetworkPolicies) Update

func (c *FakeCommonNetworkPolicies) Update(commonNetworkPolicy *v1alpha1.CommonNetworkPolicy) (result *v1alpha1.CommonNetworkPolicy, err error)

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

func (*FakeCommonNetworkPolicies) UpdateStatus

func (c *FakeCommonNetworkPolicies) UpdateStatus(commonNetworkPolicy *v1alpha1.CommonNetworkPolicy) (*v1alpha1.CommonNetworkPolicy, error)

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

func (*FakeCommonNetworkPolicies) Watch

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

type FakeCommonnetworkpoliciesV1alpha1

type FakeCommonnetworkpoliciesV1alpha1 struct {
	*testing.Fake
}

func (*FakeCommonnetworkpoliciesV1alpha1) CommonNetworkPolicies

func (*FakeCommonnetworkpoliciesV1alpha1) RESTClient

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