Documentation ¶
Index ¶
- type BackupPrefs
- type BackupProgressInfo
- type BackupTaskInfo
- type JiraBackuper
- func (b *JiraBackuper) Backup(outputFile string, force bool) error
- func (b *JiraBackuper) Download(backupFile, outputFile string) error
- func (b *JiraBackuper) GetBackupFile() (string, error)
- func (b *JiraBackuper) GetReader(backupFile string) (io.ReadCloser, error)
- func (b *JiraBackuper) IsBackupCreated() (bool, error)
- func (b *JiraBackuper) Progress(taskID string) (string, error)
- func (b *JiraBackuper) SetDispatcher(d *events.Dispatcher)
- func (b *JiraBackuper) Start(force bool) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupPrefs ¶
type BackupProgressInfo ¶
type BackupTaskInfo ¶
type BackupTaskInfo struct {
TaskID string `json:"taskId"`
}
type JiraBackuper ¶
type JiraBackuper struct {
// contains filtered or unexported fields
}
func NewBackuper ¶
func NewBackuper(config *backuper.Config) (*JiraBackuper, error)
func (*JiraBackuper) Backup ¶
func (b *JiraBackuper) Backup(outputFile string, force bool) error
Backup starts backup process
func (*JiraBackuper) Download ¶ added in v0.0.2
func (b *JiraBackuper) Download(backupFile, outputFile string) error
Download downloads backup file
func (*JiraBackuper) GetBackupFile ¶ added in v0.0.2
func (b *JiraBackuper) GetBackupFile() (string, error)
GetBackupFile returns name of created backup file
func (*JiraBackuper) GetReader ¶ added in v0.0.2
func (b *JiraBackuper) GetReader(backupFile string) (io.ReadCloser, error)
GetReader returns reader for given backup file
func (*JiraBackuper) IsBackupCreated ¶ added in v0.0.2
func (b *JiraBackuper) IsBackupCreated() (bool, error)
IsBackupCreated returns true if backup created and ready for download
func (*JiraBackuper) Progress ¶ added in v0.0.2
func (b *JiraBackuper) Progress(taskID string) (string, error)
Progress monitors backup creation progress
func (*JiraBackuper) SetDispatcher ¶
func (b *JiraBackuper) SetDispatcher(d *events.Dispatcher)
SetDispatcher sets events dispatcher
Click to show internal directories.
Click to hide internal directories.