provider

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 9 Imported by: 1

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallerOutput

func CallerOutput(value any) locator.Provider

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

func ComposeConstants(canonical locator.Provider, providers []locator.Provider) locator.Provider

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 Constants

func Constants(source map[string]string) (locator.Provider, error)

Constants exposes immutable component constants as one named Bindly source.

func Input

func Input() locator.Provider

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.

func New

func New(kind xhandler.ValueKey, resolve func(context.Context) (any, bool, error)) locator.Provider

New adapts one invocation-local value resolver to a Bindly provider.

func Parameter

func Parameter() locator.Provider

Parameter resolves a derived param datapoint from the invocation input state.

func Static

func Static(kind xhandler.ValueKey, value any) locator.Provider

Static exposes one immutable invocation value under the supplied key.

Types

This section is empty.

Directories

Path Synopsis
Package cache adapts explicitly named caches to native Bindly injection.
Package cache adapts explicitly named caches to native Bindly injection.
Package clients is the composition-root wiring for outbound client capabilities.
Package clients is the composition-root wiring for outbound client capabilities.

Jump to

Keyboard shortcuts

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