fake

package
v0.0.0-...-a143e3c Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 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 FakePolycubeNetworkPolicies

type FakePolycubeNetworkPolicies struct {
	Fake *FakePolycubeV1beta
	// contains filtered or unexported fields
}

FakePolycubeNetworkPolicies implements PolycubeNetworkPolicyInterface

func (*FakePolycubeNetworkPolicies) Create

func (c *FakePolycubeNetworkPolicies) Create(polycubeNetworkPolicy *v1beta.PolycubeNetworkPolicy) (result *v1beta.PolycubeNetworkPolicy, err error)

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

func (*FakePolycubeNetworkPolicies) Delete

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

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

func (*FakePolycubeNetworkPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePolycubeNetworkPolicies) Get

func (c *FakePolycubeNetworkPolicies) Get(name string, options v1.GetOptions) (result *v1beta.PolycubeNetworkPolicy, err error)

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

func (*FakePolycubeNetworkPolicies) List

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

func (*FakePolycubeNetworkPolicies) Patch

func (c *FakePolycubeNetworkPolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta.PolycubeNetworkPolicy, err error)

Patch applies the patch and returns the patched polycubeNetworkPolicy.

func (*FakePolycubeNetworkPolicies) Update

func (c *FakePolycubeNetworkPolicies) Update(polycubeNetworkPolicy *v1beta.PolycubeNetworkPolicy) (result *v1beta.PolycubeNetworkPolicy, err error)

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

func (*FakePolycubeNetworkPolicies) Watch

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

type FakePolycubeV1beta

type FakePolycubeV1beta struct {
	*testing.Fake
}

func (*FakePolycubeV1beta) PolycubeNetworkPolicies

func (c *FakePolycubeV1beta) PolycubeNetworkPolicies(namespace string) v1beta.PolycubeNetworkPolicyInterface

func (*FakePolycubeV1beta) RESTClient

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