Help us shape the future of Go! Take the 2026 Go Developer Survey

pocketidruntime

package
v0.55.3 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package pocketidruntime observes the existing Core's single-host Docker/SQLite provider. Callers hold the installation lifecycle mutation lock throughout a transition or managed command; this package does not create another lifecycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Complete

func Complete(ctx context.Context, workspace, project string, definition []byte, installed localevidence.OwnerRuntimeBinding) (localevidence.OwnerRuntimeBinding, error)

Complete binds the actual new incarnation to existing signed installation evidence. A restart/recreate invalidates it until the executor re-observes it.

func Prepare

func Prepare(ctx context.Context, workspace, project string, definition []byte) error

Prepare runs before every supported executor's up. The old container's process, HTTP queues, and restart identity must be gone before replacement. Restore activation and rollback use it: their data swap needs the drain.

func PrepareApply added in v0.55.0

func PrepareApply(ctx context.Context, workspace, project string, definition []byte) error

PrepareApply is Prepare for an Apply, which swaps no data: a provider that already runs the authorized qualified image on the managed volume is kept.

func Require

func Require(ctx context.Context, workspace string) error

Require is called by the managed receiver before any provider effect. It reads signed installation custody and real Docker state, never request data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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