client

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 21 Imported by: 0 modules, 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

Overview

Package client implements the UI-independent OpenRealtime management API. It is the executable reference used by headless clients and by platform adapters: redirects are refused, capabilities never enter URLs, responses are bounded and strictly decoded, and returned identities are rebound to the exact request before they are exposed to a renderer or operator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CapabilityFunc

type CapabilityFunc func(context.Context, management.Operation, string) (string, error)

func (CapabilityFunc) Capability

func (function CapabilityFunc) Capability(
	ctx context.Context, operation management.Operation, resource string,
) (string, error)

type CapabilitySource

type CapabilitySource interface {
	Capability(context.Context, management.Operation, string) (string, error)
}

CapabilitySource supplies the narrow token for one operation and resource. Implementations may mint short-lived session tokens or select an operator capability; the client never caches the returned token.

type Client

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

Client implements every management service over HTTP. A deployment can expose only a subset of route families; absent families return ErrNotFound.

func New

func New(config Config) (*Client, error)

func (*Client) Analyze

func (client *Client) Analyze(
	ctx context.Context, document management.AuthoringDocument,
) (management.AnalysisResult, error)

func (*Client) Apply

func (*Client) Compile

func (client *Client) Compile(
	ctx context.Context, document management.AuthoringDocument,
) (management.CompileResult, error)

func (*Client) Deltas

func (client *Client) Deltas(
	ctx context.Context, session string, after uint64, limit uint32,
) (management.DeltaPage, error)

func (*Client) ElementDescriptor

func (client *Client) ElementDescriptor(
	ctx context.Context, identity element.Identity,
) (element.Descriptor, error)

func (*Client) Graph

func (client *Client) Graph(ctx context.Context, fingerprint string) (ir.Graph, error)

func (*Client) Model

func (client *Client) Model(ctx context.Context, session string) (inspect.Model, error)

func (*Client) PluginDescriptor

func (client *Client) PluginDescriptor(
	ctx context.Context, identity plugin.Identity,
) (plugin.Descriptor, error)

func (*Client) Publish

func (*Client) Read

func (*Client) Rename

func (*Client) Render

func (client *Client) Render(
	ctx context.Context, request management.RenderRequest,
) (management.RenderResult, error)

func (*Client) Snapshot

func (client *Client) Snapshot(ctx context.Context, session string) (inspect.Live, error)

func (*Client) Trace

func (client *Client) Trace(ctx context.Context, session string) (inspect.LiveTrace, error)

func (*Client) ValuesSchema

func (client *Client) ValuesSchema(ctx context.Context, fingerprint string) (schema.Bundle, error)

type Config

type Config struct {
	BaseURL      string
	HTTPClient   *http.Client
	Capabilities CapabilitySource
	Timeout      time.Duration
}

type StaticCapability

type StaticCapability string

StaticCapability is useful for a single narrowly scoped test or local process. Production callers should normally mint per-session capabilities.

func (StaticCapability) Capability

func (capability StaticCapability) Capability(
	_ context.Context, _ management.Operation, _ string,
) (string, error)

Jump to

Keyboard shortcuts

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