fake

package
v0.0.0-...-41d4ab8 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 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 FakeAciV1alpha

type FakeAciV1alpha struct {
	*testing.Fake
}

func (*FakeAciV1alpha) NetflowPolicies

func (c *FakeAciV1alpha) NetflowPolicies() v1alpha.NetflowPolicyInterface

func (*FakeAciV1alpha) RESTClient

func (c *FakeAciV1alpha) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

type FakeNetflowPolicies

type FakeNetflowPolicies struct {
	Fake *FakeAciV1alpha
}

FakeNetflowPolicies implements NetflowPolicyInterface

func (*FakeNetflowPolicies) Create

func (c *FakeNetflowPolicies) Create(ctx context.Context, netflowPolicy *v1alpha.NetflowPolicy, opts v1.CreateOptions) (result *v1alpha.NetflowPolicy, err error)

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

func (*FakeNetflowPolicies) Delete

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

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

func (*FakeNetflowPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNetflowPolicies) Get

func (c *FakeNetflowPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha.NetflowPolicy, err error)

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

func (*FakeNetflowPolicies) List

func (c *FakeNetflowPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha.NetflowPolicyList, err error)

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

func (*FakeNetflowPolicies) Patch

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

Patch applies the patch and returns the patched netflowPolicy.

func (*FakeNetflowPolicies) Update

func (c *FakeNetflowPolicies) Update(ctx context.Context, netflowPolicy *v1alpha.NetflowPolicy, opts v1.UpdateOptions) (result *v1alpha.NetflowPolicy, err error)

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

func (*FakeNetflowPolicies) UpdateStatus

func (c *FakeNetflowPolicies) UpdateStatus(ctx context.Context, netflowPolicy *v1alpha.NetflowPolicy, opts v1.UpdateOptions) (*v1alpha.NetflowPolicy, error)

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

func (*FakeNetflowPolicies) Watch

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL