agent-orchestrator/backend/internal/service/project/store.go

18 lines
593 B
Go

package project
import (
"context"
"time"
"github.com/aoagents/agent-orchestrator/backend/internal/domain"
)
// Store is the durable project persistence surface required by Service.
type Store interface {
ListProjects(ctx context.Context) ([]domain.ProjectRecord, error)
GetProject(ctx context.Context, id string) (domain.ProjectRecord, bool, error)
FindProjectByPath(ctx context.Context, path string) (domain.ProjectRecord, bool, error)
UpsertProject(ctx context.Context, row domain.ProjectRecord) error
ArchiveProject(ctx context.Context, id string, at time.Time) (bool, error)
}