fake

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: Apache-2.0 Imports: 9 Imported by: 1

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 FakeBlockAffinities

type FakeBlockAffinities struct {
	Fake *FakeCrdCalicov3
}

FakeBlockAffinities implements BlockAffinityInterface

func (*FakeBlockAffinities) Create

func (c *FakeBlockAffinities) Create(blockAffinity *calicov3.BlockAffinity) (result *calicov3.BlockAffinity, err error)

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

func (*FakeBlockAffinities) Delete

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

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

func (*FakeBlockAffinities) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBlockAffinities) Get

func (c *FakeBlockAffinities) Get(name string, options v1.GetOptions) (result *calicov3.BlockAffinity, err error)

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

func (*FakeBlockAffinities) List

func (c *FakeBlockAffinities) List(opts v1.ListOptions) (result *calicov3.BlockAffinityList, err error)

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

func (*FakeBlockAffinities) Patch

func (c *FakeBlockAffinities) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *calicov3.BlockAffinity, err error)

Patch applies the patch and returns the patched blockAffinity.

func (*FakeBlockAffinities) Update

func (c *FakeBlockAffinities) Update(blockAffinity *calicov3.BlockAffinity) (result *calicov3.BlockAffinity, err error)

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

func (*FakeBlockAffinities) Watch

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

type FakeCrdCalicov3

type FakeCrdCalicov3 struct {
	*testing.Fake
}

func (*FakeCrdCalicov3) BlockAffinities

func (c *FakeCrdCalicov3) BlockAffinities() calicov3.BlockAffinityInterface

func (*FakeCrdCalicov3) IPAMBlocks

func (*FakeCrdCalicov3) IPPools

func (*FakeCrdCalicov3) RESTClient

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

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

type FakeIPAMBlocks

type FakeIPAMBlocks struct {
	Fake *FakeCrdCalicov3
}

FakeIPAMBlocks implements IPAMBlockInterface

func (*FakeIPAMBlocks) Create

func (c *FakeIPAMBlocks) Create(iPAMBlock *calicov3.IPAMBlock) (result *calicov3.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 *calicov3.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 *calicov3.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 *calicov3.IPAMBlock, err error)

Patch applies the patch and returns the patched iPAMBlock.

func (*FakeIPAMBlocks) Update

func (c *FakeIPAMBlocks) Update(iPAMBlock *calicov3.IPAMBlock) (result *calicov3.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 FakeIPPools

type FakeIPPools struct {
	Fake *FakeCrdCalicov3
}

FakeIPPools implements IPPoolInterface

func (*FakeIPPools) Create

func (c *FakeIPPools) Create(iPPool *calicov3.IPPool) (result *calicov3.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 *calicov3.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 *calicov3.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 *calicov3.IPPool, err error)

Patch applies the patch and returns the patched iPPool.

func (*FakeIPPools) Update

func (c *FakeIPPools) Update(iPPool *calicov3.IPPool) (result *calicov3.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) Watch

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

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

Jump to

Keyboard shortcuts

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