extensions

package
v1.0.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package extensions provides the framework for registering and applying extensions to the scaffold generation process.

Index

Constants

This section is empty.

Variables

View Source
var Files embed.FS

Functions

func Names

func Names() []string

func Register

func Register(ext Extension) error

Types

type AwsSes

type AwsSes struct{}

func (AwsSes) Apply

func (e AwsSes) Apply(ctx *Context) error

func (AwsSes) Dependencies

func (e AwsSes) Dependencies() []string

func (AwsSes) Name

func (e AwsSes) Name() string

type Context

type Context struct {
	TargetDir         string
	Data              TemplateData
	ProcessTemplate   ProcessTemplateFunc
	AddPostStep       func(func(targetDir string) error)
	NextMigrationTime *time.Time
}

func (*Context) Builder

func (ctx *Context) Builder() *blueprint.Builder

Builder returns the blueprint builder for structured contributions.

type Docker

type Docker struct{}

func (Docker) Apply

func (d Docker) Apply(ctx *Context) error

func (Docker) Dependencies

func (d Docker) Dependencies() []string

func (Docker) Name

func (d Docker) Name() string

type Extension

type Extension interface {
	Name() string
	Apply(ctx *Context) error
	Dependencies() []string
}

func Get

func Get(name string) (Extension, bool)

type Paddle

type Paddle struct{}

func (Paddle) Apply

func (e Paddle) Apply(ctx *Context) error

func (Paddle) Dependencies

func (e Paddle) Dependencies() []string

func (Paddle) Name

func (e Paddle) Name() string

type ProcessTemplateFunc

type ProcessTemplateFunc func(templateFile, targetPath string, data TemplateData) error

type TemplateData

type TemplateData interface {
	DatabaseDialect() string
	GetModuleName() string
	Builder() *blueprint.Builder
	SetBlueprint(bp *blueprint.Blueprint)
}

type Workflows

type Workflows struct{}

func (Workflows) Apply

func (w Workflows) Apply(ctx *Context) error

func (Workflows) Dependencies

func (w Workflows) Dependencies() []string

func (Workflows) Name

func (w Workflows) Name() string

Jump to

Keyboard shortcuts

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