Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoContainerFound = errors.New("no container found")
ErrNoContainerFound represents a error about not finding containers
Functions ¶
This section is empty.
Types ¶
type HandleFunc ¶
type HandleFunc func(map[string]interface{})
HandleFunc is the expected function signature
type Monitor ¶
Monitor defines a launcher monitor module checking resource useage of a cocoon code. This module provides a pubsub feature that allows other external modules to subscribe to events from it and to also emit events to the module.
func NewMonitor ¶
NewMonitor creates a new monitor instance.
func (*Monitor) GetEmitter ¶
GetEmitter returns the monitor's emitter
func (*Monitor) SetContainerID ¶
SetContainerID sets the id of the container to monitor
func (*Monitor) SetDockerClient ¶
SetDockerClient sets the docker client
Click to show internal directories.
Click to hide internal directories.