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 ¶
func (f *ExtendsFactory) NewConfig() invocation.InvocationConfig
Click to show internal directories.
Click to hide internal directories.