MCPcopy Create free account
hub / github.com/docker/compose / ContainerEvent

Struct ContainerEvent

pkg/api/api.go:714–729  ·  view source on GitHub ↗

ContainerEvent notify an event has been collected on source container implementing Service

Source from the content-addressed store, hash-verified

712
713// ContainerEvent notify an event has been collected on source container implementing Service
714type ContainerEvent struct {
715 Type int
716 Time int64
717 Container *ContainerSummary
718 // Source is the name of the container _without the project prefix_.
719 //
720 // This is only suitable for display purposes within Compose, as it's
721 // not guaranteed to be unique across services.
722 Source string
723 ID string
724 Service string
725 Line string
726 // ExitCode is only set on ContainerEventExited events
727 ExitCode int
728 Restarting bool
729}
730
731const (
732 // ContainerEventLog is a ContainerEvent of type log on stdout. Line is set

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected