Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvDockerAPIVer = "DOCKER_API_VERSION" EnvDockerHost = "DOCKER_HOST" EnvDockerTLSVerify = "DOCKER_TLS_VERIFY" EnvDockerCertPath = "DOCKER_CERT_PATH" UnixSocketPath = "/var/run/docker.sock" UnixSocketAddr = "unix:///var/run/docker.sock" )
Variables ¶
View Source
var EnvVarNames = []string{ EnvDockerHost, EnvDockerTLSVerify, EnvDockerCertPath, EnvDockerAPIVer, }
View Source
var (
ErrNoDockerInfo = errors.New("no docker info")
)
Functions ¶
func New ¶
func New(config *config.DockerClient) (*docker.Client, error)
New creates a new Docker client instance
func UserDockerSocket ¶
func UserDockerSocket() string
Types ¶
type SocketInfo ¶
type SocketInfo struct { Address string `json:"address"` FilePath string `json:"file_path"` FileType string `json:"type"` FilePerms string `json:"perms"` SymlinkTarget string `json:"symlink_target,omitempty"` TargetPerms string `json:"target_perms,omitempty"` TargetType string `json:"target_type,omitempty"` CanRead bool `json:"can_read"` CanWrite bool `json:"can_write"` }
func GetUnixSocketAddr ¶
func GetUnixSocketAddr() (*SocketInfo, error)
Click to show internal directories.
Click to hide internal directories.