fake

package
v0.0.0-...-b3c4cc5 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 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 FakeLastReservedIPs

type FakeLastReservedIPs struct {
	Fake *FakeResourceV1
}

FakeLastReservedIPs implements LastReservedIPInterface

func (*FakeLastReservedIPs) Create

func (c *FakeLastReservedIPs) Create(lastReservedIP *resourcev1.LastReservedIP) (result *resourcev1.LastReservedIP, err error)

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

func (*FakeLastReservedIPs) Delete

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

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

func (*FakeLastReservedIPs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeLastReservedIPs) Get

func (c *FakeLastReservedIPs) Get(name string, options v1.GetOptions) (result *resourcev1.LastReservedIP, err error)

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

func (*FakeLastReservedIPs) List

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

func (*FakeLastReservedIPs) Patch

func (c *FakeLastReservedIPs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *resourcev1.LastReservedIP, err error)

Patch applies the patch and returns the patched lastReservedIP.

func (*FakeLastReservedIPs) Update

func (c *FakeLastReservedIPs) Update(lastReservedIP *resourcev1.LastReservedIP) (result *resourcev1.LastReservedIP, err error)

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

func (*FakeLastReservedIPs) Watch

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

type FakeNetworks

type FakeNetworks struct {
	Fake *FakeResourceV1
}

FakeNetworks implements NetworkInterface

func (*FakeNetworks) Create

func (c *FakeNetworks) Create(network *resourcev1.Network) (result *resourcev1.Network, err error)

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

func (*FakeNetworks) Delete

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

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

func (*FakeNetworks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNetworks) Get

func (c *FakeNetworks) Get(name string, options v1.GetOptions) (result *resourcev1.Network, err error)

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

func (*FakeNetworks) List

func (c *FakeNetworks) List(opts v1.ListOptions) (result *resourcev1.NetworkList, err error)

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

func (*FakeNetworks) Patch

func (c *FakeNetworks) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *resourcev1.Network, err error)

Patch applies the patch and returns the patched network.

func (*FakeNetworks) Update

func (c *FakeNetworks) Update(network *resourcev1.Network) (result *resourcev1.Network, err error)

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

func (*FakeNetworks) Watch

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

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

type FakeResourceV1

type FakeResourceV1 struct {
	*testing.Fake
}

func (*FakeResourceV1) LastReservedIPs

func (c *FakeResourceV1) LastReservedIPs() v1.LastReservedIPInterface

func (*FakeResourceV1) Networks

func (c *FakeResourceV1) Networks() v1.NetworkInterface

func (*FakeResourceV1) RESTClient

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

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

func (*FakeResourceV1) UsingIPs

func (c *FakeResourceV1) UsingIPs() v1.UsingIPInterface

type FakeUsingIPs

type FakeUsingIPs struct {
	Fake *FakeResourceV1
}

FakeUsingIPs implements UsingIPInterface

func (*FakeUsingIPs) Create

func (c *FakeUsingIPs) Create(usingIP *resourcev1.UsingIP) (result *resourcev1.UsingIP, err error)

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

func (*FakeUsingIPs) Delete

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

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

func (*FakeUsingIPs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeUsingIPs) Get

func (c *FakeUsingIPs) Get(name string, options v1.GetOptions) (result *resourcev1.UsingIP, err error)

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

func (*FakeUsingIPs) List

func (c *FakeUsingIPs) List(opts v1.ListOptions) (result *resourcev1.UsingIPList, err error)

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

func (*FakeUsingIPs) Patch

func (c *FakeUsingIPs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *resourcev1.UsingIP, err error)

Patch applies the patch and returns the patched usingIP.

func (*FakeUsingIPs) Update

func (c *FakeUsingIPs) Update(usingIP *resourcev1.UsingIP) (result *resourcev1.UsingIP, err error)

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

func (*FakeUsingIPs) Watch

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

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

Jump to

Keyboard shortcuts

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