internal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package internal implements the workflow-plugin-migrations plugin. It provides database.migrations and database.migration_driver module types, plus step.migrate_up, step.migrate_down, step.migrate_status, step.migrate_to step types. Drivers: golang-migrate, goose.

Index

Constants

This section is empty.

Variables

View Source
var Version = "0.0.0"

Version is set at build time via -ldflags.

Functions

func NewPlugin

func NewPlugin() sdk.PluginProvider

NewPlugin returns a new plugin instance.

Types

type MigrationsPlugin

type MigrationsPlugin struct{}

MigrationsPlugin implements sdk.PluginProvider, sdk.ModuleProvider, and sdk.StepProvider.

func (*MigrationsPlugin) CreateModule

func (p *MigrationsPlugin) CreateModule(typeName, name string, cfg map[string]any) (sdk.ModuleInstance, error)

CreateModule creates a module instance of the given type.

func (*MigrationsPlugin) CreateStep

func (p *MigrationsPlugin) CreateStep(typeName, name string, cfg map[string]any) (sdk.StepInstance, error)

CreateStep creates a step instance of the given type.

func (*MigrationsPlugin) Manifest

func (p *MigrationsPlugin) Manifest() sdk.PluginManifest

Manifest returns plugin metadata.

func (*MigrationsPlugin) ModuleTypes

func (p *MigrationsPlugin) ModuleTypes() []string

ModuleTypes returns module type names this plugin provides.

func (*MigrationsPlugin) StepTypes

func (p *MigrationsPlugin) StepTypes() []string

StepTypes returns step type names this plugin provides.

Directories

Path Synopsis
Package atlas provides a MigrationDriver backed by ariga.io/atlas v1.
Package atlas provides a MigrationDriver backed by ariga.io/atlas v1.
Package atlasplugin provides the Atlas migration driver plugin.
Package atlasplugin provides the Atlas migration driver plugin.
Package golangmigrate provides a MigrationDriver backed by golang-migrate/migrate/v4.
Package golangmigrate provides a MigrationDriver backed by golang-migrate/migrate/v4.
Package goose provides a MigrationDriver backed by pressly/goose/v3.
Package goose provides a MigrationDriver backed by pressly/goose/v3.
Package steps provides pipeline step implementations for database migrations.
Package steps provides pipeline step implementations for database migrations.

Jump to

Keyboard shortcuts

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