migration

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migrator

type Migrator interface {
	Execute(jql string) (chan Result, error)
}

func NewMigrator

func NewMigrator(sourceUrl, targetUrl, user, apiToken, sourceProjectKey, targetProjectKey string, options ...Option) (Migrator, error)

type Option

type Option func(m *migrator)

func WithAdditionalLabels

func WithAdditionalLabels(labels ...string) Option

func WithCustomFields

func WithCustomFields(customFieldNames ...string) Option

func WithDeleteOnError

func WithDeleteOnError(value bool) Option

func WithSprints

func WithSprints(value bool) Option

func WithWorkerPoolSize

func WithWorkerPoolSize(size int) Option

type Result

type Result struct {
	SourceKey     string
	SourceSummary string
	TargetKey     string
	Errors        []error
}

func (Result) HasTargetIssue

func (r Result) HasTargetIssue() bool

func (Result) HasTooManyRequestsError

func (r Result) HasTooManyRequestsError() bool

func (Result) String

func (r Result) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳