fake

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 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 FakeIPAMBlocks

type FakeIPAMBlocks struct {
	Fake *FakeNetworkV1alpha1
}

FakeIPAMBlocks implements IPAMBlockInterface

func (*FakeIPAMBlocks) Create

func (c *FakeIPAMBlocks) Create(iPAMBlock *v1alpha1.IPAMBlock) (result *v1alpha1.IPAMBlock, err error)

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

func (*FakeIPAMBlocks) Delete

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

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

func (*FakeIPAMBlocks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIPAMBlocks) Get

func (c *FakeIPAMBlocks) Get(name string, options v1.GetOptions) (result *v1alpha1.IPAMBlock, err error)

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

func (*FakeIPAMBlocks) List

func (c *FakeIPAMBlocks) List(opts v1.ListOptions) (result *v1alpha1.IPAMBlockList, err error)

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

func (*FakeIPAMBlocks) Patch

func (c *FakeIPAMBlocks) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.IPAMBlock, err error)

Patch applies the patch and returns the patched iPAMBlock.

func (*FakeIPAMBlocks) Update

func (c *FakeIPAMBlocks) Update(iPAMBlock *v1alpha1.IPAMBlock) (result *v1alpha1.IPAMBlock, err error)

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

func (*FakeIPAMBlocks) Watch

func (c *FakeIPAMBlocks) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeIPAMHandles

type FakeIPAMHandles struct {
	Fake *FakeNetworkV1alpha1
}

FakeIPAMHandles implements IPAMHandleInterface

func (*FakeIPAMHandles) Create

func (c *FakeIPAMHandles) Create(iPAMHandle *v1alpha1.IPAMHandle) (result *v1alpha1.IPAMHandle, err error)

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

func (*FakeIPAMHandles) Delete

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

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

func (*FakeIPAMHandles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIPAMHandles) Get

func (c *FakeIPAMHandles) Get(name string, options v1.GetOptions) (result *v1alpha1.IPAMHandle, err error)

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

func (*FakeIPAMHandles) List

func (c *FakeIPAMHandles) List(opts v1.ListOptions) (result *v1alpha1.IPAMHandleList, err error)

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

func (*FakeIPAMHandles) Patch

func (c *FakeIPAMHandles) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.IPAMHandle, err error)

Patch applies the patch and returns the patched iPAMHandle.

func (*FakeIPAMHandles) Update

func (c *FakeIPAMHandles) Update(iPAMHandle *v1alpha1.IPAMHandle) (result *v1alpha1.IPAMHandle, err error)

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

func (*FakeIPAMHandles) Watch

func (c *FakeIPAMHandles) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeIPPools

type FakeIPPools struct {
	Fake *FakeNetworkV1alpha1
}

FakeIPPools implements IPPoolInterface

func (*FakeIPPools) Create

func (c *FakeIPPools) Create(iPPool *v1alpha1.IPPool) (result *v1alpha1.IPPool, err error)

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

func (*FakeIPPools) Delete

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

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

func (*FakeIPPools) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIPPools) Get

func (c *FakeIPPools) Get(name string, options v1.GetOptions) (result *v1alpha1.IPPool, err error)

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

func (*FakeIPPools) List

func (c *FakeIPPools) List(opts v1.ListOptions) (result *v1alpha1.IPPoolList, err error)

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

func (*FakeIPPools) Patch

func (c *FakeIPPools) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.IPPool, err error)

Patch applies the patch and returns the patched iPPool.

func (*FakeIPPools) Update

func (c *FakeIPPools) Update(iPPool *v1alpha1.IPPool) (result *v1alpha1.IPPool, err error)

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

func (*FakeIPPools) UpdateStatus

func (c *FakeIPPools) UpdateStatus(iPPool *v1alpha1.IPPool) (*v1alpha1.IPPool, error)

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

func (*FakeIPPools) Watch

func (c *FakeIPPools) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeNamespaceNetworkPolicies

type FakeNamespaceNetworkPolicies struct {
	Fake *FakeNetworkV1alpha1
	// contains filtered or unexported fields
}

FakeNamespaceNetworkPolicies implements NamespaceNetworkPolicyInterface

func (*FakeNamespaceNetworkPolicies) Create

func (c *FakeNamespaceNetworkPolicies) Create(namespaceNetworkPolicy *v1alpha1.NamespaceNetworkPolicy) (result *v1alpha1.NamespaceNetworkPolicy, err error)

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

func (*FakeNamespaceNetworkPolicies) Delete

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

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

func (*FakeNamespaceNetworkPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNamespaceNetworkPolicies) Get

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

func (*FakeNamespaceNetworkPolicies) List

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

func (*FakeNamespaceNetworkPolicies) Patch

func (c *FakeNamespaceNetworkPolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.NamespaceNetworkPolicy, err error)

Patch applies the patch and returns the patched namespaceNetworkPolicy.

func (*FakeNamespaceNetworkPolicies) Update

func (c *FakeNamespaceNetworkPolicies) Update(namespaceNetworkPolicy *v1alpha1.NamespaceNetworkPolicy) (result *v1alpha1.NamespaceNetworkPolicy, err error)

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

func (*FakeNamespaceNetworkPolicies) Watch

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

type FakeNetworkV1alpha1

type FakeNetworkV1alpha1 struct {
	*testing.Fake
}

func (*FakeNetworkV1alpha1) IPAMBlocks

func (*FakeNetworkV1alpha1) IPAMHandles

func (*FakeNetworkV1alpha1) IPPools

func (*FakeNetworkV1alpha1) NamespaceNetworkPolicies

func (c *FakeNetworkV1alpha1) NamespaceNetworkPolicies(namespace string) v1alpha1.NamespaceNetworkPolicyInterface

func (*FakeNetworkV1alpha1) RESTClient

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