fake

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 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 FakeBgpConves

type FakeBgpConves struct {
	Fake *FakeV1alpha2
	// contains filtered or unexported fields
}

FakeBgpConves implements BgpConfInterface

func (*FakeBgpConves) Create

func (c *FakeBgpConves) Create(ctx context.Context, bgpConf *v1alpha2.BgpConf, opts v1.CreateOptions) (result *v1alpha2.BgpConf, err error)

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

func (*FakeBgpConves) Delete

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

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

func (*FakeBgpConves) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBgpConves) Get

func (c *FakeBgpConves) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.BgpConf, err error)

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

func (*FakeBgpConves) List

func (c *FakeBgpConves) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.BgpConfList, err error)

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

func (*FakeBgpConves) Patch

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

Patch applies the patch and returns the patched bgpConf.

func (*FakeBgpConves) Update

func (c *FakeBgpConves) Update(ctx context.Context, bgpConf *v1alpha2.BgpConf, opts v1.UpdateOptions) (result *v1alpha2.BgpConf, err error)

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

func (*FakeBgpConves) UpdateStatus

func (c *FakeBgpConves) UpdateStatus(ctx context.Context, bgpConf *v1alpha2.BgpConf, opts v1.UpdateOptions) (*v1alpha2.BgpConf, error)

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

func (*FakeBgpConves) Watch

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

type FakeBgpPeers

type FakeBgpPeers struct {
	Fake *FakeV1alpha2
	// contains filtered or unexported fields
}

FakeBgpPeers implements BgpPeerInterface

func (*FakeBgpPeers) Create

func (c *FakeBgpPeers) Create(ctx context.Context, bgpPeer *v1alpha2.BgpPeer, opts v1.CreateOptions) (result *v1alpha2.BgpPeer, err error)

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

func (*FakeBgpPeers) Delete

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

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

func (*FakeBgpPeers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBgpPeers) Get

func (c *FakeBgpPeers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.BgpPeer, err error)

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

func (*FakeBgpPeers) List

func (c *FakeBgpPeers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.BgpPeerList, err error)

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

func (*FakeBgpPeers) Patch

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

Patch applies the patch and returns the patched bgpPeer.

func (*FakeBgpPeers) Update

func (c *FakeBgpPeers) Update(ctx context.Context, bgpPeer *v1alpha2.BgpPeer, opts v1.UpdateOptions) (result *v1alpha2.BgpPeer, err error)

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

func (*FakeBgpPeers) UpdateStatus

func (c *FakeBgpPeers) UpdateStatus(ctx context.Context, bgpPeer *v1alpha2.BgpPeer, opts v1.UpdateOptions) (*v1alpha2.BgpPeer, error)

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

func (*FakeBgpPeers) Watch

func (c *FakeBgpPeers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeV1alpha2

type FakeV1alpha2 struct {
	*testing.Fake
}

func (*FakeV1alpha2) BgpConves

func (c *FakeV1alpha2) BgpConves(namespace string) v1alpha2.BgpConfInterface

func (*FakeV1alpha2) BgpPeers

func (c *FakeV1alpha2) BgpPeers(namespace string) v1alpha2.BgpPeerInterface

func (*FakeV1alpha2) RESTClient

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