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.
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. |
Click to show internal directories.
Click to hide internal directories.