MCPcopy Index your code
hub / github.com/docker/cli / newTaskFormatter

Function newTaskFormatter

cli/command/service/logs.go:197–205  ·  view source on GitHub ↗
(apiClient client.APIClient, opts *logsOptions, padding int)

Source from the content-addressed store, hash-verified

195}
196
197func newTaskFormatter(apiClient client.APIClient, opts *logsOptions, padding int) *taskFormatter {
198 return &taskFormatter{
199 client: apiClient,
200 opts: opts,
201 padding: padding,
202 r: idresolver.New(apiClient, opts.noResolve),
203 cache: make(map[logContext]string),
204 }
205}
206
207func (f *taskFormatter) format(ctx context.Context, logCtx logContext) (string, error) {
208 if cached, ok := f.cache[logCtx]; ok {

Callers 1

runLogsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…