Documentation ¶
Index ¶
- Variables
- type DashboardSupplierFunc
- type Service
- func (s *Service) Info(ctx context.Context, dashboardSupplier DashboardSupplierFunc) (*models.GrafanaInfo, int, error)
- func (s *Service) Links(ctx context.Context, linksSpec []dashboards.MonitoringDashboardExternalLink) ([]models.ExternalLink, int, error)
- func (s *Service) URL(ctx context.Context) string
Constants ¶
This section is empty.
Variables ¶
View Source
var DashboardSupplier = findDashboard
Functions ¶
This section is empty.
Types ¶
type DashboardSupplierFunc ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides discovery and info about Grafana.
func NewService ¶
func NewService(conf *config.Config, homeClusterSAClient kubernetes.ClientInterface) *Service
NewService creates a new Grafana service.
func (*Service) Info ¶
func (s *Service) Info(ctx context.Context, dashboardSupplier DashboardSupplierFunc) (*models.GrafanaInfo, int, error)
GetGrafanaInfo returns the Grafana URL and other info, the HTTP status code (int) and eventually an error
func (*Service) Links ¶
func (s *Service) Links(ctx context.Context, linksSpec []dashboards.MonitoringDashboardExternalLink) ([]models.ExternalLink, int, error)
GetGrafanaLinks returns the links to Grafana dashboards and other info, the HTTP status code (int) and eventually an error
Click to show internal directories.
Click to hide internal directories.