migrator

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 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 Migrator

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

Migrator runs migrations on an existing decomposedfs

func New

func New(lu *lookup.Lookup, log *zerolog.Logger) Migrator

New returns a new Migrator instance

func (*Migrator) Migration0001

func (m *Migrator) Migration0001() (Result, error)

Migration0001 creates the spaces directory structure

func (*Migrator) Migration0002

func (m *Migrator) Migration0002() (Result, error)

Migration0002 migrates spacetypes to indexes

func (*Migrator) Migration0003

func (m *Migrator) Migration0003() (Result, error)

Migration0003 migrates the file metadata to the current backend. Only the xattrs -> messagepack path is supported.

func (*Migrator) RunMigrations

func (m *Migrator) RunMigrations() error

RunMigrations runs all migrations in sequence. Note this sequence must not be changed or it might damage existing decomposed fs.

type Result

type Result string

Result represents the result of a migration run

Jump to

Keyboard shortcuts

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