sdk

package
v0.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2026 License: Apache-2.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package sdk provides a factory method for creating a Docker client.

Index

Constants

View Source
const (
	// DockerSocketEnv is the environment variable for custom Docker socket path
	DockerSocketEnv = "TOOLHIVE_DOCKER_SOCKET"
	// PodmanSocketEnv is the environment variable for custom Podman socket path
	PodmanSocketEnv = "TOOLHIVE_PODMAN_SOCKET"
	// ColimaSocketEnv is the environment variable for custom Colima socket path
	ColimaSocketEnv = "TOOLHIVE_COLIMA_SOCKET"
)

Environment variable names

View Source
const (
	// PodmanSocketPath is the default Podman socket path
	PodmanSocketPath = "/var/run/podman/podman.sock"
	// PodmanXDGRuntimeSocketPath is the XDG runtime Podman socket path
	PodmanXDGRuntimeSocketPath = "podman/podman.sock"
	// DockerSocketPath is the default Docker socket path
	DockerSocketPath = "/var/run/docker.sock"
	// DockerDesktopMacSocketPath is the Docker Desktop socket path on macOS
	DockerDesktopMacSocketPath = ".docker/run/docker.sock"
	// RancherDesktopMacSocketPath is the Docker socket path for Rancher Desktop on macOS
	RancherDesktopMacSocketPath = ".rd/docker.sock"
	// OrbStackMacSocketPath is the Docker socket path for OrbStack on macOS
	OrbStackMacSocketPath = ".orbstack/run/docker.sock"
	// ColimaDesktopMacSocketPath is the Docker socket path for Colima on macOS
	ColimaDesktopMacSocketPath = ".colima/default/docker.sock"
)

Common socket paths

Variables

View Source
var ErrRuntimeNotFound = fmt.Errorf("container runtime not found")

ErrRuntimeNotFound is returned when a container runtime is not found

Functions

func NewDockerClient

func NewDockerClient(ctx context.Context) (*client.Client, string, runtime.Type, error)

NewDockerClient creates a new container client

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL