Documentation ¶
Index ¶
- Constants
- Variables
- func All(db *sql.DB) ([]sdk.TemplateExtension, error)
- func Apply(db database.Querier, templ template.Interface, proj *sdk.Project, ...) (*sdk.Application, error)
- func Delete(db *sql.DB, sdktmpl *sdk.TemplateExtension) error
- func Get(name, path string) (*sdk.TemplateExtension, []sdk.TemplateParam, error)
- func Insert(db *sql.DB, sdktmpl *sdk.TemplateExtension) error
- func Instance(tmpl *sdk.TemplateExtension, u *sdk.User, sessionKey sessionstore.SessionKey) (template.Interface, func(), error)
- func LoadByID(db *sql.DB, id int64) (*sdk.TemplateExtension, error)
- func LoadByName(db *sql.DB, name string) (*sdk.TemplateExtension, error)
- func LoadByType(db *sql.DB, t string) ([]sdk.Template, error)
- func Update(db *sql.DB, sdktmpl *sdk.TemplateExtension) error
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 LoadByName ¶
LoadByName returns a templateextension from its name
func LoadByType ¶
LoadByType returns list of templates by type
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.