extends

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 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 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