@@ -7,6 +7,19 @@ import (
77 "time"
88)
99
10+ type SourceRepositoryStore interface {
11+ // Get retrieves a source repository by its name.
12+ // Returns ErrNotFound if the repository does not exist.
13+ Get (ctx context.Context , name string ) (* SourceRepository , error )
14+
15+ // Update creates or updates a source repository.
16+ // The name argument must match repo.Name.
17+ Update (ctx context.Context , name string , repo * SourceRepository ) error
18+
19+ // All returns an iterator over all source repositories.
20+ All (ctx context.Context ) iter.Seq2 [* SourceRepository , error ]
21+ }
22+
1023type SourceRepositoryType int
1124
1225const (
@@ -91,16 +104,3 @@ type SourceRepoREST struct {
91104 // Ignore deletion threshold.
92105 IgnoreDeletionThreshold bool
93106}
94-
95- type SourceRepositoryStore interface {
96- // Get retrieves a source repository by its name.
97- // Returns ErrNotFound if the repository does not exist.
98- Get (ctx context.Context , name string ) (* SourceRepository , error )
99-
100- // Update creates or updates a source repository.
101- // The name argument must match repo.Name.
102- Update (ctx context.Context , name string , repo * SourceRepository ) error
103-
104- // All returns an iterator over all source repositories.
105- All (ctx context.Context ) iter.Seq2 [* SourceRepository , error ]
106- }
0 commit comments