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

Method ResolveDefault

cli/command/defaultcontextstore.go:53–53  ·  view source on GitHub ↗

ResolveDefault returns values suitable for storing in store.Metadata.Endpoints and store.ContextTLSData.Endpoints. An error is only returned for something fatal, not simply the lack of a default (e.g. because the config file which would contain it is missing). If there is no default then returns ni

()

Source from the content-addressed store, hash-verified

51 //
52 //nolint:dupword // ignore "Duplicate words (nil,) found"
53 ResolveDefault() (any, *store.EndpointTLSData, error)
54}
55
56// resolveDefaultContext creates a Metadata for the current CLI invocation parameters

Callers 1

resolveDefaultContextFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected