embedded

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlPlane

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

ControlPlane exposes the app-managed runtime control plane as an importable Go API. It intentionally reuses the public contract and controlplane types so callers do not need to shell out or duplicate the RPC protocol.

func New

func New() *ControlPlane

func (*ControlPlane) Describe

func (c *ControlPlane) Describe() contract.SystemDescriptor

func (*ControlPlane) GetThread added in v0.5.0

func (c *ControlPlane) GetThread(ctx context.Context, threadID string, providerSessionID string) (*contract.TrackedThread, error)

func (*ControlPlane) GetTrackedSession added in v0.5.0

func (c *ControlPlane) GetTrackedSession(ctx context.Context, sessionID string, providerSessionID string) (*contract.TrackedSession, error)

func (*ControlPlane) Interrupt

func (c *ControlPlane) Interrupt(ctx context.Context, sessionID string) (*contract.RuntimeEvent, error)

func (*ControlPlane) ListSessions

func (c *ControlPlane) ListSessions(ctx context.Context, runtime string) ([]contract.RuntimeSession, error)

func (*ControlPlane) ListTrackedSessions added in v0.5.0

func (c *ControlPlane) ListTrackedSessions(ctx context.Context, runtime string) ([]contract.TrackedSession, error)

func (*ControlPlane) Respond

func (*ControlPlane) ResumeSession

func (c *ControlPlane) ResumeSession(ctx context.Context, runtime string, request api.ResumeSessionRequest) (*contract.RuntimeSession, error)

func (*ControlPlane) SendInput

func (c *ControlPlane) SendInput(ctx context.Context, request api.SendInputRequest) (*contract.RuntimeEvent, error)

func (*ControlPlane) SetThreadMetadata added in v0.5.0

func (c *ControlPlane) SetThreadMetadata(ctx context.Context, threadID string, metadata contract.ThreadMetadata) error

func (*ControlPlane) StartSession

func (c *ControlPlane) StartSession(ctx context.Context, runtime string, request api.StartSessionRequest) (*contract.RuntimeSession, error)

func (*ControlPlane) StopSession

func (c *ControlPlane) StopSession(ctx context.Context, sessionID string) (*contract.RuntimeEvent, error)

func (*ControlPlane) SubscribeEvents

func (c *ControlPlane) SubscribeEvents(buffer int) (<-chan contract.RuntimeEvent, func())

Jump to

Keyboard shortcuts

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