Documentation
¶
Index ¶
- Variables
- func NewPredefinedScriptCommand(ctx context.Context, command []string, envVarNames []string) (*exec.Cmd, error)
- func NewShellScriptCommand(ctx context.Context, scriptFile string, args []string) (*exec.Cmd, error)
- type EnrichScriptHandler
- type EnrichScriptInputs
- type EnrichScriptOutputs
- type RunPredefinedPowershellScriptConfig
- type RunPredefinedPowershellScriptHandler
- type RunPredefinedScriptConfig
- type RunPredefinedScriptHandler
- type RunPredefinedScriptInputs
- type RunPredefinedScriptOutputs
- type RunShellScriptHandler
- type Script
- type ScriptBundleConfig
- type ScriptDetails
- type Scripts
- type TestConnectionHandler
- type TestConnectionInputs
- type TestConnectionOutputs
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ScriptUserName = "dd-scriptuser"
)
Functions ¶
Types ¶
type EnrichScriptHandler ¶
type EnrichScriptHandler struct{}
func NewEnrichScriptHandler ¶
func NewEnrichScriptHandler() *EnrichScriptHandler
func (*EnrichScriptHandler) Run ¶
func (h *EnrichScriptHandler) Run( ctx context.Context, task *types.Task, credentials *privateconnection.PrivateCredentials, ) (interface{}, error)
type EnrichScriptInputs ¶
type EnrichScriptInputs = bundlesupport.EnrichedActionInputs
type EnrichScriptOutputs ¶
type EnrichScriptOutputs = bundlesupport.EnrichedActionOutputs
type RunPredefinedPowershellScriptConfig ¶
type RunPredefinedPowershellScriptConfig struct {
Script string `yaml:"script,omitempty"`
File string `yaml:"file,omitempty"`
Arguments []string `yaml:"arguments,omitempty"`
ParameterSchema map[string]interface{} `yaml:"parameterSchema,omitempty"`
AllowedEnvVars []string `yaml:"allowedEnvVars,omitempty"`
}
type RunPredefinedPowershellScriptHandler ¶
type RunPredefinedPowershellScriptHandler struct{}
RunPredefinedPowershellScriptHandler is a stub for non-Windows platforms or when the private_runner_experimental build tag is not set.
func NewRunPredefinedPowershellScriptHandler ¶
func NewRunPredefinedPowershellScriptHandler() *RunPredefinedPowershellScriptHandler
NewRunPredefinedPowershellScriptHandler returns a stub handler.
func (*RunPredefinedPowershellScriptHandler) Run ¶
func (h *RunPredefinedPowershellScriptHandler) Run( _ context.Context, _ *types.Task, _ *privateconnection.PrivateCredentials, ) (interface{}, error)
type RunPredefinedScriptHandler ¶
type RunPredefinedScriptHandler struct {
}
func NewRunPredefinedScriptHandler ¶
func NewRunPredefinedScriptHandler() *RunPredefinedScriptHandler
func (*RunPredefinedScriptHandler) Run ¶
func (h *RunPredefinedScriptHandler) Run( ctx context.Context, task *types.Task, credentials *privateconnection.PrivateCredentials, ) (interface{}, error)
type RunShellScriptHandler ¶
type RunShellScriptHandler struct{}
func NewRunShellScriptHandler ¶
func NewRunShellScriptHandler() *RunShellScriptHandler
func (*RunShellScriptHandler) Run ¶
func (h *RunShellScriptHandler) Run( ctx context.Context, task *types.Task, credentials *privateconnection.PrivateCredentials, ) (interface{}, error)
type ScriptBundleConfig ¶
type ScriptBundleConfig struct {
SchemaId string `yaml:"schemaId"`
RunPredefinedScript map[string]RunPredefinedScriptConfig `yaml:"runPredefinedScript,omitempty"`
RunPredefinedPowershellScript map[string]RunPredefinedPowershellScriptConfig `yaml:"runPredefinedPowershellScript,omitempty"`
}
type ScriptDetails ¶
type TestConnectionHandler ¶
type TestConnectionHandler struct {
}
func NewTestConnectionHandler ¶
func NewTestConnectionHandler() *TestConnectionHandler
func (*TestConnectionHandler) Run ¶
func (h *TestConnectionHandler) Run( ctx context.Context, task *types.Task, credentials *privateconnection.PrivateCredentials, ) (interface{}, error)
type TestConnectionInputs ¶
type TestConnectionInputs struct {
}
type TestConnectionOutputs ¶
Click to show internal directories.
Click to hide internal directories.