mirror of
https://github.com/coder/coder.git
synced 2025-07-08 11:39:50 +00:00
21 lines
428 B
Go
21 lines
428 B
Go
package prebuilds
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/google/uuid"
|
|
|
|
"github.com/coder/coder/v2/coderd/database"
|
|
)
|
|
|
|
type Reconciler interface {
|
|
RunLoop(ctx context.Context)
|
|
Stop(ctx context.Context, cause error)
|
|
ReconcileAll(ctx context.Context) error
|
|
}
|
|
|
|
type Claimer interface {
|
|
Claim(ctx context.Context, store database.Store, userID uuid.UUID, name string, presetID uuid.UUID) (*uuid.UUID, error)
|
|
Initiator() uuid.UUID
|
|
}
|