Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeClusterPodMonitorings
- func (c *FakeClusterPodMonitorings) Create(ctx context.Context, clusterPodMonitoring *monitoringv1.ClusterPodMonitoring, ...) (result *monitoringv1.ClusterPodMonitoring, err error)
- func (c *FakeClusterPodMonitorings) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeClusterPodMonitorings) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeClusterPodMonitorings) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitoringv1.ClusterPodMonitoring, err error)
- func (c *FakeClusterPodMonitorings) List(ctx context.Context, opts v1.ListOptions) (result *monitoringv1.ClusterPodMonitoringList, err error)
- func (c *FakeClusterPodMonitorings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *monitoringv1.ClusterPodMonitoring, err error)
- func (c *FakeClusterPodMonitorings) Update(ctx context.Context, clusterPodMonitoring *monitoringv1.ClusterPodMonitoring, ...) (result *monitoringv1.ClusterPodMonitoring, err error)
- func (c *FakeClusterPodMonitorings) UpdateStatus(ctx context.Context, clusterPodMonitoring *monitoringv1.ClusterPodMonitoring, ...) (*monitoringv1.ClusterPodMonitoring, error)
- func (c *FakeClusterPodMonitorings) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeClusterRules
- func (c *FakeClusterRules) Create(ctx context.Context, clusterRules *monitoringv1.ClusterRules, ...) (result *monitoringv1.ClusterRules, err error)
- func (c *FakeClusterRules) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeClusterRules) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeClusterRules) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitoringv1.ClusterRules, err error)
- func (c *FakeClusterRules) List(ctx context.Context, opts v1.ListOptions) (result *monitoringv1.ClusterRulesList, err error)
- func (c *FakeClusterRules) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *monitoringv1.ClusterRules, err error)
- func (c *FakeClusterRules) Update(ctx context.Context, clusterRules *monitoringv1.ClusterRules, ...) (result *monitoringv1.ClusterRules, err error)
- func (c *FakeClusterRules) UpdateStatus(ctx context.Context, clusterRules *monitoringv1.ClusterRules, ...) (*monitoringv1.ClusterRules, error)
- func (c *FakeClusterRules) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeGlobalRules
- func (c *FakeGlobalRules) Create(ctx context.Context, globalRules *monitoringv1.GlobalRules, ...) (result *monitoringv1.GlobalRules, err error)
- func (c *FakeGlobalRules) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeGlobalRules) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeGlobalRules) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitoringv1.GlobalRules, err error)
- func (c *FakeGlobalRules) List(ctx context.Context, opts v1.ListOptions) (result *monitoringv1.GlobalRulesList, err error)
- func (c *FakeGlobalRules) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *monitoringv1.GlobalRules, err error)
- func (c *FakeGlobalRules) Update(ctx context.Context, globalRules *monitoringv1.GlobalRules, ...) (result *monitoringv1.GlobalRules, err error)
- func (c *FakeGlobalRules) UpdateStatus(ctx context.Context, globalRules *monitoringv1.GlobalRules, ...) (*monitoringv1.GlobalRules, error)
- func (c *FakeGlobalRules) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeMonitoringV1
- func (c *FakeMonitoringV1) ClusterPodMonitorings() v1.ClusterPodMonitoringInterface
- func (c *FakeMonitoringV1) ClusterRules() v1.ClusterRulesInterface
- func (c *FakeMonitoringV1) GlobalRules() v1.GlobalRulesInterface
- func (c *FakeMonitoringV1) OperatorConfigs(namespace string) v1.OperatorConfigInterface
- func (c *FakeMonitoringV1) PodMonitorings(namespace string) v1.PodMonitoringInterface
- func (c *FakeMonitoringV1) RESTClient() rest.Interface
- func (c *FakeMonitoringV1) Rules(namespace string) v1.RulesInterface
- type FakeOperatorConfigs
- func (c *FakeOperatorConfigs) Create(ctx context.Context, operatorConfig *monitoringv1.OperatorConfig, ...) (result *monitoringv1.OperatorConfig, err error)
- func (c *FakeOperatorConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeOperatorConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeOperatorConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitoringv1.OperatorConfig, err error)
- func (c *FakeOperatorConfigs) List(ctx context.Context, opts v1.ListOptions) (result *monitoringv1.OperatorConfigList, err error)
- func (c *FakeOperatorConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *monitoringv1.OperatorConfig, err error)
- func (c *FakeOperatorConfigs) Update(ctx context.Context, operatorConfig *monitoringv1.OperatorConfig, ...) (result *monitoringv1.OperatorConfig, err error)
- func (c *FakeOperatorConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakePodMonitorings
- func (c *FakePodMonitorings) Create(ctx context.Context, podMonitoring *monitoringv1.PodMonitoring, ...) (result *monitoringv1.PodMonitoring, err error)
- func (c *FakePodMonitorings) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePodMonitorings) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePodMonitorings) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitoringv1.PodMonitoring, err error)
- func (c *FakePodMonitorings) List(ctx context.Context, opts v1.ListOptions) (result *monitoringv1.PodMonitoringList, err error)
- func (c *FakePodMonitorings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *monitoringv1.PodMonitoring, err error)
- func (c *FakePodMonitorings) Update(ctx context.Context, podMonitoring *monitoringv1.PodMonitoring, ...) (result *monitoringv1.PodMonitoring, err error)
- func (c *FakePodMonitorings) UpdateStatus(ctx context.Context, podMonitoring *monitoringv1.PodMonitoring, ...) (*monitoringv1.PodMonitoring, error)
- func (c *FakePodMonitorings) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeRules
- func (c *FakeRules) Create(ctx context.Context, rules *monitoringv1.Rules, opts v1.CreateOptions) (result *monitoringv1.Rules, err error)
- func (c *FakeRules) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeRules) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeRules) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitoringv1.Rules, err error)
- func (c *FakeRules) List(ctx context.Context, opts v1.ListOptions) (result *monitoringv1.RulesList, err error)
- func (c *FakeRules) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *monitoringv1.Rules, err error)
- func (c *FakeRules) Update(ctx context.Context, rules *monitoringv1.Rules, opts v1.UpdateOptions) (result *monitoringv1.Rules, err error)
- func (c *FakeRules) UpdateStatus(ctx context.Context, rules *monitoringv1.Rules, opts v1.UpdateOptions) (*monitoringv1.Rules, error)
- func (c *FakeRules) 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 FakeClusterPodMonitorings ¶
type FakeClusterPodMonitorings struct {
Fake *FakeMonitoringV1
}
FakeClusterPodMonitorings implements ClusterPodMonitoringInterface
func (*FakeClusterPodMonitorings) Create ¶
func (c *FakeClusterPodMonitorings) Create(ctx context.Context, clusterPodMonitoring *monitoringv1.ClusterPodMonitoring, opts v1.CreateOptions) (result *monitoringv1.ClusterPodMonitoring, err error)
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 ¶
func (c *FakeClusterPodMonitorings) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
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 ¶
func (c *FakeClusterPodMonitorings) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitoringv1.ClusterPodMonitoring, err error)
Get takes name of the clusterPodMonitoring, and returns the corresponding clusterPodMonitoring object, and an error if there is any.
func (*FakeClusterPodMonitorings) List ¶
func (c *FakeClusterPodMonitorings) List(ctx context.Context, opts v1.ListOptions) (result *monitoringv1.ClusterPodMonitoringList, err error)
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 ¶
func (c *FakeClusterPodMonitorings) Update(ctx context.Context, clusterPodMonitoring *monitoringv1.ClusterPodMonitoring, opts v1.UpdateOptions) (result *monitoringv1.ClusterPodMonitoring, err error)
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 ¶
func (c *FakeClusterPodMonitorings) UpdateStatus(ctx context.Context, clusterPodMonitoring *monitoringv1.ClusterPodMonitoring, opts v1.UpdateOptions) (*monitoringv1.ClusterPodMonitoring, error)
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 ¶
func (c *FakeClusterPodMonitorings) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
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 ¶
func (c *FakeClusterRules) List(ctx context.Context, opts v1.ListOptions) (result *monitoringv1.ClusterRulesList, err error)
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 ¶
func (c *FakeClusterRules) UpdateStatus(ctx context.Context, clusterRules *monitoringv1.ClusterRules, opts v1.UpdateOptions) (*monitoringv1.ClusterRules, error)
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 ¶
func (c *FakeClusterRules) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
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 ¶
func (c *FakeGlobalRules) UpdateStatus(ctx context.Context, globalRules *monitoringv1.GlobalRules, opts v1.UpdateOptions) (*monitoringv1.GlobalRules, error)
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 ¶
func (c *FakeGlobalRules) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested globalRules.
type FakeMonitoringV1 ¶
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 ¶
func (c *FakeOperatorConfigs) List(ctx context.Context, opts v1.ListOptions) (result *monitoringv1.OperatorConfigList, err error)
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 ¶
func (c *FakeOperatorConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
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 ¶
func (c *FakePodMonitorings) List(ctx context.Context, opts v1.ListOptions) (result *monitoringv1.PodMonitoringList, err error)
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 ¶
func (c *FakePodMonitorings) UpdateStatus(ctx context.Context, podMonitoring *monitoringv1.PodMonitoring, opts v1.UpdateOptions) (*monitoringv1.PodMonitoring, error)
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 ¶
func (c *FakePodMonitorings) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
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 ¶
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().