inprocess

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package inprocess is Harbor's default in-process TaskRegistry driver. It wraps the shared task state machine in internal/tasks/engine with an ephemeral persistence backend: every lifecycle transition is written through the configured state.StateStore (so live state is observable to a co-located reader), but records are NOT reloaded on open — a process restart starts with an empty registry. Operators who need task records to survive a restart select the durable driver (internal/tasks/drivers/durable) instead.

The driver is the reference the conformance suite runs against; the engine it wraps is the same one every other driver wraps, so all drivers share one verified lifecycle implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New constructs the in-process TaskRegistry. Production callers go through tasks.Open; the constructor is exported for tests that want to skip the registry dispatch.

A non-nil StateStore is required: the ephemeral backend writes every transition through it. Bus and Redactor are validated by the engine.

Types

This section is empty.

Jump to

Keyboard shortcuts

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