Add initial implementation of stats
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
3
event.go
3
event.go
@@ -21,6 +21,8 @@ const (
|
||||
UpdateContainerEventType EventType = "updateContainer"
|
||||
CreateCheckpointEventType EventType = "createCheckpoint"
|
||||
DeleteCheckpointEventType EventType = "deleteCheckpoint"
|
||||
StatsEventType EventType = "events"
|
||||
UnsubscribeStatsEventType EventType = "unsubscribeEvents"
|
||||
)
|
||||
|
||||
func NewEvent(t EventType) *Event {
|
||||
@@ -47,6 +49,7 @@ type Event struct {
|
||||
Containers []runtime.Container
|
||||
Checkpoint *runtime.Checkpoint
|
||||
Err chan error
|
||||
Stats chan interface{}
|
||||
}
|
||||
|
||||
type Handler interface {
|
||||
|
||||
Reference in New Issue
Block a user