Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clientset ¶
func (*Clientset) Dashboards ¶
func (c *Clientset) Dashboards() DashboardsInterface
func (*Clientset) Datasources ¶
func (c *Clientset) Datasources() DatasourcesInterface
type DashboardsClient ¶
func (*DashboardsClient) Delete ¶
func (c *DashboardsClient) Delete(slug string) error
func (*DashboardsClient) Search ¶
func (c *DashboardsClient) Search() ([]GrafanaDashboard, error)
type DashboardsInterface ¶
type DashboardsInterface interface { Search() ([]GrafanaDashboard, error) Create(dashboardJson io.Reader) error Delete(slug string) error }
func NewDashboardsClient ¶
func NewDashboardsClient(baseUrl *url.URL, c *http.Client) DashboardsInterface
type DatasourcesClient ¶
DatasourcesClient is an implementation of the DatasourcesInterface. The datasources HTTP API of Grafana requires admin access.
func (*DatasourcesClient) All ¶
func (c *DatasourcesClient) All() ([]GrafanaDatasource, error)
func (*DatasourcesClient) Create ¶
func (c *DatasourcesClient) Create(datasourceJson io.Reader) error
func (*DatasourcesClient) Delete ¶
func (c *DatasourcesClient) Delete(id int) error
type DatasourcesInterface ¶
type DatasourcesInterface interface { All() ([]GrafanaDatasource, error) Create(datasourceJson io.Reader) error Delete(id int) error }
func NewDatasourcesClient ¶
func NewDatasourcesClient(baseUrl *url.URL, c *http.Client) DatasourcesInterface
type GrafanaDashboard ¶
type GrafanaDashboard struct { Id int `json:"id"` Title string `json:"title"` Uri string `json:"uri"` }
func (*GrafanaDashboard) Slug ¶
func (d *GrafanaDashboard) Slug() string
type GrafanaDatasource ¶
type Interface ¶
type Interface interface { Dashboards() DashboardsInterface Datasources() DatasourcesInterface }
Click to show internal directories.
Click to hide internal directories.