resource

package
v0.0.0-...-463c03f Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

New resource generator

Types

type Options

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

func (opts *Options) Validate() error

Validate that options are usuable

Jump to

Keyboard shortcuts

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