runtime

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalFromMap

func UnmarshalFromMap[T any](data map[string]any) (T, error)

UnmarshalFromMap is a helper to convert a map[string]any to a struct using mapstructure for efficient and robust conversion.

Types

type ExecutionContextData

type ExecutionContextData struct {
	Inputs    map[string]any       `json:"inputs"`
	Config    map[string]any       `json:"config"`
	Secrets   map[string]string    `json:"secrets"`
	StoryInfo engram.StoryInfo     `json:"storyInfo"`
	StoryRef  *refs.StoryReference `json:"storyRef,omitempty"`
	StartedAt metav1.Time          `json:"startedAt"`
	Storage   *StorageConfig       `json:"storage,omitempty"`
	Execution ExecutionInfo        `json:"execution"`
}

ExecutionContextData is the structure of the data provided by the bobrapet controller to the SDK.

func LoadExecutionContextData

func LoadExecutionContextData() (*ExecutionContextData, error)

LoadExecutionContextData loads the execution context from environment variables.

type ExecutionInfo

type ExecutionInfo struct {
	Mode          string
	StepTimeout   time.Duration
	MaxInlineSize int
	GRPCPort      int
}

ExecutionInfo holds runtime parameters for the current step execution.

type S3StorageConfig

type S3StorageConfig struct {
	Bucket   string
	Region   string
	Endpoint string
}

S3StorageConfig holds S3-specific storage configuration.

type StorageConfig

type StorageConfig struct {
	Provider string
	S3       *S3StorageConfig
	Timeout  time.Duration
}

StorageConfig holds the configuration for object storage.

Jump to

Keyboard shortcuts

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