Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeAlertmanagerConfigs
- func (c *FakeAlertmanagerConfigs) Apply(ctx context.Context, ...) (result *v1alpha1.AlertmanagerConfig, err error)
- func (c *FakeAlertmanagerConfigs) Create(ctx context.Context, alertmanagerConfig *v1alpha1.AlertmanagerConfig, ...) (result *v1alpha1.AlertmanagerConfig, err error)
- func (c *FakeAlertmanagerConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeAlertmanagerConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeAlertmanagerConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.AlertmanagerConfig, err error)
- func (c *FakeAlertmanagerConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.AlertmanagerConfigList, err error)
- func (c *FakeAlertmanagerConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.AlertmanagerConfig, err error)
- func (c *FakeAlertmanagerConfigs) Update(ctx context.Context, alertmanagerConfig *v1alpha1.AlertmanagerConfig, ...) (result *v1alpha1.AlertmanagerConfig, err error)
- func (c *FakeAlertmanagerConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeMonitoringV1alpha1
- func (c *FakeMonitoringV1alpha1) AlertmanagerConfigs(namespace string) v1alpha1.AlertmanagerConfigInterface
- func (c *FakeMonitoringV1alpha1) PrometheusAgents(namespace string) v1alpha1.PrometheusAgentInterface
- func (c *FakeMonitoringV1alpha1) RESTClient() rest.Interface
- func (c *FakeMonitoringV1alpha1) ScrapeConfigs(namespace string) v1alpha1.ScrapeConfigInterface
- type FakePrometheusAgents
- func (c *FakePrometheusAgents) Apply(ctx context.Context, ...) (result *v1alpha1.PrometheusAgent, err error)
- func (c *FakePrometheusAgents) ApplyStatus(ctx context.Context, ...) (result *v1alpha1.PrometheusAgent, err error)
- func (c *FakePrometheusAgents) Create(ctx context.Context, prometheusAgent *v1alpha1.PrometheusAgent, ...) (result *v1alpha1.PrometheusAgent, err error)
- func (c *FakePrometheusAgents) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePrometheusAgents) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePrometheusAgents) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PrometheusAgent, err error)
- func (c *FakePrometheusAgents) GetScale(ctx context.Context, prometheusAgentName string, options v1.GetOptions) (result *autoscalingv1.Scale, err error)
- func (c *FakePrometheusAgents) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PrometheusAgentList, err error)
- func (c *FakePrometheusAgents) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.PrometheusAgent, err error)
- func (c *FakePrometheusAgents) Update(ctx context.Context, prometheusAgent *v1alpha1.PrometheusAgent, ...) (result *v1alpha1.PrometheusAgent, err error)
- func (c *FakePrometheusAgents) UpdateScale(ctx context.Context, prometheusAgentName string, scale *autoscalingv1.Scale, ...) (result *autoscalingv1.Scale, err error)
- func (c *FakePrometheusAgents) UpdateStatus(ctx context.Context, prometheusAgent *v1alpha1.PrometheusAgent, ...) (*v1alpha1.PrometheusAgent, error)
- func (c *FakePrometheusAgents) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeScrapeConfigs
- func (c *FakeScrapeConfigs) Apply(ctx context.Context, ...) (result *v1alpha1.ScrapeConfig, err error)
- func (c *FakeScrapeConfigs) Create(ctx context.Context, scrapeConfig *v1alpha1.ScrapeConfig, ...) (result *v1alpha1.ScrapeConfig, err error)
- func (c *FakeScrapeConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeScrapeConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeScrapeConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ScrapeConfig, err error)
- func (c *FakeScrapeConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ScrapeConfigList, err error)
- func (c *FakeScrapeConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.ScrapeConfig, err error)
- func (c *FakeScrapeConfigs) Update(ctx context.Context, scrapeConfig *v1alpha1.ScrapeConfig, ...) (result *v1alpha1.ScrapeConfig, err error)
- func (c *FakeScrapeConfigs) 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 FakeAlertmanagerConfigs ¶
type FakeAlertmanagerConfigs struct { Fake *FakeMonitoringV1alpha1 // contains filtered or unexported fields }
FakeAlertmanagerConfigs implements AlertmanagerConfigInterface
func (*FakeAlertmanagerConfigs) Apply ¶ added in v0.62.0
func (c *FakeAlertmanagerConfigs) Apply(ctx context.Context, alertmanagerConfig *monitoringv1alpha1.AlertmanagerConfigApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.AlertmanagerConfig, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied alertmanagerConfig.
func (*FakeAlertmanagerConfigs) Create ¶
func (c *FakeAlertmanagerConfigs) Create(ctx context.Context, alertmanagerConfig *v1alpha1.AlertmanagerConfig, opts v1.CreateOptions) (result *v1alpha1.AlertmanagerConfig, err error)
Create takes the representation of a alertmanagerConfig and creates it. Returns the server's representation of the alertmanagerConfig, and an error, if there is any.
func (*FakeAlertmanagerConfigs) Delete ¶
func (c *FakeAlertmanagerConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the alertmanagerConfig and deletes it. Returns an error if one occurs.
func (*FakeAlertmanagerConfigs) DeleteCollection ¶
func (c *FakeAlertmanagerConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeAlertmanagerConfigs) Get ¶
func (c *FakeAlertmanagerConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.AlertmanagerConfig, err error)
Get takes name of the alertmanagerConfig, and returns the corresponding alertmanagerConfig object, and an error if there is any.
func (*FakeAlertmanagerConfigs) List ¶
func (c *FakeAlertmanagerConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.AlertmanagerConfigList, err error)
List takes label and field selectors, and returns the list of AlertmanagerConfigs that match those selectors.
func (*FakeAlertmanagerConfigs) Patch ¶
func (c *FakeAlertmanagerConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.AlertmanagerConfig, err error)
Patch applies the patch and returns the patched alertmanagerConfig.
func (*FakeAlertmanagerConfigs) Update ¶
func (c *FakeAlertmanagerConfigs) Update(ctx context.Context, alertmanagerConfig *v1alpha1.AlertmanagerConfig, opts v1.UpdateOptions) (result *v1alpha1.AlertmanagerConfig, err error)
Update takes the representation of a alertmanagerConfig and updates it. Returns the server's representation of the alertmanagerConfig, and an error, if there is any.
func (*FakeAlertmanagerConfigs) Watch ¶
func (c *FakeAlertmanagerConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested alertmanagerConfigs.
type FakeMonitoringV1alpha1 ¶
func (*FakeMonitoringV1alpha1) AlertmanagerConfigs ¶
func (c *FakeMonitoringV1alpha1) AlertmanagerConfigs(namespace string) v1alpha1.AlertmanagerConfigInterface
func (*FakeMonitoringV1alpha1) PrometheusAgents ¶ added in v0.64.0
func (c *FakeMonitoringV1alpha1) PrometheusAgents(namespace string) v1alpha1.PrometheusAgentInterface
func (*FakeMonitoringV1alpha1) RESTClient ¶
func (c *FakeMonitoringV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeMonitoringV1alpha1) ScrapeConfigs ¶ added in v0.65.0
func (c *FakeMonitoringV1alpha1) ScrapeConfigs(namespace string) v1alpha1.ScrapeConfigInterface
type FakePrometheusAgents ¶ added in v0.64.0
type FakePrometheusAgents struct { Fake *FakeMonitoringV1alpha1 // contains filtered or unexported fields }
FakePrometheusAgents implements PrometheusAgentInterface
func (*FakePrometheusAgents) Apply ¶ added in v0.64.0
func (c *FakePrometheusAgents) Apply(ctx context.Context, prometheusAgent *monitoringv1alpha1.PrometheusAgentApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.PrometheusAgent, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied prometheusAgent.
func (*FakePrometheusAgents) ApplyStatus ¶ added in v0.64.0
func (c *FakePrometheusAgents) ApplyStatus(ctx context.Context, prometheusAgent *monitoringv1alpha1.PrometheusAgentApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.PrometheusAgent, err error)
ApplyStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
func (*FakePrometheusAgents) Create ¶ added in v0.64.0
func (c *FakePrometheusAgents) Create(ctx context.Context, prometheusAgent *v1alpha1.PrometheusAgent, opts v1.CreateOptions) (result *v1alpha1.PrometheusAgent, err error)
Create takes the representation of a prometheusAgent and creates it. Returns the server's representation of the prometheusAgent, and an error, if there is any.
func (*FakePrometheusAgents) Delete ¶ added in v0.64.0
func (c *FakePrometheusAgents) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the prometheusAgent and deletes it. Returns an error if one occurs.
func (*FakePrometheusAgents) DeleteCollection ¶ added in v0.64.0
func (c *FakePrometheusAgents) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePrometheusAgents) Get ¶ added in v0.64.0
func (c *FakePrometheusAgents) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PrometheusAgent, err error)
Get takes name of the prometheusAgent, and returns the corresponding prometheusAgent object, and an error if there is any.
func (*FakePrometheusAgents) GetScale ¶ added in v0.71.0
func (c *FakePrometheusAgents) GetScale(ctx context.Context, prometheusAgentName string, options v1.GetOptions) (result *autoscalingv1.Scale, err error)
GetScale takes name of the prometheusAgent, and returns the corresponding scale object, and an error if there is any.
func (*FakePrometheusAgents) List ¶ added in v0.64.0
func (c *FakePrometheusAgents) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PrometheusAgentList, err error)
List takes label and field selectors, and returns the list of PrometheusAgents that match those selectors.
func (*FakePrometheusAgents) Patch ¶ added in v0.64.0
func (c *FakePrometheusAgents) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PrometheusAgent, err error)
Patch applies the patch and returns the patched prometheusAgent.
func (*FakePrometheusAgents) Update ¶ added in v0.64.0
func (c *FakePrometheusAgents) Update(ctx context.Context, prometheusAgent *v1alpha1.PrometheusAgent, opts v1.UpdateOptions) (result *v1alpha1.PrometheusAgent, err error)
Update takes the representation of a prometheusAgent and updates it. Returns the server's representation of the prometheusAgent, and an error, if there is any.
func (*FakePrometheusAgents) UpdateScale ¶ added in v0.71.0
func (c *FakePrometheusAgents) UpdateScale(ctx context.Context, prometheusAgentName string, scale *autoscalingv1.Scale, opts v1.UpdateOptions) (result *autoscalingv1.Scale, err error)
UpdateScale takes the representation of a scale and updates it. Returns the server's representation of the scale, and an error, if there is any.
func (*FakePrometheusAgents) UpdateStatus ¶ added in v0.64.0
func (c *FakePrometheusAgents) UpdateStatus(ctx context.Context, prometheusAgent *v1alpha1.PrometheusAgent, opts v1.UpdateOptions) (*v1alpha1.PrometheusAgent, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakePrometheusAgents) Watch ¶ added in v0.64.0
func (c *FakePrometheusAgents) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested prometheusAgents.
type FakeScrapeConfigs ¶ added in v0.65.0
type FakeScrapeConfigs struct { Fake *FakeMonitoringV1alpha1 // contains filtered or unexported fields }
FakeScrapeConfigs implements ScrapeConfigInterface
func (*FakeScrapeConfigs) Apply ¶ added in v0.65.0
func (c *FakeScrapeConfigs) Apply(ctx context.Context, scrapeConfig *monitoringv1alpha1.ScrapeConfigApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.ScrapeConfig, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied scrapeConfig.
func (*FakeScrapeConfigs) Create ¶ added in v0.65.0
func (c *FakeScrapeConfigs) Create(ctx context.Context, scrapeConfig *v1alpha1.ScrapeConfig, opts v1.CreateOptions) (result *v1alpha1.ScrapeConfig, err error)
Create takes the representation of a scrapeConfig and creates it. Returns the server's representation of the scrapeConfig, and an error, if there is any.
func (*FakeScrapeConfigs) Delete ¶ added in v0.65.0
func (c *FakeScrapeConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the scrapeConfig and deletes it. Returns an error if one occurs.
func (*FakeScrapeConfigs) DeleteCollection ¶ added in v0.65.0
func (c *FakeScrapeConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeScrapeConfigs) Get ¶ added in v0.65.0
func (c *FakeScrapeConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ScrapeConfig, err error)
Get takes name of the scrapeConfig, and returns the corresponding scrapeConfig object, and an error if there is any.
func (*FakeScrapeConfigs) List ¶ added in v0.65.0
func (c *FakeScrapeConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ScrapeConfigList, err error)
List takes label and field selectors, and returns the list of ScrapeConfigs that match those selectors.
func (*FakeScrapeConfigs) Patch ¶ added in v0.65.0
func (c *FakeScrapeConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ScrapeConfig, err error)
Patch applies the patch and returns the patched scrapeConfig.
func (*FakeScrapeConfigs) Update ¶ added in v0.65.0
func (c *FakeScrapeConfigs) Update(ctx context.Context, scrapeConfig *v1alpha1.ScrapeConfig, opts v1.UpdateOptions) (result *v1alpha1.ScrapeConfig, err error)
Update takes the representation of a scrapeConfig and updates it. Returns the server's representation of the scrapeConfig, and an error, if there is any.
func (*FakeScrapeConfigs) Watch ¶ added in v0.65.0
func (c *FakeScrapeConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested scrapeConfigs.