Documentation ¶
Overview ¶
Package sqlite provides a sqlite-based storage implementation for workflow.Plan data. This is used to implement the storage.ReadWriter interface.
This package is for use only by the coercion.Workstream and any use outside of that is not supported.
Index ¶
- type Option
- type Vault
- func (c *Vault) Close(ctx context.Context) error
- func (u Vault) Create(ctx context.Context, plan *workflow.Plan) error
- func (d Vault) Delete(ctx context.Context, id uuid.UUID) error
- func (r Vault) Exists(ctx context.Context, id uuid.UUID) (bool, error)
- func (r Vault) List(ctx context.Context, limit int) (chan storage.Stream[storage.ListResult], error)
- func (r Vault) Read(ctx context.Context, id uuid.UUID) (*workflow.Plan, error)
- func (r Vault) Search(ctx context.Context, filters storage.Filters) (chan storage.Stream[storage.ListResult], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vault ¶
Vault implements the storage.Vault interface.
func New ¶
func New(ctx context.Context, root string, reg *registry.Register, options ...Option) (*Vault, error)
New is the constructor for *ReadWriter. root is the root path for the storage. If the root path does not exist, it will be created.
func (Vault) List ¶
func (r Vault) List(ctx context.Context, limit int) (chan storage.Stream[storage.ListResult], error)
List returns a list of Plan IDs in the storage in order from newest to oldest. This should return with most recent submiited first. Limit sets the maximum number of entrie to return
Source Files ¶
- closer.go
- creator.go
- creator_plan.go
- deleter.go
- deleter_stmts.go
- reader.go
- reader_actions.go
- reader_blocks.go
- reader_checks.go
- reader_plan.go
- reader_sequences.go
- reader_stmts.go
- schema.go
- sqlite.go
- updater.go
- updater_actions.go
- updater_blocks.go
- updater_checks.go
- updater_plan.go
- updater_sequence.go
- updater_stmts.go
Click to show internal directories.
Click to hide internal directories.