task

package
v0.0.0-...-9c6d46d Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncTask

type SyncTask struct {
	// contains filtered or unexported fields
}

func NewMigrationTask

func NewMigrationTask(srcRepo, dstRepo, privateKeyFile string) *SyncTask

func (*SyncTask) GetDstRepo

func (t *SyncTask) GetDstRepo() string

func (*SyncTask) GetError

func (t *SyncTask) GetError() error

func (*SyncTask) GetSrcRepo

func (t *SyncTask) GetSrcRepo() string

func (*SyncTask) GetTitle

func (t *SyncTask) GetTitle() string

func (*SyncTask) Run

func (t *SyncTask) Run() (err error)

func (*SyncTask) SetError

func (t *SyncTask) SetError(err error)

type Task

type Task interface {
	Run() error
	GetTitle() string
	GetSrcRepo() string
	GetDstRepo() string
	SetError(err error)
	GetError() error
}

Jump to

Keyboard shortcuts

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