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

Function newClientContextContext

cli/command/formatter/context.go:51–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49}
50
51func newClientContextContext() *clientContextContext {
52 ctx := clientContextContext{}
53 ctx.Header = SubHeaderContext{
54 "Name": NameHeader,
55 "Description": DescriptionHeader,
56 "DockerEndpoint": dockerEndpointHeader,
57 "Error": ErrorHeader,
58 }
59 return &ctx
60}
61
62func (c *clientContextContext) MarshalJSON() ([]byte, error) {
63 return MarshalJSON(c)

Callers 1

ClientContextWriteFunction · 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…