Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakePrometheusSources
- func (c *FakePrometheusSources) Create(prometheusSource *v1alpha1.PrometheusSource) (result *v1alpha1.PrometheusSource, err error)
- func (c *FakePrometheusSources) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakePrometheusSources) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakePrometheusSources) Get(name string, options v1.GetOptions) (result *v1alpha1.PrometheusSource, err error)
- func (c *FakePrometheusSources) List(opts v1.ListOptions) (result *v1alpha1.PrometheusSourceList, err error)
- func (c *FakePrometheusSources) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.PrometheusSource, err error)
- func (c *FakePrometheusSources) Update(prometheusSource *v1alpha1.PrometheusSource) (result *v1alpha1.PrometheusSource, err error)
- func (c *FakePrometheusSources) UpdateStatus(prometheusSource *v1alpha1.PrometheusSource) (*v1alpha1.PrometheusSource, error)
- func (c *FakePrometheusSources) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeSourcesV1alpha1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakePrometheusSources ¶
type FakePrometheusSources struct { Fake *FakeSourcesV1alpha1 // contains filtered or unexported fields }
FakePrometheusSources implements PrometheusSourceInterface
func (*FakePrometheusSources) Create ¶
func (c *FakePrometheusSources) Create(prometheusSource *v1alpha1.PrometheusSource) (result *v1alpha1.PrometheusSource, err error)
Create takes the representation of a prometheusSource and creates it. Returns the server's representation of the prometheusSource, and an error, if there is any.
func (*FakePrometheusSources) Delete ¶
func (c *FakePrometheusSources) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the prometheusSource and deletes it. Returns an error if one occurs.
func (*FakePrometheusSources) DeleteCollection ¶
func (c *FakePrometheusSources) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePrometheusSources) Get ¶
func (c *FakePrometheusSources) Get(name string, options v1.GetOptions) (result *v1alpha1.PrometheusSource, err error)
Get takes name of the prometheusSource, and returns the corresponding prometheusSource object, and an error if there is any.
func (*FakePrometheusSources) List ¶
func (c *FakePrometheusSources) List(opts v1.ListOptions) (result *v1alpha1.PrometheusSourceList, err error)
List takes label and field selectors, and returns the list of PrometheusSources that match those selectors.
func (*FakePrometheusSources) Patch ¶
func (c *FakePrometheusSources) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.PrometheusSource, err error)
Patch applies the patch and returns the patched prometheusSource.
func (*FakePrometheusSources) Update ¶
func (c *FakePrometheusSources) Update(prometheusSource *v1alpha1.PrometheusSource) (result *v1alpha1.PrometheusSource, err error)
Update takes the representation of a prometheusSource and updates it. Returns the server's representation of the prometheusSource, and an error, if there is any.
func (*FakePrometheusSources) UpdateStatus ¶
func (c *FakePrometheusSources) UpdateStatus(prometheusSource *v1alpha1.PrometheusSource) (*v1alpha1.PrometheusSource, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakePrometheusSources) Watch ¶
func (c *FakePrometheusSources) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested prometheusSources.
type FakeSourcesV1alpha1 ¶
func (*FakeSourcesV1alpha1) PrometheusSources ¶
func (c *FakeSourcesV1alpha1) PrometheusSources(namespace string) v1alpha1.PrometheusSourceInterface
func (*FakeSourcesV1alpha1) RESTClient ¶
func (c *FakeSourcesV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.