com_datadoghq_script

package
v0.0.0-...-786a872 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPredefinedScriptCommand

func NewPredefinedScriptCommand(ctx context.Context, command []string, envVarNames []string) *exec.Cmd

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 RunPredefinedScriptConfig

type RunPredefinedScriptConfig struct {
	Command         []string               `yaml:"command"`
	ParameterSchema map[string]interface{} `yaml:"parameterSchema,omitempty"`
	AllowedEnvVars  []string               `yaml:"allowedEnvVars,omitempty"`
}

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 RunPredefinedScriptInputs

type RunPredefinedScriptInputs struct {
	ScriptName             string      `json:"scriptName"`
	Parameters             interface{} `json:"parameters"`
	Timeout                int         `json:"timeout"`
	NoFailOnError          bool        `json:"noFailOnError"`
	NoStripTrailingNewline bool        `json:"noStripTrailingNewline"`
}

type RunPredefinedScriptOutputs

type RunPredefinedScriptOutputs struct {
	ExecutedCommand string `json:"executedCommand"`
	ExitCode        int    `json:"exitCode"`
	Stdout          string `json:"stdout"`
	Stderr          string `json:"stderr"`
	DurationMillis  int    `json:"durationMillis"`
}

type Script

type Script struct {
	// contains filtered or unexported fields
}

func NewScript

func NewScript() *Script

func (*Script) GetAction

func (h *Script) GetAction(actionName string) types.Action

type ScriptBundleConfig

type ScriptBundleConfig struct {
	SchemaId            string                               `yaml:"schemaId"`
	RunPredefinedScript map[string]RunPredefinedScriptConfig `yaml:"runPredefinedScript,omitempty"`
}

type ScriptDetails

type ScriptDetails struct {
	Command         []string               `json:"command"`
	ParameterSchema map[string]interface{} `json:"parameterSchema,omitempty"`
	AllowedEnvVars  []string               `json:"allowedEnvVars,omitempty"`
}

type Scripts

type Scripts struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

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

type TestConnectionOutputs struct {
	ConfigurationValid bool                     `json:"configurationValid"`
	ScriptUserValid    bool                     `json:"scriptUserValid"`
	ScriptUserInfo     string                   `json:"scriptUserInfo"`
	AvailableScripts   map[string]ScriptDetails `json:"availableScripts"`
	Errors             []string                 `json:"errors"`
}

Jump to

Keyboard shortcuts

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