store

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDuplicate = errors.New("project workflow resource already exists")
View Source
var ErrNotFound = errors.New("project workflow resource not found")

Functions

This section is empty.

Types

type LadybugStore added in v0.3.0

type LadybugStore struct {
	// contains filtered or unexported fields
}

func NewBootstrappedLadybugStore added in v0.3.0

func NewBootstrappedLadybugStore(ctx context.Context, graph ladybug.Graph) (*LadybugStore, error)

func NewLadybugStore added in v0.3.0

func NewLadybugStore(graph ladybug.Graph) *LadybugStore

func (*LadybugStore) CreatePermissionSnapshot added in v0.3.0

func (*LadybugStore) CreateWorkflow added in v0.3.0

func (*LadybugStore) GetPermissionSnapshot added in v0.3.0

func (store *LadybugStore) GetPermissionSnapshot(ctx context.Context, projectID, snapshotID string) (projectworkflow.WorkflowPermissionSnapshot, error)

func (*LadybugStore) GetWorkflow added in v0.3.0

func (store *LadybugStore) GetWorkflow(ctx context.Context, projectID, workflowID string) (projectworkflow.WorkflowDefinition, error)

func (*LadybugStore) ListPermissionSnapshots added in v0.3.0

func (store *LadybugStore) ListPermissionSnapshots(ctx context.Context, filter PermissionSnapshotFilter) ([]projectworkflow.WorkflowPermissionSnapshot, error)

func (*LadybugStore) ListWorkflows added in v0.3.0

func (store *LadybugStore) ListWorkflows(ctx context.Context, filter WorkflowFilter) ([]projectworkflow.WorkflowDefinition, error)

func (*LadybugStore) UpdatePermissionSnapshot added in v0.3.0

func (*LadybugStore) UpdateWorkflow added in v0.3.0

type MemoryStore

type MemoryStore struct {
	// contains filtered or unexported fields
}

func NewMemoryStore

func NewMemoryStore() *MemoryStore

func (*MemoryStore) CreateWorkflow

func (*MemoryStore) GetPermissionSnapshot

func (store *MemoryStore) GetPermissionSnapshot(_ context.Context, projectID, snapshotID string) (projectworkflow.WorkflowPermissionSnapshot, error)

func (*MemoryStore) GetWorkflow

func (store *MemoryStore) GetWorkflow(_ context.Context, projectID, workflowID string) (projectworkflow.WorkflowDefinition, error)

func (*MemoryStore) ListPermissionSnapshots

func (*MemoryStore) ListWorkflows

func (store *MemoryStore) ListWorkflows(_ context.Context, filter WorkflowFilter) ([]projectworkflow.WorkflowDefinition, error)

func (*MemoryStore) UpdatePermissionSnapshot added in v0.3.0

func (*MemoryStore) UpdateWorkflow

type WorkflowFilter

type WorkflowFilter = projectworkflow.WorkflowFilter

Jump to

Keyboard shortcuts

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