gooserunner

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const TableName = `groundskeeper_migrations`

Variables

This section is empty.

Functions

func New

func New(operation GooseOperation, migrationFs afero.Fs) runners.Runner

func Run

func Run(ctx context.Context, operation GooseOperation, migrationFS afero.Fs) error

Types

type GooseOperation

type GooseOperation uint8
const (
	GooseStatus GooseOperation = iota
	GooseUpAll
	GooseUpByOne
	GooseDown
)

type Runner

type Runner struct {
	Operation    GooseOperation
	MigrationsFS afero.Fs
}

func (Runner) Run

func (r Runner) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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