migrations

package
v1.40.4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 3 Imported by: 2 modules, 53 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotApplicable = errors.New("no migration applied")
View Source
var GeneralMigrations []GeneralMigrationFunc
View Source
var GlobalMigrations []GlobalMigrationFunc
View Source
var PluginMigrations = make(map[string]PluginMigrationFunc)
View Source
var PluginOptionMigrations = make(map[string]PluginOptionMigrationFunc)

Functions

func AddGeneralMigration added in v1.29.0

func AddGeneralMigration(f GeneralMigrationFunc)

func AddGlobalMigration added in v1.32.0

func AddGlobalMigration(f GlobalMigrationFunc)

func AddPluginMigration

func AddPluginMigration(name string, f PluginMigrationFunc)

func AddPluginOptionMigration added in v1.29.0

func AddPluginOptionMigration(name string, f PluginOptionMigrationFunc)

func AsStringSlice added in v1.29.0

func AsStringSlice(raw any) ([]string, error)

func CreateTOMLStruct

func CreateTOMLStruct(category, name string) pluginTOMLStruct

Types

type GeneralMigrationFunc added in v1.29.0

type GeneralMigrationFunc func(string, string, *ast.Table) ([]byte, string, error)

type GlobalMigrationFunc added in v1.32.0

type GlobalMigrationFunc func(string, *ast.Table) ([]byte, string, error)

type PluginMigrationFunc

type PluginMigrationFunc func(*ast.Table) ([]byte, string, error)

type PluginOptionMigrationFunc added in v1.29.0

type PluginOptionMigrationFunc PluginMigrationFunc

Jump to

Keyboard shortcuts

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