package
0.0.0-20210505125100-04f29832a923
Repository: https://github.com/kata-containers/runtime.git
Documentation: pkg.go.dev

# Functions

BuildSocketPath concatenates the provided elements into a path and returns it.
CalculateMilliCPUs converts CPU quota and period to milli-CPUs.
CalculateVCpusFromMilliCpus converts from mCPU to CPU, taking the ceiling value when necessary.
CleanupFds closed bundles of open fds in batch.
ConstraintsToVCPUs converts CPU quota and period to vCPUs.
DeepCompare compare foo and bar.
FileCopy copys files from srcPath to dstPath.
FindContextID finds a unique context ID by generating a random number between 3 and max unsigned int (maxUint).
GenerateRandomBytes generate n random bytes.
GetDevicePathAndFsTypeOptions gets the device for the mount point, the file system type and mount options.
GetSCSIAddress gets scsiID and lun from index, and combined them into a scsi ID.
GetSCSIIdLun gets the SCSI id and lun, based on the index of the drive being inserted.
GetVirtDriveName returns the disk name format for virtio-blk Reference: https://github.com/torvalds/linux/blob/master/drivers/block/virtio_blk.c @c0aa3e0916d7e531e69b02e426f7162dfb1c6c0.
No description provided by the author
MakeNameID is generic function for creating a named-id for passing on the hypervisor commandline.
No description provided by the author
No description provided by the author
ReverseString reverses whole string.
SupportsVsocks returns true if vsocks are supported, otherwise false.
WriteToFile opens a file in write only mode and writes bytes to it.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
Binary to use to log program output.
MaxSocketPathLen is the effective maximum Unix domain socket length.
No description provided by the author
MibToBytesShift the number to shift needed to convert MiB to Bytes.

# Variables

StartCmd pointer to a function to start a command.
VHostVSockDevicePath path to vhost-vsock device.

# Structs

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author