20 lines
1,004 B
Go
20 lines
1,004 B
Go
package storage
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/steveyegge/beads/internal/types"
|
|
)
|
|
|
|
// BulkIssueStore provides extended issue CRUD beyond the base Storage interface.
|
|
type BulkIssueStore interface {
|
|
CreateIssuesWithFullOptions(ctx context.Context, issues []*types.Issue, actor string, opts BatchCreateOptions) error
|
|
DeleteIssues(ctx context.Context, ids []string, cascade bool, force bool, dryRun bool) (*types.DeleteIssuesResult, error)
|
|
DeleteIssuesBySourceRepo(ctx context.Context, sourceRepo string) (int, error)
|
|
UpdateIssueID(ctx context.Context, oldID, newID string, issue *types.Issue, actor string) error
|
|
ClaimIssue(ctx context.Context, id string, actor string) error
|
|
ClaimReadyIssue(ctx context.Context, filter types.WorkFilter, actor string) (*types.Issue, error)
|
|
PromoteFromEphemeral(ctx context.Context, id string, actor string) error
|
|
GetNextChildID(ctx context.Context, parentID string) (string, error)
|
|
RenameCounterPrefix(ctx context.Context, oldPrefix, newPrefix string) error
|
|
}
|