singleobs

package
v0.0.0-...-1dd1f65 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package singleobs contains observer implementations for use in the 'single-shot' c4t commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Builder

func Builder(l *log.Logger, verbose bool) []builder.Observer

Builder builds a list of observers suitable for single-shot c4t corpus-builder binaries.

func Copier

func Copier(l *log.Logger, verbose bool) []copier.Observer

Copier builds a list of observers suitable for observing file copies in single-shot binaries.

func Coverage

func Coverage(l *log.Logger, verbose bool) []coverage.Observer

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

func MachNode(l *log.Logger, verbose bool) []observer.Observer

MachNode builds a list of observers suitable for observing machine node actions in single-shot binaries.

func Perturber

func Perturber(l *log.Logger, verbose bool) []perturber.Observer

Perturber builds a list of observers suitable for single-shot c4t perturber binaries.

func Planner

func Planner(l *log.Logger, verbose bool) []planner.Observer

Planner builds a list of observers suitable for single-shot c4t planner binaries.

Types

type Bar

type Bar struct {
	// contains filtered or unexported fields
}

Bar is a builder observer that uses a progress bar.

func NewBar

func NewBar() *Bar

NewBar creates a new observer.

func (*Bar) OnAnalysis

func (p *Bar) OnAnalysis(analysis.Analysis)

OnAnalysis does nothing.

func (*Bar) OnArchive

func (p *Bar) OnArchive(saver.ArchiveMessage)

OnArchive does nothing.

func (*Bar) OnBuild

func (p *Bar) OnBuild(m builder.Message)

OnBuild observes a corpus build using a progress bar.

func (*Bar) OnCompilerConfig

func (p *Bar) OnCompilerConfig(m compiler.Message)

OnCompilerConfig observes a compiler configuration using a progress bar.

func (*Bar) OnCopy

func (p *Bar) OnCopy(m copy2.Message)

OnCopy observes a file copy using a progress bar.

func (*Bar) OnCycle

func (p *Bar) OnCycle(director.CycleMessage)

OnCycle does nothing.

func (*Bar) OnInstance

func (p *Bar) OnInstance(director.InstanceMessage)

OnInstance does nothing.

func (*Bar) OnMachineNodeAction

func (p *Bar) OnMachineNodeAction(observer.Message)

OnMachineNodeAction does nothing.

func (*Bar) OnPerturb

func (p *Bar) OnPerturb(perturber.Message)

OnPerturb does nothing.

func (*Bar) OnPlan

func (p *Bar) OnPlan(planner.Message)

OnPlan does nothing.

type Logger

type Logger log.Logger

Logger lifts a Logger to an observer.

func (*Logger) OnAnalysis

func (l *Logger) OnAnalysis(analysis.Analysis)

OnAnalysis does nothing, for now.

func (*Logger) OnArchive

func (l *Logger) OnArchive(saver.ArchiveMessage)

OnArchive does nothing, for now.

func (*Logger) OnBuild

func (l *Logger) OnBuild(b builder.Message)

OnBuild logs build messages.

func (*Logger) OnCompilerConfig

func (l *Logger) OnCompilerConfig(m compiler.Message)

OnCompilerConfig logs compiler config messages.

func (*Logger) OnCopy

func (l *Logger) OnCopy(c copier.Message)

OnCopy logs build 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

func (l *Logger) OnMachineNodeAction(m observer.Message)

OnMachineNodeAction logs node messages.

func (*Logger) OnPerturb

func (l *Logger) OnPerturb(m perturber.Message)

OnPerturb logs perturb messages.

func (*Logger) OnPlan

func (l *Logger) OnPlan(m planner.Message)

OnPlan logs plan messages.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL