lister

package
v0.0.0-...-e875f2f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

ErrNotFound is used to signal a missing resource

View Source
var ErrNotImplemented = errors.New("not implemented")

ErrNotImplemented signals a feature that is not supported by a provider

Functions

func ListDashboards

func ListDashboards(folderID int) error

ListDashboards lists dashboard IDs in a Grafana instance

func ListDatasources

func ListDatasources() error

ListDatasources lists datasource IDs in a Grafana instance

func ListFolders

func ListFolders() error

ListFolders lists folders in a Grafana instance

Types

type APIErr

type APIErr struct {
	Err  error
	Body []byte
}

APIErr encapsulates an error from the Grafana API

func (APIErr) Error

func (e APIErr) Error() string

type Dashboard

type Dashboard struct {
	UID string `json:"uid"`
}

Dashboard represents a dashboard as contained within a Folder

type Datasource

type Datasource struct {
	UID string `json:"name"`
}

Datasource represents a datasource as contained within a Folder

type Folder

type Folder struct {
	ID int `json:"id"`
}

Folder encapsulates a dashboard folder object from the Grafana API

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL