Documentation ¶
Overview ¶
Package runscript implements the RunScript plugin. RunPowerShellScript contains implementation of the plugin that runs powershell scripts on linux or windows
Package runscript implements the runscript plugin.
Package runscript implements the RunScript plugin. RunShellScript contains implementation of the plugin that runs shell scripts on linux
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRunPowerShellPlugin ¶
func NewRunPowerShellPlugin() (*runPowerShellPlugin, error)
NewRunPowerShellPlugin returns a new instance of the PSPlugin.
func NewRunShellPlugin ¶
NewRunShellPlugin returns a new instance of the SHPlugin.
Types ¶
type Plugin ¶
type Plugin struct { // ExecuteCommand is an object that can execute commands. CommandExecuter executers.T // Name is the plugin name (PowerShellScript or ShellScript) Name string ScriptName string ShellCommand string ShellArguments []string ByteOrderMark fileutil.ByteOrderMark }
Plugin is the type for the runscript plugin.
type RunScriptPluginInput ¶
type RunScriptPluginInput struct { contracts.PluginInput RunCommand []string ID string WorkingDirectory string TimeoutSeconds interface{} }
RunScriptPluginInput represents one set of commands executed by the RunScript plugin.
Click to show internal directories.
Click to hide internal directories.