datasources

package
v0.0.1-test Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCacheService

type FakeCacheService struct {
	DataSources []*datasources.DataSource
}

func (*FakeCacheService) GetDatasource

func (c *FakeCacheService) GetDatasource(ctx context.Context, datasourceID int64, user *user.SignedInUser, skipCache bool) (*datasources.DataSource, error)

func (*FakeCacheService) GetDatasourceByUID

func (c *FakeCacheService) GetDatasourceByUID(ctx context.Context, datasourceUID string, user *user.SignedInUser, skipCache bool) (*datasources.DataSource, error)

type FakeDataSourceService

type FakeDataSourceService struct {
	DataSources           []*datasources.DataSource
	SimulatePluginFailure bool
	// contains filtered or unexported fields
}

func (*FakeDataSourceService) AddDataSource

func (*FakeDataSourceService) DecryptedBasicAuthPassword

func (s *FakeDataSourceService) DecryptedBasicAuthPassword(ctx context.Context, ds *datasources.DataSource) (string, error)

func (*FakeDataSourceService) DecryptedPassword

func (s *FakeDataSourceService) DecryptedPassword(ctx context.Context, ds *datasources.DataSource) (string, error)

func (*FakeDataSourceService) DecryptedValue

func (s *FakeDataSourceService) DecryptedValue(ctx context.Context, ds *datasources.DataSource, key string) (string, bool, error)

func (*FakeDataSourceService) DecryptedValues

func (s *FakeDataSourceService) DecryptedValues(ctx context.Context, ds *datasources.DataSource) (map[string]string, error)

func (*FakeDataSourceService) DeleteDataSource

func (*FakeDataSourceService) GetAllDataSources

func (*FakeDataSourceService) GetDataSource

func (*FakeDataSourceService) GetDataSources

func (*FakeDataSourceService) GetDataSourcesByType

func (s *FakeDataSourceService) GetDataSourcesByType(ctx context.Context, query *datasources.GetDataSourcesByTypeQuery) error

func (*FakeDataSourceService) GetDefaultDataSource

func (s *FakeDataSourceService) GetDefaultDataSource(ctx context.Context, query *datasources.GetDefaultDataSourceQuery) error

func (*FakeDataSourceService) GetHTTPTransport

func (s *FakeDataSourceService) GetHTTPTransport(ctx context.Context, ds *datasources.DataSource, provider httpclient.Provider, customMiddlewares ...sdkhttpclient.Middleware) (http.RoundTripper, error)

func (*FakeDataSourceService) UpdateDataSource

Jump to

Keyboard shortcuts

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