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 FakeAciV1

type FakeAciV1 struct {
	*testing.Fake
}

func (*FakeAciV1) RESTClient

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

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

func (*FakeAciV1) SnatPolicies

func (c *FakeAciV1) SnatPolicies() v1.SnatPolicyInterface

type FakeSnatPolicies

type FakeSnatPolicies struct {
	Fake *FakeAciV1
}

FakeSnatPolicies implements SnatPolicyInterface

func (*FakeSnatPolicies) Create

func (c *FakeSnatPolicies) Create(ctx context.Context, snatPolicy *acisnatv1.SnatPolicy, opts v1.CreateOptions) (result *acisnatv1.SnatPolicy, err error)

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

func (*FakeSnatPolicies) Delete

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

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

func (*FakeSnatPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSnatPolicies) Get

func (c *FakeSnatPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *acisnatv1.SnatPolicy, err error)

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

func (*FakeSnatPolicies) List

func (c *FakeSnatPolicies) List(ctx context.Context, opts v1.ListOptions) (result *acisnatv1.SnatPolicyList, err error)

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

func (*FakeSnatPolicies) Patch

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

Patch applies the patch and returns the patched snatPolicy.

func (*FakeSnatPolicies) Update

func (c *FakeSnatPolicies) Update(ctx context.Context, snatPolicy *acisnatv1.SnatPolicy, opts v1.UpdateOptions) (result *acisnatv1.SnatPolicy, err error)

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

func (*FakeSnatPolicies) UpdateStatus

func (c *FakeSnatPolicies) UpdateStatus(ctx context.Context, snatPolicy *acisnatv1.SnatPolicy, opts v1.UpdateOptions) (*acisnatv1.SnatPolicy, error)

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

func (*FakeSnatPolicies) Watch

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

Jump to

Keyboard shortcuts

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