fake

package
v0.0.0-...-d24fd3e Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 13 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 *FakeNetworkV1
}

FakeClusterNetworks implements ClusterNetworkInterface

func (*FakeClusterNetworks) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied clusterNetwork.

func (*FakeClusterNetworks) Create

func (c *FakeClusterNetworks) Create(ctx context.Context, clusterNetwork *networkv1.ClusterNetwork, opts v1.CreateOptions) (result *networkv1.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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeClusterNetworks) Get

func (c *FakeClusterNetworks) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkv1.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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networkv1.ClusterNetwork, err error)

Patch applies the patch and returns the patched clusterNetwork.

func (*FakeClusterNetworks) Update

func (c *FakeClusterNetworks) Update(ctx context.Context, clusterNetwork *networkv1.ClusterNetwork, opts v1.UpdateOptions) (result *networkv1.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) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied egressNetworkPolicy.

func (*FakeEgressNetworkPolicies) Create

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

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

func (*FakeEgressNetworkPolicies) DeleteCollection

func (c *FakeEgressNetworkPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeEgressNetworkPolicies) Get

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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networkv1.EgressNetworkPolicy, err error)

Patch applies the patch and returns the patched egressNetworkPolicy.

func (*FakeEgressNetworkPolicies) Update

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) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied hostSubnet.

func (*FakeHostSubnets) Create

func (c *FakeHostSubnets) Create(ctx context.Context, hostSubnet *networkv1.HostSubnet, opts v1.CreateOptions) (result *networkv1.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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeHostSubnets) Get

func (c *FakeHostSubnets) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkv1.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(ctx context.Context, opts v1.ListOptions) (result *networkv1.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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networkv1.HostSubnet, err error)

Patch applies the patch and returns the patched hostSubnet.

func (*FakeHostSubnets) Update

func (c *FakeHostSubnets) Update(ctx context.Context, hostSubnet *networkv1.HostSubnet, opts v1.UpdateOptions) (result *networkv1.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

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

type FakeNetNamespaces

type FakeNetNamespaces struct {
	Fake *FakeNetworkV1
}

FakeNetNamespaces implements NetNamespaceInterface

func (*FakeNetNamespaces) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied netNamespace.

func (*FakeNetNamespaces) Create

func (c *FakeNetNamespaces) Create(ctx context.Context, netNamespace *networkv1.NetNamespace, opts v1.CreateOptions) (result *networkv1.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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeNetNamespaces) Get

func (c *FakeNetNamespaces) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkv1.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(ctx context.Context, opts v1.ListOptions) (result *networkv1.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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networkv1.NetNamespace, err error)

Patch applies the patch and returns the patched netNamespace.

func (*FakeNetNamespaces) Update

func (c *FakeNetNamespaces) Update(ctx context.Context, netNamespace *networkv1.NetNamespace, opts v1.UpdateOptions) (result *networkv1.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