Documentation
¶
Index ¶
- func BundledRuntimeDescriptor(filename string) (host.RuntimeArtifactIdentity, error)
- func WithRouteRole(r *http.Request, role RouteRole) *http.Request
- func WithTrustedOrigin(r *http.Request, origin string) (*http.Request, error)
- type Integration
- func (i *Integration) BindActiveGeneration(ctx context.Context, generation PluginSessionGeneration) error
- func (i *Integration) Close() error
- func (i *Integration) DiscardFinalizedGeneration(ctx context.Context, generation PluginSessionGeneration) error
- func (i *Integration) Handler() http.Handler
- func (i *Integration) MaintainTerminalGeneration(ctx context.Context, generation PluginSessionGeneration) error
- func (i *Integration) MarketDetail(ctx context.Context, pluginID string) (pluginmarket.PluginDetail, int64, error)
- func (i *Integration) MarketError() error
- func (i *Integration) MarketIcon(ctx context.Context, pluginID, digest string) (pluginmarket.IconAsset, error)
- func (i *Integration) MarketSnapshot() (pluginmarket.Snapshot, bool)
- func (i *Integration) PluginProcessGeneration() string
- func (i *Integration) RecordCloseContinuation(ctx context.Context, generation PluginSessionGeneration) error
- func (i *Integration) RecordTerminalIntent(ctx context.Context, generation PluginSessionGeneration) error
- type Options
- type PluginSessionGeneration
- type RouteRole
- type RuntimeProcessAuthority
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BundledRuntimeDescriptor ¶ added in v0.11.0
func BundledRuntimeDescriptor(filename string) (host.RuntimeArtifactIdentity, error)
Types ¶
type Integration ¶
type Integration struct {
// contains filtered or unexported fields
}
func (*Integration) BindActiveGeneration ¶ added in v0.11.0
func (i *Integration) BindActiveGeneration(ctx context.Context, generation PluginSessionGeneration) error
func (*Integration) Close ¶
func (i *Integration) Close() error
func (*Integration) DiscardFinalizedGeneration ¶ added in v0.11.0
func (i *Integration) DiscardFinalizedGeneration(ctx context.Context, generation PluginSessionGeneration) error
func (*Integration) Handler ¶
func (i *Integration) Handler() http.Handler
func (*Integration) MaintainTerminalGeneration ¶ added in v0.11.0
func (i *Integration) MaintainTerminalGeneration(ctx context.Context, generation PluginSessionGeneration) error
MaintainTerminalGeneration delegates the entire durable teardown lifecycle to Host. Redeven retains only its in-process connection generation.
func (*Integration) MarketDetail ¶ added in v0.11.0
func (i *Integration) MarketDetail(ctx context.Context, pluginID string) (pluginmarket.PluginDetail, int64, error)
func (*Integration) MarketError ¶ added in v0.11.0
func (i *Integration) MarketError() error
func (*Integration) MarketIcon ¶ added in v0.11.0
func (i *Integration) MarketIcon(ctx context.Context, pluginID, digest string) (pluginmarket.IconAsset, error)
func (*Integration) MarketSnapshot ¶ added in v0.11.0
func (i *Integration) MarketSnapshot() (pluginmarket.Snapshot, bool)
func (*Integration) PluginProcessGeneration ¶ added in v0.11.0
func (i *Integration) PluginProcessGeneration() string
func (*Integration) RecordCloseContinuation ¶ added in v0.11.0
func (i *Integration) RecordCloseContinuation(ctx context.Context, generation PluginSessionGeneration) error
func (*Integration) RecordTerminalIntent ¶ added in v0.11.0
func (i *Integration) RecordTerminalIntent(ctx context.Context, generation PluginSessionGeneration) error
type Options ¶
type Options struct {
StateDir string
AgentHomeDir string
ResolveWorkspacePath workspacePathResolver
PermissionPolicy *config.PermissionPolicy
RuntimePath string
ResolveSessionMeta func(channelID string) (*session.Meta, bool)
Audit *auditlog.Store
Diagnostics *diagnostics.Store
Containers *containers.Adapter
RuntimeAuthority *RuntimeProcessAuthority
PluginMarket *pluginmarket.Service
// contains filtered or unexported fields
}
type PluginSessionGeneration ¶ added in v0.11.0
type PluginSessionGeneration struct {
Session sessionctx.Context
ProcessGeneration string
SessionGeneration string
}
PluginSessionGeneration is transient Redeven connection identity. Durable session-scope teardown state and its opaque identity are owned by Host.
func PluginSessionGenerationFromMeta ¶ added in v0.11.0
func PluginSessionGenerationFromMeta(meta *session.Meta, processGeneration, sessionGeneration string) (PluginSessionGeneration, error)
type RuntimeProcessAuthority ¶ added in v0.11.0
type RuntimeProcessAuthority struct {
// contains filtered or unexported fields
}
func NewRuntimeProcessAuthority ¶ added in v0.11.0
func NewRuntimeProcessAuthority(runtimeLock *lockfile.Lock, expectedLockPath, processGeneration string) (*RuntimeProcessAuthority, error)
func (*RuntimeProcessAuthority) ProcessGeneration ¶ added in v0.11.0
func (authority *RuntimeProcessAuthority) ProcessGeneration() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.