Files
steampipe/control/export_data.go
kaidaguerre e0ff19a280 Update package naming to be consistent and follow Go standards. Closes #1282
General code spring cleaning:
* move file paths from `consts` package to `filepaths`
* move InitData and ExportData to query and control packages
2022-01-04 12:28:36 +00:00

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()
}