Documentation
¶
Index ¶
- Variables
- type LadybugStore
- func (store *LadybugStore) CreateAttachment(ctx context.Context, attachment model.Attachment) (model.Attachment, error)
- func (store *LadybugStore) CreateWorkPlan(ctx context.Context, plan model.WorkPlan) (model.WorkPlan, error)
- func (store *LadybugStore) CreateWorkTask(ctx context.Context, task model.WorkTask) (model.WorkTask, error)
- func (store *LadybugStore) GetWorkPlan(ctx context.Context, projectID string, planID string) (model.WorkPlan, error)
- func (store *LadybugStore) GetWorkTask(ctx context.Context, projectID string, taskID string) (model.WorkTask, error)
- func (store *LadybugStore) ListAttachments(ctx context.Context, projectID string, taskID string) ([]model.Attachment, error)
- func (store *LadybugStore) ListWorkPlans(ctx context.Context, filter model.WorkPlanFilter) ([]model.WorkPlan, error)
- func (store *LadybugStore) ListWorkTasks(ctx context.Context, filter model.WorkTaskFilter) ([]model.WorkTask, error)
- func (store *LadybugStore) UpdateWorkPlan(ctx context.Context, plan model.WorkPlan) (model.WorkPlan, error)
- func (store *LadybugStore) UpdateWorkTask(ctx context.Context, task model.WorkTask) (model.WorkTask, error)
- type MemoryStore
- func (store *MemoryStore) CreateAttachment(_ context.Context, attachment projectworkplan.Attachment) (projectworkplan.Attachment, error)
- func (store *MemoryStore) CreateWorkPlan(_ context.Context, plan projectworkplan.WorkPlan) (projectworkplan.WorkPlan, error)
- func (store *MemoryStore) CreateWorkTask(_ context.Context, task projectworkplan.WorkTask) (projectworkplan.WorkTask, error)
- func (store *MemoryStore) GetWorkPlan(_ context.Context, projectID, planID string) (projectworkplan.WorkPlan, error)
- func (store *MemoryStore) GetWorkTask(_ context.Context, projectID, taskID string) (projectworkplan.WorkTask, error)
- func (store *MemoryStore) ListAttachments(_ context.Context, projectID, taskID string) ([]projectworkplan.Attachment, error)
- func (store *MemoryStore) ListWorkPlans(_ context.Context, filter projectworkplan.WorkPlanFilter) ([]projectworkplan.WorkPlan, error)
- func (store *MemoryStore) ListWorkTasks(_ context.Context, filter projectworkplan.WorkTaskFilter) ([]projectworkplan.WorkTask, error)
- func (store *MemoryStore) UpdateWorkPlan(_ context.Context, plan projectworkplan.WorkPlan) (projectworkplan.WorkPlan, error)
- func (store *MemoryStore) UpdateWorkTask(_ context.Context, task projectworkplan.WorkTask) (projectworkplan.WorkTask, error)
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 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 (*LadybugStore) CreateWorkTask ¶
func (*LadybugStore) GetWorkPlan ¶
func (*LadybugStore) GetWorkTask ¶
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 (*LadybugStore) UpdateWorkTask ¶
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 (store *MemoryStore) CreateWorkPlan(_ context.Context, plan projectworkplan.WorkPlan) (projectworkplan.WorkPlan, error)
func (*MemoryStore) CreateWorkTask ¶
func (store *MemoryStore) CreateWorkTask(_ context.Context, task projectworkplan.WorkTask) (projectworkplan.WorkTask, error)
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 (store *MemoryStore) ListWorkPlans(_ context.Context, filter projectworkplan.WorkPlanFilter) ([]projectworkplan.WorkPlan, error)
func (*MemoryStore) ListWorkTasks ¶
func (store *MemoryStore) ListWorkTasks(_ context.Context, filter projectworkplan.WorkTaskFilter) ([]projectworkplan.WorkTask, error)
func (*MemoryStore) UpdateWorkPlan ¶
func (store *MemoryStore) UpdateWorkPlan(_ context.Context, plan projectworkplan.WorkPlan) (projectworkplan.WorkPlan, error)
func (*MemoryStore) UpdateWorkTask ¶
func (store *MemoryStore) UpdateWorkTask(_ context.Context, task projectworkplan.WorkTask) (projectworkplan.WorkTask, error)
Click to show internal directories.
Click to hide internal directories.