jira

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupPrefs

type BackupPrefs struct {
	WithAttachments bool `json:"cbAttachments"`
	ForCloud        bool `json:"exportToCloud"`
}

type BackupProgressInfo

type BackupProgressInfo struct {
	Status     string `json:"status"`
	Desc       string `json:"description"`
	Message    string `json:"message"`
	Result     string `json:"result"`
	ExportType string `json:"exportType"`
	Progress   int    `json:"progress"`
}

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

func (*JiraBackuper) Start added in v0.0.2

func (b *JiraBackuper) Start(force bool) (string, error)

Start creates task for backuping data

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL