Documentation ¶
Overview ¶
Package bundle implements some helper functions for firecracker-containerd's interaction with bundle dirs, both inside the VM and outside on the host.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dir ¶
type Dir string
Dir represents the root of a container bundle dir. It's just a type wrapper around a string, where the string is the path of the bundle dir.
func VMBundleDir ¶
VMBundleDir returns the directory inside a VM at which the bundle directory for the provided taskID should exist.
func (Dir) AddrFilePath ¶
AddrFilePath is the path to the address file as found in the bundleDir. Even though the shim address is set per-VM, not per-container, containerd expects to find the shim addr file in the bundle dir, so we still have to create it or symlink it to the shimAddrFilePath
func (Dir) LogFifoPath ¶
LogFifoPath is a path to a FIFO for writing shim logs as found in the bundleDir. It is the path created by containerd for us, the shimLogFifoPath is just a symlink to one.
func (Dir) OCIConfigPath ¶
OCIConfigPath returns the path to the bundle's config.json
func (Dir) RootfsPath ¶
RootfsPath returns the path to the "rootfs" dir of the bundle
type OCIConfig ¶
type OCIConfig struct {
// contains filtered or unexported fields
}
OCIConfig is wrapper around a bundle's config.json that provided basic file operations on it with appropriate permissions.