resource

package
v2.0.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Plugins

func Plugins() []plugins.Plugin

Types

type ActionTester

type ActionTester interface {
	GenerateResourceActionTests(ctx context.Context, root string, args []string) error
}

type Actioner

type Actioner interface {
	GenerateResourceActions(ctx context.Context, root string, args []string) error
}

type AfterGenerator

type AfterGenerator interface {
	AfterGenerateResource(ctx context.Context, root string, args []string, err error) error
}

type BeforeGenerator

type BeforeGenerator interface {
	BeforeGenerateResource(ctx context.Context, root string, args []string) error
}

type Flagger

type Flagger interface {
	plugins.Plugin
	ResourceFlags() []*flag.Flag
}

type Generator

type Generator struct {
	SkipActionTests    bool
	SkipActions        bool
	SkipMigrationTests bool
	SkipMigrations     bool
	SkipModelTests     bool
	SkipModels         bool
	SkipTemplateTests  bool
	SkipTemplates      bool
	// contains filtered or unexported fields
}

func (Generator) CmdAliases

func (g Generator) CmdAliases() []string

func (*Generator) Flags

func (g *Generator) Flags() *pflag.FlagSet

func (*Generator) Generate

func (g *Generator) Generate(ctx context.Context, root string, args []string) error

Generate implements generate.Generator and is the entry point for `buffalo generate resource`

func (Generator) PluginName

func (g Generator) PluginName() string

func (*Generator) PrintFlags

func (g *Generator) PrintFlags(w io.Writer) error

func (*Generator) ScopedPlugins

func (g *Generator) ScopedPlugins() []plugins.Plugin

func (*Generator) WithPlugins

func (g *Generator) WithPlugins(f plugins.Feeder)

type MigrationTester

type MigrationTester interface {
	GenerateResourceMigrationTests(ctx context.Context, root string, args []string) error
}

type Migrationer

type Migrationer interface {
	GenerateResourceMigrations(ctx context.Context, root string, args []string) error
}

type ModelTester

type ModelTester interface {
	GenerateResourceModelTests(ctx context.Context, root string, args []string) error
}

type Modeler

type Modeler interface {
	GenerateResourceModels(ctx context.Context, root string, args []string) error
}

type Pflagger

type Pflagger interface {
	plugins.Plugin
	ResourceFlags() []*pflag.Flag
}

type ResourceGenerator

type ResourceGenerator interface {
	GenerateResource(ctx context.Context, root string, args []string) error
}

type Stdouter

type Stdouter = plugio.Outer

type TemplateTester

type TemplateTester interface {
	GenerateResourceTemplateTests(ctx context.Context, root string, args []string) error
}

type Templater

type Templater interface {
	GenerateResourceTemplates(ctx context.Context, root string, args []string) error
}

Jump to

Keyboard shortcuts

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