machinery

package
v3.0.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFileAlreadyExistsError

func IsFileAlreadyExistsError(err error) bool

IsFileAlreadyExistsError checks if the returned error is because the file already existed when expected not to

func IsModelAlreadyExistsError

func IsModelAlreadyExistsError(err error) bool

IsModelAlreadyExistsError checks if the returned error is because the model already existed when expected not to

func IsUnknownIfExistsActionError

func IsUnknownIfExistsActionError(err error) bool

IsUnknownIfExistsActionError checks if the returned error is because the if-exists-action is unknown

Types

type Scaffold

type Scaffold interface {
	// Execute writes to disk the provided files
	Execute(*model.Universe, ...file.Builder) error
}

Scaffold uses templates to scaffold new files

func NewScaffold

func NewScaffold(plugins ...model.Plugin) Scaffold

NewScaffold returns a new Scaffold with the provided plugins

Jump to

Keyboard shortcuts

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