gitea: code.gitea.io/gitea/modules/task Index | Files

package task

import "code.gitea.io/gitea/modules/task"

Index

Package Files

migrate.go task.go

func CreateMigrateTask Uses

func CreateMigrateTask(doer, u *models.User, opts base.MigrateOptions) (*models.Task, error)

CreateMigrateTask creates a migrate task

func Init Uses

func Init() error

Init will start the service to get all unfinished tasks and run them

func MigrateRepository Uses

func MigrateRepository(doer, u *models.User, opts base.MigrateOptions) error

MigrateRepository add migration repository to task

func Run Uses

func Run(t *models.Task) error

Run a task

Package task imports 17 packages (graph) and is imported by 10 packages. Updated 2021-01-22. Refresh now. Tools for package owners.