techpack

package
v0.0.0-...-5aa591a Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2018 License: AGPL-3.0, AGPL-3.0-or-later Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	// Folder name of tech pack
	RecipePath() string
	// Used to set up default endpoints and such
	CreateProjectPlugin() error
	// Returns filename of the file generated from code.tpl
	Outfile() string
	AddTemplateFuncs(fm *template.FuncMap)
	// FilesToBuild returns a list of files that one should write to the build folder
	// Returns a list of []string{file name, file content}
	FilesToBuild() [][]string
}

Provider is the interface every tech pack plugin must implement

func GetProvider

func GetProvider(proj *domain.Project) Provider

GetProvider returns the plugin the project uses based on its mode and recipe

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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