Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExportSourceData ¶
type ExportSourceData interface {
IsExportSourceData()
}
ExportSourceData is an interface implemented by all types which can be used as an input to an exporter
type ExporterBase ¶
type ExporterBase struct{}
func (*ExporterBase) Alias ¶
func (*ExporterBase) Alias() string
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
func (*Manager) HasNamedExport ¶
HasNamedExport returns true if any of the export arguments has a filename (--export=file.json) instead of the format name (--export=json) panics if a target is not valid
func (*Manager) ValidateExportFormat ¶
type SnapshotExporter ¶
type SnapshotExporter struct {
ExporterBase
}
func (*SnapshotExporter) Alias ¶
func (*SnapshotExporter) Alias() string
func (*SnapshotExporter) Export ¶
func (e *SnapshotExporter) Export(_ context.Context, input ExportSourceData, filePath string) error
func (*SnapshotExporter) FileExtension ¶
func (e *SnapshotExporter) FileExtension() string
func (*SnapshotExporter) Name ¶
func (e *SnapshotExporter) Name() string
Click to show internal directories.
Click to hide internal directories.