store

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type LadybugStore

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

func NewBootstrappedLadybugStore

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

func NewLadybugStore

func NewLadybugStore(graph ladybug.Graph) *LadybugStore

func (*LadybugStore) CreateAttachment

func (store *LadybugStore) CreateAttachment(ctx context.Context, attachment model.Attachment) (model.Attachment, error)

func (*LadybugStore) CreateWorkPlan

func (store *LadybugStore) CreateWorkPlan(ctx context.Context, plan model.WorkPlan) (model.WorkPlan, error)

func (*LadybugStore) CreateWorkTask

func (store *LadybugStore) CreateWorkTask(ctx context.Context, task model.WorkTask) (model.WorkTask, error)

func (*LadybugStore) GetWorkPlan

func (store *LadybugStore) GetWorkPlan(ctx context.Context, projectID string, planID string) (model.WorkPlan, error)

func (*LadybugStore) GetWorkTask

func (store *LadybugStore) GetWorkTask(ctx context.Context, projectID string, taskID string) (model.WorkTask, error)

func (*LadybugStore) ListAttachments

func (store *LadybugStore) ListAttachments(ctx context.Context, projectID string, taskID string) ([]model.Attachment, error)

func (*LadybugStore) ListWorkPlans

func (store *LadybugStore) ListWorkPlans(ctx context.Context, filter model.WorkPlanFilter) ([]model.WorkPlan, error)

func (*LadybugStore) ListWorkTasks

func (store *LadybugStore) ListWorkTasks(ctx context.Context, filter model.WorkTaskFilter) ([]model.WorkTask, error)

func (*LadybugStore) UpdateWorkPlan

func (store *LadybugStore) UpdateWorkPlan(ctx context.Context, plan model.WorkPlan) (model.WorkPlan, error)

func (*LadybugStore) UpdateWorkTask

func (store *LadybugStore) UpdateWorkTask(ctx context.Context, task model.WorkTask) (model.WorkTask, error)

type MemoryStore

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

func NewMemoryStore

func NewMemoryStore() *MemoryStore

func (*MemoryStore) CreateAttachment

func (store *MemoryStore) CreateAttachment(_ context.Context, attachment projectworkplan.Attachment) (projectworkplan.Attachment, error)

func (*MemoryStore) CreateWorkPlan

func (*MemoryStore) CreateWorkTask

func (*MemoryStore) GetWorkPlan

func (store *MemoryStore) GetWorkPlan(_ context.Context, projectID, planID string) (projectworkplan.WorkPlan, error)

func (*MemoryStore) GetWorkTask

func (store *MemoryStore) GetWorkTask(_ context.Context, projectID, taskID string) (projectworkplan.WorkTask, error)

func (*MemoryStore) ListAttachments

func (store *MemoryStore) ListAttachments(_ context.Context, projectID, taskID string) ([]projectworkplan.Attachment, error)

func (*MemoryStore) ListWorkPlans

func (*MemoryStore) ListWorkTasks

func (*MemoryStore) UpdateWorkPlan

func (*MemoryStore) UpdateWorkTask

Jump to

Keyboard shortcuts

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