datasource

package
v0.2.19 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

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
}

Jump to

Keyboard shortcuts

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