templateextension

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2017 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const UglyID = 10000

Variables

View Source
var EmptyTemplate = sdk.Template{
	ID:          UglyID,
	Name:        "Void",
	Description: "Empty template",
}

Functions

func All

func All(db *sql.DB) ([]sdk.TemplateExtension, error)

All returns all template extensions

func Apply

func Apply(db database.Querier, templ template.Interface, proj *sdk.Project, params []sdk.TemplateParam, appName string) (*sdk.Application, error)

Apply will call the apply function of the template and returns a fresh new application

func Delete

func Delete(db *sql.DB, sdktmpl *sdk.TemplateExtension) error

Delete deletes the provided template given it ID

func Get

func Get(name, path string) (*sdk.TemplateExtension, []sdk.TemplateParam, error)

Get returns action plugin metadata and parameters list

func Insert

func Insert(db *sql.DB, sdktmpl *sdk.TemplateExtension) error

Insert inserts a new template

func Instance

func Instance(tmpl *sdk.TemplateExtension, u *sdk.User, sessionKey sessionstore.SessionKey) (template.Interface, func(), error)

Instance returns the template instance

func LoadByID

func LoadByID(db *sql.DB, id int64) (*sdk.TemplateExtension, error)

LoadByID returns a templateextension from its ID

func LoadByName

func LoadByName(db *sql.DB, name string) (*sdk.TemplateExtension, error)

LoadByName returns a templateextension from its name

func LoadByType

func LoadByType(db *sql.DB, t string) ([]sdk.Template, error)

LoadByType returns list of templates by type

func Update

func Update(db *sql.DB, sdktmpl *sdk.TemplateExtension) error

Update updates the provided template given it ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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