embedded

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package embedded preserves the v0.3 embedded vocabulary during migration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Permanent

func Permanent(err error) invocation.Outcome

func Retryable

func Retryable(err error) invocation.Outcome

func Success

func Success(result any) invocation.Outcome

func Unknown

func Unknown(err error) invocation.Outcome

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func New

func New(name, version string) *Builder

func (*Builder) AddFact

func (b *Builder) AddFact(name string, value any) *Builder

func (*Builder) AddSource

func (b *Builder) AddSource(path string, source []byte) *Builder

func (*Builder) AddVerb

func (b *Builder) AddVerb(verb Verb) *Builder

func (*Builder) Build

func (b *Builder) Build(ctx context.Context) (*Runtime, error)

Build adapts v0.3 callbacks inside this compatibility package. The result is an immutable checked generation; callbacks are never exposed to current APIs.

type HandlerFunc

HandlerFunc is the frozen v0.3 callback shape.

type Request

type Request struct {
	Namespace      string
	IdempotencyKey string
	Facts          map[string]any
	WaitMode       runtime.WaitMode
}

type Resource

type Resource struct {
	Name         string
	Capabilities []string
}

type Runtime

type Runtime struct {
	// contains filtered or unexported fields
}

func (*Runtime) Close

func (r *Runtime) Close() error

func (*Runtime) Execute

func (r *Runtime) Execute(ctx context.Context, request Request) (runtime.ExecuteResult, error)

type Verb

type Verb struct {
	Name         string
	Description  string
	ArgTypes     map[string]string
	RequiredArgs []string
	ReturnType   string
	InverseVerb  string
	Capabilities []string
	Resources    []Resource
	Handler      HandlerFunc
}

Jump to

Keyboard shortcuts

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