MCPcopy
hub / github.com/determined-ai/determined / Publisher

Interface Publisher

agent/pkg/events/types.go:7–9  ·  view source on GitHub ↗

Publisher defines an interface on which the Docker lib publishes asynchronous events, such as logs or stats.

Source from the content-addressed store, hash-verified

5// Publisher defines an interface on which the Docker lib publishes asynchronous events, such as
6// logs or stats.
7type Publisher[T any] interface {
8 Publish(context.Context, T) error
9}
10
11// FuncPublisher wraps a plain func as a Publisher.
12type FuncPublisher[T any] func(context.Context, T) error

Callers 8

ShipContainerCommandLogsFunction · 0.65
PprintCommandFunction · 0.65
PullImageFunction · 0.65
ArchiveMountPointsFunction · 0.65
PullImageMethod · 0.65
CreateContainerMethod · 0.65
getDockerAuthsMethod · 0.65
sendPullLogsMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected