Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeAlertNotifications
- func (c *FakeAlertNotifications) Create(alertNotification *v1alpha1.AlertNotification) (result *v1alpha1.AlertNotification, err error)
- func (c *FakeAlertNotifications) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeAlertNotifications) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeAlertNotifications) Get(name string, options v1.GetOptions) (result *v1alpha1.AlertNotification, err error)
- func (c *FakeAlertNotifications) List(opts v1.ListOptions) (result *v1alpha1.AlertNotificationList, err error)
- func (c *FakeAlertNotifications) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.AlertNotification, err error)
- func (c *FakeAlertNotifications) Update(alertNotification *v1alpha1.AlertNotification) (result *v1alpha1.AlertNotification, err error)
- func (c *FakeAlertNotifications) UpdateStatus(alertNotification *v1alpha1.AlertNotification) (*v1alpha1.AlertNotification, error)
- func (c *FakeAlertNotifications) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeDashboards
- func (c *FakeDashboards) Create(dashboard *v1alpha1.Dashboard) (result *v1alpha1.Dashboard, err error)
- func (c *FakeDashboards) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeDashboards) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeDashboards) Get(name string, options v1.GetOptions) (result *v1alpha1.Dashboard, err error)
- func (c *FakeDashboards) List(opts v1.ListOptions) (result *v1alpha1.DashboardList, err error)
- func (c *FakeDashboards) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Dashboard, err error)
- func (c *FakeDashboards) Update(dashboard *v1alpha1.Dashboard) (result *v1alpha1.Dashboard, err error)
- func (c *FakeDashboards) UpdateStatus(dashboard *v1alpha1.Dashboard) (*v1alpha1.Dashboard, error)
- func (c *FakeDashboards) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeDataSources
- func (c *FakeDataSources) Create(dataSource *v1alpha1.DataSource) (result *v1alpha1.DataSource, err error)
- func (c *FakeDataSources) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeDataSources) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeDataSources) Get(name string, options v1.GetOptions) (result *v1alpha1.DataSource, err error)
- func (c *FakeDataSources) List(opts v1.ListOptions) (result *v1alpha1.DataSourceList, err error)
- func (c *FakeDataSources) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.DataSource, err error)
- func (c *FakeDataSources) Update(dataSource *v1alpha1.DataSource) (result *v1alpha1.DataSource, err error)
- func (c *FakeDataSources) UpdateStatus(dataSource *v1alpha1.DataSource) (*v1alpha1.DataSource, error)
- func (c *FakeDataSources) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeFolders
- func (c *FakeFolders) Create(folder *v1alpha1.Folder) (result *v1alpha1.Folder, err error)
- func (c *FakeFolders) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeFolders) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeFolders) Get(name string, options v1.GetOptions) (result *v1alpha1.Folder, err error)
- func (c *FakeFolders) List(opts v1.ListOptions) (result *v1alpha1.FolderList, err error)
- func (c *FakeFolders) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Folder, err error)
- func (c *FakeFolders) Update(folder *v1alpha1.Folder) (result *v1alpha1.Folder, err error)
- func (c *FakeFolders) UpdateStatus(folder *v1alpha1.Folder) (*v1alpha1.Folder, error)
- func (c *FakeFolders) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeGrafanaV1alpha1
- func (c *FakeGrafanaV1alpha1) AlertNotifications(namespace string) v1alpha1.AlertNotificationInterface
- func (c *FakeGrafanaV1alpha1) Dashboards(namespace string) v1alpha1.DashboardInterface
- func (c *FakeGrafanaV1alpha1) DataSources(namespace string) v1alpha1.DataSourceInterface
- func (c *FakeGrafanaV1alpha1) Folders(namespace string) v1alpha1.FolderInterface
- func (c *FakeGrafanaV1alpha1) RESTClient() rest.Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAlertNotifications ¶
type FakeAlertNotifications struct { Fake *FakeGrafanaV1alpha1 // contains filtered or unexported fields }
FakeAlertNotifications implements AlertNotificationInterface
func (*FakeAlertNotifications) Create ¶
func (c *FakeAlertNotifications) Create(alertNotification *v1alpha1.AlertNotification) (result *v1alpha1.AlertNotification, err error)
Create takes the representation of a alertNotification and creates it. Returns the server's representation of the alertNotification, and an error, if there is any.
func (*FakeAlertNotifications) Delete ¶
func (c *FakeAlertNotifications) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the alertNotification and deletes it. Returns an error if one occurs.
func (*FakeAlertNotifications) DeleteCollection ¶
func (c *FakeAlertNotifications) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeAlertNotifications) Get ¶
func (c *FakeAlertNotifications) Get(name string, options v1.GetOptions) (result *v1alpha1.AlertNotification, err error)
Get takes name of the alertNotification, and returns the corresponding alertNotification object, and an error if there is any.
func (*FakeAlertNotifications) List ¶
func (c *FakeAlertNotifications) List(opts v1.ListOptions) (result *v1alpha1.AlertNotificationList, err error)
List takes label and field selectors, and returns the list of AlertNotifications that match those selectors.
func (*FakeAlertNotifications) Patch ¶
func (c *FakeAlertNotifications) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.AlertNotification, err error)
Patch applies the patch and returns the patched alertNotification.
func (*FakeAlertNotifications) Update ¶
func (c *FakeAlertNotifications) Update(alertNotification *v1alpha1.AlertNotification) (result *v1alpha1.AlertNotification, err error)
Update takes the representation of a alertNotification and updates it. Returns the server's representation of the alertNotification, and an error, if there is any.
func (*FakeAlertNotifications) UpdateStatus ¶
func (c *FakeAlertNotifications) UpdateStatus(alertNotification *v1alpha1.AlertNotification) (*v1alpha1.AlertNotification, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeAlertNotifications) Watch ¶
func (c *FakeAlertNotifications) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested alertNotifications.
type FakeDashboards ¶
type FakeDashboards struct { Fake *FakeGrafanaV1alpha1 // contains filtered or unexported fields }
FakeDashboards implements DashboardInterface
func (*FakeDashboards) Create ¶
func (c *FakeDashboards) Create(dashboard *v1alpha1.Dashboard) (result *v1alpha1.Dashboard, err error)
Create takes the representation of a dashboard and creates it. Returns the server's representation of the dashboard, and an error, if there is any.
func (*FakeDashboards) Delete ¶
func (c *FakeDashboards) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the dashboard and deletes it. Returns an error if one occurs.
func (*FakeDashboards) DeleteCollection ¶
func (c *FakeDashboards) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeDashboards) Get ¶
func (c *FakeDashboards) Get(name string, options v1.GetOptions) (result *v1alpha1.Dashboard, err error)
Get takes name of the dashboard, and returns the corresponding dashboard object, and an error if there is any.
func (*FakeDashboards) List ¶
func (c *FakeDashboards) List(opts v1.ListOptions) (result *v1alpha1.DashboardList, err error)
List takes label and field selectors, and returns the list of Dashboards that match those selectors.
func (*FakeDashboards) Patch ¶
func (c *FakeDashboards) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Dashboard, err error)
Patch applies the patch and returns the patched dashboard.
func (*FakeDashboards) Update ¶
func (c *FakeDashboards) Update(dashboard *v1alpha1.Dashboard) (result *v1alpha1.Dashboard, err error)
Update takes the representation of a dashboard and updates it. Returns the server's representation of the dashboard, and an error, if there is any.
func (*FakeDashboards) UpdateStatus ¶
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeDashboards) Watch ¶
func (c *FakeDashboards) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested dashboards.
type FakeDataSources ¶
type FakeDataSources struct { Fake *FakeGrafanaV1alpha1 // contains filtered or unexported fields }
FakeDataSources implements DataSourceInterface
func (*FakeDataSources) Create ¶
func (c *FakeDataSources) Create(dataSource *v1alpha1.DataSource) (result *v1alpha1.DataSource, err error)
Create takes the representation of a dataSource and creates it. Returns the server's representation of the dataSource, and an error, if there is any.
func (*FakeDataSources) Delete ¶
func (c *FakeDataSources) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the dataSource and deletes it. Returns an error if one occurs.
func (*FakeDataSources) DeleteCollection ¶
func (c *FakeDataSources) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeDataSources) Get ¶
func (c *FakeDataSources) Get(name string, options v1.GetOptions) (result *v1alpha1.DataSource, err error)
Get takes name of the dataSource, and returns the corresponding dataSource object, and an error if there is any.
func (*FakeDataSources) List ¶
func (c *FakeDataSources) List(opts v1.ListOptions) (result *v1alpha1.DataSourceList, err error)
List takes label and field selectors, and returns the list of DataSources that match those selectors.
func (*FakeDataSources) Patch ¶
func (c *FakeDataSources) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.DataSource, err error)
Patch applies the patch and returns the patched dataSource.
func (*FakeDataSources) Update ¶
func (c *FakeDataSources) Update(dataSource *v1alpha1.DataSource) (result *v1alpha1.DataSource, err error)
Update takes the representation of a dataSource and updates it. Returns the server's representation of the dataSource, and an error, if there is any.
func (*FakeDataSources) UpdateStatus ¶
func (c *FakeDataSources) UpdateStatus(dataSource *v1alpha1.DataSource) (*v1alpha1.DataSource, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeDataSources) Watch ¶
func (c *FakeDataSources) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested dataSources.
type FakeFolders ¶
type FakeFolders struct { Fake *FakeGrafanaV1alpha1 // contains filtered or unexported fields }
FakeFolders implements FolderInterface
func (*FakeFolders) Create ¶
Create takes the representation of a folder and creates it. Returns the server's representation of the folder, and an error, if there is any.
func (*FakeFolders) Delete ¶
func (c *FakeFolders) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the folder and deletes it. Returns an error if one occurs.
func (*FakeFolders) DeleteCollection ¶
func (c *FakeFolders) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeFolders) Get ¶
func (c *FakeFolders) Get(name string, options v1.GetOptions) (result *v1alpha1.Folder, err error)
Get takes name of the folder, and returns the corresponding folder object, and an error if there is any.
func (*FakeFolders) List ¶
func (c *FakeFolders) List(opts v1.ListOptions) (result *v1alpha1.FolderList, err error)
List takes label and field selectors, and returns the list of Folders that match those selectors.
func (*FakeFolders) Patch ¶
func (c *FakeFolders) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Folder, err error)
Patch applies the patch and returns the patched folder.
func (*FakeFolders) Update ¶
Update takes the representation of a folder and updates it. Returns the server's representation of the folder, and an error, if there is any.
func (*FakeFolders) UpdateStatus ¶
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeFolders) Watch ¶
func (c *FakeFolders) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested folders.
type FakeGrafanaV1alpha1 ¶
func (*FakeGrafanaV1alpha1) AlertNotifications ¶
func (c *FakeGrafanaV1alpha1) AlertNotifications(namespace string) v1alpha1.AlertNotificationInterface
func (*FakeGrafanaV1alpha1) Dashboards ¶
func (c *FakeGrafanaV1alpha1) Dashboards(namespace string) v1alpha1.DashboardInterface
func (*FakeGrafanaV1alpha1) DataSources ¶
func (c *FakeGrafanaV1alpha1) DataSources(namespace string) v1alpha1.DataSourceInterface
func (*FakeGrafanaV1alpha1) Folders ¶
func (c *FakeGrafanaV1alpha1) Folders(namespace string) v1alpha1.FolderInterface
func (*FakeGrafanaV1alpha1) RESTClient ¶
func (c *FakeGrafanaV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.