Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeClusterOverviews
- type FakeConfigMaps
- func (c *FakeConfigMaps) Create(ctx context.Context, configMap *monitor.ConfigMap, opts v1.CreateOptions) (result *monitor.ConfigMap, err error)
- func (c *FakeConfigMaps) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeConfigMaps) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitor.ConfigMap, err error)
- func (c *FakeConfigMaps) List(ctx context.Context, opts v1.ListOptions) (result *monitor.ConfigMapList, err error)
- func (c *FakeConfigMaps) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *monitor.ConfigMap, err error)
- func (c *FakeConfigMaps) Update(ctx context.Context, configMap *monitor.ConfigMap, opts v1.UpdateOptions) (result *monitor.ConfigMap, err error)
- func (c *FakeConfigMaps) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeMetrics
- type FakeMonitor
- func (c *FakeMonitor) ClusterOverviews() internalversion.ClusterOverviewInterface
- func (c *FakeMonitor) ConfigMaps() internalversion.ConfigMapInterface
- func (c *FakeMonitor) Metrics() internalversion.MetricInterface
- func (c *FakeMonitor) Prometheuses() internalversion.PrometheusInterface
- func (c *FakeMonitor) RESTClient() rest.Interface
- type FakePrometheuses
- func (c *FakePrometheuses) Create(ctx context.Context, prometheus *monitor.Prometheus, opts v1.CreateOptions) (result *monitor.Prometheus, err error)
- func (c *FakePrometheuses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePrometheuses) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitor.Prometheus, err error)
- func (c *FakePrometheuses) List(ctx context.Context, opts v1.ListOptions) (result *monitor.PrometheusList, err error)
- func (c *FakePrometheuses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *monitor.Prometheus, err error)
- func (c *FakePrometheuses) Update(ctx context.Context, prometheus *monitor.Prometheus, opts v1.UpdateOptions) (result *monitor.Prometheus, err error)
- func (c *FakePrometheuses) UpdateStatus(ctx context.Context, prometheus *monitor.Prometheus, opts v1.UpdateOptions) (*monitor.Prometheus, error)
- func (c *FakePrometheuses) 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 FakeClusterOverviews ¶ added in v1.4.0
type FakeClusterOverviews struct {
Fake *FakeMonitor
}
FakeClusterOverviews implements ClusterOverviewInterface
func (*FakeClusterOverviews) Create ¶ added in v1.4.0
func (c *FakeClusterOverviews) Create(ctx context.Context, clusterOverview *monitor.ClusterOverview, opts v1.CreateOptions) (result *monitor.ClusterOverview, err error)
Create takes the representation of a clusterOverview and creates it. Returns the server's representation of the clusterOverview, and an error, if there is any.
type FakeConfigMaps ¶
type FakeConfigMaps struct {
Fake *FakeMonitor
}
FakeConfigMaps implements ConfigMapInterface
func (*FakeConfigMaps) Create ¶
func (c *FakeConfigMaps) Create(ctx context.Context, configMap *monitor.ConfigMap, opts v1.CreateOptions) (result *monitor.ConfigMap, err error)
Create takes the representation of a configMap and creates it. Returns the server's representation of the configMap, and an error, if there is any.
func (*FakeConfigMaps) Delete ¶
func (c *FakeConfigMaps) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the configMap and deletes it. Returns an error if one occurs.
func (*FakeConfigMaps) Get ¶
func (c *FakeConfigMaps) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitor.ConfigMap, err error)
Get takes name of the configMap, and returns the corresponding configMap object, and an error if there is any.
func (*FakeConfigMaps) List ¶
func (c *FakeConfigMaps) List(ctx context.Context, opts v1.ListOptions) (result *monitor.ConfigMapList, err error)
List takes label and field selectors, and returns the list of ConfigMaps that match those selectors.
func (*FakeConfigMaps) Patch ¶
func (c *FakeConfigMaps) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *monitor.ConfigMap, err error)
Patch applies the patch and returns the patched configMap.
func (*FakeConfigMaps) Update ¶
func (c *FakeConfigMaps) Update(ctx context.Context, configMap *monitor.ConfigMap, opts v1.UpdateOptions) (result *monitor.ConfigMap, err error)
Update takes the representation of a configMap and updates it. Returns the server's representation of the configMap, and an error, if there is any.
func (*FakeConfigMaps) Watch ¶
func (c *FakeConfigMaps) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested configMaps.
type FakeMetrics ¶
type FakeMetrics struct {
Fake *FakeMonitor
}
FakeMetrics implements MetricInterface
func (*FakeMetrics) Create ¶
func (c *FakeMetrics) Create(ctx context.Context, metric *monitor.Metric, opts v1.CreateOptions) (result *monitor.Metric, err error)
Create takes the representation of a metric and creates it. Returns the server's representation of the metric, and an error, if there is any.
type FakeMonitor ¶
func (*FakeMonitor) ClusterOverviews ¶ added in v1.4.0
func (c *FakeMonitor) ClusterOverviews() internalversion.ClusterOverviewInterface
func (*FakeMonitor) ConfigMaps ¶
func (c *FakeMonitor) ConfigMaps() internalversion.ConfigMapInterface
func (*FakeMonitor) Metrics ¶
func (c *FakeMonitor) Metrics() internalversion.MetricInterface
func (*FakeMonitor) Prometheuses ¶ added in v1.3.1
func (c *FakeMonitor) Prometheuses() internalversion.PrometheusInterface
func (*FakeMonitor) RESTClient ¶
func (c *FakeMonitor) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakePrometheuses ¶ added in v1.3.1
type FakePrometheuses struct {
Fake *FakeMonitor
}
FakePrometheuses implements PrometheusInterface
func (*FakePrometheuses) Create ¶ added in v1.3.1
func (c *FakePrometheuses) Create(ctx context.Context, prometheus *monitor.Prometheus, opts v1.CreateOptions) (result *monitor.Prometheus, err error)
Create takes the representation of a prometheus and creates it. Returns the server's representation of the prometheus, and an error, if there is any.
func (*FakePrometheuses) Delete ¶ added in v1.3.1
func (c *FakePrometheuses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the prometheus and deletes it. Returns an error if one occurs.
func (*FakePrometheuses) Get ¶ added in v1.3.1
func (c *FakePrometheuses) Get(ctx context.Context, name string, options v1.GetOptions) (result *monitor.Prometheus, err error)
Get takes name of the prometheus, and returns the corresponding prometheus object, and an error if there is any.
func (*FakePrometheuses) List ¶ added in v1.3.1
func (c *FakePrometheuses) List(ctx context.Context, opts v1.ListOptions) (result *monitor.PrometheusList, err error)
List takes label and field selectors, and returns the list of Prometheuses that match those selectors.
func (*FakePrometheuses) Patch ¶ added in v1.3.1
func (c *FakePrometheuses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *monitor.Prometheus, err error)
Patch applies the patch and returns the patched prometheus.
func (*FakePrometheuses) Update ¶ added in v1.3.1
func (c *FakePrometheuses) Update(ctx context.Context, prometheus *monitor.Prometheus, opts v1.UpdateOptions) (result *monitor.Prometheus, err error)
Update takes the representation of a prometheus and updates it. Returns the server's representation of the prometheus, and an error, if there is any.
func (*FakePrometheuses) UpdateStatus ¶ added in v1.3.1
func (c *FakePrometheuses) UpdateStatus(ctx context.Context, prometheus *monitor.Prometheus, opts v1.UpdateOptions) (*monitor.Prometheus, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakePrometheuses) Watch ¶ added in v1.3.1
func (c *FakePrometheuses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested prometheuses.