fake

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 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 FakeClusterPodMonitorings

type FakeClusterPodMonitorings struct {
	Fake *FakeMonitoringV1
}

FakeClusterPodMonitorings implements ClusterPodMonitoringInterface

func (*FakeClusterPodMonitorings) Create

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

func (*FakeClusterPodMonitorings) Delete

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

func (*FakeClusterPodMonitorings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterPodMonitorings) Get

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

func (*FakeClusterPodMonitorings) List

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

func (*FakeClusterPodMonitorings) Patch

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

Patch applies the patch and returns the patched clusterPodMonitoring.

func (*FakeClusterPodMonitorings) Update

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

func (*FakeClusterPodMonitorings) UpdateStatus

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

func (*FakeClusterPodMonitorings) Watch

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

type FakeClusterRules

type FakeClusterRules struct {
	Fake *FakeMonitoringV1
}

FakeClusterRules implements ClusterRulesInterface

func (*FakeClusterRules) Create

func (c *FakeClusterRules) Create(ctx context.Context, clusterRules *monitoringv1.ClusterRules, opts v1.CreateOptions) (result *monitoringv1.ClusterRules, err error)

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

func (*FakeClusterRules) Delete

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

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

func (*FakeClusterRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterRules) Get

func (c *FakeClusterRules) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitoringv1.ClusterRules, err error)

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

func (*FakeClusterRules) List

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

func (*FakeClusterRules) Patch

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

Patch applies the patch and returns the patched clusterRules.

func (*FakeClusterRules) Update

func (c *FakeClusterRules) Update(ctx context.Context, clusterRules *monitoringv1.ClusterRules, opts v1.UpdateOptions) (result *monitoringv1.ClusterRules, err error)

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

func (*FakeClusterRules) UpdateStatus

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

func (*FakeClusterRules) Watch

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

type FakeGlobalRules

type FakeGlobalRules struct {
	Fake *FakeMonitoringV1
}

FakeGlobalRules implements GlobalRulesInterface

func (*FakeGlobalRules) Create

func (c *FakeGlobalRules) Create(ctx context.Context, globalRules *monitoringv1.GlobalRules, opts v1.CreateOptions) (result *monitoringv1.GlobalRules, err error)

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

func (*FakeGlobalRules) Delete

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

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

func (*FakeGlobalRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGlobalRules) Get

func (c *FakeGlobalRules) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitoringv1.GlobalRules, err error)

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

func (*FakeGlobalRules) List

func (c *FakeGlobalRules) List(ctx context.Context, opts v1.ListOptions) (result *monitoringv1.GlobalRulesList, err error)

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

func (*FakeGlobalRules) Patch

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

Patch applies the patch and returns the patched globalRules.

func (*FakeGlobalRules) Update

func (c *FakeGlobalRules) Update(ctx context.Context, globalRules *monitoringv1.GlobalRules, opts v1.UpdateOptions) (result *monitoringv1.GlobalRules, err error)

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

func (*FakeGlobalRules) UpdateStatus

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

func (*FakeGlobalRules) Watch

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

type FakeMonitoringV1

type FakeMonitoringV1 struct {
	*testing.Fake
}

func (*FakeMonitoringV1) ClusterPodMonitorings

func (c *FakeMonitoringV1) ClusterPodMonitorings() v1.ClusterPodMonitoringInterface

func (*FakeMonitoringV1) ClusterRules

func (c *FakeMonitoringV1) ClusterRules() v1.ClusterRulesInterface

func (*FakeMonitoringV1) GlobalRules

func (c *FakeMonitoringV1) GlobalRules() v1.GlobalRulesInterface

func (*FakeMonitoringV1) OperatorConfigs

func (c *FakeMonitoringV1) OperatorConfigs(namespace string) v1.OperatorConfigInterface

func (*FakeMonitoringV1) PodMonitorings

func (c *FakeMonitoringV1) PodMonitorings(namespace string) v1.PodMonitoringInterface

func (*FakeMonitoringV1) RESTClient

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

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

func (*FakeMonitoringV1) Rules

func (c *FakeMonitoringV1) Rules(namespace string) v1.RulesInterface

type FakeOperatorConfigs

type FakeOperatorConfigs struct {
	Fake *FakeMonitoringV1
	// contains filtered or unexported fields
}

FakeOperatorConfigs implements OperatorConfigInterface

func (*FakeOperatorConfigs) Create

func (c *FakeOperatorConfigs) Create(ctx context.Context, operatorConfig *monitoringv1.OperatorConfig, opts v1.CreateOptions) (result *monitoringv1.OperatorConfig, err error)

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

func (*FakeOperatorConfigs) Delete

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

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

func (*FakeOperatorConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeOperatorConfigs) Get

func (c *FakeOperatorConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitoringv1.OperatorConfig, err error)

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

func (*FakeOperatorConfigs) List

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

func (*FakeOperatorConfigs) Patch

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

Patch applies the patch and returns the patched operatorConfig.

func (*FakeOperatorConfigs) Update

func (c *FakeOperatorConfigs) Update(ctx context.Context, operatorConfig *monitoringv1.OperatorConfig, opts v1.UpdateOptions) (result *monitoringv1.OperatorConfig, err error)

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

func (*FakeOperatorConfigs) Watch

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

type FakePodMonitorings

type FakePodMonitorings struct {
	Fake *FakeMonitoringV1
	// contains filtered or unexported fields
}

FakePodMonitorings implements PodMonitoringInterface

func (*FakePodMonitorings) Create

func (c *FakePodMonitorings) Create(ctx context.Context, podMonitoring *monitoringv1.PodMonitoring, opts v1.CreateOptions) (result *monitoringv1.PodMonitoring, err error)

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

func (*FakePodMonitorings) Delete

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

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

func (*FakePodMonitorings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePodMonitorings) Get

func (c *FakePodMonitorings) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitoringv1.PodMonitoring, err error)

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

func (*FakePodMonitorings) List

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

func (*FakePodMonitorings) Patch

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

Patch applies the patch and returns the patched podMonitoring.

func (*FakePodMonitorings) Update

func (c *FakePodMonitorings) Update(ctx context.Context, podMonitoring *monitoringv1.PodMonitoring, opts v1.UpdateOptions) (result *monitoringv1.PodMonitoring, err error)

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

func (*FakePodMonitorings) UpdateStatus

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

func (*FakePodMonitorings) Watch

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

type FakeRules

type FakeRules struct {
	Fake *FakeMonitoringV1
	// contains filtered or unexported fields
}

FakeRules implements RulesInterface

func (*FakeRules) Create

func (c *FakeRules) Create(ctx context.Context, rules *monitoringv1.Rules, opts v1.CreateOptions) (result *monitoringv1.Rules, err error)

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

func (*FakeRules) Delete

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

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

func (*FakeRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRules) Get

func (c *FakeRules) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitoringv1.Rules, err error)

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

func (*FakeRules) List

func (c *FakeRules) List(ctx context.Context, opts v1.ListOptions) (result *monitoringv1.RulesList, err error)

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

func (*FakeRules) Patch

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

Patch applies the patch and returns the patched rules.

func (*FakeRules) Update

func (c *FakeRules) Update(ctx context.Context, rules *monitoringv1.Rules, opts v1.UpdateOptions) (result *monitoringv1.Rules, err error)

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

func (*FakeRules) UpdateStatus

func (c *FakeRules) UpdateStatus(ctx context.Context, rules *monitoringv1.Rules, opts v1.UpdateOptions) (*monitoringv1.Rules, error)

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

func (*FakeRules) Watch

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

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

Jump to

Keyboard shortcuts

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