extends

package
v0.2.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const InvocationType = "extends"

Variables

This section is empty.

Functions

func SetBases

func SetBases(bases map[string]*invocation.InvocationConfigWrapper)

Types

type ExtendsConfig

type ExtendsConfig struct {
	// From specifies the invocation base to extend from.
	From string `json:"from" jsonschema:"required"`
	// Extend adds or merges new fields into the base configuration (e.g., append to arrays, merge maps).
	Extend json.RawMessage `json:"extend,omitempty" jsonschema:"optional"`
	// Override replaces fields in the base configuration with new values.
	Override json.RawMessage `json:"override,omitempty" jsonschema:"optional"`
	// Remove deletes specific fields from the base configuration (e.g., remove map keys, clear strings).
	Remove json.RawMessage `json:"remove,omitempty" jsonschema:"optional"`
}

ExtendsConfig allows extending an invocation base with modifications.

func (*ExtendsConfig) DeepCopy

func (ec *ExtendsConfig) DeepCopy() invocation.InvocationConfig

func (*ExtendsConfig) Validate

func (ec *ExtendsConfig) Validate() error

type ExtendsFactory

type ExtendsFactory struct{}

func (*ExtendsFactory) CreateInvoker

func (f *ExtendsFactory) CreateInvoker(config invocation.InvocationConfig, primitive invocation.Primitive) (invocation.Invoker, error)

func (*ExtendsFactory) NewConfig

Jump to

Keyboard shortcuts

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