mirror of
https://github.com/turbot/steampipe.git
synced 2025-12-19 18:12:43 -05:00
22 lines
438 B
Go
22 lines
438 B
Go
package export
|
|
|
|
import "context"
|
|
|
|
// ExportSourceData is an interface implemented by all types which can be used as an input to an exporter
|
|
type ExportSourceData interface {
|
|
IsExportSourceData()
|
|
}
|
|
|
|
type Exporter interface {
|
|
Export(ctx context.Context, input ExportSourceData, destPath string) error
|
|
FileExtension() string
|
|
Name() string
|
|
Alias() string
|
|
}
|
|
|
|
type ExporterBase struct{}
|
|
|
|
func (*ExporterBase) Alias() string {
|
|
return ""
|
|
}
|