mirror of
https://github.com/turbot/steampipe.git
synced 2025-12-19 18:12:43 -05:00
General code spring cleaning: * move file paths from `consts` package to `filepaths` * move InitData and ExportData to query and control packages
23 lines
479 B
Go
23 lines
479 B
Go
package control
|
|
|
|
import (
|
|
"sync"
|
|
|
|
"github.com/turbot/steampipe/control/controldisplay"
|
|
"github.com/turbot/steampipe/control/controlexecute"
|
|
)
|
|
|
|
type ExportData struct {
|
|
ExecutionTree *controlexecute.ExecutionTree
|
|
ExportFormats []controldisplay.CheckExportTarget
|
|
ErrorsLock *sync.Mutex
|
|
Errors []error
|
|
WaitGroup *sync.WaitGroup
|
|
}
|
|
|
|
func (e *ExportData) AddErrors(err []error) {
|
|
e.ErrorsLock.Lock()
|
|
e.Errors = append(e.Errors, err...)
|
|
e.ErrorsLock.Unlock()
|
|
}
|