Documentation ¶
Index ¶
- func CreateMigrateTask(ctx context.Context, doer, u *user_model.User, opts base.MigrateOptions) (*admin_model.Task, error)
- func Init() error
- func MigrateRepository(ctx context.Context, doer, u *user_model.User, opts base.MigrateOptions) error
- func RetryMigrateTask(ctx context.Context, repoID int64) error
- func Run(ctx context.Context, t *admin_model.Task) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMigrateTask ¶
func CreateMigrateTask(ctx context.Context, doer, u *user_model.User, opts base.MigrateOptions) (*admin_model.Task, error)
CreateMigrateTask creates a migrate task
func MigrateRepository ¶
func MigrateRepository(ctx context.Context, doer, u *user_model.User, opts base.MigrateOptions) error
MigrateRepository add migration repository to task
func RetryMigrateTask ¶ added in v1.21.0
RetryMigrateTask retry a migrate task
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.