feat(events): support new events (#244)

pull/246/head
Anthony Lapenna 8 years ago committed by GitHub
parent 29a59cab44
commit 01d5d11c01

@ -105,6 +105,9 @@ function createEventDetails(event) {
case 'unpause': case 'unpause':
details = 'Container ' + eventAttr.name + ' unpaused'; details = 'Container ' + eventAttr.name + ' unpaused';
break; break;
case 'attach':
details = 'Container ' + eventAttr.name + ' attached';
break;
default: default:
if (event.Action.indexOf('exec_create') === 0) { if (event.Action.indexOf('exec_create') === 0) {
details = 'Exec instance created'; details = 'Exec instance created';
@ -159,6 +162,12 @@ function createEventDetails(event) {
case 'destroy': case 'destroy':
details = 'Volume ' + event.Actor.ID + ' deleted'; details = 'Volume ' + event.Actor.ID + ' deleted';
break; break;
case 'mount':
details = 'Volume ' + event.Actor.ID + ' mounted';
break;
case 'unmount':
details = 'Volume ' + event.Actor.ID + ' unmounted';
break;
default: default:
details = 'Unsupported event'; details = 'Unsupported event';
} }

Loading…
Cancel
Save