Files
coder/coderd/prebuilds/api.go
Danny Kopping c0f81d03d4 Enable reconciliator on entitlements change
Signed-off-by: Danny Kopping <dannykopping@gmail.com>
2025-03-04 09:55:39 +00:00

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
}