Documentation ¶
Overview ¶
Package embed provides yaml discovery with embed actions definition.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TarGzEmbedActions ¶
TarGzEmbedActions tars and gzip action files to a file f.
Types ¶
type ActionsTarGzPlugin ¶ added in v0.16.0
type ActionsTarGzPlugin struct {
TarGz []byte
}
ActionsTarGzPlugin stores embed actions and sets them on app launch with OnAppInit function. It is used in the generated file provided by current package Plugin
func (*ActionsTarGzPlugin) OnAppInit ¶ added in v0.16.0
func (p *ActionsTarGzPlugin) OnAppInit(app launchr.App) error
OnAppInit implements launchr.Plugin interface.
func (*ActionsTarGzPlugin) PluginInfo ¶ added in v0.16.0
func (p *ActionsTarGzPlugin) PluginInfo() launchr.PluginInfo
PluginInfo implements launchr.Plugin interface.
type Plugin ¶
type Plugin struct{}
Plugin is a launchr.Plugin to discover actions defined in yaml and include ActionsTarGzPlugin with embed actions.
func (Plugin) Generate ¶
func (p Plugin) Generate(config launchr.GenerateConfig) error
Generate implements launchr.GeneratePlugin interface. It generates an actions.tar.gz archive and related init functionality.
func (Plugin) PluginInfo ¶
func (p Plugin) PluginInfo() launchr.PluginInfo
PluginInfo implements launchr.Plugin interface.