eventingstructs

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: BSD-3-Clause Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	OPSEC_ROLE_LEAD           OPSEC_ROLE = "lead"
	OPSEC_ROLE_OPERATOR                  = "operator"
	OPSEC_ROLE_OTHER_OPERATOR            = "other_operator"
)

Variables

View Source
var (
	AllEventingData containerEventingData
)

Functions

This section is empty.

Types

type ConditionalCheckDefinition

type ConditionalCheckDefinition struct {
	Name        string                                                                              `json:"name"`
	Description string                                                                              `json:"description"`
	Function    func(input ConditionalCheckEventingMessage) ConditionalCheckEventingMessageResponse `json:"-"`
}

type ConditionalCheckEventingMessage

type ConditionalCheckEventingMessage struct {
	EventStepInstanceID int                    `json:"eventstepinstance_id"`
	FunctionName        string                 `json:"function_name"`
	ContainerName       string                 `json:"container_name"`
	Environment         map[string]interface{} `json:"environment"`
	Inputs              map[string]interface{} `json:"inputs"`
	ActionData          map[string]interface{} `json:"action_data"`
}

type ConditionalCheckEventingMessageResponse

type ConditionalCheckEventingMessageResponse struct {
	EventStepInstanceID int                    `json:"eventstepinstance_id" mapstructure:"eventstepinstance_id"`
	Success             bool                   `json:"success" mapstructure:"success"`
	StdOut              string                 `json:"stdout" mapstructure:"stdout"`
	StdErr              string                 `json:"stderr" mapstructure:"stderr"`
	Outputs             map[string]interface{} `json:"outputs" mapstructure:"outputs"`
	SkipStep            bool                   `json:"skip_step" mapstructure:"skip_step"`
}

type CustomFunctionDefinition

type CustomFunctionDefinition struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	// SemVer is a specific semantic version tracker you can use for your payload type
	SemVer   string                                                                `json:"semver"`
	Function func(input NewCustomEventingMessage) NewCustomEventingMessageResponse `json:"-"`
}

type EventingDefinition

type EventingDefinition struct {
	Name                      string `json:"name"`
	Description               string `json:"description"`
	CustomFunctions           []CustomFunctionDefinition
	ConditionalChecks         []ConditionalCheckDefinition
	TaskInterceptFunction     func(input TaskInterceptMessage) TaskInterceptMessageResponse                             `json:"-"`
	ResponseInterceptFunction func(input ResponseInterceptMessage) ResponseInterceptMessageResponse                     `json:"-"`
	Subscriptions             []string                                                                                  `json:"subscriptions"`
	OnContainerStartFunction  func(sharedStructs.ContainerOnStartMessage) sharedStructs.ContainerOnStartMessageResponse `json:"-"`
}

type NewCustomEventingMessage

type NewCustomEventingMessage struct {
	EventStepInstanceID int                    `json:"eventstepinstance_id"`
	FunctionName        string                 `json:"function_name"`
	ContainerName       string                 `json:"container_name"`
	Environment         map[string]interface{} `json:"environment"`
	Inputs              map[string]interface{} `json:"inputs"`
	ActionData          map[string]interface{} `json:"action_data"`
}

type NewCustomEventingMessageResponse

type NewCustomEventingMessageResponse struct {
	EventStepInstanceID int                    `json:"eventstepinstance_id"`
	Success             bool                   `json:"success"`
	StdOut              string                 `json:"stdout"`
	StdErr              string                 `json:"stderr"`
	Outputs             map[string]interface{} `json:"outputs"`
}

type OPSEC_ROLE

type OPSEC_ROLE string

type ResponseInterceptMessage

type ResponseInterceptMessage struct {
	EventStepInstanceID int                    `json:"eventstepinstance_id"`
	ResponseID          int                    `json:"response_id"`
	CallbackID          int                    `json:"callback_id"`
	CallbackDisplayID   int                    `json:"callback_display_id"`
	AgentCallbackID     string                 `json:"agent_callback_id"`
	ContainerName       string                 `json:"container_name"`
	Environment         map[string]interface{} `json:"environment"`
	Inputs              map[string]interface{} `json:"inputs"`
	ActionData          map[string]interface{} `json:"action_data"`
}

type ResponseInterceptMessageResponse

type ResponseInterceptMessageResponse struct {
	EventStepInstanceID int                    `json:"eventstepinstance_id" mapstructure:"eventstepinstance_id"`
	ResponseID          int                    `json:"response_id" mapstructure:"response_id"`
	Success             bool                   `json:"success" mapstructure:"success"`
	StdOut              string                 `json:"stdout" mapstructure:"stdout"`
	StdErr              string                 `json:"stderr" mapstructure:"stderr"`
	Outputs             map[string]interface{} `json:"outputs" mapstructure:"outputs"`
	Response            string                 `json:"response" mapstructure:"response"`
}

type TaskInterceptMessage

type TaskInterceptMessage struct {
	EventStepInstanceID int                    `json:"eventstepinstance_id"`
	TaskID              int                    `json:"task_id"`
	CallbackID          int                    `json:"callback_id"`
	ContainerName       string                 `json:"container_name"`
	Environment         map[string]interface{} `json:"environment"`
	Inputs              map[string]interface{} `json:"inputs"`
	ActionData          map[string]interface{} `json:"action_data"`
}

type TaskInterceptMessageResponse

type TaskInterceptMessageResponse struct {
	EventStepInstanceID int                    `json:"eventstepinstance_id" mapstructure:"eventstepinstance_id"`
	TaskID              int                    `json:"task_id" mapstructure:"task_id"`
	Success             bool                   `json:"success" mapstructure:"success"`
	StdOut              string                 `json:"stdout" mapstructure:"stdout"`
	StdErr              string                 `json:"stderr" mapstructure:"stderr"`
	BlockTask           bool                   `json:"block_task" mapstructure:"block_task"`
	BypassRole          OPSEC_ROLE             `json:"bypass_role" mapstructure:"bypass_role"`
	BypassMessage       string                 `json:"bypass_message" mapstructure:"bypass_message"`
	Outputs             map[string]interface{} `json:"outputs" mapstructure:"outputs"`
}

Jump to

Keyboard shortcuts

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