Documentation ¶
Overview ¶
Package util holds utility functions.
Index ¶
- func CreateListener(endpoint string) (net.Listener, error)
- func FromApiserverCache(opts *metav1.GetOptions)
- func GetAddressAndDialer(endpoint string) (string, func(ctx context.Context, addr string) (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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateListener ¶ added in v1.7.0
CreateListener creates a listener on the specified endpoint.
func FromApiserverCache ¶ added in v1.6.0
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 ¶ added in v1.7.0
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 GetBootTime ¶ added in v1.11.9
GetBootTime returns the time at which the machine was started, truncated to the nearest second
func IsUnixDomainSocket ¶ added in v1.16.0
IsUnixDomainSocket returns whether a given file is a AF_UNIX socket file
func LocalEndpoint ¶ added in v1.13.0
LocalEndpoint returns the full path to a unix socket at the given endpoint
func NormalizePath ¶ added in v1.16.0
NormalizePath is a no-op for Linux for now
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package store hosts a Store interface and its implementations.
|
Package store hosts a Store interface and its implementations. |
Click to show internal directories.
Click to hide internal directories.