persist

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package persist defines the storage bundle consumed by the workflow facade. Concrete database adapters live in subpackages and core workflow packages do not select or open a database implicitly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stores added in v1.2.8

type Stores struct {
	Definitions definition.Repository
	Workspace   definition.WorkspaceRepository
	Runtime     wfruntime.Store
	Automations scheduler.AutomationStore
	Credentials credential.Store
	// contains filtered or unexported fields
}

Stores is the complete persistence contract required by a fully featured scheduler, including automations and credentials. A Stores value must not be copied after first use; constructors return a pointer for this reason.

func NewStores added in v1.2.8

func NewStores(
	definitions definition.Repository,
	workspace definition.WorkspaceRepository,
	runtimeStore wfruntime.Store,
	automations scheduler.AutomationStore,
	credentials credential.Store,
	close func() error,
) (*Stores, error)

NewStores constructs a validated storage bundle. A nil component is rejected so advanced composition cannot accidentally fall back to an in-memory store.

func (*Stores) Close added in v1.2.8

func (s *Stores) Close() error

func (*Stores) Validate added in v1.2.8

func (s *Stores) Validate() error

Directories

Path Synopsis
Package defaultstore provides the stable default ORM configuration: a single-process SQLite database plus an encrypted file credential store.
Package defaultstore provides the stable default ORM configuration: a single-process SQLite database plus an encrypted file credential store.
Package gormstore composes the workflow persistence interfaces over a caller-owned Gorm database.
Package gormstore composes the workflow persistence interfaces over a caller-owned Gorm database.
Package memory provides a complete non-persistent workflow storage bundle.
Package memory provides a complete non-persistent workflow storage bundle.

Jump to

Keyboard shortcuts

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