fake

package
v3.8.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2018 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 FakeClusterNetworks

type FakeClusterNetworks struct {
	Fake *FakeNetwork
}

FakeClusterNetworks implements ClusterNetworkInterface

func (*FakeClusterNetworks) Create

func (c *FakeClusterNetworks) Create(clusterNetwork *network.ClusterNetwork) (result *network.ClusterNetwork, err error)

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

func (*FakeClusterNetworks) Delete

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

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

func (*FakeClusterNetworks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterNetworks) Get

func (c *FakeClusterNetworks) Get(name string, options v1.GetOptions) (result *network.ClusterNetwork, err error)

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

func (*FakeClusterNetworks) List

func (c *FakeClusterNetworks) List(opts v1.ListOptions) (result *network.ClusterNetworkList, err error)

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

func (*FakeClusterNetworks) Patch

func (c *FakeClusterNetworks) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *network.ClusterNetwork, err error)

Patch applies the patch and returns the patched clusterNetwork.

func (*FakeClusterNetworks) Update

func (c *FakeClusterNetworks) Update(clusterNetwork *network.ClusterNetwork) (result *network.ClusterNetwork, err error)

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

func (*FakeClusterNetworks) Watch

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

type FakeEgressNetworkPolicies

type FakeEgressNetworkPolicies struct {
	Fake *FakeNetwork
	// contains filtered or unexported fields
}

FakeEgressNetworkPolicies implements EgressNetworkPolicyInterface

func (*FakeEgressNetworkPolicies) Create

func (c *FakeEgressNetworkPolicies) Create(egressNetworkPolicy *network.EgressNetworkPolicy) (result *network.EgressNetworkPolicy, err error)

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

func (*FakeEgressNetworkPolicies) Delete

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

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

func (*FakeEgressNetworkPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEgressNetworkPolicies) Get

func (c *FakeEgressNetworkPolicies) Get(name string, options v1.GetOptions) (result *network.EgressNetworkPolicy, err error)

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

func (*FakeEgressNetworkPolicies) List

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

func (*FakeEgressNetworkPolicies) Patch

func (c *FakeEgressNetworkPolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *network.EgressNetworkPolicy, err error)

Patch applies the patch and returns the patched egressNetworkPolicy.

func (*FakeEgressNetworkPolicies) Update

func (c *FakeEgressNetworkPolicies) Update(egressNetworkPolicy *network.EgressNetworkPolicy) (result *network.EgressNetworkPolicy, err error)

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

func (*FakeEgressNetworkPolicies) Watch

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

type FakeHostSubnets

type FakeHostSubnets struct {
	Fake *FakeNetwork
}

FakeHostSubnets implements HostSubnetInterface

func (*FakeHostSubnets) Create

func (c *FakeHostSubnets) Create(hostSubnet *network.HostSubnet) (result *network.HostSubnet, err error)

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

func (*FakeHostSubnets) Delete

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

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

func (*FakeHostSubnets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHostSubnets) Get

func (c *FakeHostSubnets) Get(name string, options v1.GetOptions) (result *network.HostSubnet, err error)

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

func (*FakeHostSubnets) List

func (c *FakeHostSubnets) List(opts v1.ListOptions) (result *network.HostSubnetList, err error)

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

func (*FakeHostSubnets) Patch

func (c *FakeHostSubnets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *network.HostSubnet, err error)

Patch applies the patch and returns the patched hostSubnet.

func (*FakeHostSubnets) Update

func (c *FakeHostSubnets) Update(hostSubnet *network.HostSubnet) (result *network.HostSubnet, err error)

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

func (*FakeHostSubnets) Watch

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

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

type FakeNetNamespaces

type FakeNetNamespaces struct {
	Fake *FakeNetwork
}

FakeNetNamespaces implements NetNamespaceInterface

func (*FakeNetNamespaces) Create

func (c *FakeNetNamespaces) Create(netNamespace *network.NetNamespace) (result *network.NetNamespace, err error)

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

func (*FakeNetNamespaces) Delete

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

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

func (*FakeNetNamespaces) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNetNamespaces) Get

func (c *FakeNetNamespaces) Get(name string, options v1.GetOptions) (result *network.NetNamespace, err error)

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

func (*FakeNetNamespaces) List

func (c *FakeNetNamespaces) List(opts v1.ListOptions) (result *network.NetNamespaceList, err error)

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

func (*FakeNetNamespaces) Patch

func (c *FakeNetNamespaces) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *network.NetNamespace, err error)

Patch applies the patch and returns the patched netNamespace.

func (*FakeNetNamespaces) Update

func (c *FakeNetNamespaces) Update(netNamespace *network.NetNamespace) (result *network.NetNamespace, err error)

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

func (*FakeNetNamespaces) Watch

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

type FakeNetwork

type FakeNetwork struct {
	*testing.Fake
}

func (*FakeNetwork) ClusterNetworks

func (*FakeNetwork) EgressNetworkPolicies

func (c *FakeNetwork) EgressNetworkPolicies(namespace string) internalversion.EgressNetworkPolicyInterface

func (*FakeNetwork) HostSubnets

func (*FakeNetwork) NetNamespaces

func (*FakeNetwork) RESTClient

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