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 LocalEndpoint(path, file string) (string, error)
- func LockAndCheckSubPath(volumePath, subPath string) ([]uintptr, error)
- func UnlockPath(fileHandles []uintptr)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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(ctx context.Context, addr string) (net.Conn, error), error)
GetAddressAndDialer returns the address parsed from the given endpoint and a context dialer.
func LocalEndpoint ¶
LocalEndpoint empty implementation
func LockAndCheckSubPath ¶
LockAndCheckSubPath empty implementation
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.