embed

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

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

func TarGzEmbedActions(f io.Writer, baseDir string, actions []*action.Action) error

TarGzEmbedActions tars and gzip action files to a file f.

func UntarFsBytes

func UntarFsBytes(t []byte) (fs.FS, error)

UntarFsBytes unzip and untar bytes to in-memory FS.

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.

Jump to

Keyboard shortcuts

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