Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependencies ¶
type Dependencies struct {
Logger zerolog.Logger
CommandRuns providers.CommandRunStorer
CommandStorer providers.CommandStorer
Clock providers.Clock
}
Dependencies defines dependencies for this provider
type InMemoryExecuter ¶
type InMemoryExecuter struct {
Config
Dependencies
// contains filtered or unexported fields
}
InMemoryExecuter defines an Executor which runs commands alongside Krok. It saves runs in a map and constantly updates it. Cancelling will go over all processes belonging to that run and kill them.
func NewInMemoryExecuter ¶
func NewInMemoryExecuter(cfg Config, deps Dependencies) *InMemoryExecuter
NewInMemoryExecuter creates a new InMemoryExecuter which will hold all runs in its memory. In case of a crash, human intervention will be required. TODO: Later, save runs in db with the process id to cancel so Krok can pick up runs again.
Click to show internal directories.
Click to hide internal directories.