Documentation ¶
Rendered for windows/amd64
Index ¶
Constants ¶
View Source
const ( INSTALL = "Install" UNINSTALL = "Uninstall" REPAIR = "Repair" )
View Source
const ( ErrorUnknownProduct = 1605 ErrorSuccessRebootInitiated = 1641 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApplicationPluginInput ¶
type ApplicationPluginInput struct { contracts.PluginInput ID string Action string Parameters string Source string SourceHash string SourceHashType string }
ApplicationPluginInput represents one set of commands executed by the Applications plugin.
type ApplicationPluginOutput ¶
type ApplicationPluginOutput struct {
contracts.PluginOutput
}
ApplicationPluginOutput represents the output of the plugin
func (*ApplicationPluginOutput) MarkAsFailed ¶
func (out *ApplicationPluginOutput) MarkAsFailed(log log.T, err error)
Failed marks plugin as Failed
type Plugin ¶
type Plugin struct {
pluginutil.DefaultPlugin
}
Plugin is the type for the applications plugin.
func NewPlugin ¶
func NewPlugin(pluginConfig pluginutil.PluginConfig) (*Plugin, error)
NewPlugin returns a new instance of the plugin.
func (*Plugin) Execute ¶
func (p *Plugin) Execute(context context.T, config contracts.Configuration, cancelFlag task.CancelFlag) (res contracts.PluginResult)
Execute runs multiple sets of commands and returns their outputs. res.Output will contain a slice of PluginOutput.
Click to show internal directories.
Click to hide internal directories.