Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeAlertingV2beta1
- func (c *FakeAlertingV2beta1) ClusterRuleGroups() v2beta1.ClusterRuleGroupInterface
- func (c *FakeAlertingV2beta1) GlobalRuleGroups() v2beta1.GlobalRuleGroupInterface
- func (c *FakeAlertingV2beta1) RESTClient() rest.Interface
- func (c *FakeAlertingV2beta1) RuleGroups(namespace string) v2beta1.RuleGroupInterface
- type FakeClusterRuleGroups
- func (c *FakeClusterRuleGroups) Create(ctx context.Context, clusterRuleGroup *v2beta1.ClusterRuleGroup, ...) (result *v2beta1.ClusterRuleGroup, err error)
- func (c *FakeClusterRuleGroups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeClusterRuleGroups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeClusterRuleGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.ClusterRuleGroup, err error)
- func (c *FakeClusterRuleGroups) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.ClusterRuleGroupList, err error)
- func (c *FakeClusterRuleGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v2beta1.ClusterRuleGroup, err error)
- func (c *FakeClusterRuleGroups) Update(ctx context.Context, clusterRuleGroup *v2beta1.ClusterRuleGroup, ...) (result *v2beta1.ClusterRuleGroup, err error)
- func (c *FakeClusterRuleGroups) UpdateStatus(ctx context.Context, clusterRuleGroup *v2beta1.ClusterRuleGroup, ...) (*v2beta1.ClusterRuleGroup, error)
- func (c *FakeClusterRuleGroups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeGlobalRuleGroups
- func (c *FakeGlobalRuleGroups) Create(ctx context.Context, globalRuleGroup *v2beta1.GlobalRuleGroup, ...) (result *v2beta1.GlobalRuleGroup, err error)
- func (c *FakeGlobalRuleGroups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeGlobalRuleGroups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeGlobalRuleGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.GlobalRuleGroup, err error)
- func (c *FakeGlobalRuleGroups) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.GlobalRuleGroupList, err error)
- func (c *FakeGlobalRuleGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v2beta1.GlobalRuleGroup, err error)
- func (c *FakeGlobalRuleGroups) Update(ctx context.Context, globalRuleGroup *v2beta1.GlobalRuleGroup, ...) (result *v2beta1.GlobalRuleGroup, err error)
- func (c *FakeGlobalRuleGroups) UpdateStatus(ctx context.Context, globalRuleGroup *v2beta1.GlobalRuleGroup, ...) (*v2beta1.GlobalRuleGroup, error)
- func (c *FakeGlobalRuleGroups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeRuleGroups
- func (c *FakeRuleGroups) Create(ctx context.Context, ruleGroup *v2beta1.RuleGroup, opts v1.CreateOptions) (result *v2beta1.RuleGroup, err error)
- func (c *FakeRuleGroups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeRuleGroups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeRuleGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.RuleGroup, err error)
- func (c *FakeRuleGroups) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.RuleGroupList, err error)
- func (c *FakeRuleGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v2beta1.RuleGroup, err error)
- func (c *FakeRuleGroups) Update(ctx context.Context, ruleGroup *v2beta1.RuleGroup, opts v1.UpdateOptions) (result *v2beta1.RuleGroup, err error)
- func (c *FakeRuleGroups) UpdateStatus(ctx context.Context, ruleGroup *v2beta1.RuleGroup, opts v1.UpdateOptions) (*v2beta1.RuleGroup, error)
- func (c *FakeRuleGroups) 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 FakeAlertingV2beta1 ¶
func (*FakeAlertingV2beta1) ClusterRuleGroups ¶
func (c *FakeAlertingV2beta1) ClusterRuleGroups() v2beta1.ClusterRuleGroupInterface
func (*FakeAlertingV2beta1) GlobalRuleGroups ¶
func (c *FakeAlertingV2beta1) GlobalRuleGroups() v2beta1.GlobalRuleGroupInterface
func (*FakeAlertingV2beta1) RESTClient ¶
func (c *FakeAlertingV2beta1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeAlertingV2beta1) RuleGroups ¶
func (c *FakeAlertingV2beta1) RuleGroups(namespace string) v2beta1.RuleGroupInterface
type FakeClusterRuleGroups ¶
type FakeClusterRuleGroups struct {
Fake *FakeAlertingV2beta1
}
FakeClusterRuleGroups implements ClusterRuleGroupInterface
func (*FakeClusterRuleGroups) Create ¶
func (c *FakeClusterRuleGroups) Create(ctx context.Context, clusterRuleGroup *v2beta1.ClusterRuleGroup, opts v1.CreateOptions) (result *v2beta1.ClusterRuleGroup, err error)
Create takes the representation of a clusterRuleGroup and creates it. Returns the server's representation of the clusterRuleGroup, and an error, if there is any.
func (*FakeClusterRuleGroups) Delete ¶
func (c *FakeClusterRuleGroups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the clusterRuleGroup and deletes it. Returns an error if one occurs.
func (*FakeClusterRuleGroups) DeleteCollection ¶
func (c *FakeClusterRuleGroups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeClusterRuleGroups) Get ¶
func (c *FakeClusterRuleGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.ClusterRuleGroup, err error)
Get takes name of the clusterRuleGroup, and returns the corresponding clusterRuleGroup object, and an error if there is any.
func (*FakeClusterRuleGroups) List ¶
func (c *FakeClusterRuleGroups) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.ClusterRuleGroupList, err error)
List takes label and field selectors, and returns the list of ClusterRuleGroups that match those selectors.
func (*FakeClusterRuleGroups) Patch ¶
func (c *FakeClusterRuleGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta1.ClusterRuleGroup, err error)
Patch applies the patch and returns the patched clusterRuleGroup.
func (*FakeClusterRuleGroups) Update ¶
func (c *FakeClusterRuleGroups) Update(ctx context.Context, clusterRuleGroup *v2beta1.ClusterRuleGroup, opts v1.UpdateOptions) (result *v2beta1.ClusterRuleGroup, err error)
Update takes the representation of a clusterRuleGroup and updates it. Returns the server's representation of the clusterRuleGroup, and an error, if there is any.
func (*FakeClusterRuleGroups) UpdateStatus ¶
func (c *FakeClusterRuleGroups) UpdateStatus(ctx context.Context, clusterRuleGroup *v2beta1.ClusterRuleGroup, opts v1.UpdateOptions) (*v2beta1.ClusterRuleGroup, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeClusterRuleGroups) Watch ¶
func (c *FakeClusterRuleGroups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusterRuleGroups.
type FakeGlobalRuleGroups ¶
type FakeGlobalRuleGroups struct {
Fake *FakeAlertingV2beta1
}
FakeGlobalRuleGroups implements GlobalRuleGroupInterface
func (*FakeGlobalRuleGroups) Create ¶
func (c *FakeGlobalRuleGroups) Create(ctx context.Context, globalRuleGroup *v2beta1.GlobalRuleGroup, opts v1.CreateOptions) (result *v2beta1.GlobalRuleGroup, err error)
Create takes the representation of a globalRuleGroup and creates it. Returns the server's representation of the globalRuleGroup, and an error, if there is any.
func (*FakeGlobalRuleGroups) Delete ¶
func (c *FakeGlobalRuleGroups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the globalRuleGroup and deletes it. Returns an error if one occurs.
func (*FakeGlobalRuleGroups) DeleteCollection ¶
func (c *FakeGlobalRuleGroups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeGlobalRuleGroups) Get ¶
func (c *FakeGlobalRuleGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.GlobalRuleGroup, err error)
Get takes name of the globalRuleGroup, and returns the corresponding globalRuleGroup object, and an error if there is any.
func (*FakeGlobalRuleGroups) List ¶
func (c *FakeGlobalRuleGroups) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.GlobalRuleGroupList, err error)
List takes label and field selectors, and returns the list of GlobalRuleGroups that match those selectors.
func (*FakeGlobalRuleGroups) Patch ¶
func (c *FakeGlobalRuleGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta1.GlobalRuleGroup, err error)
Patch applies the patch and returns the patched globalRuleGroup.
func (*FakeGlobalRuleGroups) Update ¶
func (c *FakeGlobalRuleGroups) Update(ctx context.Context, globalRuleGroup *v2beta1.GlobalRuleGroup, opts v1.UpdateOptions) (result *v2beta1.GlobalRuleGroup, err error)
Update takes the representation of a globalRuleGroup and updates it. Returns the server's representation of the globalRuleGroup, and an error, if there is any.
func (*FakeGlobalRuleGroups) UpdateStatus ¶
func (c *FakeGlobalRuleGroups) UpdateStatus(ctx context.Context, globalRuleGroup *v2beta1.GlobalRuleGroup, opts v1.UpdateOptions) (*v2beta1.GlobalRuleGroup, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeGlobalRuleGroups) Watch ¶
func (c *FakeGlobalRuleGroups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested globalRuleGroups.
type FakeRuleGroups ¶
type FakeRuleGroups struct { Fake *FakeAlertingV2beta1 // contains filtered or unexported fields }
FakeRuleGroups implements RuleGroupInterface
func (*FakeRuleGroups) Create ¶
func (c *FakeRuleGroups) Create(ctx context.Context, ruleGroup *v2beta1.RuleGroup, opts v1.CreateOptions) (result *v2beta1.RuleGroup, err error)
Create takes the representation of a ruleGroup and creates it. Returns the server's representation of the ruleGroup, and an error, if there is any.
func (*FakeRuleGroups) Delete ¶
func (c *FakeRuleGroups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the ruleGroup and deletes it. Returns an error if one occurs.
func (*FakeRuleGroups) DeleteCollection ¶
func (c *FakeRuleGroups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeRuleGroups) Get ¶
func (c *FakeRuleGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.RuleGroup, err error)
Get takes name of the ruleGroup, and returns the corresponding ruleGroup object, and an error if there is any.
func (*FakeRuleGroups) List ¶
func (c *FakeRuleGroups) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.RuleGroupList, err error)
List takes label and field selectors, and returns the list of RuleGroups that match those selectors.
func (*FakeRuleGroups) Patch ¶
func (c *FakeRuleGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2beta1.RuleGroup, err error)
Patch applies the patch and returns the patched ruleGroup.
func (*FakeRuleGroups) Update ¶
func (c *FakeRuleGroups) Update(ctx context.Context, ruleGroup *v2beta1.RuleGroup, opts v1.UpdateOptions) (result *v2beta1.RuleGroup, err error)
Update takes the representation of a ruleGroup and updates it. Returns the server's representation of the ruleGroup, and an error, if there is any.
func (*FakeRuleGroups) UpdateStatus ¶
func (c *FakeRuleGroups) UpdateStatus(ctx context.Context, ruleGroup *v2beta1.RuleGroup, opts v1.UpdateOptions) (*v2beta1.RuleGroup, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeRuleGroups) Watch ¶
func (c *FakeRuleGroups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested ruleGroups.