migrations

package
v1.32.3 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 3 Imported by: 0

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 interface{}) ([]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