Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInsufficientPermissions = errors.New("insufficient permissions")
)
Functions ¶
func NonCriticalError ¶
Types ¶
type CompositeMonitor ¶
type CompositeMonitor interface {
// Start() is not reentrant!
Start() error
// Just a helper getter.
StartCommand() *command.StartMonitor
SignalTargetApp(s os.Signal)
Cancel()
// Done() is reentrant. Every invocation returns the same instance of the channel.
Done() <-chan struct{}
// Errors() method is a way to communicate non-fatal monitor's error
// conditions back to the caller. The method is reentrant. Every invocation
// returns the same instance of the channel. The error channel is never closed,
// but ideally it should stop returning eny errors after the monitor is done
// (the actual behavior might differ due to the subordinate monitors, especially
// the one at pkg/monitors/ptrace).
Errors() <-chan error
// Helper method to read left-over non-critical error events after the monitor
// is done.
DrainErrors() []error
Status() (*CompositeReport, error)
}
func NewCompositeMonitor ¶
type CompositeReport ¶
type CompositeReport struct {
PeReport *report.PeMonitorReport
FanReport *report.FanMonitorReport
PtReport *report.PtMonitorReport
}
type NewCompositeMonitorFunc ¶
Click to show internal directories.
Click to hide internal directories.