datasource

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 4 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) 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

Jump to

Keyboard shortcuts

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