vikunjafile

package
v0.20.3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileMigrator

type FileMigrator struct {
}

func (*FileMigrator) Migrate

func (v *FileMigrator) Migrate(user *user.User, file io.ReaderAt, size int64) error

Migrate takes a vikunja file export, parses it and imports everything in it into Vikunja. @Summary Import all lists, tasks etc. from a Vikunja data export @Description Imports all projects, tasks, notes, reminders, subtasks and files from a Vikunjda data export into Vikunja. @tags migration @Accept json @Produce json @Security JWTKeyAuth @Param import formData string true "The Vikunja export zip file." @Success 200 {object} models.Message "A message telling you everything was migrated successfully." @Failure 500 {object} models.Message "Internal server error" @Router /migration/vikunja-file/migrate [post]

func (*FileMigrator) Name

func (v *FileMigrator) Name() string

Name is used to get the name of the vikunja-file migration - we're using the docs here to annotate the status route. @Summary Get migration status @Description Returns if the current user already did the migation or not. This is useful to show a confirmation message in the frontend if the user is trying to do the same migration again. @tags migration @Produce json @Security JWTKeyAuth @Success 200 {object} migration.Status "The migration status" @Failure 500 {object} models.Message "Internal server error" @Router /migration/vikunja-file/status [get]

Jump to

Keyboard shortcuts

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