fake

package
v3.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2018 License: Apache-2.0 Imports: 9 Imported by: 22

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 *FakeNetworkV1
}

FakeClusterNetworks implements ClusterNetworkInterface

func (*FakeClusterNetworks) Create

func (c *FakeClusterNetworks) Create(clusterNetwork *network_v1.ClusterNetwork) (result *network_v1.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_v1.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

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_v1.ClusterNetwork, err error)

Patch applies the patch and returns the patched clusterNetwork.

func (*FakeClusterNetworks) Update

func (c *FakeClusterNetworks) Update(clusterNetwork *network_v1.ClusterNetwork) (result *network_v1.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 *FakeNetworkV1
	// contains filtered or unexported fields
}

FakeEgressNetworkPolicies implements EgressNetworkPolicyInterface

func (*FakeEgressNetworkPolicies) Create

func (c *FakeEgressNetworkPolicies) Create(egressNetworkPolicy *network_v1.EgressNetworkPolicy) (result *network_v1.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_v1.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_v1.EgressNetworkPolicy, err error)

Patch applies the patch and returns the patched egressNetworkPolicy.

func (*FakeEgressNetworkPolicies) Update

func (c *FakeEgressNetworkPolicies) Update(egressNetworkPolicy *network_v1.EgressNetworkPolicy) (result *network_v1.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 *FakeNetworkV1
}

FakeHostSubnets implements HostSubnetInterface

func (*FakeHostSubnets) Create

func (c *FakeHostSubnets) Create(hostSubnet *network_v1.HostSubnet) (result *network_v1.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_v1.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_v1.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_v1.HostSubnet, err error)

Patch applies the patch and returns the patched hostSubnet.

func (*FakeHostSubnets) Update

func (c *FakeHostSubnets) Update(hostSubnet *network_v1.HostSubnet) (result *network_v1.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 *FakeNetworkV1
}

FakeNetNamespaces implements NetNamespaceInterface

func (*FakeNetNamespaces) Create

func (c *FakeNetNamespaces) Create(netNamespace *network_v1.NetNamespace) (result *network_v1.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_v1.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_v1.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_v1.NetNamespace, err error)

Patch applies the patch and returns the patched netNamespace.

func (*FakeNetNamespaces) Update

func (c *FakeNetNamespaces) Update(netNamespace *network_v1.NetNamespace) (result *network_v1.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 FakeNetworkV1

type FakeNetworkV1 struct {
	*testing.Fake
}

func (*FakeNetworkV1) ClusterNetworks

func (c *FakeNetworkV1) ClusterNetworks() v1.ClusterNetworkInterface

func (*FakeNetworkV1) EgressNetworkPolicies

func (c *FakeNetworkV1) EgressNetworkPolicies(namespace string) v1.EgressNetworkPolicyInterface

func (*FakeNetworkV1) HostSubnets

func (c *FakeNetworkV1) HostSubnets() v1.HostSubnetInterface

func (*FakeNetworkV1) NetNamespaces

func (c *FakeNetworkV1) NetNamespaces() v1.NetNamespaceInterface

func (*FakeNetworkV1) RESTClient

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