package util

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

Package util holds utility functions.

Index

Functions

func CreateListener

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

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 GetBootTime

func GetBootTime() (time.Time, error)

GetBootTime empty implementation

func LocalEndpoint

func LocalEndpoint(path, file string) (string, error)

LocalEndpoint empty implementation

func LockAndCheckSubPath

func LockAndCheckSubPath(volumePath, subPath string) ([]uintptr, error)

LockAndCheckSubPath empty implementation

func UnlockPath

func UnlockPath(fileHandles []uintptr)

UnlockPath empty implementation

Source Files

doc.go util.go util_unsupported.go

Version
v1.6.32
Published
May 22, 2024
Platform
js/wasm
Imports
5 packages
Last checked
1 minute ago

Tools for package owners.