package util
import "k8s.io/kubernetes/pkg/kubelet/util"
Package util holds utility functions.
Index ¶
- func CreateListener(endpoint string) (net.Listener, error)
- func FromApiserverCache(opts *metav1.GetOptions)
- func GetAddressAndDialer(endpoint string) (string, func(addr string, timeout time.Duration) (net.Conn, error), error)
- func GetBootTime() (time.Time, error)
- func IsUnixDomainSocket(filePath string) (bool, error)
- func LocalEndpoint(path, file string) (string, error)
- func NormalizePath(path string) string
Functions ¶
func CreateListener ¶
CreateListener creates a listener on the specified endpoint.
func FromApiserverCache ¶
func FromApiserverCache(opts *metav1.GetOptions)
FromApiserverCache modifies <opts> so that the GET request will be served from apiserver cache instead of from etcd.
func GetAddressAndDialer ¶
func GetAddressAndDialer(endpoint string) (string, func(addr string, timeout time.Duration) (net.Conn, error), error)
GetAddressAndDialer returns the address parsed from the given endpoint and a dialer.
func GetBootTime ¶
GetBootTime returns the time at which the machine was started, truncated to the nearest second
func IsUnixDomainSocket ¶
IsUnixDomainSocket returns whether a given file is a AF_UNIX socket file
func LocalEndpoint ¶
LocalEndpoint empty implementation
func NormalizePath ¶
NormalizePath converts FS paths returned by certain go frameworks (like fsnotify) to native Windows paths that can be passed to Windows specific code
Source Files ¶
doc.go util.go util_windows.go
Directories ¶
Path | Synopsis |
---|---|
pkg/kubelet/util/cache | |
pkg/kubelet/util/format | |
pkg/kubelet/util/ioutils | |
pkg/kubelet/util/logreduction | |
pkg/kubelet/util/manager | |
pkg/kubelet/util/queue | |
pkg/kubelet/util/sliceutils | |
pkg/kubelet/util/store | Package store hosts a Store interface and its implementations. |
- Version
- v1.16.14
- Published
- Aug 13, 2020
- Platform
- windows/amd64
- Imports
- 8 packages
- Last checked
- 1 minute ago –
Tools for package owners.