fake

package
v1.8.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 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 FakeAntreaAgentInfos

type FakeAntreaAgentInfos struct {
	Fake *FakeCrdV1beta1
}

FakeAntreaAgentInfos implements AntreaAgentInfoInterface

func (*FakeAntreaAgentInfos) Create

func (c *FakeAntreaAgentInfos) Create(ctx context.Context, antreaAgentInfo *v1beta1.AntreaAgentInfo, opts v1.CreateOptions) (result *v1beta1.AntreaAgentInfo, err error)

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

func (*FakeAntreaAgentInfos) Delete

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

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

func (*FakeAntreaAgentInfos) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAntreaAgentInfos) Get

func (c *FakeAntreaAgentInfos) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.AntreaAgentInfo, err error)

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

func (*FakeAntreaAgentInfos) List

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

func (*FakeAntreaAgentInfos) Patch

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

Patch applies the patch and returns the patched antreaAgentInfo.

func (*FakeAntreaAgentInfos) Update

func (c *FakeAntreaAgentInfos) Update(ctx context.Context, antreaAgentInfo *v1beta1.AntreaAgentInfo, opts v1.UpdateOptions) (result *v1beta1.AntreaAgentInfo, err error)

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

func (*FakeAntreaAgentInfos) Watch

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

type FakeAntreaControllerInfos

type FakeAntreaControllerInfos struct {
	Fake *FakeCrdV1beta1
}

FakeAntreaControllerInfos implements AntreaControllerInfoInterface

func (*FakeAntreaControllerInfos) Create

func (c *FakeAntreaControllerInfos) Create(ctx context.Context, antreaControllerInfo *v1beta1.AntreaControllerInfo, opts v1.CreateOptions) (result *v1beta1.AntreaControllerInfo, err error)

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

func (*FakeAntreaControllerInfos) Delete

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

func (*FakeAntreaControllerInfos) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAntreaControllerInfos) Get

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

func (*FakeAntreaControllerInfos) List

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

func (*FakeAntreaControllerInfos) Patch

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

Patch applies the patch and returns the patched antreaControllerInfo.

func (*FakeAntreaControllerInfos) Update

func (c *FakeAntreaControllerInfos) Update(ctx context.Context, antreaControllerInfo *v1beta1.AntreaControllerInfo, opts v1.UpdateOptions) (result *v1beta1.AntreaControllerInfo, err error)

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

func (*FakeAntreaControllerInfos) Watch

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

type FakeCrdV1beta1

type FakeCrdV1beta1 struct {
	*testing.Fake
}

func (*FakeCrdV1beta1) AntreaAgentInfos

func (c *FakeCrdV1beta1) AntreaAgentInfos() v1beta1.AntreaAgentInfoInterface

func (*FakeCrdV1beta1) AntreaControllerInfos

func (c *FakeCrdV1beta1) AntreaControllerInfos() v1beta1.AntreaControllerInfoInterface

func (*FakeCrdV1beta1) RESTClient

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