Documentation ¶
Index ¶
- type DatasourceService
- func (s *DatasourceService) GetDatasourceByIndex(index int) (model.Datasource, error)
- func (s *DatasourceService) GetDatasourceByName(name string) (model.Datasource, error)
- func (s *DatasourceService) GetDatasources() []model.Datasource
- func (s *DatasourceService) GetDatasourcesWithSelector(selector model.DatasourceSelector) []model.Datasource
- func (s *DatasourceService) GetMainDatasourceByType(typ model.DatasourceType) (model.Datasource, error)
- func (s *DatasourceService) Reload() error
- type IDatasourceService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatasourceService ¶
type DatasourceService struct {
// contains filtered or unexported fields
}
DatasourceService
func New ¶
func New(cfg *model.DatasourceConfig, discoverer discovery.Discoverer) (*DatasourceService, error)
NewDatasourceService return *DatasourceService after service discovery (with k8s service)
func (*DatasourceService) GetDatasourceByIndex ¶
func (s *DatasourceService) GetDatasourceByIndex(index int) (model.Datasource, error)
func (*DatasourceService) GetDatasourceByName ¶ added in v0.2.18
func (s *DatasourceService) GetDatasourceByName(name string) (model.Datasource, error)
func (*DatasourceService) GetDatasources ¶
func (s *DatasourceService) GetDatasources() []model.Datasource
return multiple datasources
func (*DatasourceService) GetDatasourcesWithSelector ¶
func (s *DatasourceService) GetDatasourcesWithSelector(selector model.DatasourceSelector) []model.Datasource
func (*DatasourceService) GetMainDatasourceByType ¶
func (s *DatasourceService) GetMainDatasourceByType(typ model.DatasourceType) (model.Datasource, error)
return single datasource
func (*DatasourceService) Reload ¶ added in v0.2.8
func (s *DatasourceService) Reload() error
type IDatasourceService ¶ added in v0.2.8
type IDatasourceService interface { Reload() error GetDatasourcesWithSelector(selector model.DatasourceSelector) []model.Datasource }
Click to show internal directories.
Click to hide internal directories.