Documentation
¶
Overview ¶
Package bifrost encompasses all functions related to the short-lived process manager by the same name. Heimdall was the ever-vigilant guardian of the gods' stronghold, Asgard - now he will be the guardian of whichever program you choose. Heimdall is designed as both launcher and monitor of short-lived CLI tools and programs. Heimdall provides the ability to automatically repeat a process, kill a hung process started with the tool, and log the programs output (filtering logs is also possible). It is hoped that heimdall and bifrost will be a tool you reach for again and again when developing your CLI tool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute(config ManagerConfig) error
Execute accepts a configuration and attempts to run the provided program and its arguments.
Types ¶
type ManagerConfig ¶
type ManagerConfig struct {
AbsolutePath string
ProgramArguments []string
Timeout time.Duration `json:"-"`
TimeoutString string
Repeat int
InParallelCount int
Log bool
LogName string
LogOverwrite bool
LogFilter *regexp.Regexp
Verbose bool
// contains filtered or unexported fields
}
ManagerConfig manages configuration for the bifrost execution function