Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detector ¶ added in v0.8.1
type Detector struct {
// contains filtered or unexported fields
}
Detector can detect Angular plugins in Grafana dashboards.
func NewDetector ¶ added in v0.8.1
func NewDetector(log *logger.LeveledLogger, grafanaClient GrafanaDetectorAPIClient, gcomClient gcom.APIClient, maxConcurrency int) *Detector
NewDetector returns a new Detector.
type GrafanaDetectorAPIClient ¶ added in v0.9.0
type GrafanaDetectorAPIClient interface { BaseURL() string GetPlugins(ctx context.Context) ([]grafana.Plugin, error) GetFrontendSettings(ctx context.Context) (*grafana.FrontendSettings, error) GetServiceAccountPermissions(ctx context.Context) (map[string][]string, error) GetDatasourcePluginIDs(ctx context.Context) ([]grafana.Datasource, error) GetDashboards(ctx context.Context, page int) ([]grafana.ListedDashboard, error) GetDashboard(ctx context.Context, uid string) (*grafana.DashboardDefinition, error) }
GrafanaDetectorAPIClient is an interface that can be used to interact with the Grafana API for detecting Angular plugins.
Click to show internal directories.
Click to hide internal directories.