Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeCrdV1alpha1
- type FakeNetworkPolicyRecommendations
- func (c *FakeNetworkPolicyRecommendations) Create(ctx context.Context, ...) (result *v1alpha1.NetworkPolicyRecommendation, err error)
- func (c *FakeNetworkPolicyRecommendations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeNetworkPolicyRecommendations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeNetworkPolicyRecommendations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.NetworkPolicyRecommendation, err error)
- func (c *FakeNetworkPolicyRecommendations) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.NetworkPolicyRecommendationList, err error)
- func (c *FakeNetworkPolicyRecommendations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.NetworkPolicyRecommendation, err error)
- func (c *FakeNetworkPolicyRecommendations) Update(ctx context.Context, ...) (result *v1alpha1.NetworkPolicyRecommendation, err error)
- func (c *FakeNetworkPolicyRecommendations) UpdateStatus(ctx context.Context, ...) (*v1alpha1.NetworkPolicyRecommendation, error)
- func (c *FakeNetworkPolicyRecommendations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeThroughputAnomalyDetectors
- func (c *FakeThroughputAnomalyDetectors) Create(ctx context.Context, ...) (result *v1alpha1.ThroughputAnomalyDetector, err error)
- func (c *FakeThroughputAnomalyDetectors) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeThroughputAnomalyDetectors) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeThroughputAnomalyDetectors) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ThroughputAnomalyDetector, err error)
- func (c *FakeThroughputAnomalyDetectors) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ThroughputAnomalyDetectorList, err error)
- func (c *FakeThroughputAnomalyDetectors) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.ThroughputAnomalyDetector, err error)
- func (c *FakeThroughputAnomalyDetectors) Update(ctx context.Context, ...) (result *v1alpha1.ThroughputAnomalyDetector, err error)
- func (c *FakeThroughputAnomalyDetectors) UpdateStatus(ctx context.Context, ...) (*v1alpha1.ThroughputAnomalyDetector, error)
- func (c *FakeThroughputAnomalyDetectors) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCrdV1alpha1 ¶
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 ¶
func (c *FakeNetworkPolicyRecommendations) Create(ctx context.Context, networkPolicyRecommendation *v1alpha1.NetworkPolicyRecommendation, opts v1.CreateOptions) (result *v1alpha1.NetworkPolicyRecommendation, err error)
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 ¶
func (c *FakeNetworkPolicyRecommendations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
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 ¶
func (c *FakeNetworkPolicyRecommendations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.NetworkPolicyRecommendation, err error)
Get takes name of the networkPolicyRecommendation, and returns the corresponding networkPolicyRecommendation object, and an error if there is any.
func (*FakeNetworkPolicyRecommendations) List ¶
func (c *FakeNetworkPolicyRecommendations) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.NetworkPolicyRecommendationList, err error)
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 ¶
func (c *FakeNetworkPolicyRecommendations) Update(ctx context.Context, networkPolicyRecommendation *v1alpha1.NetworkPolicyRecommendation, opts v1.UpdateOptions) (result *v1alpha1.NetworkPolicyRecommendation, err error)
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 ¶
func (c *FakeNetworkPolicyRecommendations) UpdateStatus(ctx context.Context, networkPolicyRecommendation *v1alpha1.NetworkPolicyRecommendation, opts v1.UpdateOptions) (*v1alpha1.NetworkPolicyRecommendation, error)
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 ¶
func (c *FakeNetworkPolicyRecommendations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
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
func (c *FakeThroughputAnomalyDetectors) Create(ctx context.Context, throughputAnomalyDetector *v1alpha1.ThroughputAnomalyDetector, opts v1.CreateOptions) (result *v1alpha1.ThroughputAnomalyDetector, err error)
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
func (c *FakeThroughputAnomalyDetectors) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
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
func (c *FakeThroughputAnomalyDetectors) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ThroughputAnomalyDetector, err error)
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
func (c *FakeThroughputAnomalyDetectors) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ThroughputAnomalyDetectorList, err error)
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
func (c *FakeThroughputAnomalyDetectors) Update(ctx context.Context, throughputAnomalyDetector *v1alpha1.ThroughputAnomalyDetector, opts v1.UpdateOptions) (result *v1alpha1.ThroughputAnomalyDetector, err error)
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
func (c *FakeThroughputAnomalyDetectors) UpdateStatus(ctx context.Context, throughputAnomalyDetector *v1alpha1.ThroughputAnomalyDetector, opts v1.UpdateOptions) (*v1alpha1.ThroughputAnomalyDetector, error)
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
func (c *FakeThroughputAnomalyDetectors) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested throughputAnomalyDetectors.