fake

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 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 FakeCrdV1alpha1

type FakeCrdV1alpha1 struct {
	*testing.Fake
}

func (*FakeCrdV1alpha1) NetworkPolicyRecommendations

func (c *FakeCrdV1alpha1) NetworkPolicyRecommendations(namespace string) v1alpha1.NetworkPolicyRecommendationInterface

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) ThroughputAnomalyDetectors added in v0.5.0

func (c *FakeCrdV1alpha1) ThroughputAnomalyDetectors(namespace string) v1alpha1.ThroughputAnomalyDetectorInterface

type FakeNetworkPolicyRecommendations

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

FakeNetworkPolicyRecommendations implements NetworkPolicyRecommendationInterface

func (*FakeNetworkPolicyRecommendations) Create

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

func (*FakeNetworkPolicyRecommendations) Delete

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

func (*FakeNetworkPolicyRecommendations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNetworkPolicyRecommendations) Get

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

func (*FakeNetworkPolicyRecommendations) List

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

func (*FakeNetworkPolicyRecommendations) Patch

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

Patch applies the patch and returns the patched networkPolicyRecommendation.

func (*FakeNetworkPolicyRecommendations) Update

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

func (*FakeNetworkPolicyRecommendations) UpdateStatus

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

func (*FakeNetworkPolicyRecommendations) Watch

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

type FakeThroughputAnomalyDetectors added in v0.5.0

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

FakeThroughputAnomalyDetectors implements ThroughputAnomalyDetectorInterface

func (*FakeThroughputAnomalyDetectors) Create added in v0.5.0

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

func (*FakeThroughputAnomalyDetectors) Delete added in v0.5.0

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

func (*FakeThroughputAnomalyDetectors) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakeThroughputAnomalyDetectors) Get added in v0.5.0

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

func (*FakeThroughputAnomalyDetectors) List added in v0.5.0

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

func (*FakeThroughputAnomalyDetectors) Patch added in v0.5.0

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

Patch applies the patch and returns the patched throughputAnomalyDetector.

func (*FakeThroughputAnomalyDetectors) Update added in v0.5.0

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

func (*FakeThroughputAnomalyDetectors) UpdateStatus added in v0.5.0

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

func (*FakeThroughputAnomalyDetectors) Watch added in v0.5.0

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

Jump to

Keyboard shortcuts

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