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