github.com/turbot/steampipe@v1.7.0-rc.0.0.20240517123944-7cef272d4458/pkg/export/exporter.go (about)

     1  package export
     2  
     3  import "context"
     4  
     5  // ExportSourceData is an interface implemented by all types which can be used as an input to an exporter
     6  type ExportSourceData interface {
     7  	IsExportSourceData()
     8  }
     9  
    10  type Exporter interface {
    11  	Export(ctx context.Context, input ExportSourceData, destPath string) error
    12  	FileExtension() string
    13  	Name() string
    14  	Alias() string
    15  }
    16  
    17  type ExporterBase struct{}
    18  
    19  func (*ExporterBase) Alias() string {
    20  	return ""
    21  }