Documentation
¶
Overview ¶
Package factory wires all dependencies for the dark-factory application.
Index ¶
- func CreateApproveCommand(cfg config.Config) cmd.ApproveCommand
- func CreateCombinedListCommand(cfg config.Config) cmd.CombinedListCommand
- func CreateCombinedStatusCommand(cfg config.Config) cmd.CombinedStatusCommand
- func CreateListCommand(cfg config.Config) cmd.ListCommand
- func CreateLocker(dir string) lock.Locker
- func CreateNotifier(cfg config.Config) notifier.Notifier
- func CreateOneShotRunner(cfg config.Config, ver string) runner.OneShotRunner
- func CreateProcessor(inProgressDir string, completedDir string, logDir string, projectName string, ...) processor.Processor
- func CreatePromptShowCommand(cfg config.Config) cmd.PromptShowCommand
- func CreatePromptVerifyCommand(cfg config.Config) cmd.PromptVerifyCommand
- func CreateRequeueCommand(cfg config.Config) cmd.RequeueCommand
- func CreateReviewPoller(cfg config.Config, promptManager prompt.Manager, projectName string, ...) review.ReviewPoller
- func CreateRunner(cfg config.Config, ver string) runner.Runner
- func CreateServer(port int, inboxDir string, inProgressDir string, completedDir string, ...) server.Server
- func CreateSpecApproveCommand(cfg config.Config) cmd.SpecApproveCommand
- func CreateSpecCompleteCommand(cfg config.Config) cmd.SpecCompleteCommand
- func CreateSpecGenerator(cfg config.Config, containerImage string, ...) generator.SpecGenerator
- func CreateSpecListCommand(cfg config.Config) cmd.SpecListCommand
- func CreateSpecShowCommand(cfg config.Config) cmd.SpecShowCommand
- func CreateSpecStatusCommand(cfg config.Config) cmd.SpecStatusCommand
- func CreateSpecWatcher(cfg config.Config, gen generator.SpecGenerator, ...) specwatcher.SpecWatcher
- func CreateStatusCommand(cfg config.Config) cmd.StatusCommand
- func CreateWatcher(inProgressDir string, inboxDir string, promptManager prompt.Manager, ...) watcher.Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateApproveCommand ¶ added in v0.54.1
func CreateApproveCommand(cfg config.Config) cmd.ApproveCommand
CreateApproveCommand creates an ApproveCommand.
func CreateCombinedListCommand ¶ added in v0.54.1
func CreateCombinedListCommand(cfg config.Config) cmd.CombinedListCommand
CreateCombinedListCommand creates a CombinedListCommand.
func CreateCombinedStatusCommand ¶ added in v0.54.1
func CreateCombinedStatusCommand(cfg config.Config) cmd.CombinedStatusCommand
CreateCombinedStatusCommand creates a CombinedStatusCommand.
func CreateListCommand ¶ added in v0.54.1
func CreateListCommand(cfg config.Config) cmd.ListCommand
CreateListCommand creates a ListCommand.
func CreateLocker ¶
CreateLocker creates a Locker for the specified directory.
func CreateNotifier ¶ added in v0.54.1
CreateNotifier creates a Notifier from config, or a no-op if no channels are configured.
func CreateOneShotRunner ¶ added in v0.54.1
func CreateOneShotRunner(cfg config.Config, ver string) runner.OneShotRunner
CreateOneShotRunner creates an OneShotRunner that drains the queue and exits.
func CreateProcessor ¶
func CreateProcessor( inProgressDir string, completedDir string, logDir string, projectName string, promptManager prompt.Manager, releaser git.Releaser, versionGetter version.Getter, ready <-chan struct{}, containerImage string, model string, netrcFile string, gitconfigFile string, pr bool, worktree bool, brancher git.Brancher, prCreator git.PRCreator, prMerger git.PRMerger, autoMerge bool, autoRelease bool, autoReview bool, validationCommand string, specsInboxDir string, specsInProgressDir string, specsCompletedDir string, verificationGate bool, env map[string]string, currentDateTimeGetter libtime.CurrentDateTimeGetter, n notifier.Notifier, ) processor.Processor
CreateProcessor creates a Processor that executes queued prompts.
func CreatePromptShowCommand ¶ added in v0.54.1
func CreatePromptShowCommand(cfg config.Config) cmd.PromptShowCommand
CreatePromptShowCommand creates a PromptShowCommand.
func CreatePromptVerifyCommand ¶ added in v0.54.1
func CreatePromptVerifyCommand(cfg config.Config) cmd.PromptVerifyCommand
CreatePromptVerifyCommand creates a PromptVerifyCommand.
func CreateRequeueCommand ¶ added in v0.54.1
func CreateRequeueCommand(cfg config.Config) cmd.RequeueCommand
CreateRequeueCommand creates a RequeueCommand.
func CreateReviewPoller ¶ added in v0.54.1
func CreateReviewPoller( cfg config.Config, promptManager prompt.Manager, projectName string, n notifier.Notifier, ) review.ReviewPoller
CreateReviewPoller creates a ReviewPoller that watches in_review prompts and handles approvals/changes.
func CreateRunner ¶
CreateRunner creates a Runner that coordinates watcher and processor using the provided config.
func CreateServer ¶
func CreateServer( port int, inboxDir string, inProgressDir string, completedDir string, logDir string, promptManager prompt.Manager, currentDateTimeGetter libtime.CurrentDateTimeGetter, ) server.Server
CreateServer creates a Server that provides HTTP endpoints for monitoring.
func CreateSpecApproveCommand ¶ added in v0.54.1
func CreateSpecApproveCommand(cfg config.Config) cmd.SpecApproveCommand
CreateSpecApproveCommand creates a SpecApproveCommand.
func CreateSpecCompleteCommand ¶ added in v0.54.1
func CreateSpecCompleteCommand(cfg config.Config) cmd.SpecCompleteCommand
CreateSpecCompleteCommand creates a SpecCompleteCommand.
func CreateSpecGenerator ¶ added in v0.54.1
func CreateSpecGenerator( cfg config.Config, containerImage string, currentDateTimeGetter libtime.CurrentDateTimeGetter, ) generator.SpecGenerator
CreateSpecGenerator creates a SpecGenerator using the Docker executor.
func CreateSpecListCommand ¶ added in v0.54.1
func CreateSpecListCommand(cfg config.Config) cmd.SpecListCommand
CreateSpecListCommand creates a SpecListCommand.
func CreateSpecShowCommand ¶ added in v0.54.1
func CreateSpecShowCommand(cfg config.Config) cmd.SpecShowCommand
CreateSpecShowCommand creates a SpecShowCommand.
func CreateSpecStatusCommand ¶ added in v0.54.1
func CreateSpecStatusCommand(cfg config.Config) cmd.SpecStatusCommand
CreateSpecStatusCommand creates a SpecStatusCommand.
func CreateSpecWatcher ¶ added in v0.54.1
func CreateSpecWatcher( cfg config.Config, gen generator.SpecGenerator, currentDateTimeGetter libtime.CurrentDateTimeGetter, ) specwatcher.SpecWatcher
CreateSpecWatcher creates a SpecWatcher that triggers generation when a spec appears in inProgressDir.
func CreateStatusCommand ¶
func CreateStatusCommand(cfg config.Config) cmd.StatusCommand
CreateStatusCommand creates a StatusCommand.
func CreateWatcher ¶
func CreateWatcher( inProgressDir string, inboxDir string, promptManager prompt.Manager, ready chan<- struct{}, debounce time.Duration, currentDateTimeGetter libtime.CurrentDateTimeGetter, ) watcher.Watcher
CreateWatcher creates a Watcher that normalizes filenames on file events.
Types ¶
This section is empty.