Documentation ¶
Index ¶
- Variables
- type EntityType
- type ImportExport
- func (ie *ImportExport) Close() error
- func (ie *ImportExport) Export(t EntityType, ids ...string) error
- func (ie *ImportExport) Extract(reader io.Reader) error
- func (ie *ImportExport) Import(t EntityType) error
- func (ie *ImportExport) InitFilesDB() error
- func (ie *ImportExport) Pack() (*os.File, error)
- func (ie *ImportExport) Processed() ProcessedResults
- func (ie *ImportExport) SetSkipExistingOnImport(yes bool)
- type ProcessedResults
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotProxeusDB = fmt.Errorf("not a Proxeus DB file")
Functions ¶
This section is empty.
Types ¶
type EntityType ¶
type EntityType string
const ( Settings EntityType = "Settings" I18n EntityType = "I18n" Form EntityType = "Form" Workflow EntityType = "Workflow" Template EntityType = "Template" User EntityType = "User" UserData EntityType = "UserData" )
func StringToEntityType ¶
func StringToEntityType(str string) EntityType
type ImportExport ¶
type ImportExport struct {
// contains filtered or unexported fields
}
func NewImportExport ¶
NewImportExport creates a configuration to import and export database files
func (*ImportExport) Close ¶
func (ie *ImportExport) Close() error
func (*ImportExport) Export ¶
func (ie *ImportExport) Export(t EntityType, ids ...string) error
Export writes the data from the import export configuration for the specified entity type
func (*ImportExport) Import ¶
func (ie *ImportExport) Import(t EntityType) error
Import reads the data from the import export configuration for the specified entity type
func (*ImportExport) InitFilesDB ¶
func (ie *ImportExport) InitFilesDB() error
Initialized the Files DB Make sure the path exists before opening the db. E.g. in import first unpack the zip to the wanted path then open FileDB
func (*ImportExport) Pack ¶
func (ie *ImportExport) Pack() (*os.File, error)
Pack produces and return the handle to a tar file containing the export of the database files
func (*ImportExport) Processed ¶
func (ie *ImportExport) Processed() ProcessedResults
func (*ImportExport) SetSkipExistingOnImport ¶
func (ie *ImportExport) SetSkipExistingOnImport(yes bool)
type ProcessedResults ¶
type ProcessedResults map[EntityType]map[string]string
Click to show internal directories.
Click to hide internal directories.