Documentation ¶
Overview ¶
Package singleobs contains observer implementations for use in the 'single-shot' c4t commands.
Index ¶
- func Builder(l *log.Logger, verbose bool) []builder.Observer
- func Copier(l *log.Logger, verbose bool) []copier.Observer
- func Coverage(l *log.Logger, verbose bool) []coverage.Observer
- func DirectorInstance(l *log.Logger, verbose bool) []director.InstanceObserver
- func MachNode(l *log.Logger, verbose bool) []observer.Observer
- func Perturber(l *log.Logger, verbose bool) []perturber.Observer
- func Planner(l *log.Logger, verbose bool) []planner.Observer
- type Bar
- func (p *Bar) OnAnalysis(analysis.Analysis)
- func (p *Bar) OnArchive(saver.ArchiveMessage)
- func (p *Bar) OnBuild(m builder.Message)
- func (p *Bar) OnCompilerConfig(m compiler.Message)
- func (p *Bar) OnCopy(m copy2.Message)
- func (p *Bar) OnCycle(director.CycleMessage)
- func (p *Bar) OnInstance(director.InstanceMessage)
- func (p *Bar) OnMachineNodeAction(observer.Message)
- func (p *Bar) OnPerturb(perturber.Message)
- func (p *Bar) OnPlan(planner.Message)
- type Logger
- func (l *Logger) OnAnalysis(analysis.Analysis)
- func (l *Logger) OnArchive(saver.ArchiveMessage)
- func (l *Logger) OnBuild(b builder.Message)
- func (l *Logger) OnCompilerConfig(m compiler.Message)
- func (l *Logger) OnCopy(c copier.Message)
- func (l *Logger) OnCoverageRun(rm coverage.RunMessage)
- func (l *Logger) OnCycle(director.CycleMessage)
- func (l *Logger) OnInstance(m director.InstanceMessage)
- func (l *Logger) OnMachineNodeAction(m observer.Message)
- func (l *Logger) OnPerturb(m perturber.Message)
- func (l *Logger) OnPlan(m planner.Message)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Builder ¶
Builder builds a list of observers suitable for single-shot c4t corpus-builder binaries.
func Copier ¶
Copier builds a list of observers suitable for observing file copies in single-shot binaries.
func Coverage ¶
Coverage builds a list of observers suitable for observing coverage testbed generation.
func DirectorInstance ¶
func DirectorInstance(l *log.Logger, verbose bool) []director.InstanceObserver
DirectorInstance builds a list of director-instance compatible observers suitable for single-shot binaries.
While it is very unlikely that these observers will be used in a director instance, since those have specific integrated observers, the director-instance interface covers almost every observer interface we want to implement for the single-shot binaries, and so we can derive the other observer constructors from it.
func MachNode ¶
MachNode builds a list of observers suitable for observing machine node actions in single-shot binaries.
Types ¶
type Bar ¶
type Bar struct {
// contains filtered or unexported fields
}
Bar is a builder observer that uses a progress bar.
func (*Bar) OnCompilerConfig ¶
OnCompilerConfig observes a compiler configuration using a progress bar.
func (*Bar) OnInstance ¶
func (p *Bar) OnInstance(director.InstanceMessage)
OnInstance does nothing.
func (*Bar) OnMachineNodeAction ¶
OnMachineNodeAction does nothing.
type Logger ¶
Logger lifts a Logger to an observer.
func (*Logger) OnAnalysis ¶
OnAnalysis does nothing, for now.
func (*Logger) OnArchive ¶
func (l *Logger) OnArchive(saver.ArchiveMessage)
OnArchive does nothing, for now.
func (*Logger) OnCompilerConfig ¶
OnCompilerConfig logs compiler config messages.
func (*Logger) OnCoverageRun ¶
func (l *Logger) OnCoverageRun(rm coverage.RunMessage)
OnCoverageRun logs information about a coverage run in progress according to rm.
func (*Logger) OnCycle ¶
func (l *Logger) OnCycle(director.CycleMessage)
OnCycle does nothing, for now.
func (*Logger) OnInstance ¶
func (l *Logger) OnInstance(m director.InstanceMessage)
OnInstance logs instance messages.
func (*Logger) OnMachineNodeAction ¶
OnMachineNodeAction logs node messages.