buffalo: github.com/gobuffalo/buffalo/genny/resource Index | Files

package resource

import "github.com/gobuffalo/buffalo/genny/resource"

You can use the "packr clean" command to clean up this, and any other packr generated files.

Index

Package Files

actions.go models.go options.go presenter.go resource-packr.go resource.go

func New Uses

func New(opts *Options) (*genny.Generator, error)

New resource generator

type Options Uses

type Options struct {
    App           meta.App    `json:"app"`
    Name          string      `json:"name"`
    Model         string      `json:"model"`
    SkipMigration bool        `json:"skip_migration"`
    SkipModel     bool        `json:"skip_model"`
    SkipTemplates bool        `json:"skip_templates"`
    Attrs         attrs.Attrs `json:"props"`
}

Options for generating a new resource

func (*Options) Validate Uses

func (opts *Options) Validate() error

Validate that options are usuable

Package resource imports 13 packages (graph) and is imported by 3 packages. Updated 2019-07-28. Refresh now. Tools for package owners.