datasources

package
v0.0.0-cloud Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 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 (s *FakeDataSourceService) GetAllDataSources(ctx context.Context, query *datasources.GetAllDataSourcesQuery) (res []*datasources.DataSource, err error)

func (*FakeDataSourceService) GetDataSource

func (*FakeDataSourceService) GetDataSources

func (*FakeDataSourceService) GetDataSourcesByType

func (*FakeDataSourceService) GetDefaultDataSource

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