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

Method ServerInfo

cli/command/cli.go:145–148  ·  view source on GitHub ↗

ServerInfo returns the server version details for the host this client is connected to

()

Source from the content-addressed store, hash-verified

143// ServerInfo returns the server version details for the host this client is
144// connected to
145func (cli *DockerCli) ServerInfo() ServerInfo {
146 _ = cli.initialize()
147 return cli.serverInfo
148}
149
150// BuildKitEnabled returns buildkit is enabled or not.
151func (cli *DockerCli) BuildKitEnabled() (bool, error) {

Callers 2

BuildKitEnabledMethod · 0.95
TestInitializeFromClientFunction · 0.95

Calls 1

initializeMethod · 0.95

Tested by 1

TestInitializeFromClientFunction · 0.76