package util
import "k8s.io/kubernetes/pkg/kubelet/cri/remote/util"
Index ¶
- func CreateListener(endpoint string) (net.Listener, error)
- func GetAddressAndDialer(endpoint string) (string, func(ctx context.Context, addr string) (net.Conn, error), error)
- func IsUnixDomainSocket(filePath string) (bool, error)
- func NormalizePath(path string) string
Functions ¶
func CreateListener ¶
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 ¶
IsUnixDomainSocket returns whether a given file is a AF_UNIX socket file
func NormalizePath ¶
NormalizePath is a no-op for Linux for now
Source Files ¶
util_unix.go
- Version
- v1.20.3
- Published
- Feb 17, 2021
- Platform
- darwin/amd64
- Imports
- 9 packages
- Last checked
- 28 seconds ago –
Tools for package owners.