Documentation ¶
Overview ¶
Package pstexport is a command-line interface and library for exporting PST files (using go-pst).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger = logrus.New()
Logger defines our logger.
Functions ¶
func ExecuteExportStrategy ¶
func ExecuteExportStrategy(exportStrategy ExportStrategy, exportContext ExportContext) error
ExecuteExportStrategy executes the export strategy. Processes the PST file and calls Export on the export strategy for every message.
Types ¶
type ExportContext ¶
ExportContext defines the context used when using an export strategy.
type ExportStrategy ¶
type ExportStrategy interface { Name() string Export(pstFile *pst.File, pstMessage pst.Message, pstMessageIndex int, pstFolder pst.Folder, pstFormatType string, pstEncryptionType string, exportContext ExportContext) error }
ExportStrategy defines the interface all export strategies implement.
func GetAllExportStrategies ¶
func GetAllExportStrategies() []ExportStrategy
GetAllExportStrategies returns all export strategies.
func GetExportStrategyByName ¶
func GetExportStrategyByName(name string) (ExportStrategy, error)
GetExportStrategyByName returns the export strategy by the specified name.
type ExportStrategyEML ¶
type ExportStrategyEML struct {
ExportStrategy
}
ExportStrategyEML implements exporting to EML.
func (ExportStrategyEML) Name ¶
func (exportStrategyEML ExportStrategyEML) Name() string
Click to show internal directories.
Click to hide internal directories.