fake

package
v1.11.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 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 FakeClusterNetworkPolicies

type FakeClusterNetworkPolicies struct {
	Fake *FakeCrdV1alpha1
}

FakeClusterNetworkPolicies implements ClusterNetworkPolicyInterface

func (*FakeClusterNetworkPolicies) Create

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

func (*FakeClusterNetworkPolicies) Delete

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

func (*FakeClusterNetworkPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterNetworkPolicies) Get

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

func (*FakeClusterNetworkPolicies) List

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

func (*FakeClusterNetworkPolicies) Patch

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

Patch applies the patch and returns the patched clusterNetworkPolicy.

func (*FakeClusterNetworkPolicies) Update

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

func (*FakeClusterNetworkPolicies) UpdateStatus

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

func (*FakeClusterNetworkPolicies) Watch

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

type FakeCrdV1alpha1

type FakeCrdV1alpha1 struct {
	*testing.Fake
}

func (*FakeCrdV1alpha1) ClusterNetworkPolicies

func (c *FakeCrdV1alpha1) ClusterNetworkPolicies() v1alpha1.ClusterNetworkPolicyInterface

func (*FakeCrdV1alpha1) ExternalNodes added in v1.8.0

func (c *FakeCrdV1alpha1) ExternalNodes(namespace string) v1alpha1.ExternalNodeInterface

func (*FakeCrdV1alpha1) NetworkPolicies

func (c *FakeCrdV1alpha1) NetworkPolicies(namespace string) v1alpha1.NetworkPolicyInterface

func (*FakeCrdV1alpha1) RESTClient

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

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

func (*FakeCrdV1alpha1) SupportBundleCollections added in v1.9.0

func (c *FakeCrdV1alpha1) SupportBundleCollections() v1alpha1.SupportBundleCollectionInterface

func (*FakeCrdV1alpha1) Tiers

func (*FakeCrdV1alpha1) Traceflows

type FakeExternalNodes added in v1.8.0

type FakeExternalNodes struct {
	Fake *FakeCrdV1alpha1
	// contains filtered or unexported fields
}

FakeExternalNodes implements ExternalNodeInterface

func (*FakeExternalNodes) Create added in v1.8.0

func (c *FakeExternalNodes) Create(ctx context.Context, externalNode *v1alpha1.ExternalNode, opts v1.CreateOptions) (result *v1alpha1.ExternalNode, err error)

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

func (*FakeExternalNodes) Delete added in v1.8.0

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

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

func (*FakeExternalNodes) DeleteCollection added in v1.8.0

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

DeleteCollection deletes a collection of objects.

func (*FakeExternalNodes) Get added in v1.8.0

func (c *FakeExternalNodes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ExternalNode, err error)

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

func (*FakeExternalNodes) List added in v1.8.0

func (c *FakeExternalNodes) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ExternalNodeList, err error)

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

func (*FakeExternalNodes) Patch added in v1.8.0

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

Patch applies the patch and returns the patched externalNode.

func (*FakeExternalNodes) Update added in v1.8.0

func (c *FakeExternalNodes) Update(ctx context.Context, externalNode *v1alpha1.ExternalNode, opts v1.UpdateOptions) (result *v1alpha1.ExternalNode, err error)

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

func (*FakeExternalNodes) Watch added in v1.8.0

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

type FakeNetworkPolicies

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

FakeNetworkPolicies implements NetworkPolicyInterface

func (*FakeNetworkPolicies) Create

func (c *FakeNetworkPolicies) Create(ctx context.Context, networkPolicy *v1alpha1.NetworkPolicy, opts v1.CreateOptions) (result *v1alpha1.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 *v1alpha1.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

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 *v1alpha1.NetworkPolicy, err error)

Patch applies the patch and returns the patched networkPolicy.

func (*FakeNetworkPolicies) Update

func (c *FakeNetworkPolicies) Update(ctx context.Context, networkPolicy *v1alpha1.NetworkPolicy, opts v1.UpdateOptions) (result *v1alpha1.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) UpdateStatus

func (c *FakeNetworkPolicies) UpdateStatus(ctx context.Context, networkPolicy *v1alpha1.NetworkPolicy, opts v1.UpdateOptions) (*v1alpha1.NetworkPolicy, error)

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

func (*FakeNetworkPolicies) Watch

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

type FakeSupportBundleCollections added in v1.9.0

type FakeSupportBundleCollections struct {
	Fake *FakeCrdV1alpha1
}

FakeSupportBundleCollections implements SupportBundleCollectionInterface

func (*FakeSupportBundleCollections) Create added in v1.9.0

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

func (*FakeSupportBundleCollections) Delete added in v1.9.0

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

func (*FakeSupportBundleCollections) DeleteCollection added in v1.9.0

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

DeleteCollection deletes a collection of objects.

func (*FakeSupportBundleCollections) Get added in v1.9.0

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

func (*FakeSupportBundleCollections) List added in v1.9.0

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

func (*FakeSupportBundleCollections) Patch added in v1.9.0

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

Patch applies the patch and returns the patched supportBundleCollection.

func (*FakeSupportBundleCollections) Update added in v1.9.0

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

func (*FakeSupportBundleCollections) UpdateStatus added in v1.9.0

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

func (*FakeSupportBundleCollections) Watch added in v1.9.0

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

type FakeTiers

type FakeTiers struct {
	Fake *FakeCrdV1alpha1
}

FakeTiers implements TierInterface

func (*FakeTiers) Create

func (c *FakeTiers) Create(ctx context.Context, tier *v1alpha1.Tier, opts v1.CreateOptions) (result *v1alpha1.Tier, err error)

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

func (*FakeTiers) Delete

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

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

func (*FakeTiers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTiers) Get

func (c *FakeTiers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Tier, err error)

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

func (*FakeTiers) List

func (c *FakeTiers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.TierList, err error)

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

func (*FakeTiers) Patch

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

Patch applies the patch and returns the patched tier.

func (*FakeTiers) Update

func (c *FakeTiers) Update(ctx context.Context, tier *v1alpha1.Tier, opts v1.UpdateOptions) (result *v1alpha1.Tier, err error)

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

func (*FakeTiers) Watch

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

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

type FakeTraceflows

type FakeTraceflows struct {
	Fake *FakeCrdV1alpha1
}

FakeTraceflows implements TraceflowInterface

func (*FakeTraceflows) Create

func (c *FakeTraceflows) Create(ctx context.Context, traceflow *v1alpha1.Traceflow, opts v1.CreateOptions) (result *v1alpha1.Traceflow, err error)

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

func (*FakeTraceflows) Delete

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

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

func (*FakeTraceflows) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTraceflows) Get

func (c *FakeTraceflows) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Traceflow, err error)

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

func (*FakeTraceflows) List

func (c *FakeTraceflows) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.TraceflowList, err error)

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

func (*FakeTraceflows) Patch

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

Patch applies the patch and returns the patched traceflow.

func (*FakeTraceflows) Update

func (c *FakeTraceflows) Update(ctx context.Context, traceflow *v1alpha1.Traceflow, opts v1.UpdateOptions) (result *v1alpha1.Traceflow, err error)

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

func (*FakeTraceflows) UpdateStatus

func (c *FakeTraceflows) UpdateStatus(ctx context.Context, traceflow *v1alpha1.Traceflow, opts v1.UpdateOptions) (*v1alpha1.Traceflow, error)

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

func (*FakeTraceflows) Watch

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

Jump to

Keyboard shortcuts

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