Versions in this module Expand all Collapse all v0 v0.2.1 Nov 14, 2026 v0.2.0 Nov 13, 2026 Changes in this version + const ContainerBridge + const ContainerGuardian + const GuardianProtocol + const MountedGuardian + func BuildContainer(cmd *exec.Cmd, policy Policy, options ContainerOptions, ...) ([]string, error) + func BuildRequest(o LaunchOptions, owner containerapi.Owner, lifetime string) (containerapi.CreateRequest, error) + func CheckImage(ctx context.Context, policy Policy, bridge bool, ...) error + func CheckPolicy(ctx context.Context, p Policy) error + func DefaultGuardianDirectory() string + func NewID() string + func PrepareContainer(ctx context.Context, cmd *exec.Cmd, policy Policy, options ContainerOptions) (func(), error) + func ProbeContext(ctx context.Context) (context.Context, context.CancelFunc) + func RuntimePath(policy Policy) (string, error) + func Supervise(ctx context.Context, cmd *exec.Cmd) (func(), error) + func SupervisePolicy(ctx context.Context, cmd *exec.Cmd, p Policy) (func(), error) + func WithBinding(ctx context.Context, b Binding) context.Context + type Binding struct + Dir string + Generation int64 + Journal Journal + Kind string + LogicalID string + Owner string + RunID string + func BindingFrom(ctx context.Context) (Binding, bool) + type ContainerOptions struct + Bridge bool + CredentialEnv string + CredentialFile string + Environment []string + Root string + State string + Workspace string + type ContainerSession struct + Invocation *Invocation + Owner containerapi.Owner + Runtime containerapi.Runtime + func LaunchContainer(ctx context.Context, o LaunchOptions) (session *ContainerSession, returned error) + func (s *ContainerSession) Close() error + func (s *ContainerSession) Exec(ctx context.Context, q containerapi.ExecRequest, streams containerapi.Streams) (code int, returned error) + func (s *ContainerSession) Run(ctx context.Context, streams containerapi.Streams) (int, error) + func (s *ContainerSession) Start(ctx context.Context) (containerapi.Attachment, error) + type GuardianAsset struct + Path string + Platform string + SHA256 string + func GuardianFor(directory string, image containerapi.Image) (GuardianAsset, error) + func (g GuardianAsset) Verify() error + type Invocation struct + Record Record + func Admit(ctx context.Context, kind string) (*Invocation, error) + func (i *Invocation) Directory() string + func (i *Invocation) Save(ctx context.Context, state string) error + func (i *Invocation) StartHeartbeat() error + func (i *Invocation) StopHeartbeat() + func (i *Invocation) Supervise(ctx context.Context, cmd *exec.Cmd, cleanup []string) (func(), error) + type Journal interface + AdmitInvocation func(context.Context, Record) error + UpdateInvocation func(context.Context, Record) error + type LaunchOptions struct + Actions string + Command []string + EngineState string + Env []string + Guardian GuardianAsset + Image containerapi.Image + Policy Policy + Root string + Selection containerapi.Selection + State string + TaskStateDir string + WorkingDir string + Workspace string + type Policy struct + Cleanup string + GID *int + Image string + Mode string + Network *network.Reference + NetworkMode string + NetworkRuntime string + Runtime string + UID *int + Writable bool + func PinPolicy(ctx context.Context, p Policy) (Policy, error) + func (p Policy) Validate() error + func (p Policy) ValidateFor(goos string) error + type Record struct + CompletionPath string + Container *containerapi.Owner + Error string + ExecID string + Generation int64 + ID string + Kind string + LogicalID string + Network *network.Reference + Owner string + RunID string + StartedAt time.Time + State string + Token string + UpdatedAt time.Time + func Reconcile(ctx context.Context, record Record) (Record, error) + type StorageError struct + Err error + func (e *StorageError) Error() string + func (e *StorageError) Unwrap() error