6bb0d1816a
So other packages don't need to import the daemon package when they want to use this struct. Signed-off-by: David Calavera <david.calavera@gmail.com> Signed-off-by: Tibor Vass <tibor@docker.com>
14 lines
303 B
Go
14 lines
303 B
Go
package daemon
|
|
|
|
import (
|
|
"github.com/docker/docker/container"
|
|
)
|
|
|
|
// LogContainerEvent generates an event related to a container.
|
|
func (daemon *Daemon) LogContainerEvent(container *container.Container, action string) {
|
|
daemon.EventsService.Log(
|
|
action,
|
|
container.ID,
|
|
container.Config.Image,
|
|
)
|
|
}
|