MCPcopy
hub / github.com/docker/compose / LogConsumer

Interface LogConsumer

pkg/api/api.go:704–708  ·  pkg/api/api.go::LogConsumer

LogConsumer is a callback to process log messages from services

Source from the content-addressed store, hash-verified

702
703// LogConsumer is a callback to process log messages from services
704type LogConsumer interface {
705 Log(containerName, message string)
706 Err(containerName, message string)
707 Status(container, msg string)
708}
709
710// ContainerEventListener is a callback to process ContainerEvent from services
711type ContainerEventListener func(event ContainerEvent)

Callers 18

TestScaleBasicCasesFunction · 0.65
TestScaleWithDepsCasesFunction · 0.65
TestScaleDownNoRecreateFunction · 0.65
initializePluginsFunction · 0.65
prepareMocksFunction · 0.65
startMethod · 0.65
TestWatch_SyncFunction · 0.65
runMethod · 0.65

Implementers 7

MockLogConsumerpkg/mocks/mock_docker_compose_api.go
MockLogConsumerMockRecorderpkg/mocks/mock_docker_compose_api.go
stdLoggerpkg/compose/watch_test.go
testLogConsumerpkg/compose/logs_test.go
logConsumercmd/compose/logs.go
logConsumercmd/formatter/logs.go
logDecoratorcmd/formatter/logs.go

Calls

no outgoing calls

Tested by

no test coverage detected