Documentation
¶
Overview ¶
Package provider adapts runtime-owned values into Bindly providers. It does not own a registry; every provider is registered in the invocation scope.
Index ¶
- func CallerOutput(value any) locator.Provider
- func Capabilities(capabilities rhandler.InvocationCapabilities) []locator.Provider
- func ComposeConstants(canonical locator.Provider, providers []locator.Provider) locator.Provider
- func Constants(source map[string]string) (locator.Provider, error)
- func Input() locator.Provider
- func Named(kind string, ...) locator.Provider
- func New(kind xhandler.ValueKey, resolve func(context.Context) (any, bool, error)) locator.Provider
- func Parameter() locator.Provider
- func Static(kind xhandler.ValueKey, value any) locator.Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallerOutput ¶
CallerOutput anchors the authored output source to the calling component's value. Field matching remains owned by Bindly's native struct locator. The child's ordinary param/input providers continue to use its canonical input.
func Capabilities ¶
func Capabilities(capabilities rhandler.InvocationCapabilities) []locator.Provider
Capabilities adapts present invocation capabilities to canonical Bindly providers. Absent values are omitted so parent-scope defaults remain visible.
func ComposeConstants ¶
ComposeConstants combines same-kind named providers. The canonical provider is trusted only because runtime passes it through a separate engine request slot; callers cannot mark an ordinary provider as canonical.
func Input ¶
Input exposes the canonical component input and its named fields from the active Bindly source state.
func Named ¶
func Named(kind string, resolve func(context.Context, reflect.Type, string) (any, bool, error)) locator.Provider
Named adapts a provider whose values are selected by a binding source name.
Types ¶
This section is empty.