Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientBackend = newRawClient(dialBackend)
View Source
var Paths = sync.OnceValue(func() DockerDesktopPaths { desktopPaths, err := getDockerDesktopPaths() if err != nil { panic(err) } return desktopPaths })
Functions ¶
func GetVersion ¶ added in v1.60.0
GetVersion returns the running Docker Desktop version (e.g. "4.74.0") or an empty string if Docker Desktop is not running or the call fails.
The lookup is bounded by a short internal timeout so a stale or missing backend socket cannot stall callers on hot paths (it is queried on every outbound built-in tool HTTP request). ctx is used for the underlying HTTP call on a cache miss; on a cache hit the cached value is returned without consulting ctx.
func IsDockerDesktopRunning ¶
Types ¶
type DockerDesktopPaths ¶
type DockerHubInfo ¶
func GetUserInfo ¶
func GetUserInfo(ctx context.Context) DockerHubInfo
Source Files
¶
Click to show internal directories.
Click to hide internal directories.