package util

import "github.com/containerd/containerd/integration/remote/util"

Index

Functions

func CreateListener

func CreateListener(endpoint string) (net.Listener, error)

CreateListener creates a listener on the specified endpoint.

func GetAddressAndDialer

func GetAddressAndDialer(endpoint string) (string, func(ctx context.Context, addr string) (net.Conn, error), error)

GetAddressAndDialer returns the address parsed from the given endpoint and a context dialer.

func IsUnixDomainSocket

func IsUnixDomainSocket(filePath string) (bool, error)

IsUnixDomainSocket returns whether a given file is a AF_UNIX socket file

func NormalizePath

func NormalizePath(path string) string

NormalizePath is a no-op for Linux for now

Source Files

util_unix.go

Version
v1.6.35
Published
Aug 9, 2024
Platform
linux/amd64
Imports
7 packages
Last checked
7 seconds ago

Tools for package owners.