fake

package
v0.0.0-...-3626398 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: Apache-2.0 Imports: 10 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 FakeBGPConfigurations

type FakeBGPConfigurations struct {
	Fake *FakeProjectcalicoV3
}

FakeBGPConfigurations implements BGPConfigurationInterface

func (*FakeBGPConfigurations) Create

func (c *FakeBGPConfigurations) Create(ctx context.Context, bGPConfiguration *v3.BGPConfiguration, opts v1.CreateOptions) (result *v3.BGPConfiguration, err error)

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

func (*FakeBGPConfigurations) Delete

func (c *FakeBGPConfigurations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeBGPConfigurations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBGPConfigurations) Get

func (c *FakeBGPConfigurations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v3.BGPConfiguration, err error)

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

func (*FakeBGPConfigurations) List

func (c *FakeBGPConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v3.BGPConfigurationList, err error)

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

func (*FakeBGPConfigurations) Patch

func (c *FakeBGPConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v3.BGPConfiguration, err error)

Patch applies the patch and returns the patched bGPConfiguration.

func (*FakeBGPConfigurations) Update

func (c *FakeBGPConfigurations) Update(ctx context.Context, bGPConfiguration *v3.BGPConfiguration, opts v1.UpdateOptions) (result *v3.BGPConfiguration, err error)

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

func (*FakeBGPConfigurations) Watch

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

type FakeBGPPeers

type FakeBGPPeers struct {
	Fake *FakeProjectcalicoV3
}

FakeBGPPeers implements BGPPeerInterface

func (*FakeBGPPeers) Create

func (c *FakeBGPPeers) Create(ctx context.Context, bGPPeer *v3.BGPPeer, opts v1.CreateOptions) (result *v3.BGPPeer, err error)

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

func (*FakeBGPPeers) Delete

func (c *FakeBGPPeers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeBGPPeers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBGPPeers) Get

func (c *FakeBGPPeers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v3.BGPPeer, err error)

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

func (*FakeBGPPeers) List

func (c *FakeBGPPeers) List(ctx context.Context, opts v1.ListOptions) (result *v3.BGPPeerList, err error)

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

func (*FakeBGPPeers) Patch

func (c *FakeBGPPeers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v3.BGPPeer, err error)

Patch applies the patch and returns the patched bGPPeer.

func (*FakeBGPPeers) Update

func (c *FakeBGPPeers) Update(ctx context.Context, bGPPeer *v3.BGPPeer, opts v1.UpdateOptions) (result *v3.BGPPeer, err error)

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

func (*FakeBGPPeers) Watch

func (c *FakeBGPPeers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeBlockAffinities

type FakeBlockAffinities struct {
	Fake *FakeProjectcalicoV3
}

FakeBlockAffinities implements BlockAffinityInterface

func (*FakeBlockAffinities) Create

func (c *FakeBlockAffinities) Create(ctx context.Context, blockAffinity *v3.BlockAffinity, opts v1.CreateOptions) (result *v3.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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeBlockAffinities) Get

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

Patch applies the patch and returns the patched blockAffinity.

func (*FakeBlockAffinities) Update

func (c *FakeBlockAffinities) Update(ctx context.Context, blockAffinity *v3.BlockAffinity, opts v1.UpdateOptions) (result *v3.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 FakeCalicoNodeStatuses

type FakeCalicoNodeStatuses struct {
	Fake *FakeProjectcalicoV3
}

FakeCalicoNodeStatuses implements CalicoNodeStatusInterface

func (*FakeCalicoNodeStatuses) Create

func (c *FakeCalicoNodeStatuses) Create(ctx context.Context, calicoNodeStatus *v3.CalicoNodeStatus, opts v1.CreateOptions) (result *v3.CalicoNodeStatus, err error)

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

func (*FakeCalicoNodeStatuses) Delete

func (c *FakeCalicoNodeStatuses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeCalicoNodeStatuses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCalicoNodeStatuses) Get

func (c *FakeCalicoNodeStatuses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v3.CalicoNodeStatus, err error)

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

func (*FakeCalicoNodeStatuses) List

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

func (*FakeCalicoNodeStatuses) Patch

func (c *FakeCalicoNodeStatuses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v3.CalicoNodeStatus, err error)

Patch applies the patch and returns the patched calicoNodeStatus.

func (*FakeCalicoNodeStatuses) Update

func (c *FakeCalicoNodeStatuses) Update(ctx context.Context, calicoNodeStatus *v3.CalicoNodeStatus, opts v1.UpdateOptions) (result *v3.CalicoNodeStatus, err error)

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

func (*FakeCalicoNodeStatuses) UpdateStatus

func (c *FakeCalicoNodeStatuses) UpdateStatus(ctx context.Context, calicoNodeStatus *v3.CalicoNodeStatus, opts v1.UpdateOptions) (*v3.CalicoNodeStatus, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeCalicoNodeStatuses) Watch

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

type FakeClusterInformations

type FakeClusterInformations struct {
	Fake *FakeProjectcalicoV3
}

FakeClusterInformations implements ClusterInformationInterface

func (*FakeClusterInformations) Create

func (c *FakeClusterInformations) Create(ctx context.Context, clusterInformation *v3.ClusterInformation, opts v1.CreateOptions) (result *v3.ClusterInformation, err error)

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

func (*FakeClusterInformations) Delete

func (c *FakeClusterInformations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeClusterInformations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterInformations) Get

func (c *FakeClusterInformations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v3.ClusterInformation, err error)

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

func (*FakeClusterInformations) List

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

func (*FakeClusterInformations) Patch

func (c *FakeClusterInformations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v3.ClusterInformation, err error)

Patch applies the patch and returns the patched clusterInformation.

func (*FakeClusterInformations) Update

func (c *FakeClusterInformations) Update(ctx context.Context, clusterInformation *v3.ClusterInformation, opts v1.UpdateOptions) (result *v3.ClusterInformation, err error)

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

func (*FakeClusterInformations) Watch

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

type FakeFelixConfigurations

type FakeFelixConfigurations struct {
	Fake *FakeProjectcalicoV3
}

FakeFelixConfigurations implements FelixConfigurationInterface

func (*FakeFelixConfigurations) Create

func (c *FakeFelixConfigurations) Create(ctx context.Context, felixConfiguration *v3.FelixConfiguration, opts v1.CreateOptions) (result *v3.FelixConfiguration, err error)

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

func (*FakeFelixConfigurations) Delete

func (c *FakeFelixConfigurations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeFelixConfigurations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFelixConfigurations) Get

func (c *FakeFelixConfigurations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v3.FelixConfiguration, err error)

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

func (*FakeFelixConfigurations) List

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

func (*FakeFelixConfigurations) Patch

func (c *FakeFelixConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v3.FelixConfiguration, err error)

Patch applies the patch and returns the patched felixConfiguration.

func (*FakeFelixConfigurations) Update

func (c *FakeFelixConfigurations) Update(ctx context.Context, felixConfiguration *v3.FelixConfiguration, opts v1.UpdateOptions) (result *v3.FelixConfiguration, err error)

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

func (*FakeFelixConfigurations) Watch

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

type FakeGlobalNetworkPolicies

type FakeGlobalNetworkPolicies struct {
	Fake *FakeProjectcalicoV3
}

FakeGlobalNetworkPolicies implements GlobalNetworkPolicyInterface

func (*FakeGlobalNetworkPolicies) Create

func (c *FakeGlobalNetworkPolicies) Create(ctx context.Context, globalNetworkPolicy *v3.GlobalNetworkPolicy, opts v1.CreateOptions) (result *v3.GlobalNetworkPolicy, err error)

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

func (*FakeGlobalNetworkPolicies) Delete

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

func (*FakeGlobalNetworkPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGlobalNetworkPolicies) Get

func (c *FakeGlobalNetworkPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v3.GlobalNetworkPolicy, err error)

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

func (*FakeGlobalNetworkPolicies) List

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

func (*FakeGlobalNetworkPolicies) Patch

func (c *FakeGlobalNetworkPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v3.GlobalNetworkPolicy, err error)

Patch applies the patch and returns the patched globalNetworkPolicy.

func (*FakeGlobalNetworkPolicies) Update

func (c *FakeGlobalNetworkPolicies) Update(ctx context.Context, globalNetworkPolicy *v3.GlobalNetworkPolicy, opts v1.UpdateOptions) (result *v3.GlobalNetworkPolicy, err error)

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

func (*FakeGlobalNetworkPolicies) Watch

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

type FakeGlobalNetworkSets

type FakeGlobalNetworkSets struct {
	Fake *FakeProjectcalicoV3
}

FakeGlobalNetworkSets implements GlobalNetworkSetInterface

func (*FakeGlobalNetworkSets) Create

func (c *FakeGlobalNetworkSets) Create(ctx context.Context, globalNetworkSet *v3.GlobalNetworkSet, opts v1.CreateOptions) (result *v3.GlobalNetworkSet, err error)

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

func (*FakeGlobalNetworkSets) Delete

func (c *FakeGlobalNetworkSets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeGlobalNetworkSets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGlobalNetworkSets) Get

func (c *FakeGlobalNetworkSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v3.GlobalNetworkSet, err error)

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

func (*FakeGlobalNetworkSets) List

func (c *FakeGlobalNetworkSets) List(ctx context.Context, opts v1.ListOptions) (result *v3.GlobalNetworkSetList, err error)

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

func (*FakeGlobalNetworkSets) Patch

func (c *FakeGlobalNetworkSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v3.GlobalNetworkSet, err error)

Patch applies the patch and returns the patched globalNetworkSet.

func (*FakeGlobalNetworkSets) Update

func (c *FakeGlobalNetworkSets) Update(ctx context.Context, globalNetworkSet *v3.GlobalNetworkSet, opts v1.UpdateOptions) (result *v3.GlobalNetworkSet, err error)

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

func (*FakeGlobalNetworkSets) Watch

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

type FakeHostEndpoints

type FakeHostEndpoints struct {
	Fake *FakeProjectcalicoV3
}

FakeHostEndpoints implements HostEndpointInterface

func (*FakeHostEndpoints) Create

func (c *FakeHostEndpoints) Create(ctx context.Context, hostEndpoint *v3.HostEndpoint, opts v1.CreateOptions) (result *v3.HostEndpoint, err error)

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

func (*FakeHostEndpoints) Delete

func (c *FakeHostEndpoints) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeHostEndpoints) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHostEndpoints) Get

func (c *FakeHostEndpoints) Get(ctx context.Context, name string, options v1.GetOptions) (result *v3.HostEndpoint, err error)

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

func (*FakeHostEndpoints) List

func (c *FakeHostEndpoints) List(ctx context.Context, opts v1.ListOptions) (result *v3.HostEndpointList, err error)

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

func (*FakeHostEndpoints) Patch

func (c *FakeHostEndpoints) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v3.HostEndpoint, err error)

Patch applies the patch and returns the patched hostEndpoint.

func (*FakeHostEndpoints) Update

func (c *FakeHostEndpoints) Update(ctx context.Context, hostEndpoint *v3.HostEndpoint, opts v1.UpdateOptions) (result *v3.HostEndpoint, err error)

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

func (*FakeHostEndpoints) Watch

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

type FakeIPPools

type FakeIPPools struct {
	Fake *FakeProjectcalicoV3
}

FakeIPPools implements IPPoolInterface

func (*FakeIPPools) Create

func (c *FakeIPPools) Create(ctx context.Context, iPPool *v3.IPPool, opts v1.CreateOptions) (result *v3.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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeIPPools) Get

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

Patch applies the patch and returns the patched iPPool.

func (*FakeIPPools) Update

func (c *FakeIPPools) Update(ctx context.Context, iPPool *v3.IPPool, opts v1.UpdateOptions) (result *v3.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(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeIPReservations

type FakeIPReservations struct {
	Fake *FakeProjectcalicoV3
}

FakeIPReservations implements IPReservationInterface

func (*FakeIPReservations) Create

func (c *FakeIPReservations) Create(ctx context.Context, iPReservation *v3.IPReservation, opts v1.CreateOptions) (result *v3.IPReservation, err error)

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

func (*FakeIPReservations) Delete

func (c *FakeIPReservations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeIPReservations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIPReservations) Get

func (c *FakeIPReservations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v3.IPReservation, err error)

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

func (*FakeIPReservations) List

func (c *FakeIPReservations) List(ctx context.Context, opts v1.ListOptions) (result *v3.IPReservationList, err error)

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

func (*FakeIPReservations) Patch

func (c *FakeIPReservations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v3.IPReservation, err error)

Patch applies the patch and returns the patched iPReservation.

func (*FakeIPReservations) Update

func (c *FakeIPReservations) Update(ctx context.Context, iPReservation *v3.IPReservation, opts v1.UpdateOptions) (result *v3.IPReservation, err error)

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

func (*FakeIPReservations) Watch

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

type FakeKubeControllersConfigurations

type FakeKubeControllersConfigurations struct {
	Fake *FakeProjectcalicoV3
}

FakeKubeControllersConfigurations implements KubeControllersConfigurationInterface

func (*FakeKubeControllersConfigurations) Create

func (c *FakeKubeControllersConfigurations) Create(ctx context.Context, kubeControllersConfiguration *v3.KubeControllersConfiguration, opts v1.CreateOptions) (result *v3.KubeControllersConfiguration, err error)

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

func (*FakeKubeControllersConfigurations) Delete

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

func (*FakeKubeControllersConfigurations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKubeControllersConfigurations) Get

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

func (*FakeKubeControllersConfigurations) List

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

func (*FakeKubeControllersConfigurations) Patch

func (c *FakeKubeControllersConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v3.KubeControllersConfiguration, err error)

Patch applies the patch and returns the patched kubeControllersConfiguration.

func (*FakeKubeControllersConfigurations) Update

func (c *FakeKubeControllersConfigurations) Update(ctx context.Context, kubeControllersConfiguration *v3.KubeControllersConfiguration, opts v1.UpdateOptions) (result *v3.KubeControllersConfiguration, err error)

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

func (*FakeKubeControllersConfigurations) UpdateStatus

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeKubeControllersConfigurations) Watch

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

type FakeNetworkPolicies

type FakeNetworkPolicies struct {
	Fake *FakeProjectcalicoV3
	// contains filtered or unexported fields
}

FakeNetworkPolicies implements NetworkPolicyInterface

func (*FakeNetworkPolicies) Create

func (c *FakeNetworkPolicies) Create(ctx context.Context, networkPolicy *v3.NetworkPolicy, opts v1.CreateOptions) (result *v3.NetworkPolicy, err error)

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

func (*FakeNetworkPolicies) Delete

func (c *FakeNetworkPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeNetworkPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNetworkPolicies) Get

func (c *FakeNetworkPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v3.NetworkPolicy, err error)

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

func (*FakeNetworkPolicies) List

func (c *FakeNetworkPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v3.NetworkPolicyList, err error)

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

func (*FakeNetworkPolicies) Patch

func (c *FakeNetworkPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v3.NetworkPolicy, err error)

Patch applies the patch and returns the patched networkPolicy.

func (*FakeNetworkPolicies) Update

func (c *FakeNetworkPolicies) Update(ctx context.Context, networkPolicy *v3.NetworkPolicy, opts v1.UpdateOptions) (result *v3.NetworkPolicy, err error)

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

func (*FakeNetworkPolicies) Watch

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

type FakeNetworkSets

type FakeNetworkSets struct {
	Fake *FakeProjectcalicoV3
	// contains filtered or unexported fields
}

FakeNetworkSets implements NetworkSetInterface

func (*FakeNetworkSets) Create

func (c *FakeNetworkSets) Create(ctx context.Context, networkSet *v3.NetworkSet, opts v1.CreateOptions) (result *v3.NetworkSet, err error)

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

func (*FakeNetworkSets) Delete

func (c *FakeNetworkSets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeNetworkSets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNetworkSets) Get

func (c *FakeNetworkSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v3.NetworkSet, err error)

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

func (*FakeNetworkSets) List

func (c *FakeNetworkSets) List(ctx context.Context, opts v1.ListOptions) (result *v3.NetworkSetList, err error)

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

func (*FakeNetworkSets) Patch

func (c *FakeNetworkSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v3.NetworkSet, err error)

Patch applies the patch and returns the patched networkSet.

func (*FakeNetworkSets) Update

func (c *FakeNetworkSets) Update(ctx context.Context, networkSet *v3.NetworkSet, opts v1.UpdateOptions) (result *v3.NetworkSet, err error)

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

func (*FakeNetworkSets) Watch

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

type FakeProfiles

type FakeProfiles struct {
	Fake *FakeProjectcalicoV3
}

FakeProfiles implements ProfileInterface

func (*FakeProfiles) Create

func (c *FakeProfiles) Create(ctx context.Context, profile *v3.Profile, opts v1.CreateOptions) (result *v3.Profile, err error)

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

func (*FakeProfiles) Delete

func (c *FakeProfiles) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeProfiles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProfiles) Get

func (c *FakeProfiles) Get(ctx context.Context, name string, options v1.GetOptions) (result *v3.Profile, err error)

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

func (*FakeProfiles) List

func (c *FakeProfiles) List(ctx context.Context, opts v1.ListOptions) (result *v3.ProfileList, err error)

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

func (*FakeProfiles) Patch

func (c *FakeProfiles) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v3.Profile, err error)

Patch applies the patch and returns the patched profile.

func (*FakeProfiles) Update

func (c *FakeProfiles) Update(ctx context.Context, profile *v3.Profile, opts v1.UpdateOptions) (result *v3.Profile, err error)

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

func (*FakeProfiles) Watch

func (c *FakeProfiles) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeProjectcalicoV3

type FakeProjectcalicoV3 struct {
	*testing.Fake
}

func (*FakeProjectcalicoV3) BGPConfigurations

func (c *FakeProjectcalicoV3) BGPConfigurations() v3.BGPConfigurationInterface

func (*FakeProjectcalicoV3) BGPPeers

func (c *FakeProjectcalicoV3) BGPPeers() v3.BGPPeerInterface

func (*FakeProjectcalicoV3) BlockAffinities

func (c *FakeProjectcalicoV3) BlockAffinities(namespace string) v3.BlockAffinityInterface

func (*FakeProjectcalicoV3) CalicoNodeStatuses

func (c *FakeProjectcalicoV3) CalicoNodeStatuses() v3.CalicoNodeStatusInterface

func (*FakeProjectcalicoV3) ClusterInformations

func (c *FakeProjectcalicoV3) ClusterInformations() v3.ClusterInformationInterface

func (*FakeProjectcalicoV3) FelixConfigurations

func (c *FakeProjectcalicoV3) FelixConfigurations() v3.FelixConfigurationInterface

func (*FakeProjectcalicoV3) GlobalNetworkPolicies

func (c *FakeProjectcalicoV3) GlobalNetworkPolicies() v3.GlobalNetworkPolicyInterface

func (*FakeProjectcalicoV3) GlobalNetworkSets

func (c *FakeProjectcalicoV3) GlobalNetworkSets() v3.GlobalNetworkSetInterface

func (*FakeProjectcalicoV3) HostEndpoints

func (c *FakeProjectcalicoV3) HostEndpoints() v3.HostEndpointInterface

func (*FakeProjectcalicoV3) IPPools

func (c *FakeProjectcalicoV3) IPPools() v3.IPPoolInterface

func (*FakeProjectcalicoV3) IPReservations

func (c *FakeProjectcalicoV3) IPReservations() v3.IPReservationInterface

func (*FakeProjectcalicoV3) KubeControllersConfigurations

func (c *FakeProjectcalicoV3) KubeControllersConfigurations() v3.KubeControllersConfigurationInterface

func (*FakeProjectcalicoV3) NetworkPolicies

func (c *FakeProjectcalicoV3) NetworkPolicies(namespace string) v3.NetworkPolicyInterface

func (*FakeProjectcalicoV3) NetworkSets

func (c *FakeProjectcalicoV3) NetworkSets(namespace string) v3.NetworkSetInterface

func (*FakeProjectcalicoV3) Profiles

func (c *FakeProjectcalicoV3) Profiles() v3.ProfileInterface

func (*FakeProjectcalicoV3) RESTClient

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