Documentation
¶
Index ¶
- Constants
- func GetInstallSentinelPath(pack string) string
- func NewInstallScriptPowerUp() types.PowerUp
- func RegisterInstallScriptPowerUpFactory()
- type InstallScriptPowerUp
- func (p *InstallScriptPowerUp) Description() string
- func (p *InstallScriptPowerUp) GetTemplateContent() string
- func (p *InstallScriptPowerUp) Name() string
- func (p *InstallScriptPowerUp) Process(matches []types.TriggerMatch) ([]types.Action, error)
- func (p *InstallScriptPowerUp) RunMode() types.RunMode
- func (p *InstallScriptPowerUp) ValidateOptions(options map[string]interface{}) error
Constants ¶
View Source
const (
// InstallScriptPowerUpName is the unique name for the install script power-up
InstallScriptPowerUpName = "install_script"
)
Variables ¶
This section is empty.
Functions ¶
func GetInstallSentinelPath ¶
GetSentinelPath returns the path to the sentinel file for a pack
func NewInstallScriptPowerUp ¶
NewInstallScriptPowerUp creates a new instance of the install script power-up
func RegisterInstallScriptPowerUpFactory ¶
func RegisterInstallScriptPowerUpFactory()
RegisterInstallScriptPowerUpFactory registers the install script power-up factory
Types ¶
type InstallScriptPowerUp ¶
type InstallScriptPowerUp struct{}
InstallScriptPowerUp runs install.sh scripts
func (*InstallScriptPowerUp) Description ¶
func (p *InstallScriptPowerUp) Description() string
Description returns a human-readable description of what this power-up does
func (*InstallScriptPowerUp) GetTemplateContent ¶
func (p *InstallScriptPowerUp) GetTemplateContent() string
GetTemplateContent returns the template content for this power-up
func (*InstallScriptPowerUp) Name ¶
func (p *InstallScriptPowerUp) Name() string
Name returns the unique name of this power-up
func (*InstallScriptPowerUp) Process ¶
func (p *InstallScriptPowerUp) Process(matches []types.TriggerMatch) ([]types.Action, error)
Process takes install script matches and generates install actions
func (*InstallScriptPowerUp) RunMode ¶
func (p *InstallScriptPowerUp) RunMode() types.RunMode
RunMode returns whether this power-up runs once or many times
func (*InstallScriptPowerUp) ValidateOptions ¶
func (p *InstallScriptPowerUp) ValidateOptions(options map[string]interface{}) error
ValidateOptions checks if the provided options are valid for this power-up
Click to show internal directories.
Click to hide internal directories.