Provisioning: datasources auto deletion (#83034)
This commit is contained in:
@@ -45,6 +45,16 @@ func (s *FakeDataSourceService) GetAllDataSources(ctx context.Context, query *da
|
||||
return s.DataSources, nil
|
||||
}
|
||||
|
||||
func (s *FakeDataSourceService) GetPrunableProvisionedDataSources(ctx context.Context) (res []*datasources.DataSource, err error) {
|
||||
var dataSources []*datasources.DataSource
|
||||
for _, dataSource := range s.DataSources {
|
||||
if dataSource.IsPrunable {
|
||||
dataSources = append(dataSources, dataSource)
|
||||
}
|
||||
}
|
||||
return dataSources, nil
|
||||
}
|
||||
|
||||
func (s *FakeDataSourceService) GetDataSourcesByType(ctx context.Context, query *datasources.GetDataSourcesByTypeQuery) ([]*datasources.DataSource, error) {
|
||||
var dataSources []*datasources.DataSource
|
||||
for _, datasource := range s.DataSources {
|
||||
|
||||
Reference in New Issue
Block a user