Datasources: provide generic function to extract custom headers (#66738)
This commit is contained in:
@@ -54,6 +54,11 @@ type DataSourceService interface {
|
||||
// DecryptedPassword decrypts the encrypted datasource password and returns the
|
||||
// decrypted value.
|
||||
DecryptedPassword(ctx context.Context, ds *DataSource) (string, error)
|
||||
|
||||
// CustomHeaders returns a map of custom headers the user might have
|
||||
// configured for this Datasource. Not every datasource can has the option
|
||||
// to configure those.
|
||||
CustomHeaders(ctx context.Context, ds *DataSource) (map[string]string, error)
|
||||
}
|
||||
|
||||
// CacheService interface for retrieving a cached datasource.
|
||||
|
||||
Reference in New Issue
Block a user